libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.UpdateMitigationAction

Description

Updates the definition for the specified mitigation action.

Requires permission to access the UpdateMitigationAction action.

Synopsis

Creating a Request

data UpdateMitigationAction Source #

See: newUpdateMitigationAction smart constructor.

Constructors

UpdateMitigationAction' 

Fields

  • actionParams :: Maybe MitigationActionParams

    Defines the type of action and the parameters for that action.

  • roleArn :: Maybe Text

    The ARN of the IAM role that is used to apply the mitigation action.

  • actionName :: Text

    The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction. Instead, you must delete and recreate the mitigation action with the new name.

Instances

Instances details
Eq UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Read UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Show UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Generic UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Associated Types

type Rep UpdateMitigationAction :: Type -> Type #

NFData UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Methods

rnf :: UpdateMitigationAction -> () #

Hashable UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

ToJSON UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

AWSRequest UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Associated Types

type AWSResponse UpdateMitigationAction #

ToHeaders UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

ToPath UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

ToQuery UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

type Rep UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

type Rep UpdateMitigationAction = D1 ('MetaData "UpdateMitigationAction" "Amazonka.IoT.UpdateMitigationAction" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "UpdateMitigationAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "actionParams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MitigationActionParams)) :*: (S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "actionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

newUpdateMitigationAction Source #

Create a value of UpdateMitigationAction with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:actionParams:UpdateMitigationAction', updateMitigationAction_actionParams - Defines the type of action and the parameters for that action.

$sel:roleArn:UpdateMitigationAction', updateMitigationAction_roleArn - The ARN of the IAM role that is used to apply the mitigation action.

$sel:actionName:UpdateMitigationAction', updateMitigationAction_actionName - The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction. Instead, you must delete and recreate the mitigation action with the new name.

Request Lenses

updateMitigationAction_actionParams :: Lens' UpdateMitigationAction (Maybe MitigationActionParams) Source #

Defines the type of action and the parameters for that action.

updateMitigationAction_roleArn :: Lens' UpdateMitigationAction (Maybe Text) Source #

The ARN of the IAM role that is used to apply the mitigation action.

updateMitigationAction_actionName :: Lens' UpdateMitigationAction Text Source #

The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction. Instead, you must delete and recreate the mitigation action with the new name.

Destructuring the Response

data UpdateMitigationActionResponse Source #

See: newUpdateMitigationActionResponse smart constructor.

Constructors

UpdateMitigationActionResponse' 

Fields

Instances

Instances details
Eq UpdateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Read UpdateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Show UpdateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Generic UpdateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

Associated Types

type Rep UpdateMitigationActionResponse :: Type -> Type #

NFData UpdateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

type Rep UpdateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.UpdateMitigationAction

type Rep UpdateMitigationActionResponse = D1 ('MetaData "UpdateMitigationActionResponse" "Amazonka.IoT.UpdateMitigationAction" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "UpdateMitigationActionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "actionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "actionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newUpdateMitigationActionResponse Source #

Create a value of UpdateMitigationActionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:actionId:UpdateMitigationActionResponse', updateMitigationActionResponse_actionId - A unique identifier for the mitigation action.

$sel:actionArn:UpdateMitigationActionResponse', updateMitigationActionResponse_actionArn - The ARN for the new mitigation action.

$sel:httpStatus:UpdateMitigationActionResponse', updateMitigationActionResponse_httpStatus - The response's http status code.

Response Lenses