getBucketObjects function

Future<GetBucketObjectsResult> getBucketObjects(
  1. GetBucketObjectsArgs args, {
  2. InvokeOptions? options,
})

> NOTE: The aws.s3.getBucketObjects data source is DEPRECATED and will be removed in a future version! Use aws.s3.getObjects instead, where new features and fixes will be added.

> NOTE on maxKeys: Retrieving very large numbers of keys can adversely affect this provider's performance.

The objects data source returns keys (i.e., file names) and other metadata about objects in an S3 bucket. args Arguments passed to this invoke. Arguments for getBucketObjects. options Invoke options controlling this call.

Implementation

Future<GetBucketObjectsResult> getBucketObjects(
  GetBucketObjectsArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'aws:s3/getBucketObjects:getBucketObjects',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetBucketObjectsResult.fromMap(result);
}