AmplifyGen3 / Client / start_cache_revalidation
start_cache_revalidation¶
- AmplifyGen3.Client.start_cache_revalidation(**kwargs)¶
Revalidates cached content for a deployment of an environment by cache tag.
See also: AWS API Documentation
Request Syntax
response = client.start_cache_revalidation( AppName='string', EnvironmentName='string', DeploymentId='string', CacheTags=[ 'string', ], ExpirationPeriodSeconds=123 )
- Parameters:
AppName (string) –
[REQUIRED]
The name of the app.
EnvironmentName (string) –
[REQUIRED]
The name of the environment.
DeploymentId (string) –
[REQUIRED]
The ID of the deployment.
CacheTags (list) –
[REQUIRED]
The cache tags that identify the content to revalidate.
(string) –
ExpirationPeriodSeconds (integer) – The period, in seconds, after which the revalidated content expires.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
AmplifyGen3.Client.exceptions.ThrottlingExceptionAmplifyGen3.Client.exceptions.AccessDeniedExceptionAmplifyGen3.Client.exceptions.ResourceNotFoundExceptionAmplifyGen3.Client.exceptions.ValidationExceptionAmplifyGen3.Client.exceptions.InternalServerException