aws-sdk-cloudfront 1.49.0 → 1.50.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.
@@ -71,6 +71,8 @@ module Aws::CloudFront
71
71
  CreateFieldLevelEncryptionConfigResult = Shapes::StructureShape.new(name: 'CreateFieldLevelEncryptionConfigResult')
72
72
  CreateFieldLevelEncryptionProfileRequest = Shapes::StructureShape.new(name: 'CreateFieldLevelEncryptionProfileRequest')
73
73
  CreateFieldLevelEncryptionProfileResult = Shapes::StructureShape.new(name: 'CreateFieldLevelEncryptionProfileResult')
74
+ CreateFunctionRequest = Shapes::StructureShape.new(name: 'CreateFunctionRequest')
75
+ CreateFunctionResult = Shapes::StructureShape.new(name: 'CreateFunctionResult')
74
76
  CreateInvalidationRequest = Shapes::StructureShape.new(name: 'CreateInvalidationRequest')
75
77
  CreateInvalidationResult = Shapes::StructureShape.new(name: 'CreateInvalidationResult')
76
78
  CreateKeyGroupRequest = Shapes::StructureShape.new(name: 'CreateKeyGroupRequest')
@@ -98,6 +100,7 @@ module Aws::CloudFront
98
100
  DeleteDistributionRequest = Shapes::StructureShape.new(name: 'DeleteDistributionRequest')
99
101
  DeleteFieldLevelEncryptionConfigRequest = Shapes::StructureShape.new(name: 'DeleteFieldLevelEncryptionConfigRequest')
100
102
  DeleteFieldLevelEncryptionProfileRequest = Shapes::StructureShape.new(name: 'DeleteFieldLevelEncryptionProfileRequest')
103
+ DeleteFunctionRequest = Shapes::StructureShape.new(name: 'DeleteFunctionRequest')
101
104
  DeleteKeyGroupRequest = Shapes::StructureShape.new(name: 'DeleteKeyGroupRequest')
102
105
  DeleteMonitoringSubscriptionRequest = Shapes::StructureShape.new(name: 'DeleteMonitoringSubscriptionRequest')
103
106
  DeleteMonitoringSubscriptionResult = Shapes::StructureShape.new(name: 'DeleteMonitoringSubscriptionResult')
@@ -105,6 +108,8 @@ module Aws::CloudFront
105
108
  DeletePublicKeyRequest = Shapes::StructureShape.new(name: 'DeletePublicKeyRequest')
106
109
  DeleteRealtimeLogConfigRequest = Shapes::StructureShape.new(name: 'DeleteRealtimeLogConfigRequest')
107
110
  DeleteStreamingDistributionRequest = Shapes::StructureShape.new(name: 'DeleteStreamingDistributionRequest')
111
+ DescribeFunctionRequest = Shapes::StructureShape.new(name: 'DescribeFunctionRequest')
112
+ DescribeFunctionResult = Shapes::StructureShape.new(name: 'DescribeFunctionResult')
108
113
  Distribution = Shapes::StructureShape.new(name: 'Distribution')
109
114
  DistributionAlreadyExists = Shapes::StructureShape.new(name: 'DistributionAlreadyExists')
110
115
  DistributionConfig = Shapes::StructureShape.new(name: 'DistributionConfig')
@@ -141,6 +146,24 @@ module Aws::CloudFront
141
146
  FieldPatterns = Shapes::StructureShape.new(name: 'FieldPatterns')
142
147
  Format = Shapes::StringShape.new(name: 'Format')
143
148
  ForwardedValues = Shapes::StructureShape.new(name: 'ForwardedValues')
149
+ FunctionARN = Shapes::StringShape.new(name: 'FunctionARN')
150
+ FunctionAlreadyExists = Shapes::StructureShape.new(name: 'FunctionAlreadyExists')
151
+ FunctionAssociation = Shapes::StructureShape.new(name: 'FunctionAssociation')
152
+ FunctionAssociationList = Shapes::ListShape.new(name: 'FunctionAssociationList')
153
+ FunctionAssociations = Shapes::StructureShape.new(name: 'FunctionAssociations')
154
+ FunctionBlob = Shapes::BlobShape.new(name: 'FunctionBlob')
155
+ FunctionConfig = Shapes::StructureShape.new(name: 'FunctionConfig')
156
+ FunctionEventObject = Shapes::BlobShape.new(name: 'FunctionEventObject')
157
+ FunctionExecutionLogList = Shapes::ListShape.new(name: 'FunctionExecutionLogList')
158
+ FunctionInUse = Shapes::StructureShape.new(name: 'FunctionInUse')
159
+ FunctionList = Shapes::StructureShape.new(name: 'FunctionList')
160
+ FunctionMetadata = Shapes::StructureShape.new(name: 'FunctionMetadata')
161
+ FunctionName = Shapes::StringShape.new(name: 'FunctionName')
162
+ FunctionRuntime = Shapes::StringShape.new(name: 'FunctionRuntime')
163
+ FunctionSizeLimitExceeded = Shapes::StructureShape.new(name: 'FunctionSizeLimitExceeded')
164
+ FunctionStage = Shapes::StringShape.new(name: 'FunctionStage')
165
+ FunctionSummary = Shapes::StructureShape.new(name: 'FunctionSummary')
166
+ FunctionSummaryList = Shapes::ListShape.new(name: 'FunctionSummaryList')
144
167
  GeoRestriction = Shapes::StructureShape.new(name: 'GeoRestriction')
145
168
  GeoRestrictionType = Shapes::StringShape.new(name: 'GeoRestrictionType')
146
169
  GetCachePolicyConfigRequest = Shapes::StructureShape.new(name: 'GetCachePolicyConfigRequest')
@@ -163,6 +186,8 @@ module Aws::CloudFront
163
186
  GetFieldLevelEncryptionProfileResult = Shapes::StructureShape.new(name: 'GetFieldLevelEncryptionProfileResult')
164
187
  GetFieldLevelEncryptionRequest = Shapes::StructureShape.new(name: 'GetFieldLevelEncryptionRequest')
165
188
  GetFieldLevelEncryptionResult = Shapes::StructureShape.new(name: 'GetFieldLevelEncryptionResult')
189
+ GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
190
+ GetFunctionResult = Shapes::StructureShape.new(name: 'GetFunctionResult')
166
191
  GetInvalidationRequest = Shapes::StructureShape.new(name: 'GetInvalidationRequest')
167
192
  GetInvalidationResult = Shapes::StructureShape.new(name: 'GetInvalidationResult')
168
193
  GetKeyGroupConfigRequest = Shapes::StructureShape.new(name: 'GetKeyGroupConfigRequest')
@@ -197,6 +222,7 @@ module Aws::CloudFront
197
222
  InvalidDefaultRootObject = Shapes::StructureShape.new(name: 'InvalidDefaultRootObject')
198
223
  InvalidErrorCode = Shapes::StructureShape.new(name: 'InvalidErrorCode')
