get_response_headers_policy
async
¶
get_response_headers_policy(
id: string, *, config_overrides: Optional[AsyncCloudFrontClientConfig] = None
) -> GetResponseHeadersPolicyResult
Gets a response headers policy, including metadata (the policy's identifier and the date and time when the policy was last modified).
To get a response headers policy, you must provide the policy's identifier. If the response headers policy is attached to a distribution's cache behavior, you can get the policy's identifier using ListDistributions or GetDistribution. If the response headers policy is not attached to a cache behavior, you can get the identifier using ListResponseHeadersPolicies.
Parameters:
-
id(string) –The identifier for the response headers policy.
If the response headers policy is attached to a distribution's cache behavior, you can get the policy's identifier using
ListDistributionsorGetDistribution. If the response headers policy is not attached to a cache behavior, you can get the identifier usingListResponseHeadersPolicies.
Raises:
-
AccessDenied–Access denied.
-
NoSuchResponseHeadersPolicy–The response headers policy does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.