aws-sdk-cloudfront 1.30.1 → 1.35.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'base64'
2
4
  require 'uri'
3
5
  require 'time'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # utility classes
2
4
  require 'aws-sdk-cloudfront/signer'
3
5
  require 'aws-sdk-cloudfront/url_signer'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -28,6 +30,8 @@ module Aws::CloudFront
28
30
  # * {AccessDenied}
29
31
  # * {BatchTooLarge}
30
32
  # * {CNAMEAlreadyExists}
33
+ # * {CachePolicyAlreadyExists}
34
+ # * {CachePolicyInUse}
31
35
  # * {CannotChangeImmutablePublicKeyFields}
32
36
  # * {CloudFrontOriginAccessIdentityAlreadyExists}
33
37
  # * {CloudFrontOriginAccessIdentityInUse}
@@ -38,6 +42,7 @@ module Aws::CloudFront
38
42
  # * {FieldLevelEncryptionProfileAlreadyExists}
39
43
  # * {FieldLevelEncryptionProfileInUse}
40
44
  # * {FieldLevelEncryptionProfileSizeExceeded}
45
+ # * {IllegalDelete}
41
46
  # * {IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior}
42
47
  # * {IllegalUpdate}
43
48
  # * {InconsistentQuantities}
@@ -65,15 +70,19 @@ module Aws::CloudFront
65
70
  # * {InvalidViewerCertificate}
66
71
  # * {InvalidWebACLId}
67
72
  # * {MissingBody}
73
+ # * {NoSuchCachePolicy}
68
74
  # * {NoSuchCloudFrontOriginAccessIdentity}
69
75
  # * {NoSuchDistribution}
70
76
  # * {NoSuchFieldLevelEncryptionConfig}
71
77
  # * {NoSuchFieldLevelEncryptionProfile}
72
78
  # * {NoSuchInvalidation}
73
79
  # * {NoSuchOrigin}
80
+ # * {NoSuchOriginRequestPolicy}
74
81
  # * {NoSuchPublicKey}
75
82
  # * {NoSuchResource}
76
83
  # * {NoSuchStreamingDistribution}
84
+ # * {OriginRequestPolicyAlreadyExists}
85
+ # * {OriginRequestPolicyInUse}
77
86
  # * {PreconditionFailed}
78
87
  # * {PublicKeyAlreadyExists}
79
88
  # * {PublicKeyInUse}
@@ -81,27 +90,38 @@ module Aws::CloudFront
81
90
  # * {StreamingDistributionAlreadyExists}
82
91
  # * {StreamingDistributionNotDisabled}
83
92
  # * {TooManyCacheBehaviors}
93
+ # * {TooManyCachePolicies}
84
94
  # * {TooManyCertificates}
85
95
  # * {TooManyCloudFrontOriginAccessIdentities}
86
96
  # * {TooManyCookieNamesInWhiteList}
97
+ # * {TooManyCookiesInCachePolicy}
98
+ # * {TooManyCookiesInOriginRequestPolicy}
87
99
  # * {TooManyDistributionCNAMEs}
88
100
  # * {TooManyDistributions}
101
+ # * {TooManyDistributionsAssociatedToCachePolicy}
89
102
  # * {TooManyDistributionsAssociatedToFieldLevelEncryptionConfig}
103
+ # * {TooManyDistributionsAssociatedToOriginRequestPolicy}
90
104
  # * {TooManyDistributionsWithLambdaAssociations}
105
+ # * {TooManyDistributionsWithSingleFunctionARN}
91
106
  # * {TooManyFieldLevelEncryptionConfigs}
92
107
  # * {TooManyFieldLevelEncryptionContentTypeProfiles}
93
108
  # * {TooManyFieldLevelEncryptionEncryptionEntities}
94
109
  # * {TooManyFieldLevelEncryptionFieldPatterns}
95
110
  # * {TooManyFieldLevelEncryptionProfiles}
96
111
  # * {TooManyFieldLevelEncryptionQueryArgProfiles}
112
+ # * {TooManyHeadersInCachePolicy}
97
113
  # * {TooManyHeadersInForwardedValues}
114
+ # * {TooManyHeadersInOriginRequestPolicy}
98
115
  # * {TooManyInvalidationsInProgress}
99
116
  # * {TooManyLambdaFunctionAssociations}
100
117
  # * {TooManyOriginCustomHeaders}
101
118
  # * {TooManyOriginGroupsPerDistribution}
119
+ # * {TooManyOriginRequestPolicies}
102
120
  # * {TooManyOrigins}
