aws-sdk 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +4 -4
- data/lib/aws-sdk.rb +60 -1
- data/lib/aws.rb +1 -50
- data/lib/aws/api_config/CloudFront-2012-05-05.yml +864 -899
- data/lib/aws/api_config/DataPipeline-2012-10-29.yml +422 -0
- data/lib/aws/api_config/EC2-2012-07-20.yml +0 -2
- data/lib/aws/api_config/Glacier-2012-06-01.yml +622 -0
- data/lib/aws/api_config/ImportExport-2010-06-01.yml +109 -0
- data/lib/aws/api_config/{SQS-2011-10-01.yml → SQS-2012-11-05.yml} +3 -1
- data/lib/aws/api_config/StorageGateway-2012-06-30.yml +748 -0
- data/lib/aws/cloud_front.rb +71 -0
- data/lib/aws/cloud_front/client.rb +1307 -0
- data/lib/aws/cloud_front/config.rb +18 -0
- data/lib/aws/cloud_front/errors.rb +22 -0
- data/lib/aws/cloud_front/request.rb +44 -0
- data/lib/aws/core.rb +19 -1
- data/lib/aws/core/client.rb +7 -0
- data/lib/aws/core/collection.rb +1 -1
- data/lib/aws/core/configuration.rb +12 -0
- data/lib/aws/core/data.rb +13 -8
- data/lib/aws/core/json_client.rb +3 -4
- data/lib/aws/core/json_parser.rb +76 -0
- data/lib/aws/core/json_request_builder.rb +4 -3
- data/lib/aws/core/json_response_parser.rb +1 -3
- data/lib/aws/core/managed_file.rb +32 -0
- data/lib/aws/core/options/json_serializer.rb +82 -0
- data/lib/aws/core/options/validator.rb +5 -1
- data/lib/aws/core/options/xml_serializer.rb +18 -4
- data/lib/aws/core/{rest_client.rb → rest_json_client.rb} +5 -6
- data/lib/aws/core/rest_request_builder.rb +59 -35
- data/lib/aws/core/rest_response_parser.rb +13 -4
- data/lib/aws/core/rest_xml_client.rb +47 -0
- data/lib/aws/core/signature/version_4.rb +22 -8
- data/lib/aws/data_pipeline.rb +30 -0
- data/lib/aws/data_pipeline/client.rb +392 -0
- data/lib/aws/data_pipeline/config.rb +18 -0
- data/lib/aws/data_pipeline/errors.rb +20 -0
- data/lib/aws/data_pipeline/request.rb +26 -0
- data/lib/aws/ec2/instance_collection.rb +11 -3
- data/lib/aws/ec2/security_group.rb +5 -5
- data/lib/aws/ec2/security_group/{egress_ip_permission_collection.rb → ip_permission_collection.rb} +33 -14
- data/lib/aws/glacier.rb +50 -0
- data/lib/aws/glacier/archive.rb +54 -0
- data/lib/aws/glacier/archive_collection.rb +141 -0
- data/lib/aws/glacier/client.rb +286 -0
- data/lib/aws/glacier/config.rb +19 -0
- data/lib/aws/glacier/errors.rb +22 -0
- data/lib/aws/glacier/request.rb +34 -0
- data/lib/aws/glacier/resource.rb +30 -0
- data/lib/aws/glacier/vault.rb +137 -0
- data/lib/aws/glacier/vault_collection.rb +75 -0
- data/lib/aws/glacier/vault_notification_configuration.rb +27 -0
- data/lib/aws/import_export.rb +71 -0
- data/lib/aws/import_export/client.rb +109 -0
- data/lib/aws/import_export/config.rb +19 -0
- data/lib/aws/import_export/errors.rb +22 -0
- data/lib/aws/import_export/request.rb +23 -0
- data/lib/aws/route_53/client.rb +1 -1
- data/lib/aws/s3/bucket_lifecycle_configuration.rb +160 -63
- data/lib/aws/s3/client.rb +43 -0
- data/lib/aws/s3/client/xml.rb +6 -0
- data/lib/aws/s3/cors_rule_collection.rb +1 -1
- data/lib/aws/s3/data_options.rb +1 -3
- data/lib/aws/s3/request.rb +1 -1
- data/lib/aws/s3/s3_object.rb +52 -10
- data/lib/aws/sqs/client.rb +9 -3
- data/lib/aws/sqs/queue.rb +44 -5
- data/lib/aws/storage_gateway.rb +71 -0
- data/lib/aws/storage_gateway/client.rb +472 -0
- data/lib/aws/storage_gateway/config.rb +18 -0
- data/lib/aws/storage_gateway/errors.rb +22 -0
- data/lib/aws/storage_gateway/request.rb +28 -0
- data/lib/aws/version.rb +1 -1
- metadata +45 -10
- data/lib/aws/ec2/security_group/ingress_ip_permission_collection.rb +0 -61
@@ -0,0 +1,71 @@
|
|
1
|
+
# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
8
|
+
#
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
12
|
+
# language governing permissions and limitations under the License.
|
13
|
+
|
14
|
+
require 'aws/core'
|
15
|
+
require 'aws/cloud_front/config'
|
16
|
+
|
17
|
+
module AWS
|
18
|
+
|
19
|
+
# This class is the starting point for working with Amazon CloudFront.
|
20
|
+
#
|
21
|
+
# To use Amazon CloudFront you must first
|
22
|
+
# {sign up here}[http://aws.amazon.com/cloudfront/].
|
23
|
+
#
|
24
|
+
# For more information about Amazon CloudFront:
|
25
|
+
#
|
26
|
+
# * {Amazon CloudFront}[http://aws.amazon.com/cloudfront/]
|
27
|
+
# * {Amazon CloudFront Documentation}[http://aws.amazon.com/documentation/cloudfront/]
|
28
|
+
#
|
29
|
+
# = Credentials
|
30
|
+
#
|
31
|
+
# You can setup default credentials for all AWS services via
|
32
|
+
# AWS.config:
|
33
|
+
#
|
34
|
+
# AWS.config(
|
35
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
36
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
37
|
+
#
|
38
|
+
# Or you can set them directly on the AWS::Route53 interface:
|
39
|
+
#
|
40
|
+
# cf = AWS::CloudFront.new(
|
41
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
42
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
43
|
+
#
|
44
|
+
# = Using the Client
|
45
|
+
#
|
46
|
+
# AWS::CloudFront does not provide higher level abstractions for CloudFront at
|
47
|
+
# this time. You can still access all of the API methods using
|
48
|
+
# {AWS::CloudFront::Client}. Here is how you access the client and make
|
49
|
+
# a simple request:
|
50
|
+
#
|
51
|
+
# cf = AWS::CloudFront.new
|
52
|
+
#
|
53
|
+
# resp = cf.client.list_distributions
|
54
|
+
# resp[:distribution_list].each do |distribution|
|
55
|
+
# # ...
|
56
|
+
# end
|
57
|
+
#
|
58
|
+
# See {Client} for documentation on all of the supported operations.
|
59
|
+
#
|
60
|
+
class CloudFront
|
61
|
+
|
62
|
+
AWS.register_autoloads(self, 'aws/cloud_front') do
|
63
|
+
autoload :Client, 'client'
|
64
|
+
autoload :Errors, 'errors'
|
65
|
+
autoload :Request, 'request'
|
66
|
+
end
|
67
|
+
|
68
|
+
include Core::ServiceInterface
|
69
|
+
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,1307 @@
|
|
1
|
+
# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
5
|
+
# the License is located at
|
6
|
+
#
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
8
|
+
#
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
12
|
+
# language governing permissions and limitations under the License.
|
13
|
+
|
14
|
+
module AWS
|
15
|
+
class CloudFront
|
16
|
+
class Client < Core::RESTXMLClient
|
17
|
+
|
18
|
+
define_client_methods('2012-05-05')
|
19
|
+
|
20
|
+
# @private
|
21
|
+
CACHEABLE_REQUESTS = Set[]
|
22
|
+
|
23
|
+
## client methods ##
|
24
|
+
|
25
|
+
# @!method create_cloud_front_origin_access_identity(options = {})
|
26
|
+
# Calls the POST CreateCloudFrontOriginAccessIdentity2012_05_05 API operation.
|
27
|
+
# @param [Hash] options
|
28
|
+
# * +:cloud_front_origin_access_identity_config+ - *required* - (Hash)
|
29
|
+
# The origin access identity's configuration information.
|
30
|
+
# * +:caller_reference+ - *required* - (String) A unique number that
|
31
|
+
# ensures the request can't be replayed. If the CallerReference is
|
32
|
+
# new (no matter the content of the
|
33
|
+
# CloudFrontOriginAccessIdentityConfig object), a new origin access
|
34
|
+
# identity is created. If the CallerReference is a value you already
|
35
|
+
# sent in a previous request to create an identity, and the content
|
36
|
+
# of the CloudFrontOriginAccessIdentityConfig is identical to the
|
37
|
+
# original request (ignoring white space), the response includes the
|
38
|
+
# same information returned to the original request. If the
|
39
|
+
# CallerReference is a value you already sent in a previous request
|
40
|
+
# to create an identity but the content of the
|
41
|
+
# CloudFrontOriginAccessIdentityConfig is different from the original
|
42
|
+
# request, CloudFront returns a
|
43
|
+
# CloudFrontOriginAccessIdentityAlreadyExists error.
|
44
|
+
# * +:comment+ - *required* - (String) Any comments you want to include
|
45
|
+
# about the origin access identity.
|
46
|
+
# @return [Core::Response]
|
47
|
+
# The #data method of the response object returns
|
48
|
+
# a hash with the following structure:
|
49
|
+
# * +:id+ - (String)
|
50
|
+
# * +:s3_canonical_user_id+ - (String)
|
51
|
+
# * +:cloud_front_origin_access_identity_config+ - (Hash)
|
52
|
+
# * +:caller_reference+ - (String)
|
53
|
+
# * +:comment+ - (String)
|
54
|
+
|
55
|
+
# @!method create_distribution(options = {})
|
56
|
+
# Calls the POST CreateDistribution2012_05_05 API operation.
|
57
|
+
# @param [Hash] options
|
58
|
+
# * +:distribution_config+ - *required* - (Hash) The distribution's
|
59
|
+
# configuration information.
|
60
|
+
# * +:caller_reference+ - *required* - (String) A unique number that
|
61
|
+
# ensures the request can't be replayed. If the CallerReference is
|
62
|
+
# new (no matter the content of the DistributionConfig object), a new
|
63
|
+
# distribution is created. If the CallerReference is a value you
|
64
|
+
# already sent in a previous request to create a distribution, and
|
65
|
+
# the content of the DistributionConfig is identical to the original
|
66
|
+
# request (ignoring white space), the response includes the same
|
67
|
+
# information returned to the original request. If the
|
68
|
+
# CallerReference is a value you already sent in a previous request
|
69
|
+
# to create a distribution but the content of the DistributionConfig
|
70
|
+
# is different from the original request, CloudFront returns a
|
71
|
+
# DistributionAlreadyExists error.
|
72
|
+
# * +:aliases+ - *required* - (Hash) A complex type that contains
|
73
|
+
# information about CNAMEs (alternate domain names), if any, for this
|
74
|
+
# distribution.
|
75
|
+
# * +:quantity+ - *required* - (Integer) The number of CNAMEs, if
|
76
|
+
# any, for this distribution.
|
77
|
+
# * +:items+ - (Array<String>) Optional: A complex type that contains
|
78
|
+
# CNAME elements, if any, for this distribution. If Quantity is 0,
|
79
|
+
# you can omit Items.
|
80
|
+
# * +:default_root_object+ - *required* - (String) The object that you
|
81
|
+
# want CloudFront to return (for example, index.html) when an end
|
82
|
+
# user requests the root URL for your distribution
|
83
|
+
# (http://www.example.com) instead of an object in your distribution
|
84
|
+
# (http://www.example.com/index.html). Specifying a default root
|
85
|
+
# object avoids exposing the contents of your distribution. If you
|
86
|
+
# don't want to specify a default root object when you create a
|
87
|
+
# distribution, include an empty DefaultRootObject element. To delete
|
88
|
+
# the default root object from an existing distribution, update the
|
89
|
+
# distribution configuration and include an empty DefaultRootObject
|
90
|
+
# element. To replace the default root object, update the
|
91
|
+
# distribution configuration and specify the new object.
|
92
|
+
# * +:origins+ - *required* - (Hash) A complex type that contains
|
93
|
+
# information about origins for this distribution.
|
94
|
+
# * +:quantity+ - *required* - (Integer) The number of origins for
|
95
|
+
# this distribution.
|
96
|
+
# * +:items+ - (Array<Hash>) A complex type that contains origins for
|
97
|
+
# this distribution.
|
98
|
+
# * +:id+ - *required* - (String) A unique identifier for the
|
99
|
+
# origin. The value of Id must be unique within the distribution.
|
100
|
+
# You use the value of Id when you create a cache behavior. The
|
101
|
+
# Id identifies the origin that CloudFront routes a request to
|
102
|
+
# when the request matches the path pattern for that cache
|
103
|
+
# behavior.
|
104
|
+
# * +:domain_name+ - *required* - (String) Amazon S3 origins: The
|
105
|
+
# DNS name of the Amazon S3 bucket from which you want CloudFront
|
106
|
+
# to get objects for this origin, for example,
|
107
|
+
# myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain
|
108
|
+
# name for the HTTP server from which you want CloudFront to get
|
109
|
+
# objects for this origin, for example, www.example.com.
|
110
|
+
# * +:s3_origin_config+ - (Hash) A complex type that contains
|
111
|
+
# information about the Amazon S3 origin. If the origin is a
|
112
|
+
# custom origin, use the CustomOriginConfig element instead.
|
113
|
+
# * +:origin_access_identity+ - *required* - (String) The
|
114
|
+
# CloudFront origin access identity to associate with the
|
115
|
+
# origin. Use an origin access identity to configure the origin
|
116
|
+
# so that end users can only access objects in an Amazon S3
|
117
|
+
# bucket through CloudFront. If you want end users to be able
|
118
|
+
# to access objects using either the CloudFront URL or the
|
119
|
+
# Amazon S3 URL, specify an empty OriginAccessIdentity element.
|
120
|
+
# To delete the origin access identity from an existing
|
121
|
+
# distribution, update the distribution configuration and
|
122
|
+
# include an empty OriginAccessIdentity element. To replace the
|
123
|
+
# origin access identity, update the distribution configuration
|
124
|
+
# and specify the new origin access identity.
|
125
|
+
# * +:custom_origin_config+ - (Hash) A complex type that contains
|
126
|
+
# information about a custom origin. If the origin is an Amazon
|
127
|
+
# S3 bucket, use the S3OriginConfig element instead.
|
128
|
+
# * +:http_port+ - *required* - (Integer) The HTTP port the
|
129
|
+
# custom origin listens on.
|
130
|
+
# * +:https_port+ - *required* - (Integer) The HTTPS port the
|
131
|
+
# custom origin listens on.
|
132
|
+
# * +:origin_protocol_policy+ - *required* - (String) The origin
|
133
|
+
# protocol policy to apply to your origin.
|
134
|
+
# * +:default_cache_behavior+ - *required* - (Hash) A complex type that
|
135
|
+
# describes the default cache behavior if you do not specify a
|
136
|
+
# CacheBehavior element or if files don't match any of the values of
|
137
|
+
# PathPattern in CacheBehavior elements.You must create exactly one
|
138
|
+
# default cache behavior.
|
139
|
+
# * +:target_origin_id+ - *required* - (String) The value of ID for
|
140
|
+
# the origin that you want CloudFront to route requests to when a
|
141
|
+
# request matches the path pattern either for a cache behavior or
|
142
|
+
# for the default cache behavior.
|
143
|
+
# * +:forwarded_values+ - *required* - (Hash) A complex type that
|
144
|
+
# specifies how CloudFront handles query strings.
|
145
|
+
# * +:query_string+ - *required* - (Boolean) Indicates whether you
|
146
|
+
# want CloudFront to forward query strings to the origin that is
|
147
|
+
# associated with this cache behavior. If so, specify +true+ ; if
|
148
|
+
# not, specify +false+ .
|
149
|
+
# * +:trusted_signers+ - *required* - (Hash) A complex type that
|
150
|
+
# specifies the AWS accounts, if any, that you want to allow to
|
151
|
+
# create signed URLs for private content. If you want to require
|
152
|
+
# signed URLs in requests for objects in the target origin that
|
153
|
+
# match the PathPattern for this cache behavior, specify +true+ for
|
154
|
+
# Enabled, and specify the applicable values for Quantity and
|
155
|
+
# Items. For more information, go to Using a Signed URL to Serve
|
156
|
+
# Private Content in the Amazon CloudFront Developer Guide. If you
|
157
|
+
# don't want to require signed URLs in requests for objects that
|
158
|
+
# match PathPattern, specify +false+ for Enabled and 0 for
|
159
|
+
# Quantity. Omit Items. To add, change, or remove one or more
|
160
|
+
# trusted signers, change Enabled to +true+ (if it's currently
|
161
|
+
# +false+ ), change Quantity as applicable, and specify all of the
|
162
|
+
# trusted signers that you want to include in the updated
|
163
|
+
# distribution.
|
164
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you want
|
165
|
+
# to require end users to use signed URLs to access the files
|
166
|
+
# specified by PathPattern and TargetOriginId.
|
167
|
+
# * +:quantity+ - *required* - (Integer) The number of trusted
|
168
|
+
# signers for this cache behavior.
|
169
|
+
# * +:items+ - (Array<String>) Optional: A complex type that
|
170
|
+
# contains trusted signers for this cache behavior. If Quantity
|
171
|
+
# is 0, you can omit Items.
|
172
|
+
# * +:viewer_protocol_policy+ - *required* - (String) Use this
|
173
|
+
# element to specify the protocol that users can use to access the
|
174
|
+
# files in the origin specified by TargetOriginId when a request
|
175
|
+
# matches the path pattern in PathPattern. If you want CloudFront
|
176
|
+
# to allow end users to use any available protocol, specify
|
177
|
+
# allow-all. If you want CloudFront to require HTTPS, specify
|
178
|
+
# https.
|
179
|
+
# * +:min_ttl+ - *required* - (Integer) The minimum amount of time
|
180
|
+
# that you want objects to stay in CloudFront caches before
|
181
|
+
# CloudFront queries your origin to see whether the object has been
|
182
|
+
# updated.You can specify a value from 0 to 3,153,600,000 seconds
|
183
|
+
# (100 years).
|
184
|
+
# * +:cache_behaviors+ - *required* - (Hash) A complex type that
|
185
|
+
# contains zero or more CacheBehavior elements.
|
186
|
+
# * +:quantity+ - *required* - (Integer) The number of cache
|
187
|
+
# behaviors for this distribution.
|
188
|
+
# * +:items+ - (Array<Hash>) Optional: A complex type that contains
|
189
|
+
# cache behaviors for this distribution. If Quantity is 0, you can
|
190
|
+
# omit Items.
|
191
|
+
# * +:path_pattern+ - *required* - (String) The pattern (for
|
192
|
+
# example, images/*.jpg) that specifies which requests you want
|
193
|
+
# this cache behavior to apply to. When CloudFront receives an
|
194
|
+
# end-user request, the requested path is compared with path
|
195
|
+
# patterns in the order in which cache behaviors are listed in
|
196
|
+
# the distribution. The path pattern for the default cache
|
197
|
+
# behavior is * and cannot be changed. If the request for an
|
198
|
+
# object does not match the path pattern for any cache behaviors,
|
199
|
+
# CloudFront applies the behavior in the default cache behavior.
|
200
|
+
# * +:target_origin_id+ - *required* - (String) The value of ID for
|
201
|
+
# the origin that you want CloudFront to route requests to when a
|
202
|
+
# request matches the path pattern either for a cache behavior or
|
203
|
+
# for the default cache behavior.
|
204
|
+
# * +:forwarded_values+ - *required* - (Hash) A complex type that
|
205
|
+
# specifies how CloudFront handles query strings.
|
206
|
+
# * +:query_string+ - *required* - (Boolean) Indicates whether
|
207
|
+
# you want CloudFront to forward query strings to the origin
|
208
|
+
# that is associated with this cache behavior. If so, specify
|
209
|
+
# +true+ ; if not, specify +false+ .
|
210
|
+
# * +:trusted_signers+ - *required* - (Hash) A complex type that
|
211
|
+
# specifies the AWS accounts, if any, that you want to allow to
|
212
|
+
# create signed URLs for private content. If you want to require
|
213
|
+
# signed URLs in requests for objects in the target origin that
|
214
|
+
# match the PathPattern for this cache behavior, specify +true+
|
215
|
+
# for Enabled, and specify the applicable values for Quantity and
|
216
|
+
# Items. For more information, go to Using a Signed URL to Serve
|
217
|
+
# Private Content in the Amazon CloudFront Developer Guide. If
|
218
|
+
# you don't want to require signed URLs in requests for objects
|
219
|
+
# that match PathPattern, specify +false+ for Enabled and 0 for
|
220
|
+
# Quantity. Omit Items. To add, change, or remove one or more
|
221
|
+
# trusted signers, change Enabled to +true+ (if it's currently
|
222
|
+
# +false+ ), change Quantity as applicable, and specify all of
|
223
|
+
# the trusted signers that you want to include in the updated
|
224
|
+
# distribution.
|
225
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you
|
226
|
+
# want to require end users to use signed URLs to access the
|
227
|
+
# files specified by PathPattern and TargetOriginId.
|
228
|
+
# * +:quantity+ - *required* - (Integer) The number of trusted
|
229
|
+
# signers for this cache behavior.
|
230
|
+
# * +:items+ - (Array<String>) Optional: A complex type that
|
231
|
+
# contains trusted signers for this cache behavior. If Quantity
|
232
|
+
# is 0, you can omit Items.
|
233
|
+
# * +:viewer_protocol_policy+ - *required* - (String) Use this
|
234
|
+
# element to specify the protocol that users can use to access
|
235
|
+
# the files in the origin specified by TargetOriginId when a
|
236
|
+
# request matches the path pattern in PathPattern. If you want
|
237
|
+
# CloudFront to allow end users to use any available protocol,
|
238
|
+
# specify allow-all. If you want CloudFront to require HTTPS,
|
239
|
+
# specify https.
|
240
|
+
# * +:min_ttl+ - *required* - (Integer) The minimum amount of time
|
241
|
+
# that you want objects to stay in CloudFront caches before
|
242
|
+
# CloudFront queries your origin to see whether the object has
|
243
|
+
# been updated.You can specify a value from 0 to 3,153,600,000
|
244
|
+
# seconds (100 years).
|
245
|
+
# * +:comment+ - *required* - (String) Any comments you want to include
|
246
|
+
# about the distribution.
|
247
|
+
# * +:logging+ - *required* - (Hash) A complex type that controls
|
248
|
+
# whether access logs are written for the distribution.
|
249
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you want
|
250
|
+
# CloudFront to save access logs to an Amazon S3 bucket. If you do
|
251
|
+
# not want to enable logging when you create a distribution or if
|
252
|
+
# you want to disable logging for an existing distribution, specify
|
253
|
+
# +false+ for Enabled, and specify empty Bucket and Prefix
|
254
|
+
# elements. If you specify +false+ for Enabled but you specify
|
255
|
+
# values for Bucket and Prefix, the values are automatically
|
256
|
+
# deleted.
|
257
|
+
# * +:bucket+ - *required* - (String) The Amazon S3 bucket to store
|
258
|
+
# the access logs in, for example, myawslogbucket.s3.amazonaws.com.
|
259
|
+
# * +:prefix+ - *required* - (String) An optional string that you
|
260
|
+
# want CloudFront to prefix to the access log filenames for this
|
261
|
+
# distribution, for example, myprefix/. If you want to enable
|
262
|
+
# logging, but you do not want to specify a prefix, you still must
|
263
|
+
# include an empty Prefix element in the Logging element.
|
264
|
+
# * +:enabled+ - *required* - (Boolean) Whether the distribution is
|
265
|
+
# enabled to accept end user requests for content.
|
266
|
+
# @return [Core::Response]
|
267
|
+
# The #data method of the response object returns
|
268
|
+
# a hash with the following structure:
|
269
|
+
# * +:id+ - (String)
|
270
|
+
# * +:status+ - (String)
|
271
|
+
# * +:last_modified_time+ - (Time)
|
272
|
+
# * +:in_progress_invalidation_batches+ - (Integer)
|
273
|
+
# * +:domain_name+ - (String)
|
274
|
+
# * +:active_trusted_signers+ - (Hash)
|
275
|
+
# * +:enabled+ - (Boolean)
|
276
|
+
# * +:quantity+ - (Integer)
|
277
|
+
# * +:items+ - (Array<Hash>)
|
278
|
+
# * +:aws_account_number+ - (String)
|
279
|
+
# * +:key_pair_ids+ - (Hash)
|
280
|
+
# * +:quantity+ - (Integer)
|
281
|
+
# * +:items+ - (Array<String>)
|
282
|
+
# * +:distribution_config+ - (Hash)
|
283
|
+
# * +:caller_reference+ - (String)
|
284
|
+
# * +:aliases+ - (Hash)
|
285
|
+
# * +:quantity+ - (Integer)
|
286
|
+
# * +:items+ - (Array<String>)
|
287
|
+
# * +:default_root_object+ - (String)
|
288
|
+
# * +:origins+ - (Hash)
|
289
|
+
# * +:quantity+ - (Integer)
|
290
|
+
# * +:items+ - (Array<Hash>)
|
291
|
+
# * +:id+ - (String)
|
292
|
+
# * +:domain_name+ - (String)
|
293
|
+
# * +:s3_origin_config+ - (Hash)
|
294
|
+
# * +:origin_access_identity+ - (String)
|
295
|
+
# * +:custom_origin_config+ - (Hash)
|
296
|
+
# * +:http_port+ - (Integer)
|
297
|
+
# * +:https_port+ - (Integer)
|
298
|
+
# * +:origin_protocol_policy+ - (String)
|
299
|
+
# * +:default_cache_behavior+ - (Hash)
|
300
|
+
# * +:target_origin_id+ - (String)
|
301
|
+
# * +:forwarded_values+ - (Hash)
|
302
|
+
# * +:query_string+ - (Boolean)
|
303
|
+
# * +:trusted_signers+ - (Hash)
|
304
|
+
# * +:enabled+ - (Boolean)
|
305
|
+
# * +:quantity+ - (Integer)
|
306
|
+
# * +:items+ - (Array<String>)
|
307
|
+
# * +:viewer_protocol_policy+ - (String)
|
308
|
+
# * +:min_ttl+ - (Integer)
|
309
|
+
# * +:cache_behaviors+ - (Hash)
|
310
|
+
# * +:quantity+ - (Integer)
|
311
|
+
# * +:items+ - (Array<Hash>)
|
312
|
+
# * +:path_pattern+ - (String)
|
313
|
+
# * +:target_origin_id+ - (String)
|
314
|
+
# * +:forwarded_values+ - (Hash)
|
315
|
+
# * +:query_string+ - (Boolean)
|
316
|
+
# * +:trusted_signers+ - (Hash)
|
317
|
+
# * +:enabled+ - (Boolean)
|
318
|
+
# * +:quantity+ - (Integer)
|
319
|
+
# * +:items+ - (Array<String>)
|
320
|
+
# * +:viewer_protocol_policy+ - (String)
|
321
|
+
# * +:min_ttl+ - (Integer)
|
322
|
+
# * +:comment+ - (String)
|
323
|
+
# * +:logging+ - (Hash)
|
324
|
+
# * +:enabled+ - (Boolean)
|
325
|
+
# * +:bucket+ - (String)
|
326
|
+
# * +:prefix+ - (String)
|
327
|
+
# * +:enabled+ - (Boolean)
|
328
|
+
|
329
|
+
# @!method create_invalidation(options = {})
|
330
|
+
# Calls the POST CreateInvalidation2012_05_05 API operation.
|
331
|
+
# @param [Hash] options
|
332
|
+
# * +:distribution_id+ - *required* - (String) The distribution's id.
|
333
|
+
# * +:invalidation_batch+ - *required* - (Hash) The batch information for
|
334
|
+
# the invalidation.
|
335
|
+
# * +:paths+ - *required* - (Hash) The path of the object to
|
336
|
+
# invalidate. The path is relative to the distribution and must begin
|
337
|
+
# with a slash (/). You must enclose each invalidation object with
|
338
|
+
# the Path element tags. If the path includes non-ASCII characters or
|
339
|
+
# unsafe characters as defined in RFC 1783
|
340
|
+
# (http://www.ietf.org/rfc/rfc1738.txt), URL encode those characters.
|
341
|
+
# Do not URL encode any other characters in the path, or CloudFront
|
342
|
+
# will not invalidate the old version of the updated object.
|
343
|
+
# * +:quantity+ - *required* - (Integer) The number of objects that
|
344
|
+
# you want to invalidate.
|
345
|
+
# * +:items+ - (Array<String>) A complex type that contains a list of
|
346
|
+
# the objects that you want to invalidate.
|
347
|
+
# * +:caller_reference+ - *required* - (String) A unique name that
|
348
|
+
# ensures the request can't be replayed. If the CallerReference is
|
349
|
+
# new (no matter the content of the Path object), a new distribution
|
350
|
+
# is created. If the CallerReference is a value you already sent in a
|
351
|
+
# previous request to create an invalidation batch, and the content
|
352
|
+
# of each Path element is identical to the original request, the
|
353
|
+
# response includes the same information returned to the original
|
354
|
+
# request. If the CallerReference is a value you already sent in a
|
355
|
+
# previous request to create a distribution but the content of any
|
356
|
+
# Path is different from the original request, CloudFront returns an
|
357
|
+
# InvalidationBatchAlreadyExists error.
|
358
|
+
# @return [Core::Response]
|
359
|
+
# The #data method of the response object returns
|
360
|
+
# a hash with the following structure:
|
361
|
+
# * +:id+ - (String)
|
362
|
+
# * +:status+ - (String)
|
363
|
+
# * +:create_time+ - (Time)
|
364
|
+
# * +:invalidation_batch+ - (Hash)
|
365
|
+
# * +:paths+ - (Hash)
|
366
|
+
# * +:quantity+ - (Integer)
|
367
|
+
# * +:items+ - (Array<String>)
|
368
|
+
# * +:caller_reference+ - (String)
|
369
|
+
|
370
|
+
# @!method create_streaming_distribution(options = {})
|
371
|
+
# Calls the POST CreateStreamingDistribution2012_05_05 API operation.
|
372
|
+
# @param [Hash] options
|
373
|
+
# * +:streaming_distribution_config+ - *required* - (Hash) The streaming
|
374
|
+
# distribution's configuration information.
|
375
|
+
# * +:caller_reference+ - *required* - (String) A unique number that
|
376
|
+
# ensures the request can't be replayed. If the CallerReference is
|
377
|
+
# new (no matter the content of the StreamingDistributionConfig
|
378
|
+
# object), a new streaming distribution is created. If the
|
379
|
+
# CallerReference is a value you already sent in a previous request
|
380
|
+
# to create a streaming distribution, and the content of the
|
381
|
+
# StreamingDistributionConfig is identical to the original request
|
382
|
+
# (ignoring white space), the response includes the same information
|
383
|
+
# returned to the original request. If the CallerReference is a value
|
384
|
+
# you already sent in a previous request to create a streaming
|
385
|
+
# distribution but the content of the StreamingDistributionConfig is
|
386
|
+
# different from the original request, CloudFront returns a
|
387
|
+
# DistributionAlreadyExists error.
|
388
|
+
# * +:s3_origin+ - *required* - (Hash) A complex type that contains
|
389
|
+
# information about the Amazon S3 bucket from which you want
|
390
|
+
# CloudFront to get your media files for distribution.
|
391
|
+
# * +:domain_name+ - *required* - (String) The DNS name of the S3
|
392
|
+
# origin.
|
393
|
+
# * +:origin_access_identity+ - *required* - (String) Your S3
|
394
|
+
# origin's origin access identity.
|
395
|
+
# * +:aliases+ - *required* - (Hash) A complex type that contains
|
396
|
+
# information about CNAMEs (alternate domain names), if any, for this
|
397
|
+
# streaming distribution.
|
398
|
+
# * +:quantity+ - *required* - (Integer) The number of CNAMEs, if
|
399
|
+
# any, for this distribution.
|
400
|
+
# * +:items+ - (Array<String>) Optional: A complex type that contains
|
401
|
+
# CNAME elements, if any, for this distribution. If Quantity is 0,
|
402
|
+
# you can omit Items.
|
403
|
+
# * +:comment+ - *required* - (String) Any comments you want to include
|
404
|
+
# about the streaming distribution.
|
405
|
+
# * +:logging+ - *required* - (Hash) A complex type that controls
|
406
|
+
# whether access logs are written for the streaming distribution.
|
407
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you want
|
408
|
+
# CloudFront to save access logs to an Amazon S3 bucket. If you do
|
409
|
+
# not want to enable logging when you create a distribution or if
|
410
|
+
# you want to disable logging for an existing distribution, specify
|
411
|
+
# +false+ for Enabled, and specify empty Bucket and Prefix
|
412
|
+
# elements. If you specify +false+ for Enabled but you specify
|
413
|
+
# values for Bucket and Prefix, the values are automatically
|
414
|
+
# deleted.
|
415
|
+
# * +:bucket+ - *required* - (String) The Amazon S3 bucket to store
|
416
|
+
# the access logs in, for example, myawslogbucket.s3.amazonaws.com.
|
417
|
+
# * +:prefix+ - *required* - (String) An optional string that you
|
418
|
+
# want CloudFront to prefix to the access log filenames for this
|
419
|
+
# distribution, for example, myprefix/. If you want to enable
|
420
|
+
# logging, but you do not want to specify a prefix, you still must
|
421
|
+
# include an empty Prefix element in the Logging element.
|
422
|
+
# * +:trusted_signers+ - *required* - (Hash) A complex type that
|
423
|
+
# specifies the AWS accounts, if any, that you want to allow to
|
424
|
+
# create signed URLs for private content. If you want to require
|
425
|
+
# signed URLs in requests for objects in the target origin that match
|
426
|
+
# the PathPattern for this cache behavior, specify +true+ for
|
427
|
+
# Enabled, and specify the applicable values for Quantity and Items.
|
428
|
+
# For more information, go to Using a Signed URL to Serve Private
|
429
|
+
# Content in the Amazon CloudFront Developer Guide. If you don't want
|
430
|
+
# to require signed URLs in requests for objects that match
|
431
|
+
# PathPattern, specify +false+ for Enabled and 0 for Quantity. Omit
|
432
|
+
# Items. To add, change, or remove one or more trusted signers,
|
433
|
+
# change Enabled to +true+ (if it's currently +false+ ), change
|
434
|
+
# Quantity as applicable, and specify all of the trusted signers that
|
435
|
+
# you want to include in the updated distribution.
|
436
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you want to
|
437
|
+
# require end users to use signed URLs to access the files
|
438
|
+
# specified by PathPattern and TargetOriginId.
|
439
|
+
# * +:quantity+ - *required* - (Integer) The number of trusted
|
440
|
+
# signers for this cache behavior.
|
441
|
+
# * +:items+ - (Array<String>) Optional: A complex type that contains
|
442
|
+
# trusted signers for this cache behavior. If Quantity is 0, you
|
443
|
+
# can omit Items.
|
444
|
+
# * +:enabled+ - *required* - (Boolean) Whether the streaming
|
445
|
+
# distribution is enabled to accept end user requests for content.
|
446
|
+
# @return [Core::Response]
|
447
|
+
# The #data method of the response object returns
|
448
|
+
# a hash with the following structure:
|
449
|
+
# * +:id+ - (String)
|
450
|
+
# * +:status+ - (String)
|
451
|
+
# * +:last_modified_time+ - (Time)
|
452
|
+
# * +:domain_name+ - (String)
|
453
|
+
# * +:active_trusted_signers+ - (Hash)
|
454
|
+
# * +:enabled+ - (Boolean)
|
455
|
+
# * +:quantity+ - (Integer)
|
456
|
+
# * +:items+ - (Array<Hash>)
|
457
|
+
# * +:aws_account_number+ - (String)
|
458
|
+
# * +:key_pair_ids+ - (Hash)
|
459
|
+
# * +:quantity+ - (Integer)
|
460
|
+
# * +:items+ - (Array<String>)
|
461
|
+
# * +:streaming_distribution_config+ - (Hash)
|
462
|
+
# * +:caller_reference+ - (String)
|
463
|
+
# * +:s3_origin+ - (Hash)
|
464
|
+
# * +:domain_name+ - (String)
|
465
|
+
# * +:origin_access_identity+ - (String)
|
466
|
+
# * +:aliases+ - (Hash)
|
467
|
+
# * +:quantity+ - (Integer)
|
468
|
+
# * +:items+ - (Array<String>)
|
469
|
+
# * +:comment+ - (String)
|
470
|
+
# * +:logging+ - (Hash)
|
471
|
+
# * +:enabled+ - (Boolean)
|
472
|
+
# * +:bucket+ - (String)
|
473
|
+
# * +:prefix+ - (String)
|
474
|
+
# * +:trusted_signers+ - (Hash)
|
475
|
+
# * +:enabled+ - (Boolean)
|
476
|
+
# * +:quantity+ - (Integer)
|
477
|
+
# * +:items+ - (Array<String>)
|
478
|
+
# * +:enabled+ - (Boolean)
|
479
|
+
|
480
|
+
# @!method delete_cloud_front_origin_access_identity(options = {})
|
481
|
+
# Calls the DELETE DeleteCloudFrontOriginAccessIdentity2012_05_05 API operation.
|
482
|
+
# @param [Hash] options
|
483
|
+
# * +:id+ - *required* - (String) The origin access identity's id.
|
484
|
+
# * +:if_match+ - (String) The value of the ETag header you received from
|
485
|
+
# a previous GET or PUT request. For example: E2QWRUHAPOMQZL.
|
486
|
+
# @return [Core::Response]
|
487
|
+
|
488
|
+
# @!method delete_distribution(options = {})
|
489
|
+
# Calls the DELETE DeleteDistribution2012_05_05 API operation.
|
490
|
+
# @param [Hash] options
|
491
|
+
# * +:id+ - *required* - (String) The distribution id.
|
492
|
+
# * +:if_match+ - (String) The value of the ETag header you received when
|
493
|
+
# you disabled the distribution. For example: E2QWRUHAPOMQZL.
|
494
|
+
# @return [Core::Response]
|
495
|
+
|
496
|
+
# @!method delete_streaming_distribution(options = {})
|
497
|
+
# Calls the DELETE DeleteStreamingDistribution2012_05_05 API operation.
|
498
|
+
# @param [Hash] options
|
499
|
+
# * +:id+ - *required* - (String) The distribution id.
|
500
|
+
# * +:if_match+ - (String) The value of the ETag header you received when
|
501
|
+
# you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.
|
502
|
+
# @return [Core::Response]
|
503
|
+
|
504
|
+
# @!method get_cloud_front_origin_access_identity(options = {})
|
505
|
+
# Calls the GET GetCloudFrontOriginAccessIdentity2012_05_05 API operation.
|
506
|
+
# @param [Hash] options
|
507
|
+
# * +:id+ - *required* - (String) The identity's id.
|
508
|
+
# @return [Core::Response]
|
509
|
+
# The #data method of the response object returns
|
510
|
+
# a hash with the following structure:
|
511
|
+
# * +:id+ - (String)
|
512
|
+
# * +:s3_canonical_user_id+ - (String)
|
513
|
+
# * +:cloud_front_origin_access_identity_config+ - (Hash)
|
514
|
+
# * +:caller_reference+ - (String)
|
515
|
+
# * +:comment+ - (String)
|
516
|
+
|
517
|
+
# @!method get_cloud_front_origin_access_identity_config(options = {})
|
518
|
+
# Calls the GET GetCloudFrontOriginAccessIdentityConfig2012_05_05 API operation.
|
519
|
+
# @param [Hash] options
|
520
|
+
# * +:id+ - *required* - (String) The identity's id.
|
521
|
+
# @return [Core::Response]
|
522
|
+
# The #data method of the response object returns
|
523
|
+
# a hash with the following structure:
|
524
|
+
# * +:caller_reference+ - (String)
|
525
|
+
# * +:comment+ - (String)
|
526
|
+
|
527
|
+
# @!method get_distribution(options = {})
|
528
|
+
# Calls the GET GetDistribution2012_05_05 API operation.
|
529
|
+
# @param [Hash] options
|
530
|
+
# * +:id+ - *required* - (String) The distribution's id.
|
531
|
+
# @return [Core::Response]
|
532
|
+
# The #data method of the response object returns
|
533
|
+
# a hash with the following structure:
|
534
|
+
# * +:id+ - (String)
|
535
|
+
# * +:status+ - (String)
|
536
|
+
# * +:last_modified_time+ - (Time)
|
537
|
+
# * +:in_progress_invalidation_batches+ - (Integer)
|
538
|
+
# * +:domain_name+ - (String)
|
539
|
+
# * +:active_trusted_signers+ - (Hash)
|
540
|
+
# * +:enabled+ - (Boolean)
|
541
|
+
# * +:quantity+ - (Integer)
|
542
|
+
# * +:items+ - (Array<Hash>)
|
543
|
+
# * +:aws_account_number+ - (String)
|
544
|
+
# * +:key_pair_ids+ - (Hash)
|
545
|
+
# * +:quantity+ - (Integer)
|
546
|
+
# * +:items+ - (Array<String>)
|
547
|
+
# * +:distribution_config+ - (Hash)
|
548
|
+
# * +:caller_reference+ - (String)
|
549
|
+
# * +:aliases+ - (Hash)
|
550
|
+
# * +:quantity+ - (Integer)
|
551
|
+
# * +:items+ - (Array<String>)
|
552
|
+
# * +:default_root_object+ - (String)
|
553
|
+
# * +:origins+ - (Hash)
|
554
|
+
# * +:quantity+ - (Integer)
|
555
|
+
# * +:items+ - (Array<Hash>)
|
556
|
+
# * +:id+ - (String)
|
557
|
+
# * +:domain_name+ - (String)
|
558
|
+
# * +:s3_origin_config+ - (Hash)
|
559
|
+
# * +:origin_access_identity+ - (String)
|
560
|
+
# * +:custom_origin_config+ - (Hash)
|
561
|
+
# * +:http_port+ - (Integer)
|
562
|
+
# * +:https_port+ - (Integer)
|
563
|
+
# * +:origin_protocol_policy+ - (String)
|
564
|
+
# * +:default_cache_behavior+ - (Hash)
|
565
|
+
# * +:target_origin_id+ - (String)
|
566
|
+
# * +:forwarded_values+ - (Hash)
|
567
|
+
# * +:query_string+ - (Boolean)
|
568
|
+
# * +:trusted_signers+ - (Hash)
|
569
|
+
# * +:enabled+ - (Boolean)
|
570
|
+
# * +:quantity+ - (Integer)
|
571
|
+
# * +:items+ - (Array<String>)
|
572
|
+
# * +:viewer_protocol_policy+ - (String)
|
573
|
+
# * +:min_ttl+ - (Integer)
|
574
|
+
# * +:cache_behaviors+ - (Hash)
|
575
|
+
# * +:quantity+ - (Integer)
|
576
|
+
# * +:items+ - (Array<Hash>)
|
577
|
+
# * +:path_pattern+ - (String)
|
578
|
+
# * +:target_origin_id+ - (String)
|
579
|
+
# * +:forwarded_values+ - (Hash)
|
580
|
+
# * +:query_string+ - (Boolean)
|
581
|
+
# * +:trusted_signers+ - (Hash)
|
582
|
+
# * +:enabled+ - (Boolean)
|
583
|
+
# * +:quantity+ - (Integer)
|
584
|
+
# * +:items+ - (Array<String>)
|
585
|
+
# * +:viewer_protocol_policy+ - (String)
|
586
|
+
# * +:min_ttl+ - (Integer)
|
587
|
+
# * +:comment+ - (String)
|
588
|
+
# * +:logging+ - (Hash)
|
589
|
+
# * +:enabled+ - (Boolean)
|
590
|
+
# * +:bucket+ - (String)
|
591
|
+
# * +:prefix+ - (String)
|
592
|
+
# * +:enabled+ - (Boolean)
|
593
|
+
|
594
|
+
# @!method get_distribution_config(options = {})
|
595
|
+
# Calls the GET GetDistributionConfig2012_05_05 API operation.
|
596
|
+
# @param [Hash] options
|
597
|
+
# * +:id+ - *required* - (String) The distribution's id.
|
598
|
+
# @return [Core::Response]
|
599
|
+
# The #data method of the response object returns
|
600
|
+
# a hash with the following structure:
|
601
|
+
# * +:caller_reference+ - (String)
|
602
|
+
# * +:aliases+ - (Hash)
|
603
|
+
# * +:quantity+ - (Integer)
|
604
|
+
# * +:items+ - (Array<String>)
|
605
|
+
# * +:default_root_object+ - (String)
|
606
|
+
# * +:origins+ - (Hash)
|
607
|
+
# * +:quantity+ - (Integer)
|
608
|
+
# * +:items+ - (Array<Hash>)
|
609
|
+
# * +:id+ - (String)
|
610
|
+
# * +:domain_name+ - (String)
|
611
|
+
# * +:s3_origin_config+ - (Hash)
|
612
|
+
# * +:origin_access_identity+ - (String)
|
613
|
+
# * +:custom_origin_config+ - (Hash)
|
614
|
+
# * +:http_port+ - (Integer)
|
615
|
+
# * +:https_port+ - (Integer)
|
616
|
+
# * +:origin_protocol_policy+ - (String)
|
617
|
+
# * +:default_cache_behavior+ - (Hash)
|
618
|
+
# * +:target_origin_id+ - (String)
|
619
|
+
# * +:forwarded_values+ - (Hash)
|
620
|
+
# * +:query_string+ - (Boolean)
|
621
|
+
# * +:trusted_signers+ - (Hash)
|
622
|
+
# * +:enabled+ - (Boolean)
|
623
|
+
# * +:quantity+ - (Integer)
|
624
|
+
# * +:items+ - (Array<String>)
|
625
|
+
# * +:viewer_protocol_policy+ - (String)
|
626
|
+
# * +:min_ttl+ - (Integer)
|
627
|
+
# * +:cache_behaviors+ - (Hash)
|
628
|
+
# * +:quantity+ - (Integer)
|
629
|
+
# * +:items+ - (Array<Hash>)
|
630
|
+
# * +:path_pattern+ - (String)
|
631
|
+
# * +:target_origin_id+ - (String)
|
632
|
+
# * +:forwarded_values+ - (Hash)
|
633
|
+
# * +:query_string+ - (Boolean)
|
634
|
+
# * +:trusted_signers+ - (Hash)
|
635
|
+
# * +:enabled+ - (Boolean)
|
636
|
+
# * +:quantity+ - (Integer)
|
637
|
+
# * +:items+ - (Array<String>)
|
638
|
+
# * +:viewer_protocol_policy+ - (String)
|
639
|
+
# * +:min_ttl+ - (Integer)
|
640
|
+
# * +:comment+ - (String)
|
641
|
+
# * +:logging+ - (Hash)
|
642
|
+
# * +:enabled+ - (Boolean)
|
643
|
+
# * +:bucket+ - (String)
|
644
|
+
# * +:prefix+ - (String)
|
645
|
+
# * +:enabled+ - (Boolean)
|
646
|
+
|
647
|
+
# @!method get_invalidation(options = {})
|
648
|
+
# Calls the GET GetInvalidation2012_05_05 API operation.
|
649
|
+
# @param [Hash] options
|
650
|
+
# * +:distribution_id+ - *required* - (String) The distribution's id.
|
651
|
+
# * +:id+ - *required* - (String) The invalidation's id.
|
652
|
+
# @return [Core::Response]
|
653
|
+
# The #data method of the response object returns
|
654
|
+
# a hash with the following structure:
|
655
|
+
# * +:id+ - (String)
|
656
|
+
# * +:status+ - (String)
|
657
|
+
# * +:create_time+ - (Time)
|
658
|
+
# * +:invalidation_batch+ - (Hash)
|
659
|
+
# * +:paths+ - (Hash)
|
660
|
+
# * +:quantity+ - (Integer)
|
661
|
+
# * +:items+ - (Array<String>)
|
662
|
+
# * +:caller_reference+ - (String)
|
663
|
+
|
664
|
+
# @!method get_streaming_distribution(options = {})
|
665
|
+
# Calls the GET GetStreamingDistribution2012_05_05 API operation.
|
666
|
+
# @param [Hash] options
|
667
|
+
# * +:id+ - *required* - (String) The streaming distribution's id.
|
668
|
+
# @return [Core::Response]
|
669
|
+
# The #data method of the response object returns
|
670
|
+
# a hash with the following structure:
|
671
|
+
# * +:id+ - (String)
|
672
|
+
# * +:status+ - (String)
|
673
|
+
# * +:last_modified_time+ - (Time)
|
674
|
+
# * +:domain_name+ - (String)
|
675
|
+
# * +:active_trusted_signers+ - (Hash)
|
676
|
+
# * +:enabled+ - (Boolean)
|
677
|
+
# * +:quantity+ - (Integer)
|
678
|
+
# * +:items+ - (Array<Hash>)
|
679
|
+
# * +:aws_account_number+ - (String)
|
680
|
+
# * +:key_pair_ids+ - (Hash)
|
681
|
+
# * +:quantity+ - (Integer)
|
682
|
+
# * +:items+ - (Array<String>)
|
683
|
+
# * +:streaming_distribution_config+ - (Hash)
|
684
|
+
# * +:caller_reference+ - (String)
|
685
|
+
# * +:s3_origin+ - (Hash)
|
686
|
+
# * +:domain_name+ - (String)
|
687
|
+
# * +:origin_access_identity+ - (String)
|
688
|
+
# * +:aliases+ - (Hash)
|
689
|
+
# * +:quantity+ - (Integer)
|
690
|
+
# * +:items+ - (Array<String>)
|
691
|
+
# * +:comment+ - (String)
|
692
|
+
# * +:logging+ - (Hash)
|
693
|
+
# * +:enabled+ - (Boolean)
|
694
|
+
# * +:bucket+ - (String)
|
695
|
+
# * +:prefix+ - (String)
|
696
|
+
# * +:trusted_signers+ - (Hash)
|
697
|
+
# * +:enabled+ - (Boolean)
|
698
|
+
# * +:quantity+ - (Integer)
|
699
|
+
# * +:items+ - (Array<String>)
|
700
|
+
# * +:enabled+ - (Boolean)
|
701
|
+
|
702
|
+
# @!method get_streaming_distribution_config(options = {})
|
703
|
+
# Calls the GET GetStreamingDistributionConfig2012_05_05 API operation.
|
704
|
+
# @param [Hash] options
|
705
|
+
# * +:id+ - *required* - (String) The streaming distribution's id.
|
706
|
+
# @return [Core::Response]
|
707
|
+
# The #data method of the response object returns
|
708
|
+
# a hash with the following structure:
|
709
|
+
# * +:caller_reference+ - (String)
|
710
|
+
# * +:s3_origin+ - (Hash)
|
711
|
+
# * +:domain_name+ - (String)
|
712
|
+
# * +:origin_access_identity+ - (String)
|
713
|
+
# * +:aliases+ - (Hash)
|
714
|
+
# * +:quantity+ - (Integer)
|
715
|
+
# * +:items+ - (Array<String>)
|
716
|
+
# * +:comment+ - (String)
|
717
|
+
# * +:logging+ - (Hash)
|
718
|
+
# * +:enabled+ - (Boolean)
|
719
|
+
# * +:bucket+ - (String)
|
720
|
+
# * +:prefix+ - (String)
|
721
|
+
# * +:trusted_signers+ - (Hash)
|
722
|
+
# * +:enabled+ - (Boolean)
|
723
|
+
# * +:quantity+ - (Integer)
|
724
|
+
# * +:items+ - (Array<String>)
|
725
|
+
# * +:enabled+ - (Boolean)
|
726
|
+
|
727
|
+
# @!method list_cloud_front_origin_access_identities(options = {})
|
728
|
+
# Calls the GET ListCloudFrontOriginAccessIdentities2012_05_05 API operation.
|
729
|
+
# @param [Hash] options
|
730
|
+
# * +:marker+ - (String) Use this when paginating results to indicate
|
731
|
+
# where to begin in your list of origin access identities. The results
|
732
|
+
# include identities in the list that occur after the marker. To get
|
733
|
+
# the next page of results, set the Marker to the value of the
|
734
|
+
# NextMarker from the current page's response (which is also the ID of
|
735
|
+
# the last identity on that page).
|
736
|
+
# * +:max_items+ - (Integer) The maximum number of origin access
|
737
|
+
# identities you want in the response body.
|
738
|
+
# @return [Core::Response]
|
739
|
+
# The #data method of the response object returns
|
740
|
+
# a hash with the following structure:
|
741
|
+
# * +:marker+ - (String)
|
742
|
+
# * +:next_marker+ - (String)
|
743
|
+
# * +:max_items+ - (Integer)
|
744
|
+
# * +:is_truncated+ - (Boolean)
|
745
|
+
# * +:quantity+ - (Integer)
|
746
|
+
# * +:items+ - (Array<Hash>)
|
747
|
+
# * +:id+ - (String)
|
748
|
+
# * +:s3_canonical_user_id+ - (String)
|
749
|
+
# * +:comment+ - (String)
|
750
|
+
|
751
|
+
# @!method list_distributions(options = {})
|
752
|
+
# Calls the GET ListDistributions2012_05_05 API operation.
|
753
|
+
# @param [Hash] options
|
754
|
+
# * +:marker+ - (String) Use this when paginating results to indicate
|
755
|
+
# where to begin in your list of distributions. The results include
|
756
|
+
# distributions in the list that occur after the marker. To get the
|
757
|
+
# next page of results, set the Marker to the value of the NextMarker
|
758
|
+
# from the current page's response (which is also the ID of the last
|
759
|
+
# distribution on that page).
|
760
|
+
# * +:max_items+ - (Integer) The maximum number of distributions you want
|
761
|
+
# in the response body.
|
762
|
+
# @return [Core::Response]
|
763
|
+
# The #data method of the response object returns
|
764
|
+
# a hash with the following structure:
|
765
|
+
# * +:marker+ - (String)
|
766
|
+
# * +:next_marker+ - (String)
|
767
|
+
# * +:max_items+ - (Integer)
|
768
|
+
# * +:is_truncated+ - (Boolean)
|
769
|
+
# * +:quantity+ - (Integer)
|
770
|
+
# * +:items+ - (Array<Hash>)
|
771
|
+
# * +:id+ - (String)
|
772
|
+
# * +:status+ - (String)
|
773
|
+
# * +:last_modified_time+ - (Time)
|
774
|
+
# * +:domain_name+ - (String)
|
775
|
+
# * +:aliases+ - (Hash)
|
776
|
+
# * +:quantity+ - (Integer)
|
777
|
+
# * +:items+ - (Array<String>)
|
778
|
+
# * +:origins+ - (Hash)
|
779
|
+
# * +:quantity+ - (Integer)
|
780
|
+
# * +:items+ - (Array<Hash>)
|
781
|
+
# * +:id+ - (String)
|
782
|
+
# * +:domain_name+ - (String)
|
783
|
+
# * +:s3_origin_config+ - (Hash)
|
784
|
+
# * +:origin_access_identity+ - (String)
|
785
|
+
# * +:custom_origin_config+ - (Hash)
|
786
|
+
# * +:http_port+ - (Integer)
|
787
|
+
# * +:https_port+ - (Integer)
|
788
|
+
# * +:origin_protocol_policy+ - (String)
|
789
|
+
# * +:default_cache_behavior+ - (Hash)
|
790
|
+
# * +:target_origin_id+ - (String)
|
791
|
+
# * +:forwarded_values+ - (Hash)
|
792
|
+
# * +:query_string+ - (Boolean)
|
793
|
+
# * +:trusted_signers+ - (Hash)
|
794
|
+
# * +:enabled+ - (Boolean)
|
795
|
+
# * +:quantity+ - (Integer)
|
796
|
+
# * +:items+ - (Array<String>)
|
797
|
+
# * +:viewer_protocol_policy+ - (String)
|
798
|
+
# * +:min_ttl+ - (Integer)
|
799
|
+
# * +:cache_behaviors+ - (Hash)
|
800
|
+
# * +:quantity+ - (Integer)
|
801
|
+
# * +:items+ - (Array<Hash>)
|
802
|
+
# * +:path_pattern+ - (String)
|
803
|
+
# * +:target_origin_id+ - (String)
|
804
|
+
# * +:forwarded_values+ - (Hash)
|
805
|
+
# * +:query_string+ - (Boolean)
|
806
|
+
# * +:trusted_signers+ - (Hash)
|
807
|
+
# * +:enabled+ - (Boolean)
|
808
|
+
# * +:quantity+ - (Integer)
|
809
|
+
# * +:items+ - (Array<String>)
|
810
|
+
# * +:viewer_protocol_policy+ - (String)
|
811
|
+
# * +:min_ttl+ - (Integer)
|
812
|
+
# * +:comment+ - (String)
|
813
|
+
# * +:enabled+ - (Boolean)
|
814
|
+
|
815
|
+
# @!method list_invalidations(options = {})
|
816
|
+
# Calls the GET ListInvalidations2012_05_05 API operation.
|
817
|
+
# @param [Hash] options
|
818
|
+
# * +:distribution_id+ - *required* - (String) The distribution's id.
|
819
|
+
# * +:marker+ - (String) Use this parameter when paginating results to
|
820
|
+
# indicate where to begin in your list of invalidation batches. Because
|
821
|
+
# the results are returned in decreasing order from most recent to
|
822
|
+
# oldest, the most recent results are on the first page, the second
|
823
|
+
# page will contain earlier results, and so on. To get the next page of
|
824
|
+
# results, set the Marker to the value of the NextMarker from the
|
825
|
+
# current page's response. This value is the same as the ID of the last
|
826
|
+
# invalidation batch on that page.
|
827
|
+
# * +:max_items+ - (Integer) The maximum number of invalidation batches
|
828
|
+
# you want in the response body.
|
829
|
+
# @return [Core::Response]
|
830
|
+
# The #data method of the response object returns
|
831
|
+
# a hash with the following structure:
|
832
|
+
# * +:marker+ - (String)
|
833
|
+
# * +:next_marker+ - (String)
|
834
|
+
# * +:max_items+ - (Integer)
|
835
|
+
# * +:is_truncated+ - (Boolean)
|
836
|
+
# * +:quantity+ - (Integer)
|
837
|
+
# * +:items+ - (Array<Hash>)
|
838
|
+
# * +:id+ - (String)
|
839
|
+
# * +:status+ - (String)
|
840
|
+
|
841
|
+
# @!method list_streaming_distributions(options = {})
|
842
|
+
# Calls the GET ListStreamingDistributions2012_05_05 API operation.
|
843
|
+
# @param [Hash] options
|
844
|
+
# * +:marker+ - (String) Use this when paginating results to indicate
|
845
|
+
# where to begin in your list of streaming distributions. The results
|
846
|
+
# include distributions in the list that occur after the marker. To get
|
847
|
+
# the next page of results, set the Marker to the value of the
|
848
|
+
# NextMarker from the current page's response (which is also the ID of
|
849
|
+
# the last distribution on that page).
|
850
|
+
# * +:max_items+ - (Integer) The maximum number of streaming
|
851
|
+
# distributions you want in the response body.
|
852
|
+
# @return [Core::Response]
|
853
|
+
# The #data method of the response object returns
|
854
|
+
# a hash with the following structure:
|
855
|
+
# * +:marker+ - (String)
|
856
|
+
# * +:next_marker+ - (String)
|
857
|
+
# * +:max_items+ - (Integer)
|
858
|
+
# * +:is_truncated+ - (Boolean)
|
859
|
+
# * +:quantity+ - (Integer)
|
860
|
+
# * +:items+ - (Array<Hash>)
|
861
|
+
# * +:id+ - (String)
|
862
|
+
# * +:status+ - (String)
|
863
|
+
# * +:last_modified_time+ - (Time)
|
864
|
+
# * +:domain_name+ - (String)
|
865
|
+
# * +:s3_origin+ - (Hash)
|
866
|
+
# * +:domain_name+ - (String)
|
867
|
+
# * +:origin_access_identity+ - (String)
|
868
|
+
# * +:aliases+ - (Hash)
|
869
|
+
# * +:quantity+ - (Integer)
|
870
|
+
# * +:items+ - (Array<String>)
|
871
|
+
# * +:trusted_signers+ - (Hash)
|
872
|
+
# * +:enabled+ - (Boolean)
|
873
|
+
# * +:quantity+ - (Integer)
|
874
|
+
# * +:items+ - (Array<String>)
|
875
|
+
# * +:comment+ - (String)
|
876
|
+
# * +:enabled+ - (Boolean)
|
877
|
+
|
878
|
+
# @!method update_cloud_front_origin_access_identity(options = {})
|
879
|
+
# Calls the PUT UpdateCloudFrontOriginAccessIdentity2012_05_05 API operation.
|
880
|
+
# @param [Hash] options
|
881
|
+
# * +:cloud_front_origin_access_identity_config+ - *required* - (Hash)
|
882
|
+
# The identity's configuration information.
|
883
|
+
# * +:caller_reference+ - *required* - (String) A unique number that
|
884
|
+
# ensures the request can't be replayed. If the CallerReference is
|
885
|
+
# new (no matter the content of the
|
886
|
+
# CloudFrontOriginAccessIdentityConfig object), a new origin access
|
887
|
+
# identity is created. If the CallerReference is a value you already
|
888
|
+
# sent in a previous request to create an identity, and the content
|
889
|
+
# of the CloudFrontOriginAccessIdentityConfig is identical to the
|
890
|
+
# original request (ignoring white space), the response includes the
|
891
|
+
# same information returned to the original request. If the
|
892
|
+
# CallerReference is a value you already sent in a previous request
|
893
|
+
# to create an identity but the content of the
|
894
|
+
# CloudFrontOriginAccessIdentityConfig is different from the original
|
895
|
+
# request, CloudFront returns a
|
896
|
+
# CloudFrontOriginAccessIdentityAlreadyExists error.
|
897
|
+
# * +:comment+ - *required* - (String) Any comments you want to include
|
898
|
+
# about the origin access identity.
|
899
|
+
# * +:id+ - *required* - (String) The identity's id.
|
900
|
+
# * +:if_match+ - (String) The value of the ETag header you received when
|
901
|
+
# retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.
|
902
|
+
# @return [Core::Response]
|
903
|
+
# The #data method of the response object returns
|
904
|
+
# a hash with the following structure:
|
905
|
+
# * +:id+ - (String)
|
906
|
+
# * +:s3_canonical_user_id+ - (String)
|
907
|
+
# * +:cloud_front_origin_access_identity_config+ - (Hash)
|
908
|
+
# * +:caller_reference+ - (String)
|
909
|
+
# * +:comment+ - (String)
|
910
|
+
|
911
|
+
# @!method update_distribution(options = {})
|
912
|
+
# Calls the PUT UpdateDistribution2012_05_05 API operation.
|
913
|
+
# @param [Hash] options
|
914
|
+
# * +:distribution_config+ - *required* - (Hash) The distribution's
|
915
|
+
# configuration information.
|
916
|
+
# * +:caller_reference+ - *required* - (String) A unique number that
|
917
|
+
# ensures the request can't be replayed. If the CallerReference is
|
918
|
+
# new (no matter the content of the DistributionConfig object), a new
|
919
|
+
# distribution is created. If the CallerReference is a value you
|
920
|
+
# already sent in a previous request to create a distribution, and
|
921
|
+
# the content of the DistributionConfig is identical to the original
|
922
|
+
# request (ignoring white space), the response includes the same
|
923
|
+
# information returned to the original request. If the
|
924
|
+
# CallerReference is a value you already sent in a previous request
|
925
|
+
# to create a distribution but the content of the DistributionConfig
|
926
|
+
# is different from the original request, CloudFront returns a
|
927
|
+
# DistributionAlreadyExists error.
|
928
|
+
# * +:aliases+ - *required* - (Hash) A complex type that contains
|
929
|
+
# information about CNAMEs (alternate domain names), if any, for this
|
930
|
+
# distribution.
|
931
|
+
# * +:quantity+ - *required* - (Integer) The number of CNAMEs, if
|
932
|
+
# any, for this distribution.
|
933
|
+
# * +:items+ - (Array<String>) Optional: A complex type that contains
|
934
|
+
# CNAME elements, if any, for this distribution. If Quantity is 0,
|
935
|
+
# you can omit Items.
|
936
|
+
# * +:default_root_object+ - *required* - (String) The object that you
|
937
|
+
# want CloudFront to return (for example, index.html) when an end
|
938
|
+
# user requests the root URL for your distribution
|
939
|
+
# (http://www.example.com) instead of an object in your distribution
|
940
|
+
# (http://www.example.com/index.html). Specifying a default root
|
941
|
+
# object avoids exposing the contents of your distribution. If you
|
942
|
+
# don't want to specify a default root object when you create a
|
943
|
+
# distribution, include an empty DefaultRootObject element. To delete
|
944
|
+
# the default root object from an existing distribution, update the
|
945
|
+
# distribution configuration and include an empty DefaultRootObject
|
946
|
+
# element. To replace the default root object, update the
|
947
|
+
# distribution configuration and specify the new object.
|
948
|
+
# * +:origins+ - *required* - (Hash) A complex type that contains
|
949
|
+
# information about origins for this distribution.
|
950
|
+
# * +:quantity+ - *required* - (Integer) The number of origins for
|
951
|
+
# this distribution.
|
952
|
+
# * +:items+ - (Array<Hash>) A complex type that contains origins for
|
953
|
+
# this distribution.
|
954
|
+
# * +:id+ - *required* - (String) A unique identifier for the
|
955
|
+
# origin. The value of Id must be unique within the distribution.
|
956
|
+
# You use the value of Id when you create a cache behavior. The
|
957
|
+
# Id identifies the origin that CloudFront routes a request to
|
958
|
+
# when the request matches the path pattern for that cache
|
959
|
+
# behavior.
|
960
|
+
# * +:domain_name+ - *required* - (String) Amazon S3 origins: The
|
961
|
+
# DNS name of the Amazon S3 bucket from which you want CloudFront
|
962
|
+
# to get objects for this origin, for example,
|
963
|
+
# myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain
|
964
|
+
# name for the HTTP server from which you want CloudFront to get
|
965
|
+
# objects for this origin, for example, www.example.com.
|
966
|
+
# * +:s3_origin_config+ - (Hash) A complex type that contains
|
967
|
+
# information about the Amazon S3 origin. If the origin is a
|
968
|
+
# custom origin, use the CustomOriginConfig element instead.
|
969
|
+
# * +:origin_access_identity+ - *required* - (String) The
|
970
|
+
# CloudFront origin access identity to associate with the
|
971
|
+
# origin. Use an origin access identity to configure the origin
|
972
|
+
# so that end users can only access objects in an Amazon S3
|
973
|
+
# bucket through CloudFront. If you want end users to be able
|
974
|
+
# to access objects using either the CloudFront URL or the
|
975
|
+
# Amazon S3 URL, specify an empty OriginAccessIdentity element.
|
976
|
+
# To delete the origin access identity from an existing
|
977
|
+
# distribution, update the distribution configuration and
|
978
|
+
# include an empty OriginAccessIdentity element. To replace the
|
979
|
+
# origin access identity, update the distribution configuration
|
980
|
+
# and specify the new origin access identity.
|
981
|
+
# * +:custom_origin_config+ - (Hash) A complex type that contains
|
982
|
+
# information about a custom origin. If the origin is an Amazon
|
983
|
+
# S3 bucket, use the S3OriginConfig element instead.
|
984
|
+
# * +:http_port+ - *required* - (Integer) The HTTP port the
|
985
|
+
# custom origin listens on.
|
986
|
+
# * +:https_port+ - *required* - (Integer) The HTTPS port the
|
987
|
+
# custom origin listens on.
|
988
|
+
# * +:origin_protocol_policy+ - *required* - (String) The origin
|
989
|
+
# protocol policy to apply to your origin.
|
990
|
+
# * +:default_cache_behavior+ - *required* - (Hash) A complex type that
|
991
|
+
# describes the default cache behavior if you do not specify a
|
992
|
+
# CacheBehavior element or if files don't match any of the values of
|
993
|
+
# PathPattern in CacheBehavior elements.You must create exactly one
|
994
|
+
# default cache behavior.
|
995
|
+
# * +:target_origin_id+ - *required* - (String) The value of ID for
|
996
|
+
# the origin that you want CloudFront to route requests to when a
|
997
|
+
# request matches the path pattern either for a cache behavior or
|
998
|
+
# for the default cache behavior.
|
999
|
+
# * +:forwarded_values+ - *required* - (Hash) A complex type that
|
1000
|
+
# specifies how CloudFront handles query strings.
|
1001
|
+
# * +:query_string+ - *required* - (Boolean) Indicates whether you
|
1002
|
+
# want CloudFront to forward query strings to the origin that is
|
1003
|
+
# associated with this cache behavior. If so, specify +true+ ; if
|
1004
|
+
# not, specify +false+ .
|
1005
|
+
# * +:trusted_signers+ - *required* - (Hash) A complex type that
|
1006
|
+
# specifies the AWS accounts, if any, that you want to allow to
|
1007
|
+
# create signed URLs for private content. If you want to require
|
1008
|
+
# signed URLs in requests for objects in the target origin that
|
1009
|
+
# match the PathPattern for this cache behavior, specify +true+ for
|
1010
|
+
# Enabled, and specify the applicable values for Quantity and
|
1011
|
+
# Items. For more information, go to Using a Signed URL to Serve
|
1012
|
+
# Private Content in the Amazon CloudFront Developer Guide. If you
|
1013
|
+
# don't want to require signed URLs in requests for objects that
|
1014
|
+
# match PathPattern, specify +false+ for Enabled and 0 for
|
1015
|
+
# Quantity. Omit Items. To add, change, or remove one or more
|
1016
|
+
# trusted signers, change Enabled to +true+ (if it's currently
|
1017
|
+
# +false+ ), change Quantity as applicable, and specify all of the
|
1018
|
+
# trusted signers that you want to include in the updated
|
1019
|
+
# distribution.
|
1020
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you want
|
1021
|
+
# to require end users to use signed URLs to access the files
|
1022
|
+
# specified by PathPattern and TargetOriginId.
|
1023
|
+
# * +:quantity+ - *required* - (Integer) The number of trusted
|
1024
|
+
# signers for this cache behavior.
|
1025
|
+
# * +:items+ - (Array<String>) Optional: A complex type that
|
1026
|
+
# contains trusted signers for this cache behavior. If Quantity
|
1027
|
+
# is 0, you can omit Items.
|
1028
|
+
# * +:viewer_protocol_policy+ - *required* - (String) Use this
|
1029
|
+
# element to specify the protocol that users can use to access the
|
1030
|
+
# files in the origin specified by TargetOriginId when a request
|
1031
|
+
# matches the path pattern in PathPattern. If you want CloudFront
|
1032
|
+
# to allow end users to use any available protocol, specify
|
1033
|
+
# allow-all. If you want CloudFront to require HTTPS, specify
|
1034
|
+
# https.
|
1035
|
+
# * +:min_ttl+ - *required* - (Integer) The minimum amount of time
|
1036
|
+
# that you want objects to stay in CloudFront caches before
|
1037
|
+
# CloudFront queries your origin to see whether the object has been
|
1038
|
+
# updated.You can specify a value from 0 to 3,153,600,000 seconds
|
1039
|
+
# (100 years).
|
1040
|
+
# * +:cache_behaviors+ - *required* - (Hash) A complex type that
|
1041
|
+
# contains zero or more CacheBehavior elements.
|
1042
|
+
# * +:quantity+ - *required* - (Integer) The number of cache
|
1043
|
+
# behaviors for this distribution.
|
1044
|
+
# * +:items+ - (Array<Hash>) Optional: A complex type that contains
|
1045
|
+
# cache behaviors for this distribution. If Quantity is 0, you can
|
1046
|
+
# omit Items.
|
1047
|
+
# * +:path_pattern+ - *required* - (String) The pattern (for
|
1048
|
+
# example, images/*.jpg) that specifies which requests you want
|
1049
|
+
# this cache behavior to apply to. When CloudFront receives an
|
1050
|
+
# end-user request, the requested path is compared with path
|
1051
|
+
# patterns in the order in which cache behaviors are listed in
|
1052
|
+
# the distribution. The path pattern for the default cache
|
1053
|
+
# behavior is * and cannot be changed. If the request for an
|
1054
|
+
# object does not match the path pattern for any cache behaviors,
|
1055
|
+
# CloudFront applies the behavior in the default cache behavior.
|
1056
|
+
# * +:target_origin_id+ - *required* - (String) The value of ID for
|
1057
|
+
# the origin that you want CloudFront to route requests to when a
|
1058
|
+
# request matches the path pattern either for a cache behavior or
|
1059
|
+
# for the default cache behavior.
|
1060
|
+
# * +:forwarded_values+ - *required* - (Hash) A complex type that
|
1061
|
+
# specifies how CloudFront handles query strings.
|
1062
|
+
# * +:query_string+ - *required* - (Boolean) Indicates whether
|
1063
|
+
# you want CloudFront to forward query strings to the origin
|
1064
|
+
# that is associated with this cache behavior. If so, specify
|
1065
|
+
# +true+ ; if not, specify +false+ .
|
1066
|
+
# * +:trusted_signers+ - *required* - (Hash) A complex type that
|
1067
|
+
# specifies the AWS accounts, if any, that you want to allow to
|
1068
|
+
# create signed URLs for private content. If you want to require
|
1069
|
+
# signed URLs in requests for objects in the target origin that
|
1070
|
+
# match the PathPattern for this cache behavior, specify +true+
|
1071
|
+
# for Enabled, and specify the applicable values for Quantity and
|
1072
|
+
# Items. For more information, go to Using a Signed URL to Serve
|
1073
|
+
# Private Content in the Amazon CloudFront Developer Guide. If
|
1074
|
+
# you don't want to require signed URLs in requests for objects
|
1075
|
+
# that match PathPattern, specify +false+ for Enabled and 0 for
|
1076
|
+
# Quantity. Omit Items. To add, change, or remove one or more
|
1077
|
+
# trusted signers, change Enabled to +true+ (if it's currently
|
1078
|
+
# +false+ ), change Quantity as applicable, and specify all of
|
1079
|
+
# the trusted signers that you want to include in the updated
|
1080
|
+
# distribution.
|
1081
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you
|
1082
|
+
# want to require end users to use signed URLs to access the
|
1083
|
+
# files specified by PathPattern and TargetOriginId.
|
1084
|
+
# * +:quantity+ - *required* - (Integer) The number of trusted
|
1085
|
+
# signers for this cache behavior.
|
1086
|
+
# * +:items+ - (Array<String>) Optional: A complex type that
|
1087
|
+
# contains trusted signers for this cache behavior. If Quantity
|
1088
|
+
# is 0, you can omit Items.
|
1089
|
+
# * +:viewer_protocol_policy+ - *required* - (String) Use this
|
1090
|
+
# element to specify the protocol that users can use to access
|
1091
|
+
# the files in the origin specified by TargetOriginId when a
|
1092
|
+
# request matches the path pattern in PathPattern. If you want
|
1093
|
+
# CloudFront to allow end users to use any available protocol,
|
1094
|
+
# specify allow-all. If you want CloudFront to require HTTPS,
|
1095
|
+
# specify https.
|
1096
|
+
# * +:min_ttl+ - *required* - (Integer) The minimum amount of time
|
1097
|
+
# that you want objects to stay in CloudFront caches before
|
1098
|
+
# CloudFront queries your origin to see whether the object has
|
1099
|
+
# been updated.You can specify a value from 0 to 3,153,600,000
|
1100
|
+
# seconds (100 years).
|
1101
|
+
# * +:comment+ - *required* - (String) Any comments you want to include
|
1102
|
+
# about the distribution.
|
1103
|
+
# * +:logging+ - *required* - (Hash) A complex type that controls
|
1104
|
+
# whether access logs are written for the distribution.
|
1105
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you want
|
1106
|
+
# CloudFront to save access logs to an Amazon S3 bucket. If you do
|
1107
|
+
# not want to enable logging when you create a distribution or if
|
1108
|
+
# you want to disable logging for an existing distribution, specify
|
1109
|
+
# +false+ for Enabled, and specify empty Bucket and Prefix
|
1110
|
+
# elements. If you specify +false+ for Enabled but you specify
|
1111
|
+
# values for Bucket and Prefix, the values are automatically
|
1112
|
+
# deleted.
|
1113
|
+
# * +:bucket+ - *required* - (String) The Amazon S3 bucket to store
|
1114
|
+
# the access logs in, for example, myawslogbucket.s3.amazonaws.com.
|
1115
|
+
# * +:prefix+ - *required* - (String) An optional string that you
|
1116
|
+
# want CloudFront to prefix to the access log filenames for this
|
1117
|
+
# distribution, for example, myprefix/. If you want to enable
|
1118
|
+
# logging, but you do not want to specify a prefix, you still must
|
1119
|
+
# include an empty Prefix element in the Logging element.
|
1120
|
+
# * +:enabled+ - *required* - (Boolean) Whether the distribution is
|
1121
|
+
# enabled to accept end user requests for content.
|
1122
|
+
# * +:id+ - *required* - (String) The distribution's id.
|
1123
|
+
# * +:if_match+ - (String) The value of the ETag header you received when
|
1124
|
+
# retrieving the distribution's configuration. For example:
|
1125
|
+
# E2QWRUHAPOMQZL.
|
1126
|
+
# @return [Core::Response]
|
1127
|
+
# The #data method of the response object returns
|
1128
|
+
# a hash with the following structure:
|
1129
|
+
# * +:id+ - (String)
|
1130
|
+
# * +:status+ - (String)
|
1131
|
+
# * +:last_modified_time+ - (Time)
|
1132
|
+
# * +:in_progress_invalidation_batches+ - (Integer)
|
1133
|
+
# * +:domain_name+ - (String)
|
1134
|
+
# * +:active_trusted_signers+ - (Hash)
|
1135
|
+
# * +:enabled+ - (Boolean)
|
1136
|
+
# * +:quantity+ - (Integer)
|
1137
|
+
# * +:items+ - (Array<Hash>)
|
1138
|
+
# * +:aws_account_number+ - (String)
|
1139
|
+
# * +:key_pair_ids+ - (Hash)
|
1140
|
+
# * +:quantity+ - (Integer)
|
1141
|
+
# * +:items+ - (Array<String>)
|
1142
|
+
# * +:distribution_config+ - (Hash)
|
1143
|
+
# * +:caller_reference+ - (String)
|
1144
|
+
# * +:aliases+ - (Hash)
|
1145
|
+
# * +:quantity+ - (Integer)
|
1146
|
+
# * +:items+ - (Array<String>)
|
1147
|
+
# * +:default_root_object+ - (String)
|
1148
|
+
# * +:origins+ - (Hash)
|
1149
|
+
# * +:quantity+ - (Integer)
|
1150
|
+
# * +:items+ - (Array<Hash>)
|
1151
|
+
# * +:id+ - (String)
|
1152
|
+
# * +:domain_name+ - (String)
|
1153
|
+
# * +:s3_origin_config+ - (Hash)
|
1154
|
+
# * +:origin_access_identity+ - (String)
|
1155
|
+
# * +:custom_origin_config+ - (Hash)
|
1156
|
+
# * +:http_port+ - (Integer)
|
1157
|
+
# * +:https_port+ - (Integer)
|
1158
|
+
# * +:origin_protocol_policy+ - (String)
|
1159
|
+
# * +:default_cache_behavior+ - (Hash)
|
1160
|
+
# * +:target_origin_id+ - (String)
|
1161
|
+
# * +:forwarded_values+ - (Hash)
|
1162
|
+
# * +:query_string+ - (Boolean)
|
1163
|
+
# * +:trusted_signers+ - (Hash)
|
1164
|
+
# * +:enabled+ - (Boolean)
|
1165
|
+
# * +:quantity+ - (Integer)
|
1166
|
+
# * +:items+ - (Array<String>)
|
1167
|
+
# * +:viewer_protocol_policy+ - (String)
|
1168
|
+
# * +:min_ttl+ - (Integer)
|
1169
|
+
# * +:cache_behaviors+ - (Hash)
|
1170
|
+
# * +:quantity+ - (Integer)
|
1171
|
+
# * +:items+ - (Array<Hash>)
|
1172
|
+
# * +:path_pattern+ - (String)
|
1173
|
+
# * +:target_origin_id+ - (String)
|
1174
|
+
# * +:forwarded_values+ - (Hash)
|
1175
|
+
# * +:query_string+ - (Boolean)
|
1176
|
+
# * +:trusted_signers+ - (Hash)
|
1177
|
+
# * +:enabled+ - (Boolean)
|
1178
|
+
# * +:quantity+ - (Integer)
|
1179
|
+
# * +:items+ - (Array<String>)
|
1180
|
+
# * +:viewer_protocol_policy+ - (String)
|
1181
|
+
# * +:min_ttl+ - (Integer)
|
1182
|
+
# * +:comment+ - (String)
|
1183
|
+
# * +:logging+ - (Hash)
|
1184
|
+
# * +:enabled+ - (Boolean)
|
1185
|
+
# * +:bucket+ - (String)
|
1186
|
+
# * +:prefix+ - (String)
|
1187
|
+
# * +:enabled+ - (Boolean)
|
1188
|
+
|
1189
|
+
# @!method update_streaming_distribution(options = {})
|
1190
|
+
# Calls the PUT UpdateStreamingDistribution2012_05_05 API operation.
|
1191
|
+
# @param [Hash] options
|
1192
|
+
# * +:streaming_distribution_config+ - *required* - (Hash) The streaming
|
1193
|
+
# distribution's configuration information.
|
1194
|
+
# * +:caller_reference+ - *required* - (String) A unique number that
|
1195
|
+
# ensures the request can't be replayed. If the CallerReference is
|
1196
|
+
# new (no matter the content of the StreamingDistributionConfig
|
1197
|
+
# object), a new streaming distribution is created. If the
|
1198
|
+
# CallerReference is a value you already sent in a previous request
|
1199
|
+
# to create a streaming distribution, and the content of the
|
1200
|
+
# StreamingDistributionConfig is identical to the original request
|
1201
|
+
# (ignoring white space), the response includes the same information
|
1202
|
+
# returned to the original request. If the CallerReference is a value
|
1203
|
+
# you already sent in a previous request to create a streaming
|
1204
|
+
# distribution but the content of the StreamingDistributionConfig is
|
1205
|
+
# different from the original request, CloudFront returns a
|
1206
|
+
# DistributionAlreadyExists error.
|
1207
|
+
# * +:s3_origin+ - *required* - (Hash) A complex type that contains
|
1208
|
+
# information about the Amazon S3 bucket from which you want
|
1209
|
+
# CloudFront to get your media files for distribution.
|
1210
|
+
# * +:domain_name+ - *required* - (String) The DNS name of the S3
|
1211
|
+
# origin.
|
1212
|
+
# * +:origin_access_identity+ - *required* - (String) Your S3
|
1213
|
+
# origin's origin access identity.
|
1214
|
+
# * +:aliases+ - *required* - (Hash) A complex type that contains
|
1215
|
+
# information about CNAMEs (alternate domain names), if any, for this
|
1216
|
+
# streaming distribution.
|
1217
|
+
# * +:quantity+ - *required* - (Integer) The number of CNAMEs, if
|
1218
|
+
# any, for this distribution.
|
1219
|
+
# * +:items+ - (Array<String>) Optional: A complex type that contains
|
1220
|
+
# CNAME elements, if any, for this distribution. If Quantity is 0,
|
1221
|
+
# you can omit Items.
|
1222
|
+
# * +:comment+ - *required* - (String) Any comments you want to include
|
1223
|
+
# about the streaming distribution.
|
1224
|
+
# * +:logging+ - *required* - (Hash) A complex type that controls
|
1225
|
+
# whether access logs are written for the streaming distribution.
|
1226
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you want
|
1227
|
+
# CloudFront to save access logs to an Amazon S3 bucket. If you do
|
1228
|
+
# not want to enable logging when you create a distribution or if
|
1229
|
+
# you want to disable logging for an existing distribution, specify
|
1230
|
+
# +false+ for Enabled, and specify empty Bucket and Prefix
|
1231
|
+
# elements. If you specify +false+ for Enabled but you specify
|
1232
|
+
# values for Bucket and Prefix, the values are automatically
|
1233
|
+
# deleted.
|
1234
|
+
# * +:bucket+ - *required* - (String) The Amazon S3 bucket to store
|
1235
|
+
# the access logs in, for example, myawslogbucket.s3.amazonaws.com.
|
1236
|
+
# * +:prefix+ - *required* - (String) An optional string that you
|
1237
|
+
# want CloudFront to prefix to the access log filenames for this
|
1238
|
+
# distribution, for example, myprefix/. If you want to enable
|
1239
|
+
# logging, but you do not want to specify a prefix, you still must
|
1240
|
+
# include an empty Prefix element in the Logging element.
|
1241
|
+
# * +:trusted_signers+ - *required* - (Hash) A complex type that
|
1242
|
+
# specifies the AWS accounts, if any, that you want to allow to
|
1243
|
+
# create signed URLs for private content. If you want to require
|
1244
|
+
# signed URLs in requests for objects in the target origin that match
|
1245
|
+
# the PathPattern for this cache behavior, specify +true+ for
|
1246
|
+
# Enabled, and specify the applicable values for Quantity and Items.
|
1247
|
+
# For more information, go to Using a Signed URL to Serve Private
|
1248
|
+
# Content in the Amazon CloudFront Developer Guide. If you don't want
|
1249
|
+
# to require signed URLs in requests for objects that match
|
1250
|
+
# PathPattern, specify +false+ for Enabled and 0 for Quantity. Omit
|
1251
|
+
# Items. To add, change, or remove one or more trusted signers,
|
1252
|
+
# change Enabled to +true+ (if it's currently +false+ ), change
|
1253
|
+
# Quantity as applicable, and specify all of the trusted signers that
|
1254
|
+
# you want to include in the updated distribution.
|
1255
|
+
# * +:enabled+ - *required* - (Boolean) Specifies whether you want to
|
1256
|
+
# require end users to use signed URLs to access the files
|
1257
|
+
# specified by PathPattern and TargetOriginId.
|
1258
|
+
# * +:quantity+ - *required* - (Integer) The number of trusted
|
1259
|
+
# signers for this cache behavior.
|
1260
|
+
# * +:items+ - (Array<String>) Optional: A complex type that contains
|
1261
|
+
# trusted signers for this cache behavior. If Quantity is 0, you
|
1262
|
+
# can omit Items.
|
1263
|
+
# * +:enabled+ - *required* - (Boolean) Whether the streaming
|
1264
|
+
# distribution is enabled to accept end user requests for content.
|
1265
|
+
# * +:id+ - *required* - (String) The streaming distribution's id.
|
1266
|
+
# * +:if_match+ - (String) The value of the ETag header you received when
|
1267
|
+
# retrieving the streaming distribution's configuration. For example:
|
1268
|
+
# E2QWRUHAPOMQZL.
|
1269
|
+
# @return [Core::Response]
|
1270
|
+
# The #data method of the response object returns
|
1271
|
+
# a hash with the following structure:
|
1272
|
+
# * +:id+ - (String)
|
1273
|
+
# * +:status+ - (String)
|
1274
|
+
# * +:last_modified_time+ - (Time)
|
1275
|
+
# * +:domain_name+ - (String)
|
1276
|
+
# * +:active_trusted_signers+ - (Hash)
|
1277
|
+
# * +:enabled+ - (Boolean)
|
1278
|
+
# * +:quantity+ - (Integer)
|
1279
|
+
# * +:items+ - (Array<Hash>)
|
1280
|
+
# * +:aws_account_number+ - (String)
|
1281
|
+
# * +:key_pair_ids+ - (Hash)
|
1282
|
+
# * +:quantity+ - (Integer)
|
1283
|
+
# * +:items+ - (Array<String>)
|
1284
|
+
# * +:streaming_distribution_config+ - (Hash)
|
1285
|
+
# * +:caller_reference+ - (String)
|
1286
|
+
# * +:s3_origin+ - (Hash)
|
1287
|
+
# * +:domain_name+ - (String)
|
1288
|
+
# * +:origin_access_identity+ - (String)
|
1289
|
+
# * +:aliases+ - (Hash)
|
1290
|
+
# * +:quantity+ - (Integer)
|
1291
|
+
# * +:items+ - (Array<String>)
|
1292
|
+
# * +:comment+ - (String)
|
1293
|
+
# * +:logging+ - (Hash)
|
1294
|
+
# * +:enabled+ - (Boolean)
|
1295
|
+
# * +:bucket+ - (String)
|
1296
|
+
# * +:prefix+ - (String)
|
1297
|
+
# * +:trusted_signers+ - (Hash)
|
1298
|
+
# * +:enabled+ - (Boolean)
|
1299
|
+
# * +:quantity+ - (Integer)
|
1300
|
+
# * +:items+ - (Array<String>)
|
1301
|
+
# * +:enabled+ - (Boolean)
|
1302
|
+
|
1303
|
+
## end client methods ##
|
1304
|
+
|
1305
|
+
end
|
1306
|
+
end
|
1307
|
+
end
|