AWSConfigRemediation-UpdateAPIGatewayMethodCaching
Description
The
AWSConfigRemediation-UpdateAPIGatewayMethodCaching
runbook
updates the cache method setting for an Amazon API Gateway stage resource.
Document type
Automation
Owner
Amazon
Platforms
Linux, macOS, Windows
Parameters
-
AutomationAssumeRole
Type: String
Description: (Required) The Amazon Resource Name (ARN) of the Amazon Identity and Access Management (IAM) role that allows Systems Manager Automation to perform the actions on your behalf.
-
CachingAuthorizedMethods
Type: StringList
Description: (Required) The methods authorized to have caching enabled. The list must be some combination of
DELETE,GET,HEAD,OPTIONS,PATCH,POST, andPUT. Caching is enabled for selected methods and disabled for non-selected methods. Caching is enabled for all methods ifANYis selected and is disabled for all methods ifNONEis selected. -
StageArn
Type: String
Description: (Required) The API Gateway stage ARN for the
RESTAPI.
Required IAM permissions
The AutomationAssumeRole parameter requires the following actions to
use the runbook successfully.
-
ssm:StartAutomationExecution -
ssm:GetAutomationExecution -
apigateway:PATCH -
apigateway:GET
Document Steps
-
aws:executeScript- Accepts the stage resource ID as input, updates the cache method setting for an API Gateway stage using theUpdateStageAPI action, and verifies the update.