aws-sdk-cloudfront 1.83.0 → 1.86.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.
@@ -48,6 +48,7 @@ module Aws::CloudFront
48
48
  CachePolicyType = Shapes::StringShape.new(name: 'CachePolicyType')
49
49
  CachedMethods = Shapes::StructureShape.new(name: 'CachedMethods')
50
50
  CannotChangeImmutablePublicKeyFields = Shapes::StructureShape.new(name: 'CannotChangeImmutablePublicKeyFields')
51
+ CannotDeleteEntityWhileInUse = Shapes::StructureShape.new(name: 'CannotDeleteEntityWhileInUse')
51
52
  CertificateSource = Shapes::StringShape.new(name: 'CertificateSource')
52
53
  CloudFrontOriginAccessIdentity = Shapes::StructureShape.new(name: 'CloudFrontOriginAccessIdentity')
53
54
  CloudFrontOriginAccessIdentityAlreadyExists = Shapes::StructureShape.new(name: 'CloudFrontOriginAccessIdentityAlreadyExists')
@@ -99,6 +100,8 @@ module Aws::CloudFront
99
100
  CreateInvalidationResult = Shapes::StructureShape.new(name: 'CreateInvalidationResult')
100
101
  CreateKeyGroupRequest = Shapes::StructureShape.new(name: 'CreateKeyGroupRequest')
101
102
  CreateKeyGroupResult = Shapes::StructureShape.new(name: 'CreateKeyGroupResult')
103
+ CreateKeyValueStoreRequest = Shapes::StructureShape.new(name: 'CreateKeyValueStoreRequest')
104
+ CreateKeyValueStoreResult = Shapes::StructureShape.new(name: 'CreateKeyValueStoreResult')
102
105
  CreateMonitoringSubscriptionRequest = Shapes::StructureShape.new(name: 'CreateMonitoringSubscriptionRequest')
103
106
  CreateMonitoringSubscriptionResult = Shapes::StructureShape.new(name: 'CreateMonitoringSubscriptionResult')
104
107
  CreateOriginAccessControlRequest = Shapes::StructureShape.new(name: 'CreateOriginAccessControlRequest')
@@ -129,6 +132,7 @@ module Aws::CloudFront
129
132
  DeleteFieldLevelEncryptionProfileRequest = Shapes::StructureShape.new(name: 'DeleteFieldLevelEncryptionProfileRequest')
130
133
  DeleteFunctionRequest = Shapes::StructureShape.new(name: 'DeleteFunctionRequest')
131
134
  DeleteKeyGroupRequest = Shapes::StructureShape.new(name: 'DeleteKeyGroupRequest')
135
+ DeleteKeyValueStoreRequest = Shapes::StructureShape.new(name: 'DeleteKeyValueStoreRequest')
132
136
  DeleteMonitoringSubscriptionRequest = Shapes::StructureShape.new(name: 'DeleteMonitoringSubscriptionRequest')
133
137
  DeleteMonitoringSubscriptionResult = Shapes::StructureShape.new(name: 'DeleteMonitoringSubscriptionResult')
134
138
  DeleteOriginAccessControlRequest = Shapes::StructureShape.new(name: 'DeleteOriginAccessControlRequest')
@@ -139,6 +143,8 @@ module Aws::CloudFront
139
143
  DeleteStreamingDistributionRequest = Shapes::StructureShape.new(name: 'DeleteStreamingDistributionRequest')
140
144
  DescribeFunctionRequest = Shapes::StructureShape.new(name: 'DescribeFunctionRequest')
141
145
  DescribeFunctionResult = Shapes::StructureShape.new(name: 'DescribeFunctionResult')
146
+ DescribeKeyValueStoreRequest = Shapes::StructureShape.new(name: 'DescribeKeyValueStoreRequest')
147
+ DescribeKeyValueStoreResult = Shapes::StructureShape.new(name: 'DescribeKeyValueStoreResult')
142
148
  Distribution = Shapes::StructureShape.new(name: 'Distribution')
143
149
  DistributionAlreadyExists = Shapes::StructureShape.new(name: 'DistributionAlreadyExists')
144
150
  DistributionConfig = Shapes::StructureShape.new(name: 'DistributionConfig')
@@ -154,6 +160,10 @@ module Aws::CloudFront
154
160
  EncryptionEntityList = Shapes::ListShape.new(name: 'EncryptionEntityList')
155
161
  EndPoint = Shapes::StructureShape.new(name: 'EndPoint')
156
162
  EndPointList = Shapes::ListShape.new(name: 'EndPointList')
163
+ EntityAlreadyExists = Shapes::StructureShape.new(name: 'EntityAlreadyExists')
164
+ EntityLimitExceeded = Shapes::StructureShape.new(name: 'EntityLimitExceeded')
165
+ EntityNotFound = Shapes::StructureShape.new(name: 'EntityNotFound')
166
+ EntitySizeLimitExceeded = Shapes::StructureShape.new(name: 'EntitySizeLimitExceeded')
157
167
  EventType = Shapes::StringShape.new(name: 'EventType')
158
168
  FieldLevelEncryption = Shapes::StructureShape.new(name: 'FieldLevelEncryption')
159
169
  FieldLevelEncryptionConfig = Shapes::StructureShape.new(name: 'FieldLevelEncryptionConfig')
