aws-sdk-cloudfront 1.34.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,6 @@
3
3
  require 'base64'
4
4
  require 'uri'
5
5
  require 'time'
6
- require 'json'
7
6
  require 'openssl'
8
7
 
9
8
  module Aws
@@ -30,6 +30,8 @@ module Aws::CloudFront
30
30
  # * {AccessDenied}
31
31
  # * {BatchTooLarge}
32
32
  # * {CNAMEAlreadyExists}
33
+ # * {CachePolicyAlreadyExists}
34
+ # * {CachePolicyInUse}
33
35
  # * {CannotChangeImmutablePublicKeyFields}
34
36
  # * {CloudFrontOriginAccessIdentityAlreadyExists}
35
37
  # * {CloudFrontOriginAccessIdentityInUse}
@@ -40,6 +42,7 @@ module Aws::CloudFront
40
42
  # * {FieldLevelEncryptionProfileAlreadyExists}
41
43
  # * {FieldLevelEncryptionProfileInUse}
42
44
  # * {FieldLevelEncryptionProfileSizeExceeded}
45
+ # * {IllegalDelete}
43
46
  # * {IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior}
44
47
  # * {IllegalUpdate}
45
48
  # * {InconsistentQuantities}
@@ -67,15 +70,19 @@ module Aws::CloudFront
67
70
  # * {InvalidViewerCertificate}
68
71
  # * {InvalidWebACLId}
69
72
  # * {MissingBody}
73
+ # * {NoSuchCachePolicy}
70
74
  # * {NoSuchCloudFrontOriginAccessIdentity}
71
75
  # * {NoSuchDistribution}
72
76
  # * {NoSuchFieldLevelEncryptionConfig}
73
77
  # * {NoSuchFieldLevelEncryptionProfile}
74
78
  # * {NoSuchInvalidation}
75
79
  # * {NoSuchOrigin}
80
+ # * {NoSuchOriginRequestPolicy}
76
81
  # * {NoSuchPublicKey}
77
82
  # * {NoSuchResource}
78
83
  # * {NoSuchStreamingDistribution}
84
+ # * {OriginRequestPolicyAlreadyExists}
85
+ # * {OriginRequestPolicyInUse}
79
86
  # * {PreconditionFailed}
80
87
  # * {PublicKeyAlreadyExists}
81
88
  # * {PublicKeyInUse}
@@ -83,27 +90,38 @@ module Aws::CloudFront
83
90
  # * {StreamingDistributionAlreadyExists}
84
91
  # * {StreamingDistributionNotDisabled}
85
92
  # * {TooManyCacheBehaviors}
93
+ # * {TooManyCachePolicies}
86
94
  # * {TooManyCertificates}
87
95
  # * {TooManyCloudFrontOriginAccessIdentities}
88
96
  # * {TooManyCookieNamesInWhiteList}
97
+ # * {TooManyCookiesInCachePolicy}
98
+ # * {TooManyCookiesInOriginRequestPolicy}
89
99
  # * {TooManyDistributionCNAMEs}
90
100
  # * {TooManyDistributions}
101
+ # * {TooManyDistributionsAssociatedToCachePolicy}
91
102
  # * {TooManyDistributionsAssociatedToFieldLevelEncryptionConfig}
103
+ # * {TooManyDistributionsAssociatedToOriginRequestPolicy}
92
104
  # * {TooManyDistributionsWithLambdaAssociations}
105
+ # * {TooManyDistributionsWithSingleFunctionARN}
93
106
  # * {TooManyFieldLevelEncryptionConfigs}
94
107
  # * {TooManyFieldLevelEncryptionContentTypeProfiles}
95
108
  # * {TooManyFieldLevelEncryptionEncryptionEntities}
96
109
  # * {TooManyFieldLevelEncryptionFieldPatterns}
97
110
  # * {TooManyFieldLevelEncryptionProfiles}
98
111
  # * {TooManyFieldLevelEncryptionQueryArgProfiles}
112
+ # * {TooManyHeadersInCachePolicy}
99
113
  # * {TooManyHeadersInForwardedValues}
114
+ # * {TooManyHeadersInOriginRequestPolicy}
100
115
  # * {TooManyInvalidationsInProgress}
101
116
  # * {TooManyLambdaFunctionAssociations}
102
117
  # * {TooManyOriginCustomHeaders}
103
118
  # * {TooManyOriginGroupsPerDistribution}
119
+ # * {TooManyOriginRequestPolicies}
104
120
  # * {TooManyOrigins}
105
121
  # * {TooManyPublicKeys}
106
122
  # * {TooManyQueryStringParameters}
123
+ # * {TooManyQueryStringsInCachePolicy}
124
+ # * {TooManyQueryStringsInOriginRequestPolicy}
107
125
  # * {TooManyStreamingDistributionCNAMEs}
