Class: AWSCDK::IoT::CfnMitigationAction::ReplaceDefaultPolicyVersionParamsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template_name:) ⇒ ReplaceDefaultPolicyVersionParamsProperty

Returns a new instance of ReplaceDefaultPolicyVersionParamsProperty.

Parameters:

  • template_name (String)

    The name of the template to be applied.



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_nameString (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_propertiesObject



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_jsiiObject



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