Class: AWSCDK::Datasync::CfnTask::SourceProperty

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

Overview

Specifies the manifest that you want DataSync to use and where it's hosted.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3: nil) ⇒ SourceProperty

Returns a new instance of SourceProperty.

Parameters:



1370
1371
1372
1373
# File 'datasync/cfn_task.rb', line 1370

def initialize(s3: nil)
  @s3 = s3.is_a?(Hash) ? ::AWSCDK::Datasync::CfnTask::ManifestConfigSourceS3Property.new(**s3.transform_keys(&:to_sym)) : s3
  Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhc3luYy5DZm5UYXNrLk1hbmlmZXN0Q29uZmlnU291cmNlUzNQcm9wZXJ0eSJ9XX19")), "s3") unless @s3.nil?
end

Instance Attribute Details

#s3AWSCDK::IResolvable, ... (readonly)

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



1379
1380
1381
# File 'datasync/cfn_task.rb', line 1379

def s3
  @s3
end

Class Method Details

.jsii_propertiesObject



1381
1382
1383
1384
1385
# File 'datasync/cfn_task.rb', line 1381

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

Instance Method Details

#to_jsiiObject



1387
1388
1389
1390
1391
1392
1393
# File 'datasync/cfn_task.rb', line 1387

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