199
224
  InvalidForwardCookies = Shapes::StructureShape.new(name: 'InvalidForwardCookies')
225
+ InvalidFunctionAssociation = Shapes::StructureShape.new(name: 'InvalidFunctionAssociation')
200
226
  InvalidGeoRestrictionParameter = Shapes::StructureShape.new(name: 'InvalidGeoRestrictionParameter')
201
227
  InvalidHeadersForS3Origin = Shapes::StructureShape.new(name: 'InvalidHeadersForS3Origin')
202
228
  InvalidIfMatchVersion = Shapes::StructureShape.new(name: 'InvalidIfMatchVersion')
@@ -257,6 +283,8 @@ module Aws::CloudFront
257
283
  ListFieldLevelEncryptionConfigsResult = Shapes::StructureShape.new(name: 'ListFieldLevelEncryptionConfigsResult')
258
284
  ListFieldLevelEncryptionProfilesRequest = Shapes::StructureShape.new(name: 'ListFieldLevelEncryptionProfilesRequest')
259
285
  ListFieldLevelEncryptionProfilesResult = Shapes::StructureShape.new(name: 'ListFieldLevelEncryptionProfilesResult')
286
+ ListFunctionsRequest = Shapes::StructureShape.new(name: 'ListFunctionsRequest')
287
+ ListFunctionsResult = Shapes::StructureShape.new(name: 'ListFunctionsResult')
260
288
  ListInvalidationsRequest = Shapes::StructureShape.new(name: 'ListInvalidationsRequest')
261
289
  ListInvalidationsResult = Shapes::StructureShape.new(name: 'ListInvalidationsResult')
262
290
  ListKeyGroupsRequest = Shapes::StructureShape.new(name: 'ListKeyGroupsRequest')
@@ -283,6 +311,7 @@ module Aws::CloudFront
283
311
  NoSuchDistribution = Shapes::StructureShape.new(name: 'NoSuchDistribution')
284
312
  NoSuchFieldLevelEncryptionConfig = Shapes::StructureShape.new(name: 'NoSuchFieldLevelEncryptionConfig')
285
313
  NoSuchFieldLevelEncryptionProfile = Shapes::StructureShape.new(name: 'NoSuchFieldLevelEncryptionProfile')
314
+ NoSuchFunctionExists = Shapes::StructureShape.new(name: 'NoSuchFunctionExists')
286
315
  NoSuchInvalidation = Shapes::StructureShape.new(name: 'NoSuchInvalidation')
287
316
  NoSuchOrigin = Shapes::StructureShape.new(name: 'NoSuchOrigin')
288
317
  NoSuchOriginRequestPolicy = Shapes::StructureShape.new(name: 'NoSuchOriginRequestPolicy')
@@ -333,6 +362,8 @@ module Aws::CloudFront
333
362
  PublicKeyList = Shapes::StructureShape.new(name: 'PublicKeyList')
334
363
  PublicKeySummary = Shapes::StructureShape.new(name: 'PublicKeySummary')
335
364
  PublicKeySummaryList = Shapes::ListShape.new(name: 'PublicKeySummaryList')
365
+ PublishFunctionRequest = Shapes::StructureShape.new(name: 'PublishFunctionRequest')
366
+ PublishFunctionResult = Shapes::StructureShape.new(name: 'PublishFunctionResult')
336
367
  QueryArgProfile = Shapes::StructureShape.new(name: 'QueryArgProfile')
337
368
  QueryArgProfileConfig = Shapes::StructureShape.new(name: 'QueryArgProfileConfig')
338
369
  QueryArgProfileEmpty = Shapes::StructureShape.new(name: 'QueryArgProfileEmpty')
@@ -346,6 +377,7 @@ module Aws::CloudFront
346
377
  RealtimeLogConfigAlreadyExists = Shapes::StructureShape.new(name: 'RealtimeLogConfigAlreadyExists')
347
378
  RealtimeLogConfigInUse = Shapes::StructureShape.new(name: 'RealtimeLogConfigInUse')
348
379
  RealtimeLogConfigList = Shapes::ListShape.new(name: 'RealtimeLogConfigList')
380
+ RealtimeLogConfigOwnerMismatch = Shapes::StructureShape.new(name: 'RealtimeLogConfigOwnerMismatch')
349
381
  RealtimeLogConfigs = Shapes::StructureShape.new(name: 'RealtimeLogConfigs')
350
382
  RealtimeMetricsSubscriptionConfig = Shapes::StructureShape.new(name: 'RealtimeMetricsSubscriptionConfig')
351
383
  RealtimeMetricsSubscriptionStatus = Shapes::StringShape.new(name: 'RealtimeMetricsSubscriptionStatus')
@@ -378,6 +410,10 @@ module Aws::CloudFront
378
410
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
379
411
  TagValue = Shapes::StringShape.new(name: 'TagValue')
380
412
  Tags = Shapes::StructureShape.new(name: 'Tags')
413
+ TestFunctionFailed = Shapes::StructureShape.new(name: 'TestFunctionFailed')
414
+ TestFunctionRequest = Shapes::StructureShape.new(name: 'TestFunctionRequest')
415
+ TestFunctionResult = Shapes::StructureShape.new(name: 'TestFunctionResult')
416
+ TestResult = Shapes::StructureShape.new(name: 'TestResult')
381
417
  TooManyCacheBehaviors = Shapes::StructureShape.new(name: 'TooManyCacheBehaviors')
382
418
  TooManyCachePolicies = Shapes::StructureShape.new(name: 'TooManyCachePolicies')
383
419
  TooManyCertificates = Shapes::StructureShape.new(name: 'TooManyCertificates')
@@ -391,6 +427,7 @@ module Aws::CloudFront
391
427
  TooManyDistributionsAssociatedToFieldLevelEncryptionConfig = Shapes::StructureShape.new(name: 'TooManyDistributionsAssociatedToFieldLevelEncryptionConfig')
392
428
  TooManyDistributionsAssociatedToKeyGroup = Shapes::StructureShape.new(name: 'TooManyDistributionsAssociatedToKeyGroup')
393
429
  TooManyDistributionsAssociatedToOriginRequestPolicy = Shapes::StructureShape.new(name: 'TooManyDistributionsAssociatedToOriginRequestPolicy')
430
+ TooManyDistributionsWithFunctionAssociations = Shapes::StructureShape.new(name: 'TooManyDistributionsWithFunctionAssociations')
394
431
  TooManyDistributionsWithLambdaAssociations = Shapes::StructureShape.new(name: 'TooManyDistributionsWithLambdaAssociations')
395
432
  TooManyDistributionsWithSingleFunctionARN = Shapes::StructureShape.new(name: 'TooManyDistributionsWithSingleFunctionARN')
396
433
  TooManyFieldLevelEncryptionConfigs = Shapes::StructureShape.new(name: 'TooManyFieldLevelEncryptionConfigs')