108
126
  # * {TooManyStreamingDistributions}
109
127
  # * {TooManyTrustedSigners}
@@ -160,6 +178,36 @@ module Aws::CloudFront
160
178
  end
161
179
  end
162
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
+
163
211
  class CannotChangeImmutablePublicKeyFields < ServiceError
164
212
 
165
213
  # @param [Seahorse::Client::RequestContext] context
@@ -310,6 +358,21 @@ module Aws::CloudFront
310
358
  end
311
359
  end
312
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
+
313
376
  class IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior < ServiceError
314
377
 
315
378
  # @param [Seahorse::Client::RequestContext] context
@@ -715,6 +778,21 @@ module Aws::CloudFront
715
778
  end
716
779
  end
717
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
+
718
796
  class NoSuchCloudFrontOriginAccessIdentity < ServiceError
719
797
 
720
798
  # @param [Seahorse::Client::RequestContext] context
@@ -805,6 +883,21 @@ module Aws::CloudFront
805
883
  end
806
884
  end
807
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
+
808
901
  class NoSuchPublicKey < ServiceError
809
902
 
810
903
  # @param [Seahorse::Client::RequestContext] context
@@ -850,6 +943,36 @@ module Aws::CloudFront
850
943
  end
851
944
  end
852
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
+
853
976
  class PreconditionFailed < ServiceError
854
977
 
855
978
  # @param [Seahorse::Client::RequestContext] context
@@ -955,6 +1078,21 @@ module Aws::CloudFront
955
1078
  end
956
1079
  end
957
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
+
958
1096
  class TooManyCertificates < ServiceError
959
1097
 
960
1098
  # @param [Seahorse::Client::RequestContext] context
@@ -1000,6 +1138,36 @@ module Aws::CloudFront
1000
1138
  end
1001
1139
  end
1002
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
+
1003
1171
  class TooManyDistributionCNAMEs < ServiceError
1004
1172
 
1005
1173
  # @param [Seahorse::Client::RequestContext] context
@@ -1030,6 +1198,21 @@ module Aws::CloudFront
1030
1198
  end
1031
1199
  end
1032
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
+
1033
1216
  class TooManyDistributionsAssociatedToFieldLevelEncryptionConfig < ServiceError
1034
1217
 
1035
1218
  # @param [Seahorse::Client::RequestContext] context
@@ -1045,6 +1228,21 @@ module Aws::CloudFront
1045
1228
  end
1046
1229
  end
1047
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
+
1048
1246
  class TooManyDistributionsWithLambdaAssociations < ServiceError
1049
1247
 
1050
1248
  # @param [Seahorse::Client::RequestContext] context
@@ -1060,6 +1258,21 @@ module Aws::CloudFront
1060
1258
  end
1061
1259
  end
1062
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
+
1063
1276
  class TooManyFieldLevelEncryptionConfigs < ServiceError
1064
1277
 
1065
1278
  # @param [Seahorse::Client::RequestContext] context
@@ -1150,6 +1363,21 @@ module Aws::CloudFront
1150
1363
  end
1151
1364
  end
1152
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
+
1153
1381
  class TooManyHeadersInForwardedValues < ServiceError
1154
1382
 
1155
1383
  # @param [Seahorse::Client::RequestContext] context
@@ -1165,6 +1393,21 @@ module Aws::CloudFront
1165
1393
  end
1166
1394
  end
1167
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
+
1168
1411
  class TooManyInvalidationsInProgress < ServiceError
1169
1412
 
1170
1413
  # @param [Seahorse::Client::RequestContext] context
@@ -1225,6 +1468,21 @@ module Aws::CloudFront
1225
1468
  end
1226
1469
  end
1227
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
+
1228
1486
  class TooManyOrigins < ServiceError
1229
1487
 
1230
1488
  # @param [Seahorse::Client::RequestContext] context
@@ -1270,6 +1528,36 @@ module Aws::CloudFront
1270
1528
  end
1271
1529
  end
1272
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
+
1273
1561
  class TooManyStreamingDistributionCNAMEs < ServiceError
1274
1562
 
1275
1563
  # @param [Seahorse::Client::RequestContext] context
@@ -3,7 +3,6 @@
3
3
  require 'base64'
4
4
  require 'uri'
5
5
  require 'time'
6
- require 'json'
7
6
  require 'openssl'
8
7
 
9
8
  module Aws
@@ -112,7 +111,7 @@ module Aws
112
111
  }
113
112
  ]
114
113
  }
115
- JSON.dump(json_hash)
114
+ Aws::Json.dump(json_hash)
116
115
  end
117
116
 
118
117
  def encode(policy)