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.CreateMitigationAction

Description

Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask. Only certain types of mitigation actions can be applied to specific check names. For more information, see Mitigation actions. Each mitigation action can apply only one type of change.

Requires permission to access the CreateMitigationAction action.

Synopsis

Creating a Request

data CreateMitigationAction Source #

See: newCreateMitigationAction smart constructor.

Constructors

CreateMitigationAction' 

Fields

  • tags :: Maybe [Tag]

    Metadata that can be used to manage the mitigation action.

  • actionName :: Text

    A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction).

  • roleArn :: Text

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

  • actionParams :: MitigationActionParams

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

Instances

Instances details
Eq CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Read CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Show CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Generic CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Associated Types

type Rep CreateMitigationAction :: Type -> Type #

NFData CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Methods

rnf :: CreateMitigationAction -> () #

Hashable CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

ToJSON CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

AWSRequest CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Associated Types

type AWSResponse CreateMitigationAction #

ToHeaders CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

ToPath CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

ToQuery CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

type Rep CreateMitigationAction Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

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

Defined in Amazonka.IoT.CreateMitigationAction

newCreateMitigationAction Source #

Create a value of CreateMitigationAction 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:tags:CreateMitigationAction', createMitigationAction_tags - Metadata that can be used to manage the mitigation action.

$sel:actionName:CreateMitigationAction', createMitigationAction_actionName - A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction).

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

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

Request Lenses

createMitigationAction_tags :: Lens' CreateMitigationAction (Maybe [Tag]) Source #

Metadata that can be used to manage the mitigation action.

createMitigationAction_actionName :: Lens' CreateMitigationAction Text Source #

A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction).

createMitigationAction_roleArn :: Lens' CreateMitigationAction Text Source #

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

createMitigationAction_actionParams :: Lens' CreateMitigationAction MitigationActionParams Source #

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

Destructuring the Response

data CreateMitigationActionResponse Source #

See: newCreateMitigationActionResponse smart constructor.

Constructors

CreateMitigationActionResponse' 

Fields

Instances

Instances details
Eq CreateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Read CreateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Show CreateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Generic CreateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

Associated Types

type Rep CreateMitigationActionResponse :: Type -> Type #

NFData CreateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

type Rep CreateMitigationActionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateMitigationAction

type Rep CreateMitigationActionResponse = D1 ('MetaData "CreateMitigationActionResponse" "Amazonka.IoT.CreateMitigationAction" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateMitigationActionResponse'" '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))))

newCreateMitigationActionResponse Source #

Create a value of CreateMitigationActionResponse 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:CreateMitigationActionResponse', createMitigationActionResponse_actionId - A unique identifier for the new mitigation action.

$sel:actionArn:CreateMitigationActionResponse', createMitigationActionResponse_actionArn - The ARN for the new mitigation action.

$sel:httpStatus:CreateMitigationActionResponse', createMitigationActionResponse_httpStatus - The response's http status code.

Response Lenses

createMitigationActionResponse_actionId :: Lens' CreateMitigationActionResponse (Maybe Text) Source #

A unique identifier for the new mitigation action.