You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudFront::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CloudFront::Client
- Defined in:
- (unknown)
Overview
An API client for Amazon CloudFront. To construct a client, you need to configure a :region
and :credentials
.
cloudfront = Aws::CloudFront::Client.new(
region: region_name,
credentials: credentials,
# ...
)
See #initialize for a full list of supported configuration options.
Region
You can configure a default region in the following locations:
ENV['AWS_REGION']
Aws.config[:region]
Go here for a list of supported regions.
Credentials
Default credentials are loaded automatically from the following locations:
ENV['AWS_ACCESS_KEY_ID']
andENV['AWS_SECRET_ACCESS_KEY']
Aws.config[:credentials]
- The shared credentials ini file at
~/.aws/credentials
(more information) - From an instance profile when running on EC2
You can also construct a credentials object from one of the following classes:
Alternatively, you configure credentials with :access_key_id
and
:secret_access_key
:
# load credentials from disk
creds = YAML.load(File.read('/path/to/secrets'))
Aws::CloudFront::Client.new(
access_key_id: creds['access_key_id'],
secret_access_key: creds['secret_access_key']
)
Always load your credentials from outside your application. Avoid configuring credentials statically and never commit them to source control.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
Constructor collapse
-
#initialize(options = {}) ⇒ Aws::CloudFront::Client
constructor
Constructs an API client.
API Operations collapse
-
#create_cache_policy(options = {}) ⇒ Types::CreateCachePolicyResult
Creates a cache policy.
After you create a cache policy, you can attach it to one or more cache behaviors.
-
#create_cloud_front_origin_access_identity(options = {}) ⇒ Types::CreateCloudFrontOriginAccessIdentityResult
Creates a new origin access identity.
-
#create_distribution(options = {}) ⇒ Types::CreateDistributionResult
Creates a new web distribution.
-
#create_distribution_with_tags(options = {}) ⇒ Types::CreateDistributionWithTagsResult
Create a new distribution with tags.
.
-
#create_field_level_encryption_config(options = {}) ⇒ Types::CreateFieldLevelEncryptionConfigResult
Create a new field-level encryption configuration.
.
-
#create_field_level_encryption_profile(options = {}) ⇒ Types::CreateFieldLevelEncryptionProfileResult
Create a field-level encryption profile.
.
-
#create_invalidation(options = {}) ⇒ Types::CreateInvalidationResult
Create a new invalidation.
-
#create_key_group(options = {}) ⇒ Types::CreateKeyGroupResult
Creates a key group that you can use with CloudFront signed URLs and signed cookies.
To create a key group, you must specify at least one public key for the key group.
-
#create_monitoring_subscription(options = {}) ⇒ Types::CreateMonitoringSubscriptionResult
Enables additional CloudWatch metrics for the specified CloudFront distribution.
-
#create_origin_request_policy(options = {}) ⇒ Types::CreateOriginRequestPolicyResult
Creates an origin request policy.
After you create an origin request policy, you can attach it to one or more cache behaviors.
-
#create_public_key(options = {}) ⇒ Types::CreatePublicKeyResult
Uploads a public key to CloudFront that you can use with signed URLs and signed cookies, or with field-level encryption.
.
-
#create_realtime_log_config(options = {}) ⇒ Types::CreateRealtimeLogConfigResult
Creates a real-time log configuration.
After you create a real-time log configuration, you can attach it to one or more cache behaviors to send real-time log data to the specified Amazon Kinesis data stream.
For more information about real-time log configurations, see Real-time logs in the Amazon CloudFront Developer Guide.
. -
#create_streaming_distribution(options = {}) ⇒ Types::CreateStreamingDistributionResult
Creates a new RTMP distribution.
-
#create_streaming_distribution_with_tags(options = {}) ⇒ Types::CreateStreamingDistributionWithTagsResult
Create a new streaming distribution with tags.
.
-
#delete_cache_policy(options = {}) ⇒ Struct
Deletes a cache policy.
You cannot delete a cache policy if it’s attached to a cache behavior.
-
#delete_cloud_front_origin_access_identity(options = {}) ⇒ Struct
Delete an origin access identity.
-
#delete_distribution(options = {}) ⇒ Struct
Delete a distribution.
-
#delete_field_level_encryption_config(options = {}) ⇒ Struct
Remove a field-level encryption configuration.
.
-
#delete_field_level_encryption_profile(options = {}) ⇒ Struct
Remove a field-level encryption profile.
.
-
#delete_key_group(options = {}) ⇒ Struct
Deletes a key group.
You cannot delete a key group that is referenced in a cache behavior.
-
#delete_monitoring_subscription(options = {}) ⇒ Struct
Disables additional CloudWatch metrics for the specified CloudFront distribution.
.
-
#delete_origin_request_policy(options = {}) ⇒ Struct
Deletes an origin request policy.
You cannot delete an origin request policy if it’s attached to any cache behaviors.
-
#delete_public_key(options = {}) ⇒ Struct
Remove a public key you previously added to CloudFront.
.
-
#delete_realtime_log_config(options = {}) ⇒ Struct
Deletes a real-time log configuration.
You cannot delete a real-time log configuration if it’s attached to a cache behavior.
-
#delete_streaming_distribution(options = {}) ⇒ Struct
Delete a streaming distribution.
-
#get_cache_policy(options = {}) ⇒ Types::GetCachePolicyResult
Gets a cache policy, including the following metadata:
-
The policy’s identifier.
-
The date and time when the policy was last modified.
To get a cache policy, you must provide the policy’s identifier.
-
-
#get_cache_policy_config(options = {}) ⇒ Types::GetCachePolicyConfigResult
Gets a cache policy configuration.
To get a cache policy configuration, you must provide the policy’s identifier.
-
#get_cloud_front_origin_access_identity(options = {}) ⇒ Types::GetCloudFrontOriginAccessIdentityResult
Get the information about an origin access identity.
-
#get_cloud_front_origin_access_identity_config(options = {}) ⇒ Types::GetCloudFrontOriginAccessIdentityConfigResult
Get the configuration information about an origin access identity.
-
#get_distribution(options = {}) ⇒ Types::GetDistributionResult
Get the information about a distribution.
.
-
#get_distribution_config(options = {}) ⇒ Types::GetDistributionConfigResult
Get the configuration information about a distribution.
-
#get_field_level_encryption(options = {}) ⇒ Types::GetFieldLevelEncryptionResult
Get the field-level encryption configuration information.
.
-
#get_field_level_encryption_config(options = {}) ⇒ Types::GetFieldLevelEncryptionConfigResult
Get the field-level encryption configuration information.
.
-
#get_field_level_encryption_profile(options = {}) ⇒ Types::GetFieldLevelEncryptionProfileResult
Get the field-level encryption profile information.
.
-
#get_field_level_encryption_profile_config(options = {}) ⇒ Types::GetFieldLevelEncryptionProfileConfigResult
Get the field-level encryption profile configuration information.
.
-
#get_invalidation(options = {}) ⇒ Types::GetInvalidationResult
Get the information about an invalidation.
-
#get_key_group(options = {}) ⇒ Types::GetKeyGroupResult
Gets a key group, including the date and time when the key group was last modified.
To get a key group, you must provide the key group’s identifier.
-
#get_key_group_config(options = {}) ⇒ Types::GetKeyGroupConfigResult
Gets a key group configuration.
To get a key group configuration, you must provide the key group’s identifier.
-
#get_monitoring_subscription(options = {}) ⇒ Types::GetMonitoringSubscriptionResult
Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution.
.
-
#get_origin_request_policy(options = {}) ⇒ Types::GetOriginRequestPolicyResult
Gets an origin request policy, including the following metadata:
-
The policy’s identifier.
-
The date and time when the policy was last modified.
To get an origin request policy, you must provide the policy’s identifier.
-
-
#get_origin_request_policy_config(options = {}) ⇒ Types::GetOriginRequestPolicyConfigResult
Gets an origin request policy configuration.
To get an origin request policy configuration, you must provide the policy’s identifier.
-
#get_public_key(options = {}) ⇒ Types::GetPublicKeyResult
Gets a public key.
.
-
#get_public_key_config(options = {}) ⇒ Types::GetPublicKeyConfigResult
Gets a public key configuration.
.
-
#get_realtime_log_config(options = {}) ⇒ Types::GetRealtimeLogConfigResult
Gets a real-time log configuration.
To get a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name (ARN).
-
#get_streaming_distribution(options = {}) ⇒ Types::GetStreamingDistributionResult
Gets information about a specified RTMP distribution, including the distribution configuration.
.
-
#get_streaming_distribution_config(options = {}) ⇒ Types::GetStreamingDistributionConfigResult
Get the configuration information about a streaming distribution.
-
#list_cache_policies(options = {}) ⇒ Types::ListCachePoliciesResult
Gets a list of cache policies.
You can optionally apply a filter to return only the managed policies created by AWS, or only the custom policies created in your AWS account.
You can optionally specify the maximum number of items to receive in the response.
-
#list_cloud_front_origin_access_identities(options = {}) ⇒ Types::ListCloudFrontOriginAccessIdentitiesResult
Lists origin access identities.
.
-
#list_distributions(options = {}) ⇒ Types::ListDistributionsResult
List CloudFront distributions.
.
-
#list_distributions_by_cache_policy_id(options = {}) ⇒ Types::ListDistributionsByCachePolicyIdResult
Gets a list of distribution IDs for distributions that have a cache behavior that’s associated with the specified cache policy.
You can optionally specify the maximum number of items to receive in the response.
-
#list_distributions_by_key_group(options = {}) ⇒ Types::ListDistributionsByKeyGroupResult
Gets a list of distribution IDs for distributions that have a cache behavior that references the specified key group.
You can optionally specify the maximum number of items to receive in the response.
-
#list_distributions_by_origin_request_policy_id(options = {}) ⇒ Types::ListDistributionsByOriginRequestPolicyIdResult
Gets a list of distribution IDs for distributions that have a cache behavior that’s associated with the specified origin request policy.
You can optionally specify the maximum number of items to receive in the response.
-
#list_distributions_by_realtime_log_config(options = {}) ⇒ Types::ListDistributionsByRealtimeLogConfigResult
Gets a list of distributions that have a cache behavior that’s associated with the specified real-time log configuration.
You can specify the real-time log configuration by its name or its Amazon Resource Name (ARN).
-
#list_distributions_by_web_acl_id(options = {}) ⇒ Types::ListDistributionsByWebACLIdResult
List the distributions that are associated with a specified AWS WAF web ACL.
-
#list_field_level_encryption_configs(options = {}) ⇒ Types::ListFieldLevelEncryptionConfigsResult
List all field-level encryption configurations that have been created in CloudFront for this account.
.
-
#list_field_level_encryption_profiles(options = {}) ⇒ Types::ListFieldLevelEncryptionProfilesResult
Request a list of field-level encryption profiles that have been created in CloudFront for this account.
.
-
#list_invalidations(options = {}) ⇒ Types::ListInvalidationsResult
Lists invalidation batches.
-
#list_key_groups(options = {}) ⇒ Types::ListKeyGroupsResult
Gets a list of key groups.
You can optionally specify the maximum number of items to receive in the response.
-
#list_origin_request_policies(options = {}) ⇒ Types::ListOriginRequestPoliciesResult
Gets a list of origin request policies.
You can optionally apply a filter to return only the managed policies created by AWS, or only the custom policies created in your AWS account.
You can optionally specify the maximum number of items to receive in the response.
-
#list_public_keys(options = {}) ⇒ Types::ListPublicKeysResult
List all public keys that have been added to CloudFront for this account.
.
-
#list_realtime_log_configs(options = {}) ⇒ Types::ListRealtimeLogConfigsResult
Gets a list of real-time log configurations.
You can optionally specify the maximum number of items to receive in the response.
-
#list_streaming_distributions(options = {}) ⇒ Types::ListStreamingDistributionsResult
List streaming distributions.
-
#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResult
List tags for a CloudFront resource.
.
-
#tag_resource(options = {}) ⇒ Struct
Add tags to a CloudFront resource.
.
-
#untag_resource(options = {}) ⇒ Struct
Remove tags from a CloudFront resource.
.
-
#update_cache_policy(options = {}) ⇒ Types::UpdateCachePolicyResult
Updates a cache policy configuration.
When you update a cache policy configuration, all the fields are updated with the values provided in the request.
-
#update_cloud_front_origin_access_identity(options = {}) ⇒ Types::UpdateCloudFrontOriginAccessIdentityResult
Update an origin access identity.
-
#update_distribution(options = {}) ⇒ Types::UpdateDistributionResult
Updates the configuration for a web distribution.
-
#update_field_level_encryption_config(options = {}) ⇒ Types::UpdateFieldLevelEncryptionConfigResult
Update a field-level encryption configuration.
-
#update_field_level_encryption_profile(options = {}) ⇒ Types::UpdateFieldLevelEncryptionProfileResult
Update a field-level encryption profile.
-
#update_key_group(options = {}) ⇒ Types::UpdateKeyGroupResult
Updates a key group.
When you update a key group, all the fields are updated with the values provided in the request.
-
#update_origin_request_policy(options = {}) ⇒ Types::UpdateOriginRequestPolicyResult
Updates an origin request policy configuration.
When you update an origin request policy configuration, all the fields are updated with the values provided in the request.
-
#update_public_key(options = {}) ⇒ Types::UpdatePublicKeyResult
Update public key information.
-
#update_realtime_log_config(options = {}) ⇒ Types::UpdateRealtimeLogConfigResult
Updates a real-time log configuration.
When you update a real-time log configuration, all the parameters are updated with the values provided in the request.
-
#update_streaming_distribution(options = {}) ⇒ Types::UpdateStreamingDistributionResult
Update a streaming distribution.
Instance Method Summary collapse
-
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean
Waiters polls an API operation until a resource enters a desired state.
-
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters.
Methods inherited from Seahorse::Client::Base
add_plugin, api, #build_request, clear_plugins, define, new, #operation, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options = {}) ⇒ Aws::CloudFront::Client
Constructs an API client.
Instance Method Details
#create_cache_policy(options = {}) ⇒ Types::CreateCachePolicyResult
Creates a cache policy.
After you create a cache policy, you can attach it to one or more cache behaviors. When it’s attached to a cache behavior, the cache policy determines the following:
-
The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.
-
The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.
The headers, cookies, and query strings that are included in the cache key are automatically included in requests that CloudFront sends to the origin. CloudFront sends a request when it can’t find an object in its cache that matches the request’s cache key. If you want to send values to the origin but not include them in the cache key, use OriginRequestPolicy
.
For more information about cache policies, see Controlling the cache key in the Amazon CloudFront Developer Guide.
#create_cloud_front_origin_access_identity(options = {}) ⇒ Types::CreateCloudFrontOriginAccessIdentityResult
Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
#create_distribution(options = {}) ⇒ Types::CreateDistributionResult
Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. Send a POST
request to the /CloudFront API version/distribution
/distribution ID
resource.
When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide.
#create_distribution_with_tags(options = {}) ⇒ Types::CreateDistributionWithTagsResult
Create a new distribution with tags.
#create_field_level_encryption_config(options = {}) ⇒ Types::CreateFieldLevelEncryptionConfigResult
Create a new field-level encryption configuration.
#create_field_level_encryption_profile(options = {}) ⇒ Types::CreateFieldLevelEncryptionProfileResult
Create a field-level encryption profile.
#create_invalidation(options = {}) ⇒ Types::CreateInvalidationResult
Create a new invalidation.
#create_key_group(options = {}) ⇒ Types::CreateKeyGroupResult
Creates a key group that you can use with CloudFront signed URLs and signed cookies.
To create a key group, you must specify at least one public key for the key group. After you create a key group, you can reference it from one or more cache behaviors. When you reference a key group in a cache behavior, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
#create_monitoring_subscription(options = {}) ⇒ Types::CreateMonitoringSubscriptionResult
Enables additional CloudWatch metrics for the specified CloudFront distribution. The additional metrics incur an additional cost.
For more information, see Viewing additional CloudFront distribution metrics in the Amazon CloudFront Developer Guide.
#create_origin_request_policy(options = {}) ⇒ Types::CreateOriginRequestPolicyResult
Creates an origin request policy.
After you create an origin request policy, you can attach it to one or more cache behaviors. When it’s attached to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:
-
The request body and the URL path (without the domain name) from the viewer request.
-
The headers that CloudFront automatically includes in every origin request, including
Host
,User-Agent
, andX-Amz-Cf-Id
. -
All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request policy. These can include items from the viewer request and, in the case of headers, additional ones that are added by CloudFront.
CloudFront sends a request when it can’t find a valid object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use CachePolicy
.
For more information about origin request policies, see Controlling origin requests in the Amazon CloudFront Developer Guide.
#create_public_key(options = {}) ⇒ Types::CreatePublicKeyResult
Uploads a public key to CloudFront that you can use with signed URLs and signed cookies, or with field-level encryption.
#create_realtime_log_config(options = {}) ⇒ Types::CreateRealtimeLogConfigResult
Creates a real-time log configuration.
After you create a real-time log configuration, you can attach it to one or more cache behaviors to send real-time log data to the specified Amazon Kinesis data stream.
For more information about real-time log configurations, see Real-time logs in the Amazon CloudFront Developer Guide.
#create_streaming_distribution(options = {}) ⇒ Types::CreateStreamingDistributionResult
Creates a new RTMP distribution. An RTMP distribution is similar to a web distribution, but an RTMP distribution streams media files using the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files using HTTP.
To create a new distribution, submit a POST
request to the CloudFront API version/distribution resource. The request body must include a document with a StreamingDistributionConfig element. The response echoes the StreamingDistributionConfig
element and returns other information about the RTMP distribution.
To get the status of your request, use the GET StreamingDistribution API action. When the value of Enabled
is true
and the value of Status
is Deployed
, your distribution is ready. A distribution usually deploys in less than 15 minutes.
For more information about web distributions, see Working with RTMP Distributions in the Amazon CloudFront Developer Guide.
Beginning with the 2012-05-05 version of the CloudFront API, we made substantial changes to the format of the XML document that you include in the request body when you create or update a web distribution or an RTMP distribution, and when you invalidate objects. With previous versions of the API, we discovered that it was too easy to accidentally delete one or more values for an element that accepts multiple values, for example, CNAMEs and trusted signers. Our changes for the 2012-05-05 release are intended to prevent these accidental deletions and to notify you when there's a mismatch between the number of values you say you're specifying in the Quantity
element and the number of values specified.
#create_streaming_distribution_with_tags(options = {}) ⇒ Types::CreateStreamingDistributionWithTagsResult
Create a new streaming distribution with tags.
#delete_cache_policy(options = {}) ⇒ Struct
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
.
#delete_cloud_front_origin_access_identity(options = {}) ⇒ Struct
Delete an origin access identity.
#delete_distribution(options = {}) ⇒ Struct
Delete a distribution.
#delete_field_level_encryption_config(options = {}) ⇒ Struct
Remove a field-level encryption configuration.
#delete_field_level_encryption_profile(options = {}) ⇒ Struct
Remove a field-level encryption profile.
#delete_key_group(options = {}) ⇒ Struct
Deletes a key group.
You cannot delete a key group that is referenced in a cache behavior. First update your distributions to remove the key group from all cache behaviors, then delete the key group.
To delete a key group, you must provide the key group’s identifier and version. To get these values, use ListKeyGroups
followed by GetKeyGroup
or GetKeyGroupConfig
.
#delete_monitoring_subscription(options = {}) ⇒ Struct
Disables additional CloudWatch metrics for the specified CloudFront distribution.
#delete_origin_request_policy(options = {}) ⇒ Struct
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
.
#delete_public_key(options = {}) ⇒ Struct
Remove a public key you previously added to CloudFront.
#delete_realtime_log_config(options = {}) ⇒ Struct
Deletes a real-time log configuration.
You cannot delete a real-time log configuration if it’s attached to a cache behavior. First update your distributions to remove the real-time log configuration from all cache behaviors, then delete the real-time log configuration.
To delete a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to delete.
#delete_streaming_distribution(options = {}) ⇒ Struct
Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps.
To delete an RTMP distribution using the CloudFront API:
-
Disable the RTMP distribution.
-
Submit a
GET Streaming Distribution Config
request to get the current configuration and theEtag
header for the distribution. -
Update the XML document that was returned in the response to your
GET Streaming Distribution Config
request to change the value ofEnabled
tofalse
. -
Submit a
PUT Streaming Distribution Config
request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTPIf-Match
header to the value of theETag
header that CloudFront returned when you submitted theGET Streaming Distribution Config
request in Step 2. -
Review the response to the
PUT Streaming Distribution Config
request to confirm that the distribution was successfully disabled. -
Submit a
GET Streaming Distribution Config
request to confirm that your changes have propagated. When propagation is complete, the value ofStatus
isDeployed
. -
Submit a
DELETE Streaming Distribution
request. Set the value of the HTTPIf-Match
header to the value of theETag
header that CloudFront returned when you submitted theGET Streaming Distribution Config
request in Step 2. -
Review the response to your
DELETE Streaming Distribution
request to confirm that the distribution was successfully deleted.
For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.
#get_cache_policy(options = {}) ⇒ Types::GetCachePolicyResult
Gets a cache policy, including the following metadata:
-
The policy’s identifier.
-
The date and time when the policy was last modified.
To get a cache policy, you must provide the policy’s identifier. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions
or GetDistribution
. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies
.
#get_cache_policy_config(options = {}) ⇒ Types::GetCachePolicyConfigResult
Gets a cache policy configuration.
To get a cache policy configuration, you must provide the policy’s identifier. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions
or GetDistribution
. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies
.
#get_cloud_front_origin_access_identity(options = {}) ⇒ Types::GetCloudFrontOriginAccessIdentityResult
Get the information about an origin access identity.
#get_cloud_front_origin_access_identity_config(options = {}) ⇒ Types::GetCloudFrontOriginAccessIdentityConfigResult
Get the configuration information about an origin access identity.
#get_distribution(options = {}) ⇒ Types::GetDistributionResult
Get the information about a distribution.
#get_distribution_config(options = {}) ⇒ Types::GetDistributionConfigResult
Get the configuration information about a distribution.
#get_field_level_encryption(options = {}) ⇒ Types::GetFieldLevelEncryptionResult
Get the field-level encryption configuration information.
#get_field_level_encryption_config(options = {}) ⇒ Types::GetFieldLevelEncryptionConfigResult
Get the field-level encryption configuration information.
#get_field_level_encryption_profile(options = {}) ⇒ Types::GetFieldLevelEncryptionProfileResult
Get the field-level encryption profile information.
#get_field_level_encryption_profile_config(options = {}) ⇒ Types::GetFieldLevelEncryptionProfileConfigResult
Get the field-level encryption profile configuration information.
#get_invalidation(options = {}) ⇒ Types::GetInvalidationResult
Get the information about an invalidation.
#get_key_group(options = {}) ⇒ Types::GetKeyGroupResult
Gets a key group, including the date and time when the key group was last modified.
To get a key group, you must provide the key group’s identifier. If the key group is referenced in a distribution’s cache behavior, you can get the key group’s identifier using ListDistributions
or GetDistribution
. If the key group is not referenced in a cache behavior, you can get the identifier using ListKeyGroups
.
#get_key_group_config(options = {}) ⇒ Types::GetKeyGroupConfigResult
Gets a key group configuration.
To get a key group configuration, you must provide the key group’s identifier. If the key group is referenced in a distribution’s cache behavior, you can get the key group’s identifier using ListDistributions
or GetDistribution
. If the key group is not referenced in a cache behavior, you can get the identifier using ListKeyGroups
.
#get_monitoring_subscription(options = {}) ⇒ Types::GetMonitoringSubscriptionResult
Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution.
#get_origin_request_policy(options = {}) ⇒ Types::GetOriginRequestPolicyResult
Gets an origin request policy, including the following metadata:
-
The policy’s identifier.
-
The date and time when the policy was last modified.
To get an origin request policy, you must provide the policy’s identifier. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions
or GetDistribution
. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies
.
#get_origin_request_policy_config(options = {}) ⇒ Types::GetOriginRequestPolicyConfigResult
Gets an origin request policy configuration.
To get an origin request policy configuration, you must provide the policy’s identifier. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions
or GetDistribution
. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies
.
#get_public_key(options = {}) ⇒ Types::GetPublicKeyResult
Gets a public key.
#get_public_key_config(options = {}) ⇒ Types::GetPublicKeyConfigResult
Gets a public key configuration.
#get_realtime_log_config(options = {}) ⇒ Types::GetRealtimeLogConfigResult
Gets a real-time log configuration.
To get a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to get.
#get_streaming_distribution(options = {}) ⇒ Types::GetStreamingDistributionResult
Gets information about a specified RTMP distribution, including the distribution configuration.
#get_streaming_distribution_config(options = {}) ⇒ Types::GetStreamingDistributionConfigResult
Get the configuration information about a streaming distribution.
#list_cache_policies(options = {}) ⇒ Types::ListCachePoliciesResult
Gets a list of cache policies.
You can optionally apply a filter to return only the managed policies created by AWS, or only the custom policies created in your AWS account.
You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker
value from the current response as the Marker
value in the subsequent request.
#list_cloud_front_origin_access_identities(options = {}) ⇒ Types::ListCloudFrontOriginAccessIdentitiesResult
Lists origin access identities.
#list_distributions(options = {}) ⇒ Types::ListDistributionsResult
List CloudFront distributions.