@@ -399,6 +436,8 @@ module Aws::CloudFront
399
436
  TooManyFieldLevelEncryptionFieldPatterns = Shapes::StructureShape.new(name: 'TooManyFieldLevelEncryptionFieldPatterns')
400
437
  TooManyFieldLevelEncryptionProfiles = Shapes::StructureShape.new(name: 'TooManyFieldLevelEncryptionProfiles')
401
438
  TooManyFieldLevelEncryptionQueryArgProfiles = Shapes::StructureShape.new(name: 'TooManyFieldLevelEncryptionQueryArgProfiles')
439
+ TooManyFunctionAssociations = Shapes::StructureShape.new(name: 'TooManyFunctionAssociations')
440
+ TooManyFunctions = Shapes::StructureShape.new(name: 'TooManyFunctions')
402
441
  TooManyHeadersInCachePolicy = Shapes::StructureShape.new(name: 'TooManyHeadersInCachePolicy')
403
442
  TooManyHeadersInForwardedValues = Shapes::StructureShape.new(name: 'TooManyHeadersInForwardedValues')
404
443
  TooManyHeadersInOriginRequestPolicy = Shapes::StructureShape.new(name: 'TooManyHeadersInOriginRequestPolicy')
@@ -424,6 +463,7 @@ module Aws::CloudFront
424
463
  TrustedKeyGroups = Shapes::StructureShape.new(name: 'TrustedKeyGroups')
425
464
  TrustedSignerDoesNotExist = Shapes::StructureShape.new(name: 'TrustedSignerDoesNotExist')
426
465
  TrustedSigners = Shapes::StructureShape.new(name: 'TrustedSigners')
466
+ UnsupportedOperation = Shapes::StructureShape.new(name: 'UnsupportedOperation')
427
467
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
428
468
  UpdateCachePolicyRequest = Shapes::StructureShape.new(name: 'UpdateCachePolicyRequest')
429
469
  UpdateCachePolicyResult = Shapes::StructureShape.new(name: 'UpdateCachePolicyResult')
@@ -435,6 +475,8 @@ module Aws::CloudFront
435
475
  UpdateFieldLevelEncryptionConfigResult = Shapes::StructureShape.new(name: 'UpdateFieldLevelEncryptionConfigResult')
436
476
  UpdateFieldLevelEncryptionProfileRequest = Shapes::StructureShape.new(name: 'UpdateFieldLevelEncryptionProfileRequest')
437
477
  UpdateFieldLevelEncryptionProfileResult = Shapes::StructureShape.new(name: 'UpdateFieldLevelEncryptionProfileResult')
478
+ UpdateFunctionRequest = Shapes::StructureShape.new(name: 'UpdateFunctionRequest')
479
+ UpdateFunctionResult = Shapes::StructureShape.new(name: 'UpdateFunctionResult')
438
480
  UpdateKeyGroupRequest = Shapes::StructureShape.new(name: 'UpdateKeyGroupRequest')
439
481
  UpdateKeyGroupResult = Shapes::StructureShape.new(name: 'UpdateKeyGroupResult')
440
482
  UpdateOriginRequestPolicyRequest = Shapes::StructureShape.new(name: 'UpdateOriginRequestPolicyRequest')
@@ -500,6 +542,7 @@ module Aws::CloudFront
500
542
  CacheBehavior.add_member(:smooth_streaming, Shapes::ShapeRef.new(shape: boolean, location_name: "SmoothStreaming"))
501
543
  CacheBehavior.add_member(:compress, Shapes::ShapeRef.new(shape: boolean, location_name: "Compress"))
502
544
  CacheBehavior.add_member(:lambda_function_associations, Shapes::ShapeRef.new(shape: LambdaFunctionAssociations, location_name: "LambdaFunctionAssociations"))
545
+ CacheBehavior.add_member(:function_associations, Shapes::ShapeRef.new(shape: FunctionAssociations, location_name: "FunctionAssociations"))
503
546
  CacheBehavior.add_member(:field_level_encryption_id, Shapes::ShapeRef.new(shape: string, location_name: "FieldLevelEncryptionId"))
504
547
  CacheBehavior.add_member(:realtime_log_config_arn, Shapes::ShapeRef.new(shape: string, location_name: "RealtimeLogConfigArn"))
505
548
  CacheBehavior.add_member(:cache_policy_id, Shapes::ShapeRef.new(shape: string, location_name: "CachePolicyId"))
@@ -693,6 +736,18 @@ module Aws::CloudFront
693
736
  CreateFieldLevelEncryptionProfileResult[:payload] = :field_level_encryption_profile
694
737
  CreateFieldLevelEncryptionProfileResult[:payload_member] = CreateFieldLevelEncryptionProfileResult.member(:field_level_encryption_profile)
695
738
 
739
+ CreateFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "Name"))
740
+ CreateFunctionRequest.add_member(:function_config, Shapes::ShapeRef.new(shape: FunctionConfig, required: true, location_name: "FunctionConfig"))
741
+ CreateFunctionRequest.add_member(:function_code, Shapes::ShapeRef.new(shape: FunctionBlob, required: true, location_name: "FunctionCode"))
742
+ CreateFunctionRequest.struct_class = Types::CreateFunctionRequest
743
+
744
+ CreateFunctionResult.add_member(:function_summary, Shapes::ShapeRef.new(shape: FunctionSummary, location_name: "FunctionSummary"))
745
+ CreateFunctionResult.add_member(:location, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "Location"))
746
+ CreateFunctionResult.add_member(:etag, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "ETag"))
747
+ CreateFunctionResult.struct_class = Types::CreateFunctionResult
748
+ CreateFunctionResult[:payload] = :function_summary
749
+ CreateFunctionResult[:payload_member] = CreateFunctionResult.member(:function_summary)
750
+
696
751
  CreateInvalidationRequest.add_member(:distribution_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "DistributionId"))
