CreateCertificateAuthorityReplica
Creates a replica of an ACTIVE multi-Region private certificate
authority (CA) in the AWS Region that you specify. Call this operation in the Region
of the primary CA. The 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 Region
already has a replica, the operation returns a ConflictException.
AWS Private CA creates the replica in its Region with your credentials. To use this
operation, you must also have the acm-pca:CreateCertificateAuthority
permission in the replica Region, and the acm-pca:TagCertificateAuthority
permission there if you tag the replica.
AWS Private CA creates replicas asynchronously. To check the status of the replica, use
the ListCertificateAuthorityReplicas operation.
Request Syntax
{
"CertificateAuthorityArn": "string",
"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-EXAMPLE11111Type: String
Length Constraints: Minimum length of 5. Maximum length of 200.
Pattern:
arn:[\w+=/,.@-]+:acm-pca:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w+=,.@-]+)*Required: Yes
- IdempotencyToken
-
A unique, case-sensitive string that ensures the request completes no more than one time. If this token matches a previous request, AWS Private CA returns the same replica instead of creating another one.
If you don't specify an idempotency token, the AWS SDK generates one for you.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[!-~]+Required: No
- ReplicaRegion
-
The AWS Region in which to create the replica. Specify a Region other than the Region of the primary CA. If the Region is an opt-in Region, you must enable it for your account first.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
([a-z]+-){2,3}\d+Required: Yes
- Tags
-
The key-value pairs to attach to the replica. You can attach up to 50 tags to a private CA. AWS Private CA doesn't copy the tags of the primary CA to the replica.
Type: Array of Tag objects
Array Members: Minimum number of 1 item. Maximum number of 50 items.
Required: No
Response Syntax
{
"Replica": {
"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.
Errors
For information about the errors that are common to all actions, see Common Error Types.
- ConflictException
-
The request was rejected because it conflicts with the current state of the specified resource.
- resourceId
-
The identifier of the resource involved in the conflict.
HTTP Status Code: 400
- 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
- InvalidTagException
-
The tag associated with the CA is not valid. The invalid argument is contained in the message field.
HTTP Status Code: 400
- LimitExceededException
-
An AWS Private CA quota has been exceeded. See the exception message returned to determine the quota that was exceeded.
HTTP Status Code: 400
- RequestInProgressException
-
Your request is already in progress.
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: