aws-sdk-cloudfront 1.26.0 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'base64'
2
4
  require 'uri'
3
5
  require 'time'
4
- require 'json'
5
6
  require 'openssl'
6
7
 
7
8
  module Aws
@@ -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,43 +70,62 @@ 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}
82
+ # * {NoSuchRealtimeLogConfig}
75
83
  # * {NoSuchResource}
76
84
  # * {NoSuchStreamingDistribution}
85
+ # * {OriginRequestPolicyAlreadyExists}
86
+ # * {OriginRequestPolicyInUse}
77
87
  # * {PreconditionFailed}
78
88
  # * {PublicKeyAlreadyExists}
79
89
  # * {PublicKeyInUse}
80
90
  # * {QueryArgProfileEmpty}
91
+ # * {RealtimeLogConfigAlreadyExists}
92
+ # * {RealtimeLogConfigInUse}
81
93
  # * {StreamingDistributionAlreadyExists}
82
94
  # * {StreamingDistributionNotDisabled}
83
95
  # * {TooManyCacheBehaviors}
96
+ # * {TooManyCachePolicies}
84
97
  # * {TooManyCertificates}
85
98
  # * {TooManyCloudFrontOriginAccessIdentities}
86
99
  # * {TooManyCookieNamesInWhiteList}
100
+ # * {TooManyCookiesInCachePolicy}
101
+ # * {TooManyCookiesInOriginRequestPolicy}
87
102
  # * {TooManyDistributionCNAMEs}
88
103
  # * {TooManyDistributions}
104
+ # * {TooManyDistributionsAssociatedToCachePolicy}
89
105
  # * {TooManyDistributionsAssociatedToFieldLevelEncryptionConfig}
106
+ # * {TooManyDistributionsAssociatedToOriginRequestPolicy}
90
107
  # * {TooManyDistributionsWithLambdaAssociations}
108
+ # * {TooManyDistributionsWithSingleFunctionARN}
91
109
  # * {TooManyFieldLevelEncryptionConfigs}
92
110
  # * {TooManyFieldLevelEncryptionContentTypeProfiles}
93
111
  # * {TooManyFieldLevelEncryptionEncryptionEntities}
94
112
  # * {TooManyFieldLevelEncryptionFieldPatterns}
95
113
  # * {TooManyFieldLevelEncryptionProfiles}
96
114
  # * {TooManyFieldLevelEncryptionQueryArgProfiles}
115
+ # * {TooManyHeadersInCachePolicy}
97
116
  # * {TooManyHeadersInForwardedValues}
117
+ # * {TooManyHeadersInOriginRequestPolicy}
98
118
  # * {TooManyInvalidationsInProgress}
99
119
  # * {TooManyLambdaFunctionAssociations}
100
120
  # * {TooManyOriginCustomHeaders}
101
121
  # * {TooManyOriginGroupsPerDistribution}
122
+ # * {TooManyOriginRequestPolicies}
102
123
  # * {TooManyOrigins}
103
124
  # * {TooManyPublicKeys}
104
125
  # * {TooManyQueryStringParameters}
126
+ # * {TooManyQueryStringsInCachePolicy}
127
+ # * {TooManyQueryStringsInOriginRequestPolicy}
128
+ # * {TooManyRealtimeLogConfigs}
105
129
  # * {TooManyStreamingDistributionCNAMEs}
106
130
  # * {TooManyStreamingDistributions}
107
131
  # * {TooManyTrustedSigners}
@@ -158,6 +182,36 @@ module Aws::CloudFront
158
182
  end
159
183
  end
160
184
 
185
+ class CachePolicyAlreadyExists < ServiceError
186
+
187
+ # @param [Seahorse::Client::RequestContext] context
188
+ # @param [String] message
189
+ # @param [Aws::CloudFront::Types::CachePolicyAlreadyExists] data
190
+ def initialize(context, message, data = Aws::EmptyStructure.new)
191
+ super(context, message, data)
192
+ end
193
+
194
+ # @return [String]
195
+ def message
196
+ @message || @data[:message]
197
+ end
198
+ end
199
+
200
+ class CachePolicyInUse < ServiceError
201
+
202
+ # @param [Seahorse::Client::RequestContext] context
203
+ # @param [String] message
204
+ # @param [Aws::CloudFront::Types::CachePolicyInUse] data
205
+ def initialize(context, message, data = Aws::EmptyStructure.new)
206
+ super(context, message, data)
207
+ end
208
+
209
+ # @return [String]
210
+ def message
211
+ @message || @data[:message]
212
+ end
213
+ end
214
+
161
215
  class CannotChangeImmutablePublicKeyFields < ServiceError
162
216
 
163
217
  # @param [Seahorse::Client::RequestContext] context
@@ -308,6 +362,21 @@ module Aws::CloudFront
308
362
  end