697
752
  CreateInvalidationRequest.add_member(:invalidation_batch, Shapes::ShapeRef.new(shape: InvalidationBatch, required: true, location_name: "InvalidationBatch", metadata: {"xmlNamespace"=>{"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}))
698
753
  CreateInvalidationRequest.struct_class = Types::CreateInvalidationRequest
@@ -817,6 +872,7 @@ module Aws::CloudFront
817
872
  DefaultCacheBehavior.add_member(:smooth_streaming, Shapes::ShapeRef.new(shape: boolean, location_name: "SmoothStreaming"))
818
873
  DefaultCacheBehavior.add_member(:compress, Shapes::ShapeRef.new(shape: boolean, location_name: "Compress"))
819
874
  DefaultCacheBehavior.add_member(:lambda_function_associations, Shapes::ShapeRef.new(shape: LambdaFunctionAssociations, location_name: "LambdaFunctionAssociations"))
875
+ DefaultCacheBehavior.add_member(:function_associations, Shapes::ShapeRef.new(shape: FunctionAssociations, location_name: "FunctionAssociations"))
820
876
  DefaultCacheBehavior.add_member(:field_level_encryption_id, Shapes::ShapeRef.new(shape: string, location_name: "FieldLevelEncryptionId"))
821
877
  DefaultCacheBehavior.add_member(:realtime_log_config_arn, Shapes::ShapeRef.new(shape: string, location_name: "RealtimeLogConfigArn"))
822
878
  DefaultCacheBehavior.add_member(:cache_policy_id, Shapes::ShapeRef.new(shape: string, location_name: "CachePolicyId"))
@@ -847,6 +903,10 @@ module Aws::CloudFront
847
903
  DeleteFieldLevelEncryptionProfileRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
848
904
  DeleteFieldLevelEncryptionProfileRequest.struct_class = Types::DeleteFieldLevelEncryptionProfileRequest
849
905
 
906
+ DeleteFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
907
+ DeleteFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
908
+ DeleteFunctionRequest.struct_class = Types::DeleteFunctionRequest
909
+
850
910
  DeleteKeyGroupRequest.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Id"))
851
911
  DeleteKeyGroupRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
852
912
  DeleteKeyGroupRequest.struct_class = Types::DeleteKeyGroupRequest
@@ -872,6 +932,16 @@ module Aws::CloudFront
872
932
  DeleteStreamingDistributionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
873
933
  DeleteStreamingDistributionRequest.struct_class = Types::DeleteStreamingDistributionRequest
874
934
 
935
+ DescribeFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
936
+ DescribeFunctionRequest.add_member(:stage, Shapes::ShapeRef.new(shape: FunctionStage, location: "querystring", location_name: "Stage"))
937
+ DescribeFunctionRequest.struct_class = Types::DescribeFunctionRequest
938
+
939
+ DescribeFunctionResult.add_member(:function_summary, Shapes::ShapeRef.new(shape: FunctionSummary, location_name: "FunctionSummary"))
940
+ DescribeFunctionResult.add_member(:etag, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "ETag"))
941
+ DescribeFunctionResult.struct_class = Types::DescribeFunctionResult
942
+ DescribeFunctionResult[:payload] = :function_summary
943
+ DescribeFunctionResult[:payload_member] = DescribeFunctionResult.member(:function_summary)
944
+
875
945
  Distribution.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Id"))
876
946
  Distribution.add_member(:arn, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ARN"))
877
947
  Distribution.add_member(:status, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Status"))
@@ -1053,6 +1123,51 @@ module Aws::CloudFront
1053
1123
  ForwardedValues.add_member(:query_string_cache_keys, Shapes::ShapeRef.new(shape: QueryStringCacheKeys, location_name: "QueryStringCacheKeys"))
1054
1124
  ForwardedValues.struct_class = Types::ForwardedValues
1055
1125
 
1126
+ FunctionAlreadyExists.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1127
+ FunctionAlreadyExists.struct_class = Types::FunctionAlreadyExists
1128
+
1129
+ FunctionAssociation.add_member(:function_arn, Shapes::ShapeRef.new(shape: FunctionARN, required: true, location_name: "FunctionARN"))
1130
+ FunctionAssociation.add_member(:event_type, Shapes::ShapeRef.new(shape: EventType, required: true, location_name: "EventType"))
1131
+ FunctionAssociation.struct_class = Types::FunctionAssociation
1132
+
1133
+ FunctionAssociationList.member = Shapes::ShapeRef.new(shape: FunctionAssociation, location_name: "FunctionAssociation")
1134
+
1135
+ FunctionAssociations.add_member(:quantity, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "Quantity"))
1136
+ FunctionAssociations.add_member(:items, Shapes::ShapeRef.new(shape: FunctionAssociationList, location_name: "Items"))
1137
+ FunctionAssociations.struct_class = Types::FunctionAssociations
1138
+
1139
+ FunctionConfig.add_member(:comment, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Comment"))
1140
+ FunctionConfig.add_member(:runtime, Shapes::ShapeRef.new(shape: FunctionRuntime, required: true, location_name: "Runtime"))
1141
+ FunctionConfig.struct_class = Types::FunctionConfig
1142
+
1143
+ FunctionExecutionLogList.member = Shapes::ShapeRef.new(shape: string)
1144
+
1145
+ FunctionInUse.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1146
+ FunctionInUse.struct_class = Types::FunctionInUse
1147
+
1148
+ FunctionList.add_member(:next_marker, Shapes::ShapeRef.new(shape: string, location_name: "NextMarker"))
1149
+ FunctionList.add_member(:max_items, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "MaxItems"))
1150
+ FunctionList.add_member(:quantity, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "Quantity"))
1151
+ FunctionList.add_member(:items, Shapes::ShapeRef.new(shape: FunctionSummaryList, location_name: "Items"))
1152
+ FunctionList.struct_class = Types::FunctionList
1153
+
1154
+ FunctionMetadata.add_member(:function_arn, Shapes::ShapeRef.new(shape: string, required: true, location_name: "FunctionARN"))
1155
+ FunctionMetadata.add_member(:stage, Shapes::ShapeRef.new(shape: FunctionStage, location_name: "Stage"))
1156
+ FunctionMetadata.add_member(:created_time, Shapes::ShapeRef.new(shape: timestamp, location_name: "CreatedTime"))
1157
+ FunctionMetadata.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: timestamp, required: true, location_name: "LastModifiedTime"))
1158
+ FunctionMetadata.struct_class = Types::FunctionMetadata
1159
+
1160
+ FunctionSizeLimitExceeded.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1161
+ FunctionSizeLimitExceeded.struct_class = Types::FunctionSizeLimitExceeded
1162
+
1163
+ FunctionSummary.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "Name"))
1164
+ FunctionSummary.add_member(:status, Shapes::ShapeRef.new(shape: string, location_name: "Status"))
1165
+ FunctionSummary.add_member(:function_config, Shapes::ShapeRef.new(shape: FunctionConfig, required: true, location_name: "FunctionConfig"))
1166
+ FunctionSummary.add_member(:function_metadata, Shapes::ShapeRef.new(shape: FunctionMetadata, required: true, location_name: "FunctionMetadata"))
1167
+ FunctionSummary.struct_class = Types::FunctionSummary
1168
+
1169
+ FunctionSummaryList.member = Shapes::ShapeRef.new(shape: FunctionSummary, location_name: "FunctionSummary")
1170
+
1056
1171
  GeoRestriction.add_member(:restriction_type, Shapes::ShapeRef.new(shape: GeoRestrictionType, required: true, location_name: "RestrictionType"))
1057
1172
  GeoRestriction.add_member(:quantity, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "Quantity"))
1058
1173
  GeoRestriction.add_member(:items, Shapes::ShapeRef.new(shape: LocationList, location_name: "Items"))
