AWS
bucket_exists
Validate that a bucket exists
Below are the details and signature of the activity Python module.
Type | probe |
Module | chaosaws.s3.probes |
Name | object_exists |
Return | boolean |
Usage
JSON
{
"name": "object-exists",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosaws.s3.probes",
"func": "object_exists",
"arguments": {
"bucket_name": "",
"object_key": ""
}
}
}
YAML
name: object-exists
provider:
arguments:
bucket_name: ""
object_key: ""
func: object_exists
module: chaosaws.s3.probes
type: python
type: probe
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
bucket_name | string | Yes | Bucket | Name of the bucket | |
object_key | string | Yes | Object Key | Key of the object to lookup in the bucket | |
version_id | string | null | No | Version | Version identifier of the object |
Signature
def object_exists(bucket_name: str,
object_key: str,
version_id: str = None,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> bool:
pass