create_template
¶
create_template(
connector_arn: ConnectorArn,
name: TemplateName,
definition: TemplateDefinition,
*,
config_overrides: Optional[PcaConnectorAdClientConfig] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[Tags] = None,
) -> CreateTemplateResponse
Creates an Active Directory compatible certificate template. The connectors issues certificates using these templates based on the requester’s Active Directory group membership.
Parameters:
-
connector_arn(ConnectorArn) –The Amazon Resource Name (ARN) that was returned when you called CreateConnector.
-
name(TemplateName) –Name of the template. The template name must be unique.
-
definition(TemplateDefinition) –Template configuration to define the information included in certificates. Define certificate validity and renewal periods, certificate request handling and enrollment options, key usage extensions, application policies, and cryptography settings.
-
client_token(Optional[ClientToken], default:None) –Idempotency token.
-
tags(Optional[Tags], default:None) –Metadata assigned to a template consisting of a key-value pair.
Raises:
-
AccessDeniedException–You can receive this error if you attempt to create a resource share when you don't have the required permissions. This can be caused by insufficient permissions in policies attached to your Amazon Web Services Identity and Access Management (IAM) principal. It can also happen because of restrictions in place from an Amazon Web Services Organizations service control policy (SCP) that affects your Amazon Web Services account.
-
ConflictException–This request cannot be completed for one of the following reasons because the requested resource was being concurrently modified by another request.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure with an internal server.
-
ResourceNotFoundException–The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.
-
ServiceQuotaExceededException–Request would cause a service quota to be exceeded.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–An input validation error occurred. For example, invalid characters in a template name, or if a pagination token is invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_pca_connector_ad/_services/pca_connector_ad.py
1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 | |