103
121
  # * {TooManyPublicKeys}
104
122
  # * {TooManyQueryStringParameters}
123
+ # * {TooManyQueryStringsInCachePolicy}
124
+ # * {TooManyQueryStringsInOriginRequestPolicy}
105
125
  # * {TooManyStreamingDistributionCNAMEs}
106
126
  # * {TooManyStreamingDistributions}
107
127
  # * {TooManyTrustedSigners}
@@ -158,6 +178,36 @@ module Aws::CloudFront
158
178
  end
159
179
  end
160
180
 
181
+ class CachePolicyAlreadyExists < ServiceError
182
+
183
+ # @param [Seahorse::Client::RequestContext] context
184
+ # @param [String] message
185
+ # @param [Aws::CloudFront::Types::CachePolicyAlreadyExists] data
186
+ def initialize(context, message, data = Aws::EmptyStructure.new)
187
+ super(context, message, data)
188
+ end
189
+
190
+ # @return [String]
191
+ def message
192
+ @message || @data[:message]
193
+ end
194
+ end
195
+
196
+ class CachePolicyInUse < ServiceError
197
+
198
+ # @param [Seahorse::Client::RequestContext] context
199
+ # @param [String] message
200
+ # @param [Aws::CloudFront::Types::CachePolicyInUse] data
201
+ def initialize(context, message, data = Aws::EmptyStructure.new)
202
+ super(context, message, data)
203
+ end
204
+
205
+ # @return [String]
206
+ def message
207
+ @message || @data[:message]
208
+ end
209
+ end
210
+
161
211
  class CannotChangeImmutablePublicKeyFields < ServiceError
162
212
 
163
213
  # @param [Seahorse::Client::RequestContext] context
@@ -308,6 +358,21 @@ module Aws::CloudFront
308
358
  end
309
359
  end
310
360
 
361
+ class IllegalDelete < ServiceError
362
+
363
+ # @param [Seahorse::Client::RequestContext] context
364
+ # @param [String] message
365
+ # @param [Aws::CloudFront::Types::IllegalDelete] data
366
+ def initialize(context, message, data = Aws::EmptyStructure.new)
367
+ super(context, message, data)
368
+ end
369
+
370
+ # @return [String]
371
+ def message
372
+ @message || @data[:message]
373
+ end
374
+ end
375
+
311
376
  class IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior < ServiceError
312
377
 
313
378
  # @param [Seahorse::Client::RequestContext] context
@@ -713,6 +778,21 @@ module Aws::CloudFront
713
778
  end
714
779
  end
715
780
 
781
+ class NoSuchCachePolicy < ServiceError
782
+
783
+ # @param [Seahorse::Client::RequestContext] context
784
+ # @param [String] message
785
+ # @param [Aws::CloudFront::Types::NoSuchCachePolicy] data
786
+ def initialize(context, message, data = Aws::EmptyStructure.new)
787
+ super(context, message, data)
788
+ end
789
+
790
+ # @return [String]
791
+ def message
792
+ @message || @data[:message]
793
+ end
794
+ end
795
+
716
796
  class NoSuchCloudFrontOriginAccessIdentity < ServiceError
717
797
 
718
798
  # @param [Seahorse::Client::RequestContext] context
@@ -803,6 +883,21 @@ module Aws::CloudFront
803
883
  end
804
884
  end
805
885
 
886
+ class NoSuchOriginRequestPolicy < ServiceError
887
+
888
+ # @param [Seahorse::Client::RequestContext] context
889
+ # @param [String] message
890
+ # @param [Aws::CloudFront::Types::NoSuchOriginRequestPolicy] data
891
+ def initialize(context, message, data = Aws::EmptyStructure.new)
892
+ super(context, message, data)
893
+ end
894
+
895
+ # @return [String]
896
+ def message
897
+ @message || @data[:message]
898
+ end
899
+ end
900
+
806
901
  class NoSuchPublicKey < ServiceError
807
902
 
808
903
  # @param [Seahorse::Client::RequestContext] context
@@ -848,6 +943,36 @@ module Aws::CloudFront
848
943
  end
849
944
  end
850
945
 
946
+ class OriginRequestPolicyAlreadyExists < ServiceError
947
+
948
+ # @param [Seahorse::Client::RequestContext] context
949
+ # @param [String] message
950
+ # @param [Aws::CloudFront::Types::OriginRequestPolicyAlreadyExists] data
951
+ def initialize(context, message, data = Aws::EmptyStructure.new)
952
+ super(context, message, data)
953
+ end
954
+
955
+ # @return [String]
956
+ def message
957
+ @message || @data[:message]
958
+ end
959
+ end
960
+
961
+ class OriginRequestPolicyInUse < ServiceError
962
+
963
+ # @param [Seahorse::Client::RequestContext] context
964
+ # @param [String] message
965
+ # @param [Aws::CloudFront::Types::OriginRequestPolicyInUse] data
966
+ def initialize(context, message, data = Aws::EmptyStructure.new)
967
+ super(context, message, data)
968
+ end
969
+
970
+ # @return [String]
971
+ def message
972
+ @message || @data[:message]
973
+ end
974
+ end
975
+
851
976
  class PreconditionFailed < ServiceError
852
977
 
853
978
  # @param [Seahorse::Client::RequestContext] context
@@ -953,6 +1078,21 @@ module Aws::CloudFront
953
1078
  end
954
1079
  end
955
1080
 
1081
+ class TooManyCachePolicies < ServiceError
1082
+
1083
+ # @param [Seahorse::Client::RequestContext] context
1084
+ # @param [String] message
1085
+ # @param [Aws::CloudFront::Types::TooManyCachePolicies] data
1086
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1087
+ super(context, message, data)
1088
+ end
1089
+
1090
+ # @return [String]
1091
+ def message
1092
+ @message || @data[:message]
1093
+ end
1094
+ end
1095
+
956
1096
  class TooManyCertificates < ServiceError
957
1097
 
958
1098
  # @param [Seahorse::Client::RequestContext] context
@@ -998,6 +1138,36 @@ module Aws::CloudFront
998
1138
  end
999
1139
  end
1000
1140
 
1141
+ class TooManyCookiesInCachePolicy < ServiceError
1142
+
1143
+ # @param [Seahorse::Client::RequestContext] context
1144
+ # @param [String] message
1145
+ # @param [Aws::CloudFront::Types::TooManyCookiesInCachePolicy] data
1146
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1147
+ super(context, message, data)
1148
+ end
1149
+
1150
+ # @return [String]
1151
+ def message
1152
+ @message || @data[:message]
1153
+ end
1154
+ end
1155
+
1156
+ class TooManyCookiesInOriginRequestPolicy < ServiceError
1157
+
1158
+ # @param [Seahorse::Client::RequestContext] context
1159
+ # @param [String] message
1160
+ # @param [Aws::CloudFront::Types::TooManyCookiesInOriginRequestPolicy] data
1161
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1162
+ super(context, message, data)
1163
+ end
1164
+
1165
+ # @return [String]
1166
+ def message
1167
+ @message || @data[:message]
1168
+ end
1169
+ end
1170
+
1001
1171
  class TooManyDistributionCNAMEs < ServiceError
1002
1172
 
1003
1173
  # @param [Seahorse::Client::RequestContext] context
@@ -1028,6 +1198,21 @@ module Aws::CloudFront
1028
1198
  end
1029
1199
  end
1030
1200
 
1201
+ class TooManyDistributionsAssociatedToCachePolicy < ServiceError
1202
+
1203
+ # @param [Seahorse::Client::RequestContext] context
1204
+ # @param [String] message
1205
+ # @param [Aws::CloudFront::Types::TooManyDistributionsAssociatedToCachePolicy] data
1206
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1207
+ super(context, message, data)
1208
+ end
1209
+
1210
+ # @return [String]
1211
+ def message
1212
+ @message || @data[:message]
1213
+ end
1214
+ end
1215
+
1031
1216
  class TooManyDistributionsAssociatedToFieldLevelEncryptionConfig < ServiceError
1032
1217
 
1033
1218
  # @param [Seahorse::Client::RequestContext] context
@@ -1043,6 +1228,21 @@ module Aws::CloudFront
1043
1228
  end
1044
1229
  end
1045
1230
 
1231
+ class TooManyDistributionsAssociatedToOriginRequestPolicy < ServiceError
1232
+
1233
+ # @param [Seahorse::Client::RequestContext] context
1234
+ # @param [String] message
1235
+ # @param [Aws::CloudFront::Types::TooManyDistributionsAssociatedToOriginRequestPolicy] data
1236
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1237
+ super(context, message, data)
1238
+ end
1239
+
1240
+ # @return [String]
1241
+ def message
1242
+ @message || @data[:message]
1243
+ end
1244
+ end
1245
+
1046
1246
  class TooManyDistributionsWithLambdaAssociations < ServiceError
1047
1247
 
1048
1248
  # @param [Seahorse::Client::RequestContext] context