309
363
  end
310
364
 
365
+ class IllegalDelete < ServiceError
366
+
367
+ # @param [Seahorse::Client::RequestContext] context
368
+ # @param [String] message
369
+ # @param [Aws::CloudFront::Types::IllegalDelete] data
370
+ def initialize(context, message, data = Aws::EmptyStructure.new)
371
+ super(context, message, data)
372
+ end
373
+
374
+ # @return [String]
375
+ def message
376
+ @message || @data[:message]
377
+ end
378
+ end
379
+
311
380
  class IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior < ServiceError
312
381
 
313
382
  # @param [Seahorse::Client::RequestContext] context
@@ -713,6 +782,21 @@ module Aws::CloudFront
713
782
  end
714
783
  end
715
784
 
785
+ class NoSuchCachePolicy < ServiceError
786
+
787
+ # @param [Seahorse::Client::RequestContext] context
788
+ # @param [String] message
789
+ # @param [Aws::CloudFront::Types::NoSuchCachePolicy] data
790
+ def initialize(context, message, data = Aws::EmptyStructure.new)
791
+ super(context, message, data)
792
+ end
793
+
794
+ # @return [String]
795
+ def message
796
+ @message || @data[:message]
797
+ end
798
+ end
799
+
716
800
  class NoSuchCloudFrontOriginAccessIdentity < ServiceError
717
801
 
718
802
  # @param [Seahorse::Client::RequestContext] context
@@ -803,6 +887,21 @@ module Aws::CloudFront
803
887
  end
804
888
  end
805
889
 
890
+ class NoSuchOriginRequestPolicy < ServiceError
891
+
892
+ # @param [Seahorse::Client::RequestContext] context
893
+ # @param [String] message
894
+ # @param [Aws::CloudFront::Types::NoSuchOriginRequestPolicy] data
895
+ def initialize(context, message, data = Aws::EmptyStructure.new)
896
+ super(context, message, data)
897
+ end
898
+
899
+ # @return [String]
900
+ def message
901
+ @message || @data[:message]
902
+ end
903
+ end
904
+
806
905
  class NoSuchPublicKey < ServiceError
807
906
 
808
907
  # @param [Seahorse::Client::RequestContext] context
@@ -818,6 +917,21 @@ module Aws::CloudFront
818
917
  end
819
918
  end
820
919
 
920
+ class NoSuchRealtimeLogConfig < ServiceError
921
+
922
+ # @param [Seahorse::Client::RequestContext] context
923
+ # @param [String] message
924
+ # @param [Aws::CloudFront::Types::NoSuchRealtimeLogConfig] data
925
+ def initialize(context, message, data = Aws::EmptyStructure.new)
926
+ super(context, message, data)
927
+ end
928
+
929
+ # @return [String]
930
+ def message
931
+ @message || @data[:message]
932
+ end
933
+ end
934
+
821
935
  class NoSuchResource < ServiceError
822
936
 
823
937
  # @param [Seahorse::Client::RequestContext] context
@@ -848,6 +962,36 @@ module Aws::CloudFront
848
962
  end
849
963
  end
850
964
 
965
+ class OriginRequestPolicyAlreadyExists < ServiceError
966
+
967
+ # @param [Seahorse::Client::RequestContext] context
968
+ # @param [String] message
969
+ # @param [Aws::CloudFront::Types::OriginRequestPolicyAlreadyExists] data
970
+ def initialize(context, message, data = Aws::EmptyStructure.new)
971
+ super(context, message, data)
972
+ end
973
+
974
+ # @return [String]
975
+ def message
976
+ @message || @data[:message]
977
+ end
978
+ end
979
+
980
+ class OriginRequestPolicyInUse < ServiceError
981
+
982
+ # @param [Seahorse::Client::RequestContext] context
983
+ # @param [String] message
984
+ # @param [Aws::CloudFront::Types::OriginRequestPolicyInUse] data
985
+ def initialize(context, message, data = Aws::EmptyStructure.new)
986
+ super(context, message, data)
987
+ end
988
+
989
+ # @return [String]
990
+ def message
991
+ @message || @data[:message]
992
+ end
993
+ end
994
+
851
995
  class PreconditionFailed < ServiceError
852
996
 
853
997
  # @param [Seahorse::Client::RequestContext] context
@@ -908,6 +1052,36 @@ module Aws::CloudFront
908
1052
  end
909
1053
  end
910
1054
 
