Class: AWSCDK::IoT::CfnMitigationAction::ReplaceDefaultPolicyVersionParamsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnMitigationAction::ReplaceDefaultPolicyVersionParamsProperty
- Defined in:
- io_t/cfn_mitigation_action.rb
Overview
Parameters to define a mitigation action that adds a blank policy to restrict permissions.
Instance Attribute Summary collapse
-
#template_name ⇒ String
readonly
The name of the template to be applied.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(template_name:) ⇒ ReplaceDefaultPolicyVersionParamsProperty
constructor
A new instance of ReplaceDefaultPolicyVersionParamsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(template_name:) ⇒ ReplaceDefaultPolicyVersionParamsProperty
Returns a new instance of ReplaceDefaultPolicyVersionParamsProperty.
781 782 783 784 |
# File 'io_t/cfn_mitigation_action.rb', line 781 def initialize(template_name:) @template_name = template_name Jsii::Type.check_type(@template_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "templateName") end |
Instance Attribute Details
#template_name ⇒ String (readonly)
The name of the template to be applied.
The only supported value is BLANK_POLICY .
792 793 794 |
# File 'io_t/cfn_mitigation_action.rb', line 792 def template_name @template_name end |
Class Method Details
.jsii_properties ⇒ Object
794 795 796 797 798 |
# File 'io_t/cfn_mitigation_action.rb', line 794 def self.jsii_properties { :template_name => "templateName", } end |
Instance Method Details
#to_jsii ⇒ Object
800 801 802 803 804 805 806 |
# File 'io_t/cfn_mitigation_action.rb', line 800 def to_jsii result = {} result.merge!({ "templateName" => @template_name, }) result.compact end |