Class: AWSCDK::Config::CfnRemediationConfiguration::RemediationParameterValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Config::CfnRemediationConfiguration::RemediationParameterValueProperty
- Defined in:
- config/cfn_remediation_configuration.rb
Overview
The value is either a dynamic (resource) value or a static value.
You must select either a dynamic value or a static value.
Instance Attribute Summary collapse
-
#resource_value ⇒ AWSCDK::IResolvable, ...
readonly
The value is dynamic and changes at run-time.
-
#static_value ⇒ AWSCDK::IResolvable, ...
readonly
The value is static and does not change at run-time.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_value: nil, static_value: nil) ⇒ RemediationParameterValueProperty
constructor
A new instance of RemediationParameterValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_value: nil, static_value: nil) ⇒ RemediationParameterValueProperty
Returns a new instance of RemediationParameterValueProperty.
678 679 680 681 682 683 |
# File 'config/cfn_remediation_configuration.rb', line 678 def initialize(resource_value: nil, static_value: nil) @resource_value = resource_value.is_a?(Hash) ? ::AWSCDK::Config::CfnRemediationConfiguration::ResourceValueProperty.new(**resource_value.transform_keys(&:to_sym)) : resource_value Jsii::Type.check_type(@resource_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25maWcuQ2ZuUmVtZWRpYXRpb25Db25maWd1cmF0aW9uLlJlc291cmNlVmFsdWVQcm9wZXJ0eSJ9XX19")), "resourceValue") unless @resource_value.nil? @static_value = static_value.is_a?(Hash) ? ::AWSCDK::Config::CfnRemediationConfiguration::StaticValueProperty.new(**static_value.transform_keys(&:to_sym)) : static_value Jsii::Type.check_type(@static_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25maWcuQ2ZuUmVtZWRpYXRpb25Db25maWd1cmF0aW9uLlN0YXRpY1ZhbHVlUHJvcGVydHkifV19fQ==")), "staticValue") unless @static_value.nil? end |
Instance Attribute Details
#resource_value ⇒ AWSCDK::IResolvable, ... (readonly)
The value is dynamic and changes at run-time.
689 690 691 |
# File 'config/cfn_remediation_configuration.rb', line 689 def resource_value @resource_value end |
#static_value ⇒ AWSCDK::IResolvable, ... (readonly)
The value is static and does not change at run-time.
694 695 696 |
# File 'config/cfn_remediation_configuration.rb', line 694 def static_value @static_value end |
Class Method Details
.jsii_properties ⇒ Object
696 697 698 699 700 701 |
# File 'config/cfn_remediation_configuration.rb', line 696 def self.jsii_properties { :resource_value => "resourceValue", :static_value => "staticValue", } end |
Instance Method Details
#to_jsii ⇒ Object
703 704 705 706 707 708 709 710 |
# File 'config/cfn_remediation_configuration.rb', line 703 def to_jsii result = {} result.merge!({ "resourceValue" => @resource_value, "staticValue" => @static_value, }) result.compact end |