create_distribution_tenant
async
¶
create_distribution_tenant(
distribution_id: string,
name: string,
domains: DomainList,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
tags: Optional[Tags] = None,
customizations: Optional[Customizations] = None,
parameters: Optional[Parameters] = None,
connection_group_id: Optional[string] = None,
managed_certificate_request: Optional[ManagedCertificateRequest] = None,
enabled: Optional[boolean] = None,
) -> CreateDistributionTenantResult
Creates a distribution tenant.
Parameters:
-
distribution_id(string) –The ID of the multi-tenant distribution to use for creating the distribution tenant.
-
name(string) –The name of the distribution tenant. Enter a friendly identifier that is unique within your Amazon Web Services account. This name can't be updated after you create the distribution tenant.
-
domains(DomainList) –The domains associated with the distribution tenant. You must specify at least one domain in the request.
-
customizations(Optional[Customizations], default:None) –Customizations for the distribution tenant. For each distribution tenant, you can specify the geographic restrictions, and the Amazon Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are specific values that you can override or disable from the multi-tenant distribution that was used to create the distribution tenant.
-
parameters(Optional[Parameters], default:None) –A list of parameter values to add to the resource. A parameter is specified as a key-value pair. A valid parameter value must exist for any parameter that is marked as required in the multi-tenant distribution.
-
connection_group_id(Optional[string], default:None) –The ID of the connection group to associate with the distribution tenant.
-
managed_certificate_request(Optional[ManagedCertificateRequest], default:None) –The configuration for the CloudFront managed ACM certificate request.
-
enabled(Optional[boolean], default:None) –Indicates whether the distribution tenant should be enabled when created. If the distribution tenant is disabled, the distribution tenant won't serve traffic.
Raises:
-
AccessDenied–Access denied.
-
CNAMEAlreadyExists–The CNAME specified is already defined for CloudFront.
-
EntityAlreadyExists–The entity already exists. You must provide a unique entity.
-
EntityLimitExceeded–The entity limit has been exceeded.
-
EntityNotFound–The entity was not found.
-
InvalidArgument–An argument is invalid.
-
InvalidAssociation–The specified CloudFront resource can't be associated.
-
InvalidTagging–The tagging specified is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 | |