@@ -260,6 +270,8 @@ module Aws::CloudFront
260
270
  IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior = Shapes::StructureShape.new(name: 'IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior')
261
271
  IllegalOriginAccessConfiguration = Shapes::StructureShape.new(name: 'IllegalOriginAccessConfiguration')
262
272
  IllegalUpdate = Shapes::StructureShape.new(name: 'IllegalUpdate')
273
+ ImportSource = Shapes::StructureShape.new(name: 'ImportSource')
274
+ ImportSourceType = Shapes::StringShape.new(name: 'ImportSourceType')
263
275
  InconsistentQuantities = Shapes::StructureShape.new(name: 'InconsistentQuantities')
264
276
  InvalidArgument = Shapes::StructureShape.new(name: 'InvalidArgument')
265
277
  InvalidDefaultRootObject = Shapes::StructureShape.new(name: 'InvalidDefaultRootObject')
@@ -303,6 +315,15 @@ module Aws::CloudFront
303
315
  KeyGroupSummaryList = Shapes::ListShape.new(name: 'KeyGroupSummaryList')
304
316
  KeyPairIdList = Shapes::ListShape.new(name: 'KeyPairIdList')
305
317
  KeyPairIds = Shapes::StructureShape.new(name: 'KeyPairIds')
318
+ KeyValueStore = Shapes::StructureShape.new(name: 'KeyValueStore')
319
+ KeyValueStoreARN = Shapes::StringShape.new(name: 'KeyValueStoreARN')
320
+ KeyValueStoreAssociation = Shapes::StructureShape.new(name: 'KeyValueStoreAssociation')
321
+ KeyValueStoreAssociationList = Shapes::ListShape.new(name: 'KeyValueStoreAssociationList')
322
+ KeyValueStoreAssociations = Shapes::StructureShape.new(name: 'KeyValueStoreAssociations')
323
+ KeyValueStoreComment = Shapes::StringShape.new(name: 'KeyValueStoreComment')
324
+ KeyValueStoreList = Shapes::StructureShape.new(name: 'KeyValueStoreList')
325
+ KeyValueStoreName = Shapes::StringShape.new(name: 'KeyValueStoreName')
326
+ KeyValueStoreSummaryList = Shapes::ListShape.new(name: 'KeyValueStoreSummaryList')
306
327
  KinesisStreamConfig = Shapes::StructureShape.new(name: 'KinesisStreamConfig')
307
328
  LambdaFunctionARN = Shapes::StringShape.new(name: 'LambdaFunctionARN')
308
329
  LambdaFunctionAssociation = Shapes::StructureShape.new(name: 'LambdaFunctionAssociation')
@@ -340,6 +361,8 @@ module Aws::CloudFront
340
361
  ListInvalidationsResult = Shapes::StructureShape.new(name: 'ListInvalidationsResult')
341
362
  ListKeyGroupsRequest = Shapes::StructureShape.new(name: 'ListKeyGroupsRequest')
342
363
  ListKeyGroupsResult = Shapes::StructureShape.new(name: 'ListKeyGroupsResult')
364
+ ListKeyValueStoresRequest = Shapes::StructureShape.new(name: 'ListKeyValueStoresRequest')
365
+ ListKeyValueStoresResult = Shapes::StructureShape.new(name: 'ListKeyValueStoresResult')
343
366
  ListOriginAccessControlsRequest = Shapes::StructureShape.new(name: 'ListOriginAccessControlsRequest')
344
367
  ListOriginAccessControlsResult = Shapes::StructureShape.new(name: 'ListOriginAccessControlsResult')
345
368
  ListOriginRequestPoliciesRequest = Shapes::StructureShape.new(name: 'ListOriginRequestPoliciesRequest')
@@ -596,6 +619,8 @@ module Aws::CloudFront
596
619
  UpdateFunctionResult = Shapes::StructureShape.new(name: 'UpdateFunctionResult')
597
620
  UpdateKeyGroupRequest = Shapes::StructureShape.new(name: 'UpdateKeyGroupRequest')
598
621
  UpdateKeyGroupResult = Shapes::StructureShape.new(name: 'UpdateKeyGroupResult')
622
+ UpdateKeyValueStoreRequest = Shapes::StructureShape.new(name: 'UpdateKeyValueStoreRequest')
623
+ UpdateKeyValueStoreResult = Shapes::StructureShape.new(name: 'UpdateKeyValueStoreResult')
599
624
  UpdateOriginAccessControlRequest = Shapes::StructureShape.new(name: 'UpdateOriginAccessControlRequest')
600
625
  UpdateOriginAccessControlResult = Shapes::StructureShape.new(name: 'UpdateOriginAccessControlResult')
601
626
  UpdateOriginRequestPolicyRequest = Shapes::StructureShape.new(name: 'UpdateOriginRequestPolicyRequest')
@@ -748,6 +773,9 @@ module Aws::CloudFront
748
773
  CannotChangeImmutablePublicKeyFields.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
749
774
  CannotChangeImmutablePublicKeyFields.struct_class = Types::CannotChangeImmutablePublicKeyFields
750
775
 
776
+ CannotDeleteEntityWhileInUse.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
777
+ CannotDeleteEntityWhileInUse.struct_class = Types::CannotDeleteEntityWhileInUse
778
+
751
779
  CloudFrontOriginAccessIdentity.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Id"))