1055
+ class RealtimeLogConfigAlreadyExists < ServiceError
1056
+
1057
+ # @param [Seahorse::Client::RequestContext] context
1058
+ # @param [String] message
1059
+ # @param [Aws::CloudFront::Types::RealtimeLogConfigAlreadyExists] data
1060
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1061
+ super(context, message, data)
1062
+ end
1063
+
1064
+ # @return [String]
1065
+ def message
1066
+ @message || @data[:message]
1067
+ end
1068
+ end
1069
+
1070
+ class RealtimeLogConfigInUse < ServiceError
1071
+
1072
+ # @param [Seahorse::Client::RequestContext] context
1073
+ # @param [String] message
1074
+ # @param [Aws::CloudFront::Types::RealtimeLogConfigInUse] data
1075
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1076
+ super(context, message, data)
1077
+ end
1078
+
1079
+ # @return [String]
1080
+ def message
1081
+ @message || @data[:message]
1082
+ end
1083
+ end
1084
+
911
1085
  class StreamingDistributionAlreadyExists < ServiceError
912
1086
 
913
1087
  # @param [Seahorse::Client::RequestContext] context
@@ -953,6 +1127,21 @@ module Aws::CloudFront
953
1127
  end
954
1128
  end
955
1129
 
1130
+ class TooManyCachePolicies < ServiceError
1131
+
1132
+ # @param [Seahorse::Client::RequestContext] context
1133
+ # @param [String] message
1134
+ # @param [Aws::CloudFront::Types::TooManyCachePolicies] data
1135
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1136
+ super(context, message, data)
1137
+ end
1138
+
1139
+ # @return [String]
1140
+ def message
1141
+ @message || @data[:message]
1142
+ end
1143
+ end
1144
+
956
1145
  class TooManyCertificates < ServiceError
957
1146
 
958
1147
  # @param [Seahorse::Client::RequestContext] context
@@ -998,6 +1187,36 @@ module Aws::CloudFront
998
1187
  end
999
1188
  end
1000
1189
 
1190
+ class TooManyCookiesInCachePolicy < ServiceError
1191
+
1192
+ # @param [Seahorse::Client::RequestContext] context
1193
+ # @param [String] message
1194
+ # @param [Aws::CloudFront::Types::TooManyCookiesInCachePolicy] data
1195
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1196
+ super(context, message, data)
1197
+ end
1198
+
1199
+ # @return [String]
1200
+ def message
1201
+ @message || @data[:message]
1202
+ end
1203
+ end
1204
+
1205
+ class TooManyCookiesInOriginRequestPolicy < ServiceError
1206
+
1207
+ # @param [Seahorse::Client::RequestContext] context
1208
+ # @param [String] message
1209
+ # @param [Aws::CloudFront::Types::TooManyCookiesInOriginRequestPolicy] data
1210
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1211
+ super(context, message, data)
1212
+ end
1213
+
1214
+ # @return [String]
1215
+ def message
1216
+ @message || @data[:message]
1217
+ end
1218
+ end
1219
+
1001
1220
  class TooManyDistributionCNAMEs < ServiceError
1002
1221
 
1003
1222
  # @param [Seahorse::Client::RequestContext] context
@@ -1028,6 +1247,21 @@ module Aws::CloudFront
1028
1247
  end
1029
1248
  end
1030
1249
 
1250
+ class TooManyDistributionsAssociatedToCachePolicy < ServiceError
1251
+
1252
+ # @param [Seahorse::Client::RequestContext] context
1253
+ # @param [String] message
1254
+ # @param [Aws::CloudFront::Types::TooManyDistributionsAssociatedToCachePolicy] data
1255
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1256
+ super(context, message, data)
1257
+ end
1258
+
1259
+ # @return [String]
1260
+ def message
1261
+ @message || @data[:message]
1262
+ end
1263
+ end
1264
+
1031
1265
  class TooManyDistributionsAssociatedToFieldLevelEncryptionConfig < ServiceError
1032
1266
 
1033
1267
  # @param [Seahorse::Client::RequestContext] context
@@ -1043,6 +1277,21 @@ module Aws::CloudFront
1043
1277
  end
1044
1278
  end
1045
1279
 
1280
+ class TooManyDistributionsAssociatedToOriginRequestPolicy < ServiceError
1281
+
1282
+ # @param [Seahorse::Client::RequestContext] context
1283
+ # @param [String] message
1284
+ # @param [Aws::CloudFront::Types::TooManyDistributionsAssociatedToOriginRequestPolicy] data
1285
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1286
+ super(context, message, data)
1287
+ end
1288
+
1289
+ # @return [String]
1290
+ def message
1291
+ @message || @data[:message]
1292
+ end
1293
+ end
1294
+
1046
1295
  class TooManyDistributionsWithLambdaAssociations < ServiceError
1047
1296
 
1048
1297
  # @param [Seahorse::Client::RequestContext] context
@@ -1058,6 +1307,21 @@ module Aws::CloudFront
1058
1307
  end
1059
1308
  end
1060
1309
 
