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

Description

Adds or updates the remediation configuration with a specific Config rule with the selected target or action. The API creates the RemediationConfiguration object for the Config rule. The Config rule must already exist for you to add a remediation configuration. The target (SSM document) must exist and have permissions to use the target.

If you make backward incompatible changes to the SSM document, you must call this again to ensure the remediations can run.

This API does not support adding remediation configurations for service-linked Config Rules such as Organization Config rules, the rules deployed by conformance packs, and rules deployed by Amazon Web Services Security Hub.

For manual remediation configuration, you need to provide a value for automationAssumeRole or use a value in the assumeRolefield to remediate your resources. The SSM automation document can use either as long as it maps to a valid parameter.

However, for automatic remediation configuration, the only valid assumeRole field value is AutomationAssumeRole and you need to provide a value for AutomationAssumeRole to remediate your resources.

Synopsis

Creating a Request

data PutRemediationConfigurations Source #

See: newPutRemediationConfigurations smart constructor.

Constructors

PutRemediationConfigurations' 

Fields

Instances

Instances details
ToJSON PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

ToHeaders PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

ToPath PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

ToQuery PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

AWSRequest PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

Generic PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

Associated Types

type Rep PutRemediationConfigurations :: Type -> Type #

Read PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

Show PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

NFData PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

Eq PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

Hashable PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

type AWSResponse PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

type Rep PutRemediationConfigurations Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

type Rep PutRemediationConfigurations = D1 ('MetaData "PutRemediationConfigurations" "Amazonka.Config.PutRemediationConfigurations" "amazonka-config-2.0-7GF0fBbVw65uROwJwpcE3" 'False) (C1 ('MetaCons "PutRemediationConfigurations'" 'PrefixI 'True) (S1 ('MetaSel ('Just "remediationConfigurations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [RemediationConfiguration])))

newPutRemediationConfigurations :: PutRemediationConfigurations Source #

Create a value of PutRemediationConfigurations 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:remediationConfigurations:PutRemediationConfigurations', putRemediationConfigurations_remediationConfigurations - A list of remediation configuration objects.

Request Lenses

Destructuring the Response

data PutRemediationConfigurationsResponse Source #

Constructors

PutRemediationConfigurationsResponse' 

Fields

Instances

Instances details
Generic PutRemediationConfigurationsResponse Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

Read PutRemediationConfigurationsResponse Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

Show PutRemediationConfigurationsResponse Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

NFData PutRemediationConfigurationsResponse Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

Eq PutRemediationConfigurationsResponse Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

type Rep PutRemediationConfigurationsResponse Source # 
Instance details

Defined in Amazonka.Config.PutRemediationConfigurations

type Rep PutRemediationConfigurationsResponse = D1 ('MetaData "PutRemediationConfigurationsResponse" "Amazonka.Config.PutRemediationConfigurations" "amazonka-config-2.0-7GF0fBbVw65uROwJwpcE3" 'False) (C1 ('MetaCons "PutRemediationConfigurationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failedBatches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FailedRemediationBatch])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutRemediationConfigurationsResponse Source #

Create a value of PutRemediationConfigurationsResponse 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:failedBatches:PutRemediationConfigurationsResponse', putRemediationConfigurationsResponse_failedBatches - Returns a list of failed remediation batch objects.

$sel:httpStatus:PutRemediationConfigurationsResponse', putRemediationConfigurationsResponse_httpStatus - The response's http status code.

Response Lenses