@@ -1148,6 +1263,17 @@ module Aws::CloudFront
1148
1263
  GetFieldLevelEncryptionResult[:payload] = :field_level_encryption
1149
1264
  GetFieldLevelEncryptionResult[:payload_member] = GetFieldLevelEncryptionResult.member(:field_level_encryption)
1150
1265
 
1266
+ GetFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
1267
+ GetFunctionRequest.add_member(:stage, Shapes::ShapeRef.new(shape: FunctionStage, location: "querystring", location_name: "Stage"))
1268
+ GetFunctionRequest.struct_class = Types::GetFunctionRequest
1269
+
1270
+ GetFunctionResult.add_member(:function_code, Shapes::ShapeRef.new(shape: FunctionBlob, location_name: "FunctionCode"))
1271
+ GetFunctionResult.add_member(:etag, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "ETag"))
1272
+ GetFunctionResult.add_member(:content_type, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "Content-Type"))
1273
+ GetFunctionResult.struct_class = Types::GetFunctionResult
1274
+ GetFunctionResult[:payload] = :function_code
1275
+ GetFunctionResult[:payload_member] = GetFunctionResult.member(:function_code)
1276
+
1151
1277
  GetInvalidationRequest.add_member(:distribution_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "DistributionId"))
1152
1278
  GetInvalidationRequest.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Id"))
1153
1279
  GetInvalidationRequest.struct_class = Types::GetInvalidationRequest
@@ -1274,6 +1400,9 @@ module Aws::CloudFront
1274
1400
  InvalidForwardCookies.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1275
1401
  InvalidForwardCookies.struct_class = Types::InvalidForwardCookies
1276
1402
 
1403
+ InvalidFunctionAssociation.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1404
+ InvalidFunctionAssociation.struct_class = Types::InvalidFunctionAssociation
1405
+
1277
1406
  InvalidGeoRestrictionParameter.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1278
1407
  InvalidGeoRestrictionParameter.struct_class = Types::InvalidGeoRestrictionParameter
1279
1408
 
@@ -1504,6 +1633,16 @@ module Aws::CloudFront
1504
1633
  ListFieldLevelEncryptionProfilesResult[:payload] = :field_level_encryption_profile_list
1505
1634
  ListFieldLevelEncryptionProfilesResult[:payload_member] = ListFieldLevelEncryptionProfilesResult.member(:field_level_encryption_profile_list)
1506
1635
 
1636
+ ListFunctionsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: string, location: "querystring", location_name: "Marker"))
1637
+ ListFunctionsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: integer, location: "querystring", location_name: "MaxItems"))
1638
+ ListFunctionsRequest.add_member(:stage, Shapes::ShapeRef.new(shape: FunctionStage, location: "querystring", location_name: "Stage"))
1639
+ ListFunctionsRequest.struct_class = Types::ListFunctionsRequest
1640
+
1641
+ ListFunctionsResult.add_member(:function_list, Shapes::ShapeRef.new(shape: FunctionList, location_name: "FunctionList"))
1642
+ ListFunctionsResult.struct_class = Types::ListFunctionsResult
1643
+ ListFunctionsResult[:payload] = :function_list
1644
+ ListFunctionsResult[:payload_member] = ListFunctionsResult.member(:function_list)
1645
+
1507
1646
  ListInvalidationsRequest.add_member(:distribution_id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "DistributionId"))
1508
1647
  ListInvalidationsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: string, location: "querystring", location_name: "Marker"))
1509
1648
  ListInvalidationsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: integer, location: "querystring", location_name: "MaxItems"))
@@ -1599,6 +1738,9 @@ module Aws::CloudFront
1599
1738
  NoSuchFieldLevelEncryptionProfile.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1600
1739
  NoSuchFieldLevelEncryptionProfile.struct_class = Types::NoSuchFieldLevelEncryptionProfile
1601
1740
 
1741
+ NoSuchFunctionExists.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1742
+ NoSuchFunctionExists.struct_class = Types::NoSuchFunctionExists
1743
+
1602
1744
  NoSuchInvalidation.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1603
1745
  NoSuchInvalidation.struct_class = Types::NoSuchInvalidation
1604
1746
 
@@ -1766,6 +1908,15 @@ module Aws::CloudFront
1766
1908
 
1767
1909
  PublicKeySummaryList.member = Shapes::ShapeRef.new(shape: PublicKeySummary, location_name: "PublicKeySummary")
1768
1910
 
1911
+ PublishFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
1912
+ PublishFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
1913
+ PublishFunctionRequest.struct_class = Types::PublishFunctionRequest
1914
+
1915
+ PublishFunctionResult.add_member(:function_summary, Shapes::ShapeRef.new(shape: FunctionSummary, location_name: "FunctionSummary"))
1916
+ PublishFunctionResult.struct_class = Types::PublishFunctionResult
1917
+ PublishFunctionResult[:payload] = :function_summary
1918
+ PublishFunctionResult[:payload_member] = PublishFunctionResult.member(:function_summary)
1919
+
1769
1920
  QueryArgProfile.add_member(:query_arg, Shapes::ShapeRef.new(shape: string, required: true, location_name: "QueryArg"))
1770
1921
  QueryArgProfile.add_member(:profile_id, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ProfileId"))
1771
1922
  QueryArgProfile.struct_class = Types::QueryArgProfile
@@ -1810,6 +1961,9 @@ module Aws::CloudFront
1810
1961
 
1811
1962
  RealtimeLogConfigList.member = Shapes::ShapeRef.new(shape: RealtimeLogConfig)
1812
1963
 
1964
+ RealtimeLogConfigOwnerMismatch.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1965
+ RealtimeLogConfigOwnerMismatch.struct_class = Types::RealtimeLogConfigOwnerMismatch
1966
+
1813
1967
  RealtimeLogConfigs.add_member(:max_items, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "MaxItems"))
1814
1968
  RealtimeLogConfigs.add_member(:items, Shapes::ShapeRef.new(shape: RealtimeLogConfigList, location_name: "Items"))
1815
1969
  RealtimeLogConfigs.add_member(:is_truncated, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "IsTruncated"))
@@ -1924,6 +2078,27 @@ module Aws::CloudFront
1924
2078
  Tags.add_member(:items, Shapes::ShapeRef.new(shape: TagList, location_name: "Items"))
1925
2079
  Tags.struct_class = Types::Tags
1926
2080
 
