Class: AWSCDK::IoT::CfnMitigationAction::UpdateDeviceCertificateParamsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_mitigation_action.rb

Overview

Parameters to define a mitigation action that changes the state of the device certificate to inactive.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:) ⇒ UpdateDeviceCertificateParamsProperty

Returns a new instance of UpdateDeviceCertificateParamsProperty.

Parameters:

  • action (String)

    The action that you want to apply to the device certificate.



851
852
853
854
# File 'io_t/cfn_mitigation_action.rb', line 851

def initialize(action:)
  @action = action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action")
end

Instance Attribute Details

#actionString (readonly)

The action that you want to apply to the device certificate.

The only supported value is DEACTIVATE .



862
863
864
# File 'io_t/cfn_mitigation_action.rb', line 862

def action
  @action
end

Class Method Details

.jsii_propertiesObject



864
865
866
867
868
# File 'io_t/cfn_mitigation_action.rb', line 864

def self.jsii_properties
  {
    :action => "action",
  }
end

Instance Method Details

#to_jsiiObject



870
871
872
873
874
875
876
# File 'io_t/cfn_mitigation_action.rb', line 870

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
  })
  result.compact
end