752
780
  CloudFrontOriginAccessIdentity.add_member(:s3_canonical_user_id, Shapes::ShapeRef.new(shape: string, required: true, location_name: "S3CanonicalUserId"))
753
781
  CloudFrontOriginAccessIdentity.add_member(:cloud_front_origin_access_identity_config, Shapes::ShapeRef.new(shape: CloudFrontOriginAccessIdentityConfig, location_name: "CloudFrontOriginAccessIdentityConfig"))
@@ -985,6 +1013,18 @@ module Aws::CloudFront
985
1013
  CreateKeyGroupResult[:payload] = :key_group
986
1014
  CreateKeyGroupResult[:payload_member] = CreateKeyGroupResult.member(:key_group)
987
1015
 
1016
+ CreateKeyValueStoreRequest.add_member(:name, Shapes::ShapeRef.new(shape: KeyValueStoreName, required: true, location_name: "Name"))
1017
+ CreateKeyValueStoreRequest.add_member(:comment, Shapes::ShapeRef.new(shape: KeyValueStoreComment, location_name: "Comment"))
1018
+ CreateKeyValueStoreRequest.add_member(:import_source, Shapes::ShapeRef.new(shape: ImportSource, location_name: "ImportSource"))
1019
+ CreateKeyValueStoreRequest.struct_class = Types::CreateKeyValueStoreRequest
1020
+
1021
+ CreateKeyValueStoreResult.add_member(:key_value_store, Shapes::ShapeRef.new(shape: KeyValueStore, location_name: "KeyValueStore"))
1022
+ CreateKeyValueStoreResult.add_member(:etag, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "ETag"))
1023
+ CreateKeyValueStoreResult.add_member(:location, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "Location"))
1024
+ CreateKeyValueStoreResult.struct_class = Types::CreateKeyValueStoreResult
1025
+ CreateKeyValueStoreResult[:payload] = :key_value_store
1026
+ CreateKeyValueStoreResult[:payload_member] = CreateKeyValueStoreResult.member(:key_value_store)
1027
+
988
1028
  CreateMonitoringSubscriptionRequest.add_member(:distribution_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "DistributionId"))
989
1029
  CreateMonitoringSubscriptionRequest.add_member(:monitoring_subscription, Shapes::ShapeRef.new(shape: MonitoringSubscription, required: true, location_name: "MonitoringSubscription", metadata: {"xmlNamespace"=>{"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}))
990
1030
  CreateMonitoringSubscriptionRequest.struct_class = Types::CreateMonitoringSubscriptionRequest
@@ -1153,6 +1193,10 @@ module Aws::CloudFront
1153
1193
  DeleteKeyGroupRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
1154
1194
  DeleteKeyGroupRequest.struct_class = Types::DeleteKeyGroupRequest
1155
1195
 
1196
+ DeleteKeyValueStoreRequest.add_member(:name, Shapes::ShapeRef.new(shape: KeyValueStoreName, required: true, location: "uri", location_name: "Name"))
1197
+ DeleteKeyValueStoreRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
1198
+ DeleteKeyValueStoreRequest.struct_class = Types::DeleteKeyValueStoreRequest
1199
+
1156
1200
  DeleteMonitoringSubscriptionRequest.add_member(:distribution_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "DistributionId"))
1157
1201
  DeleteMonitoringSubscriptionRequest.struct_class = Types::DeleteMonitoringSubscriptionRequest
1158
1202
 
@@ -1192,6 +1236,15 @@ module Aws::CloudFront
1192
1236
  DescribeFunctionResult[:payload] = :function_summary
1193
1237
  DescribeFunctionResult[:payload_member] = DescribeFunctionResult.member(:function_summary)
1194
1238
 
1239
+ DescribeKeyValueStoreRequest.add_member(:name, Shapes::ShapeRef.new(shape: KeyValueStoreName, required: true, location: "uri", location_name: "Name"))
1240
+ DescribeKeyValueStoreRequest.struct_class = Types::DescribeKeyValueStoreRequest
1241
+
1242
+ DescribeKeyValueStoreResult.add_member(:key_value_store, Shapes::ShapeRef.new(shape: KeyValueStore, location_name: "KeyValueStore"))
1243
+ DescribeKeyValueStoreResult.add_member(:etag, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "ETag"))
1244
+ DescribeKeyValueStoreResult.struct_class = Types::DescribeKeyValueStoreResult
1245
+ DescribeKeyValueStoreResult[:payload] = :key_value_store
1246
+ DescribeKeyValueStoreResult[:payload_member] = DescribeKeyValueStoreResult.member(:key_value_store)
1247
+
1195
1248
  Distribution.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Id"))
1196
1249
  Distribution.add_member(:arn, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ARN"))
1197
1250
  Distribution.add_member(:status, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Status"))
@@ -1295,6 +1348,18 @@ module Aws::CloudFront
1295
1348
 
1296
1349
  EndPointList.member = Shapes::ShapeRef.new(shape: EndPoint)
1297
1350
 
1351
+ EntityAlreadyExists.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1352
+ EntityAlreadyExists.struct_class = Types::EntityAlreadyExists
1353
+
1354
+ EntityLimitExceeded.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1355
+ EntityLimitExceeded.struct_class = Types::EntityLimitExceeded
1356
+
1357
+ EntityNotFound.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1358
+ EntityNotFound.struct_class = Types::EntityNotFound
1359
+
1360
+ EntitySizeLimitExceeded.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1361
+ EntitySizeLimitExceeded.struct_class = Types::EntitySizeLimitExceeded
1362
+
1298
1363
  FieldLevelEncryption.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Id"))
1299
1364
  FieldLevelEncryption.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: timestamp, required: true, location_name: "LastModifiedTime"))
1300
1365
  FieldLevelEncryption.add_member(:field_level_encryption_config, Shapes::ShapeRef.new(shape: FieldLevelEncryptionConfig, required: true, location_name: "FieldLevelEncryptionConfig"))
@@ -1391,6 +1456,7 @@ module Aws::CloudFront
1391
1456
 
1392
1457
  FunctionConfig.add_member(:comment, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Comment"))
1393
1458
  FunctionConfig.add_member(:runtime, Shapes::ShapeRef.new(shape: FunctionRuntime, required: true, location_name: "Runtime"))
1459
+ FunctionConfig.add_member(:key_value_store_associations, Shapes::ShapeRef.new(shape: KeyValueStoreAssociations, location_name: "KeyValueStoreAssociations"))
1394
1460
  FunctionConfig.struct_class = Types::FunctionConfig
1395
1461
 
1396
1462
  FunctionExecutionLogList.member = Shapes::ShapeRef.new(shape: string)
@@ -1695,6 +1761,10 @@ module Aws::CloudFront
1695
1761
  IllegalUpdate.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1696
1762
  IllegalUpdate.struct_class = Types::IllegalUpdate
1697
1763
 
1764
+ ImportSource.add_member(:source_type, Shapes::ShapeRef.new(shape: ImportSourceType, required: true, location_name: "SourceType"))
1765
+ ImportSource.add_member(:source_arn, Shapes::ShapeRef.new(shape: string, required: true, location_name: "SourceARN"))
1766
+ ImportSource.struct_class = Types::ImportSource
1767
+
1698
1768
  InconsistentQuantities.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1699
1769
  InconsistentQuantities.struct_class = Types::InconsistentQuantities
1700
1770
 
@@ -1837,6 +1907,31 @@ module Aws::CloudFront
1837
1907
  KeyPairIds.add_member(:items, Shapes::ShapeRef.new(shape: KeyPairIdList, location_name: "Items"))
1838
1908
  KeyPairIds.struct_class = Types::KeyPairIds
1839
1909
 
1910
+ KeyValueStore.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Name"))
1911
+ KeyValueStore.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Id"))
1912
+ KeyValueStore.add_member(:comment, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Comment"))
1913
+ KeyValueStore.add_member(:arn, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ARN"))
1914
+ KeyValueStore.add_member(:status, Shapes::ShapeRef.new(shape: string, location_name: "Status"))
1915
+ KeyValueStore.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: timestamp, required: true, location_name: "LastModifiedTime"))
1916
+ KeyValueStore.struct_class = Types::KeyValueStore
1917
+
1918
+ KeyValueStoreAssociation.add_member(:key_value_store_arn, Shapes::ShapeRef.new(shape: KeyValueStoreARN, required: true, location_name: "KeyValueStoreARN"))
1919
+ KeyValueStoreAssociation.struct_class = Types::KeyValueStoreAssociation
1920
+
1921
+ KeyValueStoreAssociationList.member = Shapes::ShapeRef.new(shape: KeyValueStoreAssociation, location_name: "KeyValueStoreAssociation")
1922
+
1923
+ KeyValueStoreAssociations.add_member(:quantity, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "Quantity"))
1924
+ KeyValueStoreAssociations.add_member(:items, Shapes::ShapeRef.new(shape: KeyValueStoreAssociationList, location_name: "Items"))
1925
+ KeyValueStoreAssociations.struct_class = Types::KeyValueStoreAssociations
1926
+
1927
+ KeyValueStoreList.add_member(:next_marker, Shapes::ShapeRef.new(shape: string, location_name: "NextMarker"))
1928
+ KeyValueStoreList.add_member(:max_items, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "MaxItems"))
1929
+ KeyValueStoreList.add_member(:quantity, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "Quantity"))
1930
+ KeyValueStoreList.add_member(:items, Shapes::ShapeRef.new(shape: KeyValueStoreSummaryList, location_name: "Items"))
1931
+ KeyValueStoreList.struct_class = Types::KeyValueStoreList
1932
+
1933
+ KeyValueStoreSummaryList.member = Shapes::ShapeRef.new(shape: KeyValueStore, location_name: "KeyValueStore")
1934
+
1840
1935
  KinesisStreamConfig.add_member(:role_arn, Shapes::ShapeRef.new(shape: string, required: true, location_name: "RoleARN"))
1841
1936
  KinesisStreamConfig.add_member(:stream_arn, Shapes::ShapeRef.new(shape: string, required: true, location_name: "StreamARN"))
1842
1937
  KinesisStreamConfig.struct_class = Types::KinesisStreamConfig
@@ -2008,6 +2103,16 @@ module Aws::CloudFront
2008
2103
  ListKeyGroupsResult[:payload] = :key_group_list
2009
2104
  ListKeyGroupsResult[:payload_member] = ListKeyGroupsResult.member(:key_group_list)
2010
2105
 