1310
+ class TooManyDistributionsWithSingleFunctionARN < ServiceError
1311
+
1312
+ # @param [Seahorse::Client::RequestContext] context
1313
+ # @param [String] message
1314
+ # @param [Aws::CloudFront::Types::TooManyDistributionsWithSingleFunctionARN] data
1315
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1316
+ super(context, message, data)
1317
+ end
1318
+
1319
+ # @return [String]
1320
+ def message
1321
+ @message || @data[:message]
1322
+ end
1323
+ end
1324
+
1061
1325
  class TooManyFieldLevelEncryptionConfigs < ServiceError
1062
1326
 
1063
1327
  # @param [Seahorse::Client::RequestContext] context
@@ -1148,6 +1412,21 @@ module Aws::CloudFront
1148
1412
  end
1149
1413
  end
1150
1414
 
1415
+ class TooManyHeadersInCachePolicy < ServiceError
1416
+
1417
+ # @param [Seahorse::Client::RequestContext] context
1418
+ # @param [String] message
1419
+ # @param [Aws::CloudFront::Types::TooManyHeadersInCachePolicy] data
1420
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1421
+ super(context, message, data)
1422
+ end
1423
+
1424
+ # @return [String]
1425
+ def message
1426
+ @message || @data[:message]
1427
+ end
1428
+ end
1429
+
1151
1430
  class TooManyHeadersInForwardedValues < ServiceError
1152
1431
 
1153
1432
  # @param [Seahorse::Client::RequestContext] context
@@ -1163,6 +1442,21 @@ module Aws::CloudFront
1163
1442
  end
1164
1443
  end
1165
1444
 
1445
+ class TooManyHeadersInOriginRequestPolicy < ServiceError
1446
+
1447
+ # @param [Seahorse::Client::RequestContext] context
1448
+ # @param [String] message
1449
+ # @param [Aws::CloudFront::Types::TooManyHeadersInOriginRequestPolicy] data
1450
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1451
+ super(context, message, data)
1452
+ end
1453
+
1454
+ # @return [String]
1455
+ def message
1456
+ @message || @data[:message]
1457
+ end
1458
+ end
1459
+
1166
1460
  class TooManyInvalidationsInProgress < ServiceError
1167
1461
 
1168
1462
  # @param [Seahorse::Client::RequestContext] context
@@ -1223,6 +1517,21 @@ module Aws::CloudFront
1223
1517
  end
1224
1518
  end
1225
1519
 
1520
+ class TooManyOriginRequestPolicies < ServiceError
1521
+
1522
+ # @param [Seahorse::Client::RequestContext] context
1523
+ # @param [String] message
1524
+ # @param [Aws::CloudFront::Types::TooManyOriginRequestPolicies] data
1525
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1526
+ super(context, message, data)
1527
+ end
1528
+
1529
+ # @return [String]
1530
+ def message
1531
+ @message || @data[:message]
1532
+ end
1533
+ end
1534
+
1226
1535
  class TooManyOrigins < ServiceError
1227
1536
 
1228
1537
  # @param [Seahorse::Client::RequestContext] context
@@ -1268,6 +1577,51 @@ module Aws::CloudFront
1268
1577
  end
1269
1578
  end
1270
1579
 
1580
+ class TooManyQueryStringsInCachePolicy < ServiceError
1581
+
1582
+ # @param [Seahorse::Client::RequestContext] context
1583
+ # @param [String] message
1584
+ # @param [Aws::CloudFront::Types::TooManyQueryStringsInCachePolicy] data
1585
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1586
+ super(context, message, data)
1587
+ end
1588
+
1589
+ # @return [String]
1590
+ def message
1591
+ @message || @data[:message]
1592
+ end
1593
+ end
1594
+
1595
+ class TooManyQueryStringsInOriginRequestPolicy < ServiceError
1596
+
1597
+ # @param [Seahorse::Client::RequestContext] context
1598
+ # @param [String] message
1599
+ # @param [Aws::CloudFront::Types::TooManyQueryStringsInOriginRequestPolicy] data
1600
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1601
+ super(context, message, data)
1602
+ end
1603
+
1604
+ # @return [String]
1605
+ def message
1606
+ @message || @data[:message]
1607
+ end
1608
+ end
1609
+
1610
+ class TooManyRealtimeLogConfigs < ServiceError
1611
+
1612
+ # @param [Seahorse::Client::RequestContext] context
1613
+ # @param [String] message
1614
+ # @param [Aws::CloudFront::Types::TooManyRealtimeLogConfigs] data
1615
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1616
+ super(context, message, data)
1617
+ end
1618
+
1619
+ # @return [String]
1620
+ def message
1621
+ @message || @data[:message]
1622
+ end
1623
+ end
1624
+
1271
1625
  class TooManyStreamingDistributionCNAMEs < ServiceError
1272
1626
 
1273
1627
  # @param [Seahorse::Client::RequestContext] context