aws-sdk-cloudfront 1.67.0 → 1.69.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,264 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::CloudFront
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::CloudFront::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::CloudFront::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::CloudFront::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :associate_alias
60
+ Aws::CloudFront::Endpoints::AssociateAlias.build(context)
61
+ when :create_cache_policy
62
+ Aws::CloudFront::Endpoints::CreateCachePolicy.build(context)
63
+ when :create_cloud_front_origin_access_identity
64
+ Aws::CloudFront::Endpoints::CreateCloudFrontOriginAccessIdentity.build(context)
65
+ when :create_distribution
66
+ Aws::CloudFront::Endpoints::CreateDistribution.build(context)
67
+ when :create_distribution_with_tags
68
+ Aws::CloudFront::Endpoints::CreateDistributionWithTags.build(context)
69
+ when :create_field_level_encryption_config
70
+ Aws::CloudFront::Endpoints::CreateFieldLevelEncryptionConfig.build(context)
71
+ when :create_field_level_encryption_profile
72
+ Aws::CloudFront::Endpoints::CreateFieldLevelEncryptionProfile.build(context)
73
+ when :create_function
74
+ Aws::CloudFront::Endpoints::CreateFunction.build(context)
75
+ when :create_invalidation
76
+ Aws::CloudFront::Endpoints::CreateInvalidation.build(context)
77
+ when :create_key_group
78
+ Aws::CloudFront::Endpoints::CreateKeyGroup.build(context)
79
+ when :create_monitoring_subscription
80
+ Aws::CloudFront::Endpoints::CreateMonitoringSubscription.build(context)
81
+ when :create_origin_access_control
82
+ Aws::CloudFront::Endpoints::CreateOriginAccessControl.build(context)
83
+ when :create_origin_request_policy
84
+ Aws::CloudFront::Endpoints::CreateOriginRequestPolicy.build(context)
85
+ when :create_public_key
86
+ Aws::CloudFront::Endpoints::CreatePublicKey.build(context)
87
+ when :create_realtime_log_config
88
+ Aws::CloudFront::Endpoints::CreateRealtimeLogConfig.build(context)
89
+ when :create_response_headers_policy
90
+ Aws::CloudFront::Endpoints::CreateResponseHeadersPolicy.build(context)
91
+ when :create_streaming_distribution
92
+ Aws::CloudFront::Endpoints::CreateStreamingDistribution.build(context)
93
+ when :create_streaming_distribution_with_tags
94
+ Aws::CloudFront::Endpoints::CreateStreamingDistributionWithTags.build(context)
95
+ when :delete_cache_policy
96
+ Aws::CloudFront::Endpoints::DeleteCachePolicy.build(context)
97
+ when :delete_cloud_front_origin_access_identity
98
+ Aws::CloudFront::Endpoints::DeleteCloudFrontOriginAccessIdentity.build(context)
99
+ when :delete_distribution
100
+ Aws::CloudFront::Endpoints::DeleteDistribution.build(context)
101
+ when :delete_field_level_encryption_config
102
+ Aws::CloudFront::Endpoints::DeleteFieldLevelEncryptionConfig.build(context)
103
+ when :delete_field_level_encryption_profile
104
+ Aws::CloudFront::Endpoints::DeleteFieldLevelEncryptionProfile.build(context)
105
+ when :delete_function
106
+ Aws::CloudFront::Endpoints::DeleteFunction.build(context)
107
+ when :delete_key_group
108
+ Aws::CloudFront::Endpoints::DeleteKeyGroup.build(context)
109
+ when :delete_monitoring_subscription
110
+ Aws::CloudFront::Endpoints::DeleteMonitoringSubscription.build(context)
111
+ when :delete_origin_access_control
112
+ Aws::CloudFront::Endpoints::DeleteOriginAccessControl.build(context)
113
+ when :delete_origin_request_policy
114
+ Aws::CloudFront::Endpoints::DeleteOriginRequestPolicy.build(context)
115
+ when :delete_public_key
116
+ Aws::CloudFront::Endpoints::DeletePublicKey.build(context)
117
+ when :delete_realtime_log_config
118
+ Aws::CloudFront::Endpoints::DeleteRealtimeLogConfig.build(context)
119
+ when :delete_response_headers_policy
120
+ Aws::CloudFront::Endpoints::DeleteResponseHeadersPolicy.build(context)
121
+ when :delete_streaming_distribution
122
+ Aws::CloudFront::Endpoints::DeleteStreamingDistribution.build(context)
123
+ when :describe_function
124
+ Aws::CloudFront::Endpoints::DescribeFunction.build(context)
125
+ when :get_cache_policy
126
+ Aws::CloudFront::Endpoints::GetCachePolicy.build(context)
127
+ when :get_cache_policy_config
128
+ Aws::CloudFront::Endpoints::GetCachePolicyConfig.build(context)
129
+ when :get_cloud_front_origin_access_identity
130
+ Aws::CloudFront::Endpoints::GetCloudFrontOriginAccessIdentity.build(context)
131
+ when :get_cloud_front_origin_access_identity_config
132
+ Aws::CloudFront::Endpoints::GetCloudFrontOriginAccessIdentityConfig.build(context)
133
+ when :get_distribution
134
+ Aws::CloudFront::Endpoints::GetDistribution.build(context)
135
+ when :get_distribution_config
136
+ Aws::CloudFront::Endpoints::GetDistributionConfig.build(context)
137
+ when :get_field_level_encryption
138
+ Aws::CloudFront::Endpoints::GetFieldLevelEncryption.build(context)
139
+ when :get_field_level_encryption_config
140
+ Aws::CloudFront::Endpoints::GetFieldLevelEncryptionConfig.build(context)
141
+ when :get_field_level_encryption_profile
142
+ Aws::CloudFront::Endpoints::GetFieldLevelEncryptionProfile.build(context)
143
+ when :get_field_level_encryption_profile_config
144
+ Aws::CloudFront::Endpoints::GetFieldLevelEncryptionProfileConfig.build(context)
145
+ when :get_function
146
+ Aws::CloudFront::Endpoints::GetFunction.build(context)
147
+ when :get_invalidation
148
+ Aws::CloudFront::Endpoints::GetInvalidation.build(context)
149
+ when :get_key_group
150
+ Aws::CloudFront::Endpoints::GetKeyGroup.build(context)
151
+ when :get_key_group_config
152
+ Aws::CloudFront::Endpoints::GetKeyGroupConfig.build(context)
153
+ when :get_monitoring_subscription
154
+ Aws::CloudFront::Endpoints::GetMonitoringSubscription.build(context)
155
+ when :get_origin_access_control
156
+ Aws::CloudFront::Endpoints::GetOriginAccessControl.build(context)
157
+ when :get_origin_access_control_config
158
+ Aws::CloudFront::Endpoints::GetOriginAccessControlConfig.build(context)
159
+ when :get_origin_request_policy
160
+ Aws::CloudFront::Endpoints::GetOriginRequestPolicy.build(context)
161
+ when :get_origin_request_policy_config
162
+ Aws::CloudFront::Endpoints::GetOriginRequestPolicyConfig.build(context)
163
+ when :get_public_key
164
+ Aws::CloudFront::Endpoints::GetPublicKey.build(context)
165
+ when :get_public_key_config
166
+ Aws::CloudFront::Endpoints::GetPublicKeyConfig.build(context)
167
+ when :get_realtime_log_config
168
+ Aws::CloudFront::Endpoints::GetRealtimeLogConfig.build(context)
169
+ when :get_response_headers_policy
170
+ Aws::CloudFront::Endpoints::GetResponseHeadersPolicy.build(context)
171
+ when :get_response_headers_policy_config
172
+ Aws::CloudFront::Endpoints::GetResponseHeadersPolicyConfig.build(context)
173
+ when :get_streaming_distribution
174
+ Aws::CloudFront::Endpoints::GetStreamingDistribution.build(context)
175
+ when :get_streaming_distribution_config
176
+ Aws::CloudFront::Endpoints::GetStreamingDistributionConfig.build(context)
177
+ when :list_cache_policies
178
+ Aws::CloudFront::Endpoints::ListCachePolicies.build(context)
179
+ when :list_cloud_front_origin_access_identities
180
+ Aws::CloudFront::Endpoints::ListCloudFrontOriginAccessIdentities.build(context)
181
+ when :list_conflicting_aliases
182
+ Aws::CloudFront::Endpoints::ListConflictingAliases.build(context)
183
+ when :list_distributions
184
+ Aws::CloudFront::Endpoints::ListDistributions.build(context)
185
+ when :list_distributions_by_cache_policy_id
186
+ Aws::CloudFront::Endpoints::ListDistributionsByCachePolicyId.build(context)
187
+ when :list_distributions_by_key_group
188
+ Aws::CloudFront::Endpoints::ListDistributionsByKeyGroup.build(context)
189
+ when :list_distributions_by_origin_request_policy_id
190
+ Aws::CloudFront::Endpoints::ListDistributionsByOriginRequestPolicyId.build(context)
191
+ when :list_distributions_by_realtime_log_config
192
+ Aws::CloudFront::Endpoints::ListDistributionsByRealtimeLogConfig.build(context)
193
+ when :list_distributions_by_response_headers_policy_id
194
+ Aws::CloudFront::Endpoints::ListDistributionsByResponseHeadersPolicyId.build(context)
195
+ when :list_distributions_by_web_acl_id
196
+ Aws::CloudFront::Endpoints::ListDistributionsByWebACLId.build(context)
197
+ when :list_field_level_encryption_configs
198
+ Aws::CloudFront::Endpoints::ListFieldLevelEncryptionConfigs.build(context)
199
+ when :list_field_level_encryption_profiles
200
+ Aws::CloudFront::Endpoints::ListFieldLevelEncryptionProfiles.build(context)
201
+ when :list_functions
202
+ Aws::CloudFront::Endpoints::ListFunctions.build(context)
203
+ when :list_invalidations
204
+ Aws::CloudFront::Endpoints::ListInvalidations.build(context)
205
+ when :list_key_groups
206
+ Aws::CloudFront::Endpoints::ListKeyGroups.build(context)
207
+ when :list_origin_access_controls
208
+ Aws::CloudFront::Endpoints::ListOriginAccessControls.build(context)
209
+ when :list_origin_request_policies
210
+ Aws::CloudFront::Endpoints::ListOriginRequestPolicies.build(context)
211
+ when :list_public_keys
212
+ Aws::CloudFront::Endpoints::ListPublicKeys.build(context)
213
+ when :list_realtime_log_configs
214
+ Aws::CloudFront::Endpoints::ListRealtimeLogConfigs.build(context)
215
+ when :list_response_headers_policies
216
+ Aws::CloudFront::Endpoints::ListResponseHeadersPolicies.build(context)
217
+ when :list_streaming_distributions
218
+ Aws::CloudFront::Endpoints::ListStreamingDistributions.build(context)
219
+ when :list_tags_for_resource
220
+ Aws::CloudFront::Endpoints::ListTagsForResource.build(context)
221
+ when :publish_function
222
+ Aws::CloudFront::Endpoints::PublishFunction.build(context)
223
+ when :tag_resource
224
+ Aws::CloudFront::Endpoints::TagResource.build(context)
225
+ when :test_function
226
+ Aws::CloudFront::Endpoints::TestFunction.build(context)
227
+ when :untag_resource
228
+ Aws::CloudFront::Endpoints::UntagResource.build(context)
229
+ when :update_cache_policy
230
+ Aws::CloudFront::Endpoints::UpdateCachePolicy.build(context)
231
+ when :update_cloud_front_origin_access_identity
232
+ Aws::CloudFront::Endpoints::UpdateCloudFrontOriginAccessIdentity.build(context)
233
+ when :update_distribution
234
+ Aws::CloudFront::Endpoints::UpdateDistribution.build(context)
235
+ when :update_field_level_encryption_config
236
+ Aws::CloudFront::Endpoints::UpdateFieldLevelEncryptionConfig.build(context)
237
+ when :update_field_level_encryption_profile
238
+ Aws::CloudFront::Endpoints::UpdateFieldLevelEncryptionProfile.build(context)
239
+ when :update_function
240
+ Aws::CloudFront::Endpoints::UpdateFunction.build(context)
241
+ when :update_key_group
242
+ Aws::CloudFront::Endpoints::UpdateKeyGroup.build(context)
243
+ when :update_origin_access_control
244
+ Aws::CloudFront::Endpoints::UpdateOriginAccessControl.build(context)
245
+ when :update_origin_request_policy
246
+ Aws::CloudFront::Endpoints::UpdateOriginRequestPolicy.build(context)
247
+ when :update_public_key
248
+ Aws::CloudFront::Endpoints::UpdatePublicKey.build(context)
249
+ when :update_realtime_log_config
250
+ Aws::CloudFront::Endpoints::UpdateRealtimeLogConfig.build(context)
251
+ when :update_response_headers_policy
252
+ Aws::CloudFront::Endpoints::UpdateResponseHeadersPolicy.build(context)
253
+ when :update_streaming_distribution
254
+ Aws::CloudFront::Endpoints::UpdateStreamingDistribution.build(context)
255
+ end
256
+ end
257
+ end
258
+
259
+ def add_handlers(handlers, _config)
260
+ handlers.add(Handler, step: :build, priority: 75)
261
+ end
262
+ end
263
+ end
264
+ end
@@ -7263,7 +7263,7 @@ module Aws::CloudFront
7263
7263
  end