2081
+ TestFunctionFailed.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
2082
+ TestFunctionFailed.struct_class = Types::TestFunctionFailed
2083
+
2084
+ TestFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
2085
+ TestFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
2086
+ TestFunctionRequest.add_member(:stage, Shapes::ShapeRef.new(shape: FunctionStage, location_name: "Stage"))
2087
+ TestFunctionRequest.add_member(:event_object, Shapes::ShapeRef.new(shape: FunctionEventObject, required: true, location_name: "EventObject"))
2088
+ TestFunctionRequest.struct_class = Types::TestFunctionRequest
2089
+
2090
+ TestFunctionResult.add_member(:test_result, Shapes::ShapeRef.new(shape: TestResult, location_name: "TestResult"))
2091
+ TestFunctionResult.struct_class = Types::TestFunctionResult
2092
+ TestFunctionResult[:payload] = :test_result
2093
+ TestFunctionResult[:payload_member] = TestFunctionResult.member(:test_result)
2094
+
2095
+ TestResult.add_member(:function_summary, Shapes::ShapeRef.new(shape: FunctionSummary, location_name: "FunctionSummary"))
2096
+ TestResult.add_member(:compute_utilization, Shapes::ShapeRef.new(shape: string, location_name: "ComputeUtilization"))
2097
+ TestResult.add_member(:function_execution_logs, Shapes::ShapeRef.new(shape: FunctionExecutionLogList, location_name: "FunctionExecutionLogs"))
2098
+ TestResult.add_member(:function_error_message, Shapes::ShapeRef.new(shape: string, location_name: "FunctionErrorMessage"))
2099
+ TestResult.add_member(:function_output, Shapes::ShapeRef.new(shape: string, location_name: "FunctionOutput"))
2100
+ TestResult.struct_class = Types::TestResult
2101
+
1927
2102
  TooManyCacheBehaviors.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1928
2103
  TooManyCacheBehaviors.struct_class = Types::TooManyCacheBehaviors
1929
2104
 
@@ -1963,6 +2138,9 @@ module Aws::CloudFront
1963
2138
  TooManyDistributionsAssociatedToOriginRequestPolicy.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1964
2139
  TooManyDistributionsAssociatedToOriginRequestPolicy.struct_class = Types::TooManyDistributionsAssociatedToOriginRequestPolicy
1965
2140
 
2141
+ TooManyDistributionsWithFunctionAssociations.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
2142
+ TooManyDistributionsWithFunctionAssociations.struct_class = Types::TooManyDistributionsWithFunctionAssociations
2143
+
1966
2144
  TooManyDistributionsWithLambdaAssociations.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1967
2145
  TooManyDistributionsWithLambdaAssociations.struct_class = Types::TooManyDistributionsWithLambdaAssociations
1968
2146
 
@@ -1987,6 +2165,12 @@ module Aws::CloudFront
1987
2165
  TooManyFieldLevelEncryptionQueryArgProfiles.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1988
2166
  TooManyFieldLevelEncryptionQueryArgProfiles.struct_class = Types::TooManyFieldLevelEncryptionQueryArgProfiles
1989
2167
 
2168
+ TooManyFunctionAssociations.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
2169
+ TooManyFunctionAssociations.struct_class = Types::TooManyFunctionAssociations
2170
+
2171
+ TooManyFunctions.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
2172
+ TooManyFunctions.struct_class = Types::TooManyFunctions
2173
+
1990
2174
  TooManyHeadersInCachePolicy.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
1991
2175
  TooManyHeadersInCachePolicy.struct_class = Types::TooManyHeadersInCachePolicy
1992
2176
 
@@ -2065,6 +2249,9 @@ module Aws::CloudFront
2065
2249
  TrustedSigners.add_member(:items, Shapes::ShapeRef.new(shape: AwsAccountNumberList, location_name: "Items"))
2066
2250
  TrustedSigners.struct_class = Types::TrustedSigners
2067
2251
 
2252
+ UnsupportedOperation.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
2253
+ UnsupportedOperation.struct_class = Types::UnsupportedOperation
2254
+
2068
2255
  UntagResourceRequest.add_member(:resource, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location: "querystring", location_name: "Resource"))
2069
2256
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "TagKeys", metadata: {"xmlNamespace"=>{"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}))
2070
2257
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
@@ -2136,6 +2323,18 @@ module Aws::CloudFront
2136
2323
  UpdateFieldLevelEncryptionProfileResult[:payload] = :field_level_encryption_profile
2137
2324
  UpdateFieldLevelEncryptionProfileResult[:payload_member] = UpdateFieldLevelEncryptionProfileResult.member(:field_level_encryption_profile)
2138
2325
 
2326
+ UpdateFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
2327
+ UpdateFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
2328
+ UpdateFunctionRequest.add_member(:function_config, Shapes::ShapeRef.new(shape: FunctionConfig, required: true, location_name: "FunctionConfig"))
2329
+ UpdateFunctionRequest.add_member(:function_code, Shapes::ShapeRef.new(shape: FunctionBlob, required: true, location_name: "FunctionCode"))
2330
+ UpdateFunctionRequest.struct_class = Types::UpdateFunctionRequest
2331
+
2332
+ UpdateFunctionResult.add_member(:function_summary, Shapes::ShapeRef.new(shape: FunctionSummary, location_name: "FunctionSummary"))
2333
+ UpdateFunctionResult.add_member(:etag, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "ETtag"))
2334
+ UpdateFunctionResult.struct_class = Types::UpdateFunctionResult
2335
+ UpdateFunctionResult[:payload] = :function_summary
2336
+ UpdateFunctionResult[:payload_member] = UpdateFunctionResult.member(:function_summary)
2337
+
2139
2338
  UpdateKeyGroupRequest.add_member(:key_group_config, Shapes::ShapeRef.new(shape: KeyGroupConfig, required: true, location_name: "KeyGroupConfig", metadata: {"xmlNamespace"=>{"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}))
2140
2339
  UpdateKeyGroupRequest.add_member(:id, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Id"))
2141
2340
  UpdateKeyGroupRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
@@ -2300,6 +2499,9 @@ module Aws::CloudFront
2300
2499
  o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsWithSingleFunctionARN)
2301
2500
  o.errors << Shapes::ShapeRef.new(shape: TooManyLambdaFunctionAssociations)
2302
2501
  o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaFunctionAssociation)
2502
+ o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsWithFunctionAssociations)
2503
+ o.errors << Shapes::ShapeRef.new(shape: TooManyFunctionAssociations)
2504
+ o.errors << Shapes::ShapeRef.new(shape: InvalidFunctionAssociation)
2303
2505
  o.errors << Shapes::ShapeRef.new(shape: InvalidOriginReadTimeout)
2304
2506
  o.errors << Shapes::ShapeRef.new(shape: InvalidOriginKeepaliveTimeout)
2305
2507
  o.errors << Shapes::ShapeRef.new(shape: NoSuchFieldLevelEncryptionConfig)
@@ -2312,6 +2514,8 @@ module Aws::CloudFront
2312
2514
  o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToKeyGroup)
2313
2515
  o.errors << Shapes::ShapeRef.new(shape: TooManyKeyGroupsAssociatedToDistribution)
2314
2516
  o.errors << Shapes::ShapeRef.new(shape: TrustedKeyGroupDoesNotExist)
2517
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchRealtimeLogConfig)
2518
+ o.errors << Shapes::ShapeRef.new(shape: RealtimeLogConfigOwnerMismatch)
2315
2519
  end)
