Class: AWSCDK::Datasync::CfnTask::OverridesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Datasync::CfnTask::OverridesProperty
- Defined in:
- datasync/cfn_task.rb
Overview
Customizes the reporting level for aspects of your task report.
For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that Datasync attempted to delete in your destination location.
Instance Attribute Summary collapse
-
#deleted ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the level of reporting for the files, objects, and directories that Datasync attempted to delete in your destination location.
-
#skipped ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the level of reporting for the files, objects, and directories that Datasync attempted to skip during your transfer.
-
#transferred ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the level of reporting for the files, objects, and directories that Datasync attempted to transfer.
-
#verified ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the level of reporting for the files, objects, and directories that Datasync attempted to verify at the end of your transfer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(deleted: nil, skipped: nil, transferred: nil, verified: nil) ⇒ OverridesProperty
constructor
A new instance of OverridesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(deleted: nil, skipped: nil, transferred: nil, verified: nil) ⇒ OverridesProperty
Returns a new instance of OverridesProperty.
1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 |
# File 'datasync/cfn_task.rb', line 1228 def initialize(deleted: nil, skipped: nil, transferred: nil, verified: nil) @deleted = deleted.is_a?(Hash) ? ::AWSCDK::Datasync::CfnTask::DeletedProperty.new(**deleted.transform_keys(&:to_sym)) : deleted Jsii::Type.check_type(@deleted, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhc3luYy5DZm5UYXNrLkRlbGV0ZWRQcm9wZXJ0eSJ9XX19")), "deleted") unless @deleted.nil? @skipped = skipped.is_a?(Hash) ? ::AWSCDK::Datasync::CfnTask::SkippedProperty.new(**skipped.transform_keys(&:to_sym)) : skipped Jsii::Type.check_type(@skipped, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhc3luYy5DZm5UYXNrLlNraXBwZWRQcm9wZXJ0eSJ9XX19")), "skipped") unless @skipped.nil? @transferred = transferred.is_a?(Hash) ? ::AWSCDK::Datasync::CfnTask::TransferredProperty.new(**transferred.transform_keys(&:to_sym)) : transferred Jsii::Type.check_type(@transferred, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhc3luYy5DZm5UYXNrLlRyYW5zZmVycmVkUHJvcGVydHkifV19fQ==")), "transferred") unless @transferred.nil? @verified = verified.is_a?(Hash) ? ::AWSCDK::Datasync::CfnTask::VerifiedProperty.new(**verified.transform_keys(&:to_sym)) : verified Jsii::Type.check_type(@verified, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhc3luYy5DZm5UYXNrLlZlcmlmaWVkUHJvcGVydHkifV19fQ==")), "verified") unless @verified.nil? end |
Instance Attribute Details
#deleted ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the level of reporting for the files, objects, and directories that Datasync attempted to delete in your destination location.
This only applies if you configure your task to delete data in the destination that isn't in the source.
1245 1246 1247 |
# File 'datasync/cfn_task.rb', line 1245 def deleted @deleted end |
#skipped ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the level of reporting for the files, objects, and directories that Datasync attempted to skip during your transfer.
1250 1251 1252 |
# File 'datasync/cfn_task.rb', line 1250 def skipped @skipped end |
#transferred ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the level of reporting for the files, objects, and directories that Datasync attempted to transfer.
1255 1256 1257 |
# File 'datasync/cfn_task.rb', line 1255 def transferred @transferred end |
#verified ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the level of reporting for the files, objects, and directories that Datasync attempted to verify at the end of your transfer.
This only applies if you configure your task to verify data during and after the transfer (which Datasync does by default)
1262 1263 1264 |
# File 'datasync/cfn_task.rb', line 1262 def verified @verified end |
Class Method Details
.jsii_properties ⇒ Object
1264 1265 1266 1267 1268 1269 1270 1271 |
# File 'datasync/cfn_task.rb', line 1264 def self.jsii_properties { :deleted => "deleted", :skipped => "skipped", :transferred => "transferred", :verified => "verified", } end |
Instance Method Details
#to_jsii ⇒ Object
1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 |
# File 'datasync/cfn_task.rb', line 1273 def to_jsii result = {} result.merge!({ "deleted" => @deleted, "skipped" => @skipped, "transferred" => @transferred, "verified" => @verified, }) result.compact end |