/
POST
/
PutConfigRule
to create both Config Managed Rules and Config Custom Rules.SourceIdentifier
key.PutConfigRule
to add a Custom Lambda rule to Config, you must specify the Amazon Resource Name (ARN) that Lambda assigns to the function. You specify the ARN in the SourceIdentifier
key. This key is part of the Source
object, which is part of the ConfigRule
object. ConfigRuleName
in the ConfigRule
object. Do not specify the ConfigRuleArn
or the ConfigRuleId
. These values are generated by Config for new rules.ConfigRuleName
, ConfigRuleId
, or ConfigRuleArn
in the ConfigRule
data type that you use in this request.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
200 - Example 1
{}
Request
Header Params
X-Amz-Target
stringÂ
required
Body Params application/json
Responses
Modified at 2023-08-15 05:59:06