7264
7264
 
7265
7265
  # @!attribute [rw] origin_access_control_config
7266
- # Contains an origin access control.
7266
+ # Contains an origin access control configuration.
7267
7267
  # @return [Types::OriginAccessControlConfig]
7268
7268
  #
7269
7269
  # @!attribute [rw] etag
@@ -7300,7 +7300,7 @@ module Aws::CloudFront
7300
7300
  end
7301
7301
 
7302
7302
  # @!attribute [rw] origin_access_control
7303
- # Contains an origin access control.
7303
+ # Contains an origin access control, including its unique identifier.
7304
7304
  # @return [Types::OriginAccessControl]
7305
7305
  #
7306
7306
  # @!attribute [rw] etag
@@ -10184,7 +10184,7 @@ module Aws::CloudFront
10184
10184
  include Aws::Structure
10185
10185
  end
10186
10186
 
10187
- # A CloudFront origin access control.
10187
+ # A CloudFront origin access control, including its unique identifier.
10188
10188
  #
10189
10189
  # @!attribute [rw] id
10190
10190
  # The unique identifier of the origin access control.
@@ -10216,7 +10216,7 @@ module Aws::CloudFront
10216
10216
  include Aws::Structure
10217
10217
  end
10218
10218
 
10219
- # A CloudFront origin access control.
10219
+ # A CloudFront origin access control configuration.
10220
10220
  #
