libZSservicesZSamazonka-configZSamazonka-config
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.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
Eq StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Read StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Show 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 #

NFData StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Hashable StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

ToJSON StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

AWSRequest 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

type Rep StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

type Rep StartRemediationExecution = D1 ('MetaData "StartRemediationExecution" "Amazonka.Config.StartRemediationExecution" "libZSservicesZSamazonka-configZSamazonka-config" '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))))
type AWSResponse StartRemediationExecution Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

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:

$sel:configRuleName: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
Eq StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Read StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Show StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Generic StartRemediationExecutionResponse Source # 
Instance details

Defined in Amazonka.Config.StartRemediationExecution

Associated Types

type Rep StartRemediationExecutionResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "StartRemediationExecutionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failureMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "failedItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty ResourceKey))) :*: 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:

$sel:failureMessage:StartRemediationExecutionResponse', startRemediationExecutionResponse_failureMessage - Returns a failure message. For example, the resource is already compliant.

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

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

Response Lenses

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

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

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

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