CmdID / aws / aws datasync
aws datasync create-location-s3
Creates a transfer location for an Amazon S3 bucket. AWS CLI reference
6 options Its page in the AWS CLI reference
Options
--agent-arns(Amazon S3 on Outposts only) Specifies the Amazon Resource Name (ARN) of the DataSync agent on your Outpost.--s3-bucket-arnSpecifies the ARN of the S3 bucket that you want to use as a location.--s3-configSpecifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.--s3-storage-classSpecifies the storage class that you want your objects to use when Amazon S3 is a transfer destination.--subdirectorySpecifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).--tagsSpecifies labels that help you categorize, filter, and search for your Amazon Web Services resources.