CertificateAuthority

class aws_cdk.aws_acmpca.CertificateAuthority(*args: Any, **kwargs)

Bases: object

Defines a Certificate for ACMPCA.

Resource

AWS::ACMPCA::CertificateAuthority

Example:

# mesh is of type Mesh

certificate_authority_arn = "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012"

gateway = appmesh.VirtualGateway(self, "gateway",
    mesh=mesh,
    listeners=[appmesh.VirtualGatewayListener.http(
        port=443,
        health_check=appmesh.HealthCheck.http(
            interval=cdk.Duration.seconds(10)
        )
    )],
    backend_defaults=appmesh.BackendDefaults(
        tls_client_policy=appmesh.TlsClientPolicy(
            ports=[8080, 8081],
            validation=appmesh.TlsValidation(
                trust=appmesh.TlsValidationTrust.acm([
                    acmpca.CertificateAuthority.from_certificate_authority_arn(self, "certificate", certificate_authority_arn)
                ])
            )
        )
    ),
    access_log=appmesh.AccessLog.from_file_path("/dev/stdout"),
    virtual_gateway_name="virtualGateway"
)

Static Methods

classmethod from_certificate_authority_arn(scope, id, certificate_authority_arn)

Import an existing Certificate given an ARN.

Parameters
  • scope (Construct) –

  • id (str) –

  • certificate_authority_arn (str) –

Return type

ICertificateAuthority