10221
10221
  # @note When making an API call, you may pass OriginAccessControlConfig
10222
10222
  # data as a hash:
@@ -10264,14 +10264,14 @@ module Aws::CloudFront
10264
10264
  # CloudFront doesn't sign the origin request and instead passes
10265
10265
  # along the `Authorization` header from the viewer request.
10266
10266
  # **WARNING: To pass along the `Authorization` header from the
10267
- # viewer request, you *must* add the `Authorization` header to an
10268
- # [origin request policy][2] for all cache behaviors that use
10269
- # origins associated with this origin access control.**
10267
+ # viewer request, you *must* add the `Authorization` header to a
10268
+ # [cache policy][2] for all cache behaviors that use origins
10269
+ # associated with this origin access control.**
10270
10270
  #
10271
10271
  #
10272
10272
  #
10273
10273
  # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html#oac-advanced-settings
10274
- # [2]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html
10274
+ # [2]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html
10275
10275
  # @return [String]
10276
10276
  #
10277
10277
  # @!attribute [rw] origin_access_control_origin_type
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-cloudfront/types'
15
15
  require_relative 'aws-sdk-cloudfront/client_api'
16
+ require_relative 'aws-sdk-cloudfront/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-cloudfront/client'
17
18
  require_relative 'aws-sdk-cloudfront/errors'
