amazonka-config-2.0: Amazon Config SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Config.StartRemediationExecution

Description

Runs an on-demand remediation for the specified Config rules against the last known remediation configuration. It runs an execution against the current state of your resources. Remediation execution is asynchronous.

You can specify up to 100 resource keys per request. An existing StartRemediationExecution call for the specified resource keys must complete before you can call the API again.

Synopsis

Creating a Request

data StartRemediationExecution Source #

See: newStartRemediationExecution smart constructor.

Constructors

StartRemediationExecution' 

Fields

  • configRuleName :: Text

    The list of names of Config rules that you want to run remediation execution for.

  • resourceKeys :: NonEmpty ResourceKey

    A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID.

Instances

Instances details
ToJSON StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

ToHeaders StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

ToPath StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

ToQuery StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

AWSRequest StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Generic StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Associated Types

type Rep StartRemediationExecution :: Type -> Type #

Read StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Show StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

NFData StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Eq StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Hashable StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

type AWSResponse StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

type Rep StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

type Rep StartRemediationExecution = D1 ('MetaData "StartRemediationExecution" "Amazonka.Config.StartRemediationExecution" "amazonka-config-2.0-7GF0fBbVw65uROwJwpcE3" 'False) (C1 ('MetaCons "StartRemediationExecution'" 'PrefixI 'True) (S1 ('MetaSel ('Just "configRuleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resourceKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty ResourceKey))))

newStartRemediationExecution Source #

Create a value of StartRemediationExecution 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:

StartRemediationExecution, startRemediationExecution_configRuleName - The list of names of Config rules that you want to run remediation execution for.

$sel:resourceKeys:StartRemediationExecution', startRemediationExecution_resourceKeys - A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID.

Request Lenses

startRemediationExecution_configRuleName :: Lens' StartRemediationExecution Text Source #

The list of names of Config rules that you want to run remediation execution for.

startRemediationExecution_resourceKeys :: Lens' StartRemediationExecution (NonEmpty ResourceKey) Source #

A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID.

Destructuring the Response

data StartRemediationExecutionResponse Source #

See: newStartRemediationExecutionResponse smart constructor.

Constructors

StartRemediationExecutionResponse' 

Fields

Instances

Instances details
Generic StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Associated Types

type Rep StartRemediationExecutionResponse :: Type -> Type #

Read StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Show StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

NFData StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Eq StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

type Rep StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

type Rep StartRemediationExecutionResponse = D1 ('MetaData "StartRemediationExecutionResponse" "Amazonka.Config.StartRemediationExecution" "amazonka-config-2.0-7GF0fBbVw65uROwJwpcE3" 'False) (C1 ('MetaCons "StartRemediationExecutionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failedItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty ResourceKey))) :*: (S1 ('MetaSel ('Just "failureMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newStartRemediationExecutionResponse Source #

Create a value of StartRemediationExecutionResponse 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:

StartRemediationExecutionResponse, startRemediationExecutionResponse_failedItems - For resources that have failed to start execution, the API returns a resource key object.

StartRemediationExecutionResponse, startRemediationExecutionResponse_failureMessage - Returns a failure message. For example, the resource is already compliant.

$sel:httpStatus:StartRemediationExecutionResponse', startRemediationExecutionResponse_httpStatus - The response's http status code.

Response Lenses

startRemediationExecutionResponse_failedItems :: Lens' StartRemediationExecutionResponse (Maybe (NonEmpty ResourceKey)) Source #

For resources that have failed to start execution, the API returns a resource key object.

startRemediationExecutionResponse_failureMessage :: Lens' StartRemediationExecutionResponse (Maybe Text) Source #

Returns a failure message. For example, the resource is already compliant.