Class: AWSCDK::Backup::CfnFramework::ControlInputParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Backup::CfnFramework::ControlInputParameterProperty
- Defined in:
- backup/cfn_framework.rb
Overview
The parameters for a control.
A control can have zero, one, or more than one parameter. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year ". The first parameter is daily . The second parameter is 1 year .
Instance Attribute Summary collapse
-
#parameter_name ⇒ String
readonly
The name of a parameter, for example,
BackupPlanFrequency. -
#parameter_value ⇒ String
readonly
The value of parameter, for example,
hourly.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parameter_name:, parameter_value:) ⇒ ControlInputParameterProperty
constructor
A new instance of ControlInputParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(parameter_name:, parameter_value:) ⇒ ControlInputParameterProperty
Returns a new instance of ControlInputParameterProperty.
591 592 593 594 595 596 |
# File 'backup/cfn_framework.rb', line 591 def initialize(parameter_name:, parameter_value:) @parameter_name = parameter_name Jsii::Type.check_type(@parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterName") @parameter_value = parameter_value Jsii::Type.check_type(@parameter_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterValue") end |
Instance Attribute Details
#parameter_name ⇒ String (readonly)
The name of a parameter, for example, BackupPlanFrequency .
602 603 604 |
# File 'backup/cfn_framework.rb', line 602 def parameter_name @parameter_name end |
#parameter_value ⇒ String (readonly)
The value of parameter, for example, hourly .
607 608 609 |
# File 'backup/cfn_framework.rb', line 607 def parameter_value @parameter_value end |
Class Method Details
.jsii_properties ⇒ Object
609 610 611 612 613 614 |
# File 'backup/cfn_framework.rb', line 609 def self.jsii_properties { :parameter_name => "parameterName", :parameter_value => "parameterValue", } end |
Instance Method Details
#to_jsii ⇒ Object
616 617 618 619 620 621 622 623 |
# File 'backup/cfn_framework.rb', line 616 def to_jsii result = {} result.merge!({ "parameterName" => @parameter_name, "parameterValue" => @parameter_value, }) result.compact end |