Class: AWSCDK::Datasync::CfnTask::ManifestConfigSourceS3Property

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

Overview

Specifies the S3 bucket where you're hosting the manifest that you want AWS DataSync to use.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_access_role_arn: nil, manifest_object_path: nil, manifest_object_version_id: nil, s3_bucket_arn: nil) ⇒ ManifestConfigSourceS3Property

Returns a new instance of ManifestConfigSourceS3Property.

Parameters:

  • bucket_access_role_arn (String, nil) (defaults to: nil)

    Specifies the AWS Identity and Access Management (IAM) role that allows DataSync to access your manifest.

  • manifest_object_path (String, nil) (defaults to: nil)

    Specifies the Amazon S3 object key of your manifest.

  • manifest_object_version_id (String, nil) (defaults to: nil)

    Specifies the object version ID of the manifest that you want DataSync to use.

  • s3_bucket_arn (String, nil) (defaults to: nil)

    Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest.



869
870
871
872
873
874
875
876
877
878
# File 'datasync/cfn_task.rb', line 869

def initialize(bucket_access_role_arn: nil, manifest_object_path: nil, manifest_object_version_id: nil, s3_bucket_arn: nil)
  @bucket_access_role_arn = bucket_access_role_arn
  Jsii::Type.check_type(@bucket_access_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketAccessRoleArn") unless @bucket_access_role_arn.nil?
  @manifest_object_path = manifest_object_path
  Jsii::Type.check_type(@manifest_object_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "manifestObjectPath") unless @manifest_object_path.nil?
  @manifest_object_version_id = manifest_object_version_id
  Jsii::Type.check_type(@manifest_object_version_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "manifestObjectVersionId") unless @manifest_object_version_id.nil?
  @s3_bucket_arn = s3_bucket_arn
  Jsii::Type.check_type(@s3_bucket_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3BucketArn") unless @s3_bucket_arn.nil?
end

Instance Attribute Details

#bucket_access_role_arnString? (readonly)

Specifies the AWS Identity and Access Management (IAM) role that allows DataSync to access your manifest.



884
885
886
# File 'datasync/cfn_task.rb', line 884

def bucket_access_role_arn
  @bucket_access_role_arn
end

#manifest_object_pathString? (readonly)

Specifies the Amazon S3 object key of your manifest.



889
890
891
# File 'datasync/cfn_task.rb', line 889

def manifest_object_path
  @manifest_object_path
end

#manifest_object_version_idString? (readonly)

Specifies the object version ID of the manifest that you want DataSync to use.



894
895
896
# File 'datasync/cfn_task.rb', line 894

def manifest_object_version_id
  @manifest_object_version_id
end

#s3_bucket_arnString? (readonly)

Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest.



899
900
901
# File 'datasync/cfn_task.rb', line 899

def s3_bucket_arn
  @s3_bucket_arn
end

Class Method Details

.jsii_propertiesObject



901
902
903
904
905
906
907
908
# File 'datasync/cfn_task.rb', line 901

def self.jsii_properties
  {
    :bucket_access_role_arn => "bucketAccessRoleArn",
    :manifest_object_path => "manifestObjectPath",
    :manifest_object_version_id => "manifestObjectVersionId",
    :s3_bucket_arn => "s3BucketArn",
  }
end

Instance Method Details

#to_jsiiObject



910
911
912
913
914
915
916
917
918
919
# File 'datasync/cfn_task.rb', line 910

def to_jsii
  result = {}
  result.merge!({
    "bucketAccessRoleArn" => @bucket_access_role_arn,
    "manifestObjectPath" => @manifest_object_path,
    "manifestObjectVersionId" => @manifest_object_version_id,
    "s3BucketArn" => @s3_bucket_arn,
  })
  result.compact
end