GetBucketObjects
NOTE on
max_keys: Retrieving very large numbers of keys can adversely affect this provider’s performance.
The bucket-objects data source returns keys (i.e., file names) and other metadata about objects in an S3 bucket.
Using GetBucketObjects
function getBucketObjects(args: GetBucketObjectsArgs, opts?: InvokeOptions): Promise<GetBucketObjectsResult>function get_bucket_objects(bucket=None, delimiter=None, encoding_type=None, fetch_owner=None, max_keys=None, prefix=None, start_after=None, opts=None)func GetBucketObjects(ctx *Context, args *GetBucketObjectsArgs, opts ...InvokeOption) (*GetBucketObjectsResult, error)public static class GetBucketObjects {
public static Task<GetBucketObjectsResult> InvokeAsync(GetBucketObjectsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Bucket string
Lists object keys in this S3 bucket. Alternatively, an S3 access point ARN can be specified
- Delimiter string
A character used to group keys (Default: none)
- Encoding
Type string Encodes keys using this method (Default: none; besides none, only “url” can be used)
- Fetch
Owner bool Boolean specifying whether to populate the owner list (Default: false)
- Max
Keys int Maximum object keys to return (Default: 1000)
- Prefix string
Limits results to object keys with this prefix (Default: none)
- Start
After string Returns key names lexicographically after a specific object key in your bucket (Default: none; S3 lists object keys in UTF-8 character encoding in lexicographical order)
- Bucket string
Lists object keys in this S3 bucket. Alternatively, an S3 access point ARN can be specified
- Delimiter string
A character used to group keys (Default: none)
- Encoding
Type string Encodes keys using this method (Default: none; besides none, only “url” can be used)
- Fetch
Owner bool Boolean specifying whether to populate the owner list (Default: false)
- Max
Keys int Maximum object keys to return (Default: 1000)
- Prefix string
Limits results to object keys with this prefix (Default: none)
- Start
After string Returns key names lexicographically after a specific object key in your bucket (Default: none; S3 lists object keys in UTF-8 character encoding in lexicographical order)
- bucket string
Lists object keys in this S3 bucket. Alternatively, an S3 access point ARN can be specified
- delimiter string
A character used to group keys (Default: none)
- encoding
Type string Encodes keys using this method (Default: none; besides none, only “url” can be used)
- fetch
Owner boolean Boolean specifying whether to populate the owner list (Default: false)
- max
Keys number Maximum object keys to return (Default: 1000)
- prefix string
Limits results to object keys with this prefix (Default: none)
- start
After string Returns key names lexicographically after a specific object key in your bucket (Default: none; S3 lists object keys in UTF-8 character encoding in lexicographical order)
- bucket str
Lists object keys in this S3 bucket. Alternatively, an S3 access point ARN can be specified
- delimiter str
A character used to group keys (Default: none)
- encoding_
type str Encodes keys using this method (Default: none; besides none, only “url” can be used)
- fetch_
owner bool Boolean specifying whether to populate the owner list (Default: false)
- max_
keys float Maximum object keys to return (Default: 1000)
- prefix str
Limits results to object keys with this prefix (Default: none)
- start_
after str Returns key names lexicographically after a specific object key in your bucket (Default: none; S3 lists object keys in UTF-8 character encoding in lexicographical order)
GetBucketObjects Result
The following output properties are available:
- Bucket string
- Common
Prefixes List<string> List of any keys between
prefixand the next occurrence ofdelimiter(i.e., similar to subdirectories of theprefix“directory”); the list is only returned when you specifydelimiter- Id string
The provider-assigned unique ID for this managed resource.
- Keys List<string>
List of strings representing object keys
- Owners List<string>
List of strings representing object owner IDs (see
fetch_ownerabove)- Delimiter string
- Encoding
Type string - Fetch
Owner bool - Max
Keys int - Prefix string
- Start
After string
- Bucket string
- Common
Prefixes []string List of any keys between
prefixand the next occurrence ofdelimiter(i.e., similar to subdirectories of theprefix“directory”); the list is only returned when you specifydelimiter- Id string
The provider-assigned unique ID for this managed resource.
- Keys []string
List of strings representing object keys
- Owners []string
List of strings representing object owner IDs (see
fetch_ownerabove)- Delimiter string
- Encoding
Type string - Fetch
Owner bool - Max
Keys int - Prefix string
- Start
After string
- bucket string
- common
Prefixes string[] List of any keys between
prefixand the next occurrence ofdelimiter(i.e., similar to subdirectories of theprefix“directory”); the list is only returned when you specifydelimiter- id string
The provider-assigned unique ID for this managed resource.
- keys string[]
List of strings representing object keys
- owners string[]
List of strings representing object owner IDs (see
fetch_ownerabove)- delimiter string
- encoding
Type string - fetch
Owner boolean - max
Keys number - prefix string
- start
After string
- bucket str
- common_
prefixes List[str] List of any keys between
prefixand the next occurrence ofdelimiter(i.e., similar to subdirectories of theprefix“directory”); the list is only returned when you specifydelimiter- id str
The provider-assigned unique ID for this managed resource.
- keys List[str]
List of strings representing object keys
- owners List[str]
List of strings representing object owner IDs (see
fetch_ownerabove)- delimiter str
- encoding_
type str - fetch_
owner bool - max_
keys float - prefix str
- start_
after str
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.