2106
+ ListKeyValueStoresRequest.add_member(:marker, Shapes::ShapeRef.new(shape: string, location: "querystring", location_name: "Marker"))
2107
+ ListKeyValueStoresRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: integer, location: "querystring", location_name: "MaxItems"))
2108
+ ListKeyValueStoresRequest.add_member(:status, Shapes::ShapeRef.new(shape: string, location: "querystring", location_name: "Status"))
2109
+ ListKeyValueStoresRequest.struct_class = Types::ListKeyValueStoresRequest
2110
+
2111
+ ListKeyValueStoresResult.add_member(:key_value_store_list, Shapes::ShapeRef.new(shape: KeyValueStoreList, location_name: "KeyValueStoreList"))
2112
+ ListKeyValueStoresResult.struct_class = Types::ListKeyValueStoresResult
2113
+ ListKeyValueStoresResult[:payload] = :key_value_store_list
2114
+ ListKeyValueStoresResult[:payload_member] = ListKeyValueStoresResult.member(:key_value_store_list)
2115
+
2011
2116
  ListOriginAccessControlsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: string, location: "querystring", location_name: "Marker"))
2012
2117
  ListOriginAccessControlsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: integer, location: "querystring", location_name: "MaxItems"))
2013
2118
  ListOriginAccessControlsRequest.struct_class = Types::ListOriginAccessControlsRequest
@@ -2946,6 +3051,17 @@ module Aws::CloudFront
2946
3051
  UpdateKeyGroupResult[:payload] = :key_group
2947
3052
  UpdateKeyGroupResult[:payload_member] = UpdateKeyGroupResult.member(:key_group)
2948
3053
 
3054
+ UpdateKeyValueStoreRequest.add_member(:name, Shapes::ShapeRef.new(shape: KeyValueStoreName, required: true, location: "uri", location_name: "Name"))
3055
+ UpdateKeyValueStoreRequest.add_member(:comment, Shapes::ShapeRef.new(shape: KeyValueStoreComment, required: true, location_name: "Comment"))
3056
+ UpdateKeyValueStoreRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
3057
+ UpdateKeyValueStoreRequest.struct_class = Types::UpdateKeyValueStoreRequest
3058
+
3059
+ UpdateKeyValueStoreResult.add_member(:key_value_store, Shapes::ShapeRef.new(shape: KeyValueStore, location_name: "KeyValueStore"))
3060
+ UpdateKeyValueStoreResult.add_member(:etag, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "ETag"))
3061
+ UpdateKeyValueStoreResult.struct_class = Types::UpdateKeyValueStoreResult
3062
+ UpdateKeyValueStoreResult[:payload] = :key_value_store
3063
+ UpdateKeyValueStoreResult[:payload_member] = UpdateKeyValueStoreResult.member(:key_value_store)
3064
+
2949
3065
  UpdateOriginAccessControlRequest.add_member(:origin_access_control_config, Shapes::ShapeRef.new(shape: OriginAccessControlConfig, required: true, location_name: "OriginAccessControlConfig", metadata: {"xmlNamespace"=>{"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}))
2950
3066
  UpdateOriginAccessControlRequest.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Id"))
2951
3067
  UpdateOriginAccessControlRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
@@ -3405,6 +3521,24 @@ module Aws::CloudFront
3405
3521
  o.errors << Shapes::ShapeRef.new(shape: TooManyPublicKeysInKeyGroup)
3406
3522
  end)
3407
3523
 
3524
+ api.add_operation(:create_key_value_store, Seahorse::Model::Operation.new.tap do |o|
3525
+ o.name = "CreateKeyValueStore2020_05_31"
3526
+ o.http_method = "POST"
3527
+ o.http_request_uri = "/2020-05-31/key-value-store/"
3528
+ o.input = Shapes::ShapeRef.new(shape: CreateKeyValueStoreRequest,
3529
+ location_name: "CreateKeyValueStoreRequest",
3530
+ metadata: {
3531
+ "xmlNamespace" => {"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}
3532
+ }
3533
+ )
3534
+ o.output = Shapes::ShapeRef.new(shape: CreateKeyValueStoreResult)
3535
+ o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
3536
+ o.errors << Shapes::ShapeRef.new(shape: EntityLimitExceeded)
3537
+ o.errors << Shapes::ShapeRef.new(shape: EntityAlreadyExists)
3538
+ o.errors << Shapes::ShapeRef.new(shape: EntitySizeLimitExceeded)
3539
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
3540
+ end)
3541
+
3408
3542
  api.add_operation(:create_monitoring_subscription, Seahorse::Model::Operation.new.tap do |o|
3409
3543
  o.name = "CreateMonitoringSubscription2020_05_31"
3410
3544
  o.http_method = "POST"
@@ -3636,6 +3770,19 @@ module Aws::CloudFront
3636
3770
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUse)
3637
3771
  end)
3638
3772
 
3773
+ api.add_operation(:delete_key_value_store, Seahorse::Model::Operation.new.tap do |o|
3774
+ o.name = "DeleteKeyValueStore2020_05_31"
3775
+ o.http_method = "DELETE"
3776
+ o.http_request_uri = "/2020-05-31/key-value-store/{Name}"
3777
+ o.input = Shapes::ShapeRef.new(shape: DeleteKeyValueStoreRequest)
3778
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
3779
+ o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
3780
+ o.errors << Shapes::ShapeRef.new(shape: InvalidIfMatchVersion)
3781
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFound)
3782
+ o.errors << Shapes::ShapeRef.new(shape: CannotDeleteEntityWhileInUse)
3783
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailed)
3784
+ end)
3785
+
3639
3786
  api.add_operation(:delete_monitoring_subscription, Seahorse::Model::Operation.new.tap do |o|
3640
3787
  o.name = "DeleteMonitoringSubscription2020_05_31"
3641
3788
  o.http_method = "DELETE"
@@ -3742,6 +3889,17 @@ module Aws::CloudFront
3742
3889
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperation)
3743
3890
  end)
