create_certificate_authority_replica
async
¶
create_certificate_authority_replica(
certificate_authority_arn: Arn,
replica_region: AwsRegion,
*,
config_overrides: Optional[AsyncACMPCAClientConfig] = None,
tags: Optional[TagList] = None,
idempotency_token: Optional[ClientToken] = None,
) -> CreateCertificateAuthorityReplicaResponse
Creates a replica of an ACTIVE multi-Region private certificate authority (CA) in the Amazon Web Services 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.
Amazon Web Services 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.
Amazon Web Services Private CA creates replicas asynchronously. To check the status of the replica, use the ListCertificateAuthorityReplicas operation.
Parameters:
-
certificate_authority_arn(Arn) –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 -
replica_region(AwsRegion) –The Amazon Web Services 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.
-
tags(Optional[TagList], default:None) –The key-value pairs to attach to the replica. You can attach up to 50 tags to a private CA. Amazon Web Services Private CA doesn't copy the tags of the primary CA to the replica.
-
idempotency_token(Optional[ClientToken], default:None) –A unique, case-sensitive string that ensures the request completes no more than one time. If this token matches a previous request, Amazon Web Services Private CA returns the same replica instead of creating another one.
If you don't specify an idempotency token, the Amazon Web Services SDK generates one for you.
Raises:
-
ConflictException–The request was rejected because it conflicts with the current state of the specified resource.
-
InvalidArgsException–One or more of the specified arguments was not valid.
-
InvalidArnException–The requested Amazon Resource Name (ARN) does not refer to an existing resource.
-
InvalidStateException–The state of the private CA does not allow this action to occur.
-
InvalidTagException–The tag associated with the CA is not valid. The invalid argument is contained in the message field.
-
LimitExceededException–An Amazon Web Services Private CA quota has been exceeded. See the exception message returned to determine the quota that was exceeded.
-
RequestInProgressException–Your request is already in progress.
-
ResourceNotFoundException–A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_acm_pca/_services/async_acmpca.py
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 | |