Show / Hide Table of Contents

Interface ICfnLocationS3Props

Properties for defining a CfnLocationS3.

Namespace: Amazon.CDK.AWS.DataSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnLocationS3Props
Syntax (vb)
Public Interface ICfnLocationS3Props
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locations3.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.DataSync;

             var cfnLocationS3Props = new CfnLocationS3Props {
                 S3Config = new S3ConfigProperty {
                     BucketAccessRoleArn = "bucketAccessRoleArn"
                 },

                 // the properties below are optional
                 S3BucketArn = "s3BucketArn",
                 S3StorageClass = "s3StorageClass",
                 Subdirectory = "subdirectory",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             };

Synopsis

Properties

S3BucketArn

The ARN of the Amazon S3 bucket.

S3Config

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.

S3StorageClass

The Amazon S3 storage class that you want to store your files in when this location is used as a task destination.

Subdirectory

Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).

Tags

Specifies labels that help you categorize, filter, and search for your AWS resources.

Properties

S3BucketArn

The ARN of the Amazon S3 bucket.

object? S3BucketArn { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locations3.html#cfn-datasync-locations3-s3bucketarn

Type union: either string or IBucketRef

S3Config

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.

object S3Config { get; }
Property Value

object

Remarks

For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locations3.html#cfn-datasync-locations3-s3config

Type union: either IResolvable or CfnLocationS3.IS3ConfigProperty

S3StorageClass

The Amazon S3 storage class that you want to store your files in when this location is used as a task destination.

string? S3StorageClass { get; }
Property Value

string

Remarks

For buckets in AWS Regions , the storage class defaults to S3 Standard.

For more information about S3 storage classes, see Amazon S3 Storage Classes . Some storage classes have behaviors that can affect your S3 storage costs. For detailed information, see Considerations When Working with Amazon S3 Storage Classes in DataSync .

Default: - "STANDARD"

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locations3.html#cfn-datasync-locations3-s3storageclass

Subdirectory

Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).

string? Subdirectory { get; }
Property Value

string

Remarks
DataSync can't transfer objects with a prefix that begins with a slash ( <code>/</code> ) or includes <code>//</code> , <code>/./</code> , or <code>/../</code> patterns. For example:

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locations3.html#cfn-datasync-locations3-subdirectory

    Tags

    Specifies labels that help you categorize, filter, and search for your AWS resources.

    ICfnTag[]? Tags { get; }
    Property Value

    ICfnTag[]

    Remarks

    We recommend creating at least a name tag for your transfer location.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locations3.html#cfn-datasync-locations3-tags

    Back to top Generated by DocFX