3744
3891
 
3892
+ api.add_operation(:describe_key_value_store, Seahorse::Model::Operation.new.tap do |o|
3893
+ o.name = "DescribeKeyValueStore2020_05_31"
3894
+ o.http_method = "GET"
3895
+ o.http_request_uri = "/2020-05-31/key-value-store/{Name}"
3896
+ o.input = Shapes::ShapeRef.new(shape: DescribeKeyValueStoreRequest)
3897
+ o.output = Shapes::ShapeRef.new(shape: DescribeKeyValueStoreResult)
3898
+ o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
3899
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
3900
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFound)
3901
+ end)
3902
+
3745
3903
  api.add_operation(:get_cache_policy, Seahorse::Model::Operation.new.tap do |o|
3746
3904
  o.name = "GetCachePolicy2020_05_31"
3747
3905
  o.http_method = "GET"
@@ -4215,6 +4373,22 @@ module Aws::CloudFront
4215
4373
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
4216
4374
  end)
4217
4375
 
4376
+ api.add_operation(:list_key_value_stores, Seahorse::Model::Operation.new.tap do |o|
4377
+ o.name = "ListKeyValueStores2020_05_31"
4378
+ o.http_method = "GET"
4379
+ o.http_request_uri = "/2020-05-31/key-value-store"
4380
+ o.input = Shapes::ShapeRef.new(shape: ListKeyValueStoresRequest)
4381
+ o.output = Shapes::ShapeRef.new(shape: ListKeyValueStoresResult)
4382
+ o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
4383
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
4384
+ o[:pager] = Aws::Pager.new(
4385
+ limit_key: "max_items",
4386
+ tokens: {
4387
+ "key_value_store_list.next_marker" => "marker"
4388
+ }
4389
+ )
4390
+ end)
4391
+
4218
4392
  api.add_operation(:list_origin_access_controls, Seahorse::Model::Operation.new.tap do |o|
4219
4393
  o.name = "ListOriginAccessControls2020_05_31"
4220
4394
  o.http_method = "GET"
@@ -4614,6 +4788,24 @@ module Aws::CloudFront
4614
4788
  o.errors << Shapes::ShapeRef.new(shape: TooManyPublicKeysInKeyGroup)
4615
4789
  end)
4616
4790
 
