AWS v6.60.0 published on Tuesday, Nov 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:dms/getCertificate:getCertificate
arguments:
# arguments dictionary
The following arguments are supported:
- Certificate
Id 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>
- Certificate
Id 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
- certificate
Id 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>
- certificate
Id 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]
- certificate
Id 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:
- Certificate
Arn string - The Amazon Resource Name (ARN) for the certificate.
- Certificate
Creation stringDate - The date that the certificate was created.
- Certificate
Id string - Certificate
Owner string - The owner of the certificate.
- Certificate
Pem string - The contents of a .pem file, which contains an X.509 certificate.
- Certificate
Wallet string - The owner of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Length int - The key length of the cryptographic algorithm being used.
- Signing
Algorithm string - The algorithm for the certificate.
- Dictionary<string, string>
- Valid
From stringDate - The beginning date that the certificate is valid.
- Valid
To stringDate - The final date that the certificate is valid.
- Certificate
Arn string - The Amazon Resource Name (ARN) for the certificate.
- Certificate
Creation stringDate - The date that the certificate was created.
- Certificate
Id string - Certificate
Owner string - The owner of the certificate.
- Certificate
Pem string - The contents of a .pem file, which contains an X.509 certificate.
- Certificate
Wallet string - The owner of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Length int - The key length of the cryptographic algorithm being used.
- Signing
Algorithm string - The algorithm for the certificate.
- map[string]string
- Valid
From stringDate - The beginning date that the certificate is valid.
- Valid
To stringDate - The final date that the certificate is valid.
- certificate
Arn String - The Amazon Resource Name (ARN) for the certificate.
- certificate
Creation StringDate - The date that the certificate was created.
- certificate
Id String - certificate
Owner String - The owner of the certificate.
- certificate
Pem String - The contents of a .pem file, which contains an X.509 certificate.
- certificate
Wallet String - The owner of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Length Integer - The key length of the cryptographic algorithm being used.
- signing
Algorithm String - The algorithm for the certificate.
- Map<String,String>
- valid
From StringDate - The beginning date that the certificate is valid.
- valid
To StringDate - The final date that the certificate is valid.
- certificate
Arn string - The Amazon Resource Name (ARN) for the certificate.
- certificate
Creation stringDate - The date that the certificate was created.
- certificate
Id string - certificate
Owner string - The owner of the certificate.
- certificate
Pem string - The contents of a .pem file, which contains an X.509 certificate.
- certificate
Wallet string - The owner of the certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- key
Length number - The key length of the cryptographic algorithm being used.
- signing
Algorithm string - The algorithm for the certificate.
- {[key: string]: string}
- valid
From stringDate - The beginning date that the certificate is valid.
- valid
To 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.
- certificate
Arn String - The Amazon Resource Name (ARN) for the certificate.
- certificate
Creation StringDate - The date that the certificate was created.
- certificate
Id String - certificate
Owner String - The owner of the certificate.
- certificate
Pem String - The contents of a .pem file, which contains an X.509 certificate.
- certificate
Wallet String - The owner of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Length Number - The key length of the cryptographic algorithm being used.
- signing
Algorithm String - The algorithm for the certificate.
- Map<String>
- valid
From StringDate - The beginning date that the certificate is valid.
- valid
To 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
aws
Terraform Provider.