delete_origin_request_policy¶
Operation¶
delete_origin_request_policy
¶
delete_origin_request_policy(request: DeleteOriginRequestPolicyInput | DeleteOriginRequestPolicyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteOriginRequestPolicyInputDict]) -> DeleteOriginRequestPolicyOutput
Deletes an origin request policy.
You cannot delete an origin request policy if it's attached to any cache behaviors. First update your distributions to remove the origin request policy from all cache behaviors, then delete the origin request policy.
To delete an origin request policy, you must provide the policy's
identifier and version. To get the identifier, you can use
ListOriginRequestPolicies or GetOriginRequestPolicy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
DeleteOriginRequestPolicyInput | DeleteOriginRequestPolicyInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
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
|
**kwargs
|
Unpack[DeleteOriginRequestPolicyInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
DeleteOriginRequestPolicyOutput
|
An instance of |
delete_origin_request_policy
async
¶
delete_origin_request_policy(request: DeleteOriginRequestPolicyInput | DeleteOriginRequestPolicyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteOriginRequestPolicyInputDict]) -> DeleteOriginRequestPolicyOutput
Deletes an origin request policy.
You cannot delete an origin request policy if it's attached to any cache behaviors. First update your distributions to remove the origin request policy from all cache behaviors, then delete the origin request policy.
To delete an origin request policy, you must provide the policy's
identifier and version. To get the identifier, you can use
ListOriginRequestPolicies or GetOriginRequestPolicy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
DeleteOriginRequestPolicyInput | DeleteOriginRequestPolicyInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
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
|
**kwargs
|
Unpack[DeleteOriginRequestPolicyInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
DeleteOriginRequestPolicyOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
DeleteOriginRequestPolicyInput
dataclass
¶
Output¶
DeleteOriginRequestPolicyOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteOriginRequestPolicyOutput structure.