delete_cache_policy¶
Operation¶
delete_cache_policy
async
¶
delete_cache_policy(request: DeleteCachePolicyInput | DeleteCachePolicyInputDict, /, *, plugins: list[Plugin] | None = None) -> DeleteCachePolicyOutput
delete_cache_policy(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteCachePolicyInputDict]) -> DeleteCachePolicyOutput
Deletes a cache policy.
You cannot delete a cache policy if it's attached to a cache behavior. First update your distributions to remove the cache policy from all cache behaviors, then delete the cache policy.
To delete a cache policy, you must provide the policy's identifier and
version. To get these values, you can use ListCachePolicies or
GetCachePolicy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
DeleteCachePolicyOutput
|
An instance of |
Input¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
DeleteCachePolicyInput
dataclass
¶
Dictionaries¶
DeleteCachePolicyInputDict
¶
Output¶
DeleteCachePolicyOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteCachePolicyOutput structure.