2316
2520
 
2317
2521
  api.add_operation(:create_distribution_with_tags, Seahorse::Model::Operation.new.tap do |o|
@@ -2361,6 +2565,9 @@ module Aws::CloudFront
2361
2565
  o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsWithSingleFunctionARN)
2362
2566
  o.errors << Shapes::ShapeRef.new(shape: TooManyLambdaFunctionAssociations)
2363
2567
  o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaFunctionAssociation)
2568
+ o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsWithFunctionAssociations)
2569
+ o.errors << Shapes::ShapeRef.new(shape: TooManyFunctionAssociations)
2570
+ o.errors << Shapes::ShapeRef.new(shape: InvalidFunctionAssociation)
2364
2571
  o.errors << Shapes::ShapeRef.new(shape: InvalidOriginReadTimeout)
2365
2572
  o.errors << Shapes::ShapeRef.new(shape: InvalidOriginKeepaliveTimeout)
2366
2573
  o.errors << Shapes::ShapeRef.new(shape: NoSuchFieldLevelEncryptionConfig)
@@ -2373,6 +2580,8 @@ module Aws::CloudFront
2373
2580
  o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToKeyGroup)
2374
2581
  o.errors << Shapes::ShapeRef.new(shape: TooManyKeyGroupsAssociatedToDistribution)
2375
2582
  o.errors << Shapes::ShapeRef.new(shape: TrustedKeyGroupDoesNotExist)
2583
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchRealtimeLogConfig)
2584
+ o.errors << Shapes::ShapeRef.new(shape: RealtimeLogConfigOwnerMismatch)
2376
2585
  end)
2377
2586
 
2378
2587
  api.add_operation(:create_field_level_encryption_config, Seahorse::Model::Operation.new.tap do |o|
@@ -2407,6 +2616,23 @@ module Aws::CloudFront
2407
2616
  o.errors << Shapes::ShapeRef.new(shape: TooManyFieldLevelEncryptionFieldPatterns)
2408
2617
  end)
2409
2618
 
2619
+ api.add_operation(:create_function, Seahorse::Model::Operation.new.tap do |o|
2620
+ o.name = "CreateFunction2020_05_31"
2621
+ o.http_method = "POST"
2622
+ o.http_request_uri = "/2020-05-31/function"
2623
+ o.input = Shapes::ShapeRef.new(shape: CreateFunctionRequest,
2624
+ location_name: "CreateFunctionRequest",
2625
+ metadata: {
2626
+ "xmlNamespace" => {"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}
2627
+ }
2628
+ )
2629
+ o.output = Shapes::ShapeRef.new(shape: CreateFunctionResult)
2630
+ o.errors << Shapes::ShapeRef.new(shape: TooManyFunctions)
2631
+ o.errors << Shapes::ShapeRef.new(shape: FunctionAlreadyExists)
2632
+ o.errors << Shapes::ShapeRef.new(shape: FunctionSizeLimitExceeded)
2633
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
2634
+ end)
2635
+
2410
2636
  api.add_operation(:create_invalidation, Seahorse::Model::Operation.new.tap do |o|
2411
2637
  o.name = "CreateInvalidation2020_05_31"
2412
2638
  o.http_method = "POST"
@@ -2442,6 +2668,7 @@ module Aws::CloudFront
2442
2668
  o.output = Shapes::ShapeRef.new(shape: CreateMonitoringSubscriptionResult)
2443
2669
  o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
2444
2670
  o.errors << Shapes::ShapeRef.new(shape: NoSuchDistribution)
2671
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperation)
2445
2672
  end)
2446
2673
 
2447
2674
  api.add_operation(:create_origin_request_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -2595,6 +2822,18 @@ module Aws::CloudFront
2595
2822
  o.errors << Shapes::ShapeRef.new(shape: FieldLevelEncryptionProfileInUse)
2596
2823
  end)
2597
2824
 
2825
+ api.add_operation(:delete_function, Seahorse::Model::Operation.new.tap do |o|
2826
+ o.name = "DeleteFunction2020_05_31"
2827
+ o.http_method = "DELETE"
2828
+ o.http_request_uri = "/2020-05-31/function/{Name}"
2829
+ o.input = Shapes::ShapeRef.new(shape: DeleteFunctionRequest)
2830
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2831
+ o.errors << Shapes::ShapeRef.new(shape: InvalidIfMatchVersion)
2832
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchFunctionExists)
2833
+ o.errors << Shapes::ShapeRef.new(shape: FunctionInUse)
2834
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailed)
2835
+ end)
2836
+
2598
2837
  api.add_operation(:delete_key_group, Seahorse::Model::Operation.new.tap do |o|
2599
2838
  o.name = "DeleteKeyGroup2020_05_31"
2600
2839
  o.http_method = "DELETE"
@@ -2615,6 +2854,7 @@ module Aws::CloudFront
2615
2854
  o.output = Shapes::ShapeRef.new(shape: DeleteMonitoringSubscriptionResult)
2616
2855
  o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
2617
2856
  o.errors << Shapes::ShapeRef.new(shape: NoSuchDistribution)
2857
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperation)
2618
2858
  end)
2619
2859
 
2620
2860
  api.add_operation(:delete_origin_request_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -2674,6 +2914,15 @@ module Aws::CloudFront
2674
2914
  o.errors << Shapes::ShapeRef.new(shape: PreconditionFailed)
2675
2915
  end)
2676
2916
 
2917
+ api.add_operation(:describe_function, Seahorse::Model::Operation.new.tap do |o|
2918
+ o.name = "DescribeFunction2020_05_31"
2919
+ o.http_method = "GET"
2920
+ o.http_request_uri = "/2020-05-31/function/{Name}/describe"
2921
+ o.input = Shapes::ShapeRef.new(shape: DescribeFunctionRequest)
2922
+ o.output = Shapes::ShapeRef.new(shape: DescribeFunctionResult)
2923
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchFunctionExists)
2924
+ end)
2925
+
2677
2926
  api.add_operation(:get_cache_policy, Seahorse::Model::Operation.new.tap do |o|
2678
2927
  o.name = "GetCachePolicy2020_05_31"
2679
2928
  o.http_method = "GET"
@@ -2774,6 +3023,15 @@ module Aws::CloudFront
2774
3023
  o.errors << Shapes::ShapeRef.new(shape: NoSuchFieldLevelEncryptionProfile)
2775
3024
  end)
2776
3025
 
