BatchCreateCertificateAuthorityReplica - AWS Private Certificate Authority
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

BatchCreateCertificateAuthorityReplica

Creates replicas of an ACTIVE multi-Region private certificate authority (CA) in up to 20 AWS Regions. Call this operation in the Region of the primary CA. Each replica has the same Amazon Resource Name (ARN) as the primary CA, except for the Region, and counts against the CA quota of its Region.

If the request is not valid, for example because the primary CA is not ACTIVE, the operation returns an error and creates no replicas.

AWS Private CA processes each Region independently and lists the results under Successful or Failed. For more information about failure reasons, see FailedReplica.

To use this operation, you must have the acm-pca:CreateCertificateAuthorityReplica permission on the primary CA, and the acm-pca:CreateCertificateAuthority permission in each replica Region. If you tag the replicas, you must also have the acm-pca:TagCertificateAuthority permission in each replica Region. AWS Private CA checks acm-pca:CreateCertificateAuthorityReplica once for each replica. If any replica is denied, the whole request is denied and AWS Private CA creates no replicas.

AWS Private CA creates replicas asynchronously. To check the status of each replica, use the ListCertificateAuthorityReplicas operation.

Request Syntax

{ "CertificateAuthorityArn": "string", "Replicas": [ { "IdempotencyToken": "string", "ReplicaRegion": "string", "Tags": [ { "Key": "string", "Value": "string" } ] } ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

CertificateAuthorityArn

The Amazon Resource Name (ARN) of the primary CA to replicate. This must be of the form:

arn:aws:acm-pca:region:account:certificate-authority/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111

Type: String

Length Constraints: Minimum length of 5. Maximum length of 200.

Pattern: arn:[\w+=/,.@-]+:acm-pca:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w+=,.@-]+)*

Required: Yes

Replicas

The replicas to create, one entry for each replica Region. You can specify up to 20 entries.

Type: Array of BatchCreateCertificateAuthorityReplicaRequestEntry objects

Array Members: Minimum number of 1 item. Maximum number of 20 items.

Required: Yes

Response Syntax

{ "Failed": [ { "FailureReason": "string", "Message": "string", "Region": "string" } ], "Successful": [ { "Arn": "string", "FailureReason": "string", "Region": "string", "Status": "string" } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

Failed

The replica Regions where the request failed, with the reason for each failure.

Type: Array of FailedReplica objects

Successful

The replicas that AWS Private CA started to create. A new replica has the status CREATING. If you retry an entry with the same idempotency token, AWS Private CA returns the replica from the original request.

Type: Array of Replica objects

Errors

For information about the errors that are common to all actions, see Common Error Types.

InvalidArgsException

One or more of the specified arguments was not valid.

HTTP Status Code: 400

InvalidArnException

The requested Amazon Resource Name (ARN) does not refer to an existing resource.

HTTP Status Code: 400

InvalidStateException

The state of the private CA does not allow this action to occur.

HTTP Status Code: 400

ResourceNotFoundException

A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: