Class: AWSCDK::Backup::CfnTieringConfiguration::ResourceSelectionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Backup::CfnTieringConfiguration::ResourceSelectionProperty
- Defined in:
- backup/cfn_tiering_configuration.rb
Overview
Instance Attribute Summary collapse
- #resource_type ⇒ String readonly
- #resources ⇒ Array<String> readonly
- #tiering_down_settings_in_days ⇒ Numeric readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resources:, resource_type:, tiering_down_settings_in_days:) ⇒ ResourceSelectionProperty
constructor
A new instance of ResourceSelectionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resources:, resource_type:, tiering_down_settings_in_days:) ⇒ ResourceSelectionProperty
Returns a new instance of ResourceSelectionProperty.
557 558 559 560 561 562 563 564 |
# File 'backup/cfn_tiering_configuration.rb', line 557 def initialize(resources:, resource_type:, tiering_down_settings_in_days:) @resources = resources Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "resources") @resource_type = resource_type Jsii::Type.check_type(@resource_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceType") @tiering_down_settings_in_days = tiering_down_settings_in_days Jsii::Type.check_type(@tiering_down_settings_in_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "tieringDownSettingsInDays") end |
Instance Attribute Details
#resource_type ⇒ String (readonly)
571 572 573 |
# File 'backup/cfn_tiering_configuration.rb', line 571 def resource_type @resource_type end |
#resources ⇒ Array<String> (readonly)
568 569 570 |
# File 'backup/cfn_tiering_configuration.rb', line 568 def resources @resources end |
#tiering_down_settings_in_days ⇒ Numeric (readonly)
574 575 576 |
# File 'backup/cfn_tiering_configuration.rb', line 574 def tiering_down_settings_in_days @tiering_down_settings_in_days end |
Class Method Details
.jsii_properties ⇒ Object
576 577 578 579 580 581 582 |
# File 'backup/cfn_tiering_configuration.rb', line 576 def self.jsii_properties { :resources => "resources", :resource_type => "resourceType", :tiering_down_settings_in_days => "tieringDownSettingsInDays", } end |
Instance Method Details
#to_jsii ⇒ Object
584 585 586 587 588 589 590 591 592 |
# File 'backup/cfn_tiering_configuration.rb', line 584 def to_jsii result = {} result.merge!({ "resources" => @resources, "resourceType" => @resource_type, "tieringDownSettingsInDays" => @tiering_down_settings_in_days, }) result.compact end |