create_distribution
¶
create_distribution(
distribution_config: DistributionConfig,
*,
config_overrides: Optional[CloudFrontClientConfig] = None,
) -> CreateDistributionResult
Creates a CloudFront distribution.
Parameters:
-
distribution_config(DistributionConfig) –The distribution's configuration information.
Raises:
-
AccessDenied–Access denied.
-
CNAMEAlreadyExists–The CNAME specified is already defined for CloudFront.
-
ContinuousDeploymentPolicyInUse–You cannot delete a continuous deployment policy that is associated with a primary distribution.
-
DistributionAlreadyExists–The caller reference you attempted to create the distribution with is associated with another distribution.
-
EntityLimitExceeded–The entity limit has been exceeded.
-
EntityNotFound–The entity was not found.
-
IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior–The specified configuration for field-level encryption can't be associated with the specified cache behavior.
-
IllegalOriginAccessConfiguration–An origin cannot contain both an origin access control (OAC) and an origin access identity (OAI).
-
InconsistentQuantities–The value of
Quantityand the size ofItemsdon't match. -
InvalidArgument–An argument is invalid.
-
InvalidDefaultRootObject–The default root object file name is too big or contains an invalid character.
-
InvalidDomainNameForOriginAccessControl–An origin access control is associated with an origin whose domain name is not supported.
-
InvalidErrorCode–An invalid error code was specified.
-
InvalidForwardCookies–Your request contains forward cookies option which doesn't match with the expectation for the
whitelistedlist of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected. -
InvalidFunctionAssociation–A CloudFront function association is invalid.
-
InvalidGeoRestrictionParameter–The specified geo restriction parameter is not valid.
-
InvalidHeadersForS3Origin–The headers specified are not valid for an Amazon S3 origin.
-
InvalidLambdaFunctionAssociation–The specified Lambda@Edge function association is invalid.
-
InvalidLocationCode–The location code specified is not valid.
-
InvalidMinimumProtocolVersion–The minimum protocol version specified is not valid.
-
InvalidOrigin–The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
-
InvalidOriginAccessControl–The origin access control is not valid.
-
InvalidOriginAccessIdentity–The origin access identity is not valid or doesn't exist.
-
InvalidOriginKeepaliveTimeout–The keep alive timeout specified for the origin is not valid.
-
InvalidOriginReadTimeout–The read timeout specified for the origin is not valid.
-
InvalidProtocolSettings–You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that support Server Name Indication (SNI).
-
InvalidQueryStringParameters–The query string parameters specified are not valid.
-
InvalidRelativePath–The relative path is too big, is not URL-encoded, or does not begin with a slash (/).
-
InvalidRequiredProtocol–This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the
RequiredProtocolselement from your distribution configuration. -
InvalidResponseCode–A response code is not valid.
-
InvalidTTLOrder–The TTL order specified is not valid.
-
InvalidViewerCertificate–A viewer certificate specified is not valid.
-
InvalidWebACLId–A web ACL ID specified is not valid. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. To specify a web ACL created using WAF Classic, use the ACL ID, for example473e64fd-f30b-4765-81a0-62ad96dd167a. -
MissingBody–This operation requires a body. Ensure that the body is present and the
Content-Typeheader is set. -
NoSuchCachePolicy–The cache policy does not exist.
-
NoSuchContinuousDeploymentPolicy–The continuous deployment policy doesn't exist.
-
NoSuchFieldLevelEncryptionConfig–The specified configuration for field-level encryption doesn't exist.
-
NoSuchOrigin–No origin exists with the specified
Origin Id. -
NoSuchOriginRequestPolicy–The origin request policy does not exist.
-
NoSuchRealtimeLogConfig–The real-time log configuration does not exist.
-
NoSuchResponseHeadersPolicy–The response headers policy does not exist.
-
RealtimeLogConfigOwnerMismatch–The specified real-time log configuration belongs to a different Amazon Web Services account.
-
TooManyCacheBehaviors–You cannot create more cache behaviors for the distribution.
-
TooManyCertificates–You cannot create anymore custom SSL/TLS certificates.
-
TooManyCookieNamesInWhiteList–Your request contains more cookie names in the whitelist than are allowed per cache behavior.
-
TooManyDistributionCNAMEs–Your request contains more CNAMEs than are allowed per distribution.
-
TooManyDistributions–Processing your request would cause you to exceed the maximum number of distributions allowed.
-
TooManyDistributionsAssociatedToCachePolicy–The maximum number of distributions have been associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
-
TooManyDistributionsAssociatedToFieldLevelEncryptionConfig–The maximum number of distributions have been associated with the specified configuration for field-level encryption.
-
TooManyDistributionsAssociatedToKeyGroup–The number of distributions that reference this key group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
-
TooManyDistributionsAssociatedToOriginAccessControl–The maximum number of distributions have been associated with the specified origin access control.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
-
TooManyDistributionsAssociatedToOriginRequestPolicy–The maximum number of distributions have been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
-
TooManyDistributionsAssociatedToResponseHeadersPolicy–The maximum number of distributions have been associated with the specified response headers policy.
For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
-
TooManyDistributionsWithFunctionAssociations–You have reached the maximum number of distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
-
TooManyDistributionsWithLambdaAssociations–Processing your request would cause the maximum number of distributions with Lambda@Edge function associations per owner to be exceeded.
-
TooManyDistributionsWithSingleFunctionARN–The maximum number of distributions have been associated with the specified Lambda@Edge function.
-
TooManyFunctionAssociations–You have reached the maximum number of CloudFront function associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
-
TooManyHeadersInForwardedValues–Your request contains too many headers in forwarded values.
-
TooManyKeyGroupsAssociatedToDistribution–The number of key groups referenced by this distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
-
TooManyLambdaFunctionAssociations–Your request contains more Lambda@Edge function associations than are allowed per distribution.
-
TooManyOriginCustomHeaders–Your request contains too many origin custom headers.
-
TooManyOriginGroupsPerDistribution–Processing your request would cause you to exceed the maximum number of origin groups allowed.
-
TooManyOrigins–You cannot create more origins for the distribution.
-
TooManyQueryStringParameters–Your request contains too many query string parameters.
-
TooManyTrustedSigners–Your request contains more trusted signers than are allowed per distribution.
-
TrustedKeyGroupDoesNotExist–The specified key group does not exist.
-
TrustedSignerDoesNotExist–One or more of your trusted signers don't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudfront/_services/cloud_front.py
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 | |