start_cache_revalidation
async
¶
start_cache_revalidation(
app_name: AppName,
environment_name: EnvironmentName,
deployment_id: DeploymentId,
cache_tags: CacheTagList,
*,
config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
expiration_period_seconds: Optional[ExpirationPeriodSeconds] = None,
) -> StartCacheRevalidationOutput
Revalidates cached content for a deployment of an environment by cache tag.
Parameters:
-
app_name(AppName) –The name of the app.
-
environment_name(EnvironmentName) –The name of the environment.
-
deployment_id(DeploymentId) –The ID of the deployment.
-
cache_tags(CacheTagList) –The cache tags that identify the content to revalidate.
-
expiration_period_seconds(Optional[ExpirationPeriodSeconds], default:None) –The period, in seconds, after which the revalidated content expires.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServerException–An internal error occurred. Retry the request.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was denied because the request rate exceeds the allowed limit.
-
ValidationException–The request contains invalid parameters or is otherwise malformed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amplifygen3/_services/async_amplify_gen3.py
2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 | |