3026
+ api.add_operation(:get_function, Seahorse::Model::Operation.new.tap do |o|
3027
+ o.name = "GetFunction2020_05_31"
3028
+ o.http_method = "GET"
3029
+ o.http_request_uri = "/2020-05-31/function/{Name}"
3030
+ o.input = Shapes::ShapeRef.new(shape: GetFunctionRequest)
3031
+ o.output = Shapes::ShapeRef.new(shape: GetFunctionResult)
3032
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchFunctionExists)
3033
+ end)
3034
+
2777
3035
  api.add_operation(:get_invalidation, Seahorse::Model::Operation.new.tap do |o|
2778
3036
  o.name = "GetInvalidation2020_05_31"
2779
3037
  o.http_method = "GET"
@@ -2811,6 +3069,7 @@ module Aws::CloudFront
2811
3069
  o.output = Shapes::ShapeRef.new(shape: GetMonitoringSubscriptionResult)
2812
3070
  o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
2813
3071
  o.errors << Shapes::ShapeRef.new(shape: NoSuchDistribution)
3072
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperation)
2814
3073
  end)
2815
3074
 
2816
3075
  api.add_operation(:get_origin_request_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -3006,6 +3265,15 @@ module Aws::CloudFront
3006
3265
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
3007
3266
  end)
3008
3267
 
3268
+ api.add_operation(:list_functions, Seahorse::Model::Operation.new.tap do |o|
3269
+ o.name = "ListFunctions2020_05_31"
3270
+ o.http_method = "GET"
3271
+ o.http_request_uri = "/2020-05-31/function"
3272
+ o.input = Shapes::ShapeRef.new(shape: ListFunctionsRequest)
3273
+ o.output = Shapes::ShapeRef.new(shape: ListFunctionsResult)
3274
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
3275
+ end)
3276
+
3009
3277
  api.add_operation(:list_invalidations, Seahorse::Model::Operation.new.tap do |o|
3010
3278
  o.name = "ListInvalidations2020_05_31"
3011
3279
  o.http_method = "GET"
@@ -3092,6 +3360,18 @@ module Aws::CloudFront
3092
3360
  o.errors << Shapes::ShapeRef.new(shape: NoSuchResource)
3093
3361
  end)
3094
3362
 
3363
+ api.add_operation(:publish_function, Seahorse::Model::Operation.new.tap do |o|
3364
+ o.name = "PublishFunction2020_05_31"
3365
+ o.http_method = "POST"
3366
+ o.http_request_uri = "/2020-05-31/function/{Name}/publish"
3367
+ o.input = Shapes::ShapeRef.new(shape: PublishFunctionRequest)
3368
+ o.output = Shapes::ShapeRef.new(shape: PublishFunctionResult)
3369
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
3370
+ o.errors << Shapes::ShapeRef.new(shape: InvalidIfMatchVersion)
3371
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchFunctionExists)
3372
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailed)
3373
+ end)
3374
+
3095
3375
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
3096
3376
  o.name = "TagResource2020_05_31"
3097
3377
  o.http_method = "POST"
@@ -3104,6 +3384,23 @@ module Aws::CloudFront
3104
3384
  o.errors << Shapes::ShapeRef.new(shape: NoSuchResource)
3105
3385
  end)
3106
3386
 
3387
+ api.add_operation(:test_function, Seahorse::Model::Operation.new.tap do |o|
3388
+ o.name = "TestFunction2020_05_31"
3389
+ o.http_method = "POST"
3390
+ o.http_request_uri = "/2020-05-31/function/{Name}/test"
3391
+ o.input = Shapes::ShapeRef.new(shape: TestFunctionRequest,
3392
+ location_name: "TestFunctionRequest",
3393
+ metadata: {
3394
+ "xmlNamespace" => {"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}
3395
+ }
3396
+ )
3397
+ o.output = Shapes::ShapeRef.new(shape: TestFunctionResult)
3398
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
3399
+ o.errors << Shapes::ShapeRef.new(shape: InvalidIfMatchVersion)
3400
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchFunctionExists)
3401
+ o.errors << Shapes::ShapeRef.new(shape: TestFunctionFailed)
3402
+ end)
3403
+
3107
3404
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
3108
3405
  o.name = "UntagResource2020_05_31"
3109
3406
  o.http_method = "POST"
@@ -3197,6 +3494,9 @@ module Aws::CloudFront
3197
3494
  o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsWithSingleFunctionARN)
3198
3495
  o.errors << Shapes::ShapeRef.new(shape: TooManyLambdaFunctionAssociations)
3199
3496
  o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaFunctionAssociation)
3497
+ o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsWithFunctionAssociations)
3498
+ o.errors << Shapes::ShapeRef.new(shape: TooManyFunctionAssociations)
3499
+ o.errors << Shapes::ShapeRef.new(shape: InvalidFunctionAssociation)
3200
3500
  o.errors << Shapes::ShapeRef.new(shape: InvalidOriginReadTimeout)
3201
3501
  o.errors << Shapes::ShapeRef.new(shape: InvalidOriginKeepaliveTimeout)
3202
3502
  o.errors << Shapes::ShapeRef.new(shape: NoSuchFieldLevelEncryptionConfig)
@@ -3209,6 +3509,8 @@ module Aws::CloudFront
3209
3509
  o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToKeyGroup)
3210
3510
  o.errors << Shapes::ShapeRef.new(shape: TooManyKeyGroupsAssociatedToDistribution)
3211
3511
  o.errors << Shapes::ShapeRef.new(shape: TrustedKeyGroupDoesNotExist)
3512
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchRealtimeLogConfig)
3513
+ o.errors << Shapes::ShapeRef.new(shape: RealtimeLogConfigOwnerMismatch)
3212
3514
  end)
3213
3515
 
3214
3516
  api.add_operation(:update_field_level_encryption_config, Seahorse::Model::Operation.new.tap do |o|
@@ -3250,6 +3552,24 @@ module Aws::CloudFront
3250
3552
  o.errors << Shapes::ShapeRef.new(shape: TooManyFieldLevelEncryptionFieldPatterns)
3251
3553
  end)
3252
3554
 
3555
+ api.add_operation(:update_function, Seahorse::Model::Operation.new.tap do |o|
3556
+ o.name = "UpdateFunction2020_05_31"
3557
+ o.http_method = "PUT"
3558
+ o.http_request_uri = "/2020-05-31/function/{Name}"
3559
+ o.input = Shapes::ShapeRef.new(shape: UpdateFunctionRequest,
3560
+ location_name: "UpdateFunctionRequest",
3561
+ metadata: {
3562
+ "xmlNamespace" => {"uri"=>"http://cloudfront.amazonaws.com/doc/2020-05-31/"}
3563
+ }
3564
+ )
3565
+ o.output = Shapes::ShapeRef.new(shape: UpdateFunctionResult)
3566
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
3567
+ o.errors << Shapes::ShapeRef.new(shape: InvalidIfMatchVersion)
3568
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchFunctionExists)
3569
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailed)
3570
+ o.errors << Shapes::ShapeRef.new(shape: FunctionSizeLimitExceeded)
3571
+ end)
3572
+
3253
3573
  api.add_operation(:update_key_group, Seahorse::Model::Operation.new.tap do |o|
3254
3574
  o.name = "UpdateKeyGroup2020_05_31"
3255
3575
  o.http_method = "PUT"