4791
+ api.add_operation(:update_key_value_store, Seahorse::Model::Operation.new.tap do |o|
4792
+ o.name = "UpdateKeyValueStore2020_05_31"
4793
+ o.http_method = "PUT"
4794
+ o.http_request_uri = "/2020-05-31/key-value-store/{Name}"
4795
+ o.input = Shapes::ShapeRef.new(shape: UpdateKeyValueStoreRequest,
4796
+ location_name: "UpdateKeyValueStoreRequest",
4797
+ metadata: {
4798
+ "xmlNamespace" => {"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}
4799
+ }
4800
+ )
4801
+ o.output = Shapes::ShapeRef.new(shape: UpdateKeyValueStoreResult)
4802
+ o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
4803
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
4804
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFound)
4805
+ o.errors << Shapes::ShapeRef.new(shape: InvalidIfMatchVersion)
4806
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailed)
4807
+ end)
4808
+
4617
4809
  api.add_operation(:update_origin_access_control, Seahorse::Model::Operation.new.tap do |o|
4618
4810
  o.name = "UpdateOriginAccessControl2020_05_31"
4619
4811
  o.http_method = "PUT"
@@ -41,7 +41,7 @@ module Aws::CloudFront
41
41
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
42
42
  end
43
43
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
44
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
44
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
45
45
  return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
46
  end
47
47
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -180,6 +180,20 @@ module Aws::CloudFront
180
180
  end
181
181
  end
182
182
 
183
+ class CreateKeyValueStore
184
+ def self.build(context)
185
+ unless context.config.regional_endpoint
186
+ endpoint = context.config.endpoint.to_s
187
+ end
188
+ Aws::CloudFront::EndpointParameters.new(
189
+ region: context.config.region,
190
+ use_dual_stack: context.config.use_dualstack_endpoint,
191
+ use_fips: context.config.use_fips_endpoint,
192
+ endpoint: endpoint,
193
+ )
194
+ end
195
+ end
196
+
183
197
  class CreateMonitoringSubscription
184
198
  def self.build(context)
185
199
  unless context.config.regional_endpoint
@@ -404,6 +418,20 @@ module Aws::CloudFront
404
418
  end
405
419
  end
406
420
 
421
+ class DeleteKeyValueStore
422
+ def self.build(context)
423
+ unless context.config.regional_endpoint
424
+ endpoint = context.config.endpoint.to_s
425
+ end
426
+ Aws::CloudFront::EndpointParameters.new(
427
+ region: context.config.region,
428
+ use_dual_stack: context.config.use_dualstack_endpoint,
429
+ use_fips: context.config.use_fips_endpoint,
430
+ endpoint: endpoint,
431
+ )
432
+ end
433
+ end
434
+
407
435
  class DeleteMonitoringSubscription
408
436
  def self.build(context)
409
437
  unless context.config.regional_endpoint
@@ -516,6 +544,20 @@ module Aws::CloudFront
516
544
  end
517
545
  end
518
546
 
547
+ class DescribeKeyValueStore
548
+ def self.build(context)
549
+ unless context.config.regional_endpoint
550
+ endpoint = context.config.endpoint.to_s
551
+ end
552
+ Aws::CloudFront::EndpointParameters.new(
553
+ region: context.config.region,
554
+ use_dual_stack: context.config.use_dualstack_endpoint,
555
+ use_fips: context.config.use_fips_endpoint,
556
+ endpoint: endpoint,
557
+ )
558
+ end
559
+ end
560
+
519
561
  class GetCachePolicy
520
562
  def self.build(context)
521
563
  unless context.config.regional_endpoint
@@ -1132,6 +1174,20 @@ module Aws::CloudFront
1132
1174
  end
1133
1175
  end
1134
1176
 
1177
+ class ListKeyValueStores
1178
+ def self.build(context)
1179
+ unless context.config.regional_endpoint
1180
+ endpoint = context.config.endpoint.to_s
1181
+ end
1182
+ Aws::CloudFront::EndpointParameters.new(
1183
+ region: context.config.region,
1184
+ use_dual_stack: context.config.use_dualstack_endpoint,
1185
+ use_fips: context.config.use_fips_endpoint,
1186
+ endpoint: endpoint,
1187
+ )
1188
+ end
1189
+ end
1190
+
1135
1191
  class ListOriginAccessControls
1136
1192
  def self.build(context)
1137
1193
  unless context.config.regional_endpoint
@@ -1412,6 +1468,20 @@ module Aws::CloudFront
1412
1468
  end
1413
1469
  end
1414
1470
 
1471
+ class UpdateKeyValueStore
1472
+ def self.build(context)
1473
+ unless context.config.regional_endpoint
1474
+ endpoint = context.config.endpoint.to_s
1475
+ end
1476
+ Aws::CloudFront::EndpointParameters.new(
1477
+ region: context.config.region,
1478
+ use_dual_stack: context.config.use_dualstack_endpoint,
1479
+ use_fips: context.config.use_fips_endpoint,
1480
+ endpoint: endpoint,
1481
+ )
1482
+ end
1483
+ end
1484
+
1415
1485
  class UpdateOriginAccessControl
1416
1486
  def self.build(context)
1417
1487
  unless context.config.regional_endpoint
@@ -33,12 +33,17 @@ module Aws::CloudFront
33
33
  # * {CachePolicyAlreadyExists}
34
34
  # * {CachePolicyInUse}
35
35
  # * {CannotChangeImmutablePublicKeyFields}
36
+ # * {CannotDeleteEntityWhileInUse}
36
37
  # * {CloudFrontOriginAccessIdentityAlreadyExists}
37
38
  # * {CloudFrontOriginAccessIdentityInUse}
38
39
  # * {ContinuousDeploymentPolicyAlreadyExists}
39
40
  # * {ContinuousDeploymentPolicyInUse}
40
41
  # * {DistributionAlreadyExists}
41
42
  # * {DistributionNotDisabled}
43
+ # * {EntityAlreadyExists}
44
+ # * {EntityLimitExceeded}
45
+ # * {EntityNotFound}
46
+ # * {EntitySizeLimitExceeded}
42
47
  # * {FieldLevelEncryptionConfigAlreadyExists}
43
48
  # * {FieldLevelEncryptionConfigInUse}
44
49
  # * {FieldLevelEncryptionProfileAlreadyExists}
@@ -268,6 +273,21 @@ module Aws::CloudFront
268
273
  end
269
274
  end
270
275
 
276
+ class CannotDeleteEntityWhileInUse < ServiceError
277
+
278
+ # @param [Seahorse::Client::RequestContext] context
279
+ # @param [String] message
280
+ # @param [Aws::CloudFront::Types::CannotDeleteEntityWhileInUse] data
281
+ def initialize(context, message, data = Aws::EmptyStructure.new)
282
+ super(context, message, data)
283
+ end
284
+
285
+ # @return [String]
286
+ def message
287
+ @message || @data[:message]
288
+ end
289
+ end
290
+
271
291
  class CloudFrontOriginAccessIdentityAlreadyExists < ServiceError
272
292
 
273
293
  # @param [Seahorse::Client::RequestContext] context
@@ -358,6 +378,66 @@ module Aws::CloudFront
358
378
  end
359
379
  end
360
380
 
381
+ class EntityAlreadyExists < ServiceError
382
+
383
+ # @param [Seahorse::Client::RequestContext] context
384
+ # @param [String] message
385
+ # @param [Aws::CloudFront::Types::EntityAlreadyExists] data
386
+ def initialize(context, message, data = Aws::EmptyStructure.new)
387
+ super(context, message, data)
388
+ end
389
+
390
+ # @return [String]
391
+ def message
392
+ @message || @data[:message]
393
+ end
394
+ end
395
+
396
+ class EntityLimitExceeded < ServiceError
397
+
398
+ # @param [Seahorse::Client::RequestContext] context
399
+ # @param [String] message
400
+ # @param [Aws::CloudFront::Types::EntityLimitExceeded] data
401
+ def initialize(context, message, data = Aws::EmptyStructure.new)
402
+ super(context, message, data)
403
+ end
404
+
405
+ # @return [String]
406
+ def message
407
+ @message || @data[:message]
408
+ end
409
+ end
410
+
411
+ class EntityNotFound < ServiceError
412
+
413
+ # @param [Seahorse::Client::RequestContext] context
414
+ # @param [String] message
415
+ # @param [Aws::CloudFront::Types::EntityNotFound] data
416
+ def initialize(context, message, data = Aws::EmptyStructure.new)
417
+ super(context, message, data)
418
+ end
419
+
420
+ # @return [String]
421
+ def message
422
+ @message || @data[:message]
423
+ end
424
+ end
425
+
426
+ class EntitySizeLimitExceeded < ServiceError
427
+
428
+ # @param [Seahorse::Client::RequestContext] context
429
+ # @param [String] message
430
+ # @param [Aws::CloudFront::Types::EntitySizeLimitExceeded] data
431
+ def initialize(context, message, data = Aws::EmptyStructure.new)
432
+ super(context, message, data)
433
+ end
434
+
435
+ # @return [String]
436
+ def message
437
+ @message || @data[:message]
438
+ end
439
+ end
440
+
361
441
  class FieldLevelEncryptionConfigAlreadyExists < ServiceError
362
442
 
363
443
  # @param [Seahorse::Client::RequestContext] context
@@ -25,16 +25,17 @@ module Aws::CloudFront
25
25
  # @api private
26
26
  class Handler < Seahorse::Client::Handler
27
27
  def call(context)
28
- # If endpoint was discovered, do not resolve or apply the endpoint.
29
28
  unless context[:discovered_endpoint]
30
29
  params = parameters_for_operation(context)
31
30
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
31
 
33
32
  context.http_request.endpoint = endpoint.url
34
33
  apply_endpoint_headers(context, endpoint.headers)
34
+
35
+ context[:endpoint_params] = params
36
+ context[:endpoint_properties] = endpoint.properties
35
37
  end
36
38
 
37
- context[:endpoint_params] = params
38
39
  context[:auth_scheme] =
39
40
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
41
 
@@ -80,6 +81,8 @@ module Aws::CloudFront
80
81
  Aws::CloudFront::Endpoints::CreateInvalidation.build(context)
81
82
  when :create_key_group
82
83
  Aws::CloudFront::Endpoints::CreateKeyGroup.build(context)
84
+ when :create_key_value_store
85
+ Aws::CloudFront::Endpoints::CreateKeyValueStore.build(context)
83
86
  when :create_monitoring_subscription
84
87
  Aws::CloudFront::Endpoints::CreateMonitoringSubscription.build(context)
85
88
  when :create_origin_access_control
@@ -112,6 +115,8 @@ module Aws::CloudFront
112
115
  Aws::CloudFront::Endpoints::DeleteFunction.build(context)
113
116
  when :delete_key_group
114
117
  Aws::CloudFront::Endpoints::DeleteKeyGroup.build(context)
118
+ when :delete_key_value_store
119
+ Aws::CloudFront::Endpoints::DeleteKeyValueStore.build(context)
115
120
  when :delete_monitoring_subscription
116
121
  Aws::CloudFront::Endpoints::DeleteMonitoringSubscription.build(context)
117
122
  when :delete_origin_access_control
@@ -128,6 +133,8 @@ module Aws::CloudFront
128
133
  Aws::CloudFront::Endpoints::DeleteStreamingDistribution.build(context)
129
134
  when :describe_function
130
135
  Aws::CloudFront::Endpoints::DescribeFunction.build(context)
136
+ when :describe_key_value_store
137
+ Aws::CloudFront::Endpoints::DescribeKeyValueStore.build(context)
131
138
  when :get_cache_policy
132
139
  Aws::CloudFront::Endpoints::GetCachePolicy.build(context)
133
140
  when :get_cache_policy_config
@@ -216,6 +223,8 @@ module Aws::CloudFront
216
223
  Aws::CloudFront::Endpoints::ListInvalidations.build(context)
217
224
  when :list_key_groups
218
225
  Aws::CloudFront::Endpoints::ListKeyGroups.build(context)
226
+ when :list_key_value_stores
227
+ Aws::CloudFront::Endpoints::ListKeyValueStores.build(context)
219
228
  when :list_origin_access_controls
220
229
  Aws::CloudFront::Endpoints::ListOriginAccessControls.build(context)
221
230
  when :list_origin_request_policies
@@ -256,6 +265,8 @@ module Aws::CloudFront
256
265
  Aws::CloudFront::Endpoints::UpdateFunction.build(context)
257
266
  when :update_key_group
258
267
  Aws::CloudFront::Endpoints::UpdateKeyGroup.build(context)
268
+ when :update_key_value_store
269
+ Aws::CloudFront::Endpoints::UpdateKeyValueStore.build(context)
259
270
  when :update_origin_access_control
260
271
  Aws::CloudFront::Endpoints::UpdateOriginAccessControl.build(context)
261
272
  when :update_origin_request_policy