18
19
  require_relative 'aws-sdk-cloudfront/waiters'
19
20
  require_relative 'aws-sdk-cloudfront/resource'
21
+ require_relative 'aws-sdk-cloudfront/endpoint_parameters'
22
+ require_relative 'aws-sdk-cloudfront/endpoint_provider'
23
+ require_relative 'aws-sdk-cloudfront/endpoints'
20
24
  require_relative 'aws-sdk-cloudfront/customizations'
21
25
 
22
26
  # This module provides support for Amazon CloudFront. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-cloudfront/customizations'
49
53
  # @!group service
50
54
  module Aws::CloudFront
51
55
 
52
- GEM_VERSION = '1.67.0'
56
+ GEM_VERSION = '1.69.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudfront
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.67.0
4
+ version: 1.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-24 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -60,7 +60,11 @@ files:
60
60
  - lib/aws-sdk-cloudfront/client_api.rb
61
61
  - lib/aws-sdk-cloudfront/cookie_signer.rb
62
62
  - lib/aws-sdk-cloudfront/customizations.rb
63
+ - lib/aws-sdk-cloudfront/endpoint_parameters.rb
64
+ - lib/aws-sdk-cloudfront/endpoint_provider.rb
65
+ - lib/aws-sdk-cloudfront/endpoints.rb
63
66
  - lib/aws-sdk-cloudfront/errors.rb
67
+ - lib/aws-sdk-cloudfront/plugins/endpoints.rb
64
68
  - lib/aws-sdk-cloudfront/resource.rb
65
69
  - lib/aws-sdk-cloudfront/signer.rb
66
70
  - lib/aws-sdk-cloudfront/types.rb