1. Packages
  2. AWS Classic
  3. API Docs
  4. dms
  5. getCertificate

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.13.0 published on Saturday, Dec 2, 2023 by Pulumi

aws.dms.getCertificate

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.13.0 published on Saturday, Dec 2, 2023 by Pulumi

    Data source for managing an AWS DMS (Database Migration) Certificate.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Dms.GetCertificate.Invoke(new()
        {
            CertificateId = aws_dms_certificate.Test.Certificate_id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/dms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dms.LookupCertificate(ctx, &dms.LookupCertificateArgs{
    			CertificateId: aws_dms_certificate.Test.Certificate_id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.dms.DmsFunctions;
    import com.pulumi.aws.dms.inputs.GetCertificateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = DmsFunctions.getCertificate(GetCertificateArgs.builder()
                .certificateId(aws_dms_certificate.test().certificate_id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.dms.get_certificate(certificate_id=aws_dms_certificate["test"]["certificate_id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.dms.getCertificate({
        certificateId: aws_dms_certificate.test.certificate_id,
    });
    
    variables:
      example:
        fn::invoke:
          Function: aws:dms:getCertificate
          Arguments:
            certificateId: ${aws_dms_certificate.test.certificate_id}
    

    Using getCertificate

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>
    function getCertificateOutput(args: GetCertificateOutputArgs, opts?: InvokeOptions): Output<GetCertificateResult>
    def get_certificate(certificate_id: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCertificateResult
    def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
                        tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCertificateResult]
    func LookupCertificate(ctx *Context, args *LookupCertificateArgs, opts ...InvokeOption) (*LookupCertificateResult, error)
    func LookupCertificateOutput(ctx *Context, args *LookupCertificateOutputArgs, opts ...InvokeOption) LookupCertificateResultOutput

    > Note: This function is named LookupCertificate in the Go SDK.

    public static class GetCertificate 
    {
        public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetCertificateResult> Invoke(GetCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:dms/getCertificate:getCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateId string

    A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.

    Tags Dictionary<string, string>
    CertificateId string

    A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.

    Tags map[string]string
    certificateId String

    A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.

    tags Map<String,String>
    certificateId string

    A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.

    tags {[key: string]: string}
    certificate_id str

    A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.

    tags Mapping[str, str]
    certificateId String

    A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.

    tags Map<String>

    getCertificate Result

    The following output properties are available:

    CertificateArn string

    The Amazon Resource Name (ARN) for the certificate.

    CertificateCreationDate string

    The date that the certificate was created.

    CertificateId string
    CertificateOwner string

    The owner of the certificate.

    CertificatePem string

    The contents of a .pem file, which contains an X.509 certificate.

    CertificateWallet string

    The owner of the certificate.

    Id string

    The provider-assigned unique ID for this managed resource.

    KeyLength int

    The key length of the cryptographic algorithm being used.

    SigningAlgorithm string

    The algorithm for the certificate.

    Tags Dictionary<string, string>
    ValidFromDate string

    The beginning date that the certificate is valid.

    ValidToDate string

    The final date that the certificate is valid.

    CertificateArn string

    The Amazon Resource Name (ARN) for the certificate.

    CertificateCreationDate string

    The date that the certificate was created.

    CertificateId string
    CertificateOwner string

    The owner of the certificate.

    CertificatePem string

    The contents of a .pem file, which contains an X.509 certificate.

    CertificateWallet string

    The owner of the certificate.

    Id string

    The provider-assigned unique ID for this managed resource.

    KeyLength int

    The key length of the cryptographic algorithm being used.

    SigningAlgorithm string

    The algorithm for the certificate.

    Tags map[string]string
    ValidFromDate string

    The beginning date that the certificate is valid.

    ValidToDate string

    The final date that the certificate is valid.

    certificateArn String

    The Amazon Resource Name (ARN) for the certificate.

    certificateCreationDate String

    The date that the certificate was created.

    certificateId String
    certificateOwner String

    The owner of the certificate.

    certificatePem String

    The contents of a .pem file, which contains an X.509 certificate.

    certificateWallet String

    The owner of the certificate.

    id String

    The provider-assigned unique ID for this managed resource.

    keyLength Integer

    The key length of the cryptographic algorithm being used.

    signingAlgorithm String

    The algorithm for the certificate.

    tags Map<String,String>
    validFromDate String

    The beginning date that the certificate is valid.

    validToDate String

    The final date that the certificate is valid.

    certificateArn string

    The Amazon Resource Name (ARN) for the certificate.

    certificateCreationDate string

    The date that the certificate was created.

    certificateId string
    certificateOwner string

    The owner of the certificate.

    certificatePem string

    The contents of a .pem file, which contains an X.509 certificate.

    certificateWallet string

    The owner of the certificate.

    id string

    The provider-assigned unique ID for this managed resource.

    keyLength number

    The key length of the cryptographic algorithm being used.

    signingAlgorithm string

    The algorithm for the certificate.

    tags {[key: string]: string}
    validFromDate string

    The beginning date that the certificate is valid.

    validToDate string

    The final date that the certificate is valid.

    certificate_arn str

    The Amazon Resource Name (ARN) for the certificate.

    certificate_creation_date str

    The date that the certificate was created.

    certificate_id str
    certificate_owner str

    The owner of the certificate.

    certificate_pem str

    The contents of a .pem file, which contains an X.509 certificate.

    certificate_wallet str

    The owner of the certificate.

    id str

    The provider-assigned unique ID for this managed resource.

    key_length int

    The key length of the cryptographic algorithm being used.

    signing_algorithm str

    The algorithm for the certificate.

    tags Mapping[str, str]
    valid_from_date str

    The beginning date that the certificate is valid.

    valid_to_date str

    The final date that the certificate is valid.

    certificateArn String

    The Amazon Resource Name (ARN) for the certificate.

    certificateCreationDate String

    The date that the certificate was created.

    certificateId String
    certificateOwner String

    The owner of the certificate.

    certificatePem String

    The contents of a .pem file, which contains an X.509 certificate.

    certificateWallet String

    The owner of the certificate.

    id String

    The provider-assigned unique ID for this managed resource.

    keyLength Number

    The key length of the cryptographic algorithm being used.

    signingAlgorithm String

    The algorithm for the certificate.

    tags Map<String>
    validFromDate String

    The beginning date that the certificate is valid.

    validToDate String

    The final date that the certificate is valid.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.13.0 published on Saturday, Dec 2, 2023 by Pulumi