Class: AWSCDK::Datasync::CfnLocationS3::S3ConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
datasync/cfn_location_s3.rb

Overview

Specifies the Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.

For more information, see Providing DataSync access to S3 buckets .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_access_role_arn:) ⇒ S3ConfigProperty

Returns a new instance of S3ConfigProperty.

Parameters:

  • bucket_access_role_arn (String)

    Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.



575
576
577
578
# File 'datasync/cfn_location_s3.rb', line 575

def initialize(bucket_access_role_arn:)
  @bucket_access_role_arn = bucket_access_role_arn
  Jsii::Type.check_type(@bucket_access_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketAccessRoleArn")
end

Instance Attribute Details

#bucket_access_role_arnString (readonly)

Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.



584
585
586
# File 'datasync/cfn_location_s3.rb', line 584

def bucket_access_role_arn
  @bucket_access_role_arn
end

Class Method Details

.jsii_propertiesObject



586
587
588
589
590
# File 'datasync/cfn_location_s3.rb', line 586

def self.jsii_properties
  {
    :bucket_access_role_arn => "bucketAccessRoleArn",
  }
end

Instance Method Details

#to_jsiiObject



592
593
594
595
596
597
598
# File 'datasync/cfn_location_s3.rb', line 592

def to_jsii
  result = {}
  result.merge!({
    "bucketAccessRoleArn" => @bucket_access_role_arn,
  })
  result.compact
end