AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.dms.getCertificate
Explore with Pulumi AI
Data source for managing an AWS DMS (Database Migration) Certificate.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.dms.getCertificate({
    certificateId: test.certificateId,
});
import pulumi
import pulumi_aws as aws
example = aws.dms.get_certificate(certificate_id=test["certificateId"])
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: test.CertificateId,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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 = test.CertificateId,
    });
});
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(test.certificateId())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:dms:getCertificate
      arguments:
        certificateId: ${test.certificateId}
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)
public static Output<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
fn::invoke:
  function: aws:dms/getCertificate:getCertificate
  arguments:
    # arguments dictionaryThe 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.
- 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.
- 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.
- 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.
- {[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.
- 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.
- Map<String>
getCertificate Result
The following output properties are available:
- CertificateArn string
- The Amazon Resource Name (ARN) for the certificate.
- CertificateCreation stringDate 
- 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.
- Dictionary<string, string>
- ValidFrom stringDate 
- The beginning date that the certificate is valid.
- ValidTo stringDate 
- The final date that the certificate is valid.
- CertificateArn string
- The Amazon Resource Name (ARN) for the certificate.
- CertificateCreation stringDate 
- 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.
- map[string]string
- ValidFrom stringDate 
- The beginning date that the certificate is valid.
- ValidTo stringDate 
- The final date that the certificate is valid.
- certificateArn String
- The Amazon Resource Name (ARN) for the certificate.
- certificateCreation StringDate 
- 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.
- Map<String,String>
- validFrom StringDate 
- The beginning date that the certificate is valid.
- validTo StringDate 
- The final date that the certificate is valid.
- certificateArn string
- The Amazon Resource Name (ARN) for the certificate.
- certificateCreation stringDate 
- 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.
- {[key: string]: string}
- validFrom stringDate 
- The beginning date that the certificate is valid.
- validTo stringDate 
- The final date that the certificate is valid.
- certificate_arn str
- The Amazon Resource Name (ARN) for the certificate.
- certificate_creation_ strdate 
- 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.
- Mapping[str, str]
- valid_from_ strdate 
- The beginning date that the certificate is valid.
- valid_to_ strdate 
- The final date that the certificate is valid.
- certificateArn String
- The Amazon Resource Name (ARN) for the certificate.
- certificateCreation StringDate 
- 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.
- Map<String>
- validFrom StringDate 
- The beginning date that the certificate is valid.
- validTo StringDate 
- 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 awsTerraform Provider.