@@ -1058,6 +1258,21 @@ module Aws::CloudFront
1058
1258
  end
1059
1259
  end
1060
1260
 
1261
+ class TooManyDistributionsWithSingleFunctionARN < ServiceError
1262
+
1263
+ # @param [Seahorse::Client::RequestContext] context
1264
+ # @param [String] message
1265
+ # @param [Aws::CloudFront::Types::TooManyDistributionsWithSingleFunctionARN] data
1266
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1267
+ super(context, message, data)
1268
+ end
1269
+
1270
+ # @return [String]
1271
+ def message
1272
+ @message || @data[:message]
1273
+ end
1274
+ end
1275
+
1061
1276
  class TooManyFieldLevelEncryptionConfigs < ServiceError
1062
1277
 
1063
1278
  # @param [Seahorse::Client::RequestContext] context
@@ -1148,6 +1363,21 @@ module Aws::CloudFront
1148
1363
  end
1149
1364
  end
1150
1365
 
1366
+ class TooManyHeadersInCachePolicy < ServiceError
1367
+
1368
+ # @param [Seahorse::Client::RequestContext] context
1369
+ # @param [String] message
1370
+ # @param [Aws::CloudFront::Types::TooManyHeadersInCachePolicy] data
1371
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1372
+ super(context, message, data)
1373
+ end
1374
+
1375
+ # @return [String]
1376
+ def message
1377
+ @message || @data[:message]
1378
+ end
1379
+ end
1380
+
1151
1381
  class TooManyHeadersInForwardedValues < ServiceError
1152
1382
 
1153
1383
  # @param [Seahorse::Client::RequestContext] context
@@ -1163,6 +1393,21 @@ module Aws::CloudFront
1163
1393
  end
1164
1394
  end
1165
1395
 
1396
+ class TooManyHeadersInOriginRequestPolicy < ServiceError
1397
+
1398
+ # @param [Seahorse::Client::RequestContext] context
1399
+ # @param [String] message
1400
+ # @param [Aws::CloudFront::Types::TooManyHeadersInOriginRequestPolicy] data
1401
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1402
+ super(context, message, data)
1403
+ end
1404
+
1405
+ # @return [String]
1406
+ def message
1407
+ @message || @data[:message]
1408
+ end
1409
+ end
1410
+
1166
1411
  class TooManyInvalidationsInProgress < ServiceError
1167
1412
 
1168
1413
  # @param [Seahorse::Client::RequestContext] context
@@ -1223,6 +1468,21 @@ module Aws::CloudFront
1223
1468
  end
1224
1469
  end
1225
1470
 
1471
+ class TooManyOriginRequestPolicies < ServiceError
1472
+
1473
+ # @param [Seahorse::Client::RequestContext] context
1474
+ # @param [String] message
1475
+ # @param [Aws::CloudFront::Types::TooManyOriginRequestPolicies] data
1476
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1477
+ super(context, message, data)
1478
+ end
1479
+
1480
+ # @return [String]
1481
+ def message
1482
+ @message || @data[:message]
1483
+ end
1484
+ end
1485
+
1226
1486
  class TooManyOrigins < ServiceError
1227
1487
 
1228
1488
  # @param [Seahorse::Client::RequestContext] context
@@ -1268,6 +1528,36 @@ module Aws::CloudFront
1268
1528
  end
1269
1529
  end
1270
1530
 
1531
+ class TooManyQueryStringsInCachePolicy < ServiceError
1532
+
1533
+ # @param [Seahorse::Client::RequestContext] context
1534
+ # @param [String] message
1535
+ # @param [Aws::CloudFront::Types::TooManyQueryStringsInCachePolicy] data
1536
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1537
+ super(context, message, data)
1538
+ end
1539
+
1540
+ # @return [String]
1541
+ def message
1542
+ @message || @data[:message]
1543
+ end
1544
+ end
1545
+
1546
+ class TooManyQueryStringsInOriginRequestPolicy < ServiceError
1547
+
1548
+ # @param [Seahorse::Client::RequestContext] context
1549
+ # @param [String] message
1550
+ # @param [Aws::CloudFront::Types::TooManyQueryStringsInOriginRequestPolicy] data
1551
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1552
+ super(context, message, data)
1553
+ end
1554
+
1555
+ # @return [String]
1556
+ def message
1557
+ @message || @data[:message]
1558
+ end
1559
+ end
1560
+
1271
1561
  class TooManyStreamingDistributionCNAMEs < ServiceError
1272
1562
 
1273
1563
  # @param [Seahorse::Client::RequestContext] context