Certificate

Provides a DMS (Data Migration Service) certificate resource. DMS certificates can be created, deleted, and imported.

Note: All arguments including the PEM encoded certificate will be stored in the raw state as plain-text.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        // Create a new certificate
        var test = new Aws.Dms.Certificate("test", new Aws.Dms.CertificateArgs
        {
            CertificateId = "test-dms-certificate-tf",
            CertificatePem = "...",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/dms"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := dms.NewCertificate(ctx, "test", &dms.CertificateArgs{
            CertificateId:  pulumi.String("test-dms-certificate-tf"),
            CertificatePem: pulumi.String("..."),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

# Create a new certificate
test = aws.dms.Certificate("test",
    certificate_id="test-dms-certificate-tf",
    certificate_pem="...")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

// Create a new certificate
const test = new aws.dms.Certificate("test", {
    certificateId: "test-dms-certificate-tf",
    certificatePem: "...",
});

Create a Certificate Resource

def Certificate(resource_name, opts=None, certificate_id=None, certificate_pem=None, certificate_wallet=None, __props__=None);
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args CertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Certificate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Certificate resource accepts the following input properties:

CertificateId string

The certificate identifier.

CertificatePem string

The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set.

CertificateWallet string

The contents of the Oracle Wallet certificate for use with SSL. Either certificate_pem or certificate_wallet must be set.

CertificateId string

The certificate identifier.

CertificatePem string

The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set.

CertificateWallet string

The contents of the Oracle Wallet certificate for use with SSL. Either certificate_pem or certificate_wallet must be set.

certificateId string

The certificate identifier.

certificatePem string

The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set.

certificateWallet string

The contents of the Oracle Wallet certificate for use with SSL. Either certificate_pem or certificate_wallet must be set.

certificate_id str

The certificate identifier.

certificate_pem str

The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set.

certificate_wallet str

The contents of the Oracle Wallet certificate for use with SSL. Either certificate_pem or certificate_wallet must be set.

Outputs

All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:

CertificateArn string

The Amazon Resource Name (ARN) for the certificate.

Id string
The provider-assigned unique ID for this managed resource.
CertificateArn string

The Amazon Resource Name (ARN) for the certificate.

Id string
The provider-assigned unique ID for this managed resource.
certificateArn string

The Amazon Resource Name (ARN) for the certificate.

id string
The provider-assigned unique ID for this managed resource.
certificate_arn str

The Amazon Resource Name (ARN) for the certificate.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Certificate Resource

Get an existing Certificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CertificateState, opts?: CustomResourceOptions): Certificate
static get(resource_name, id, opts=None, certificate_arn=None, certificate_id=None, certificate_pem=None, certificate_wallet=None, __props__=None);
func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)
public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

CertificateArn string

The Amazon Resource Name (ARN) for the certificate.

CertificateId string

The certificate identifier.

CertificatePem string

The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set.

CertificateWallet string

The contents of the Oracle Wallet certificate for use with SSL. Either certificate_pem or certificate_wallet must be set.

CertificateArn string

The Amazon Resource Name (ARN) for the certificate.

CertificateId string

The certificate identifier.

CertificatePem string

The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set.

CertificateWallet string

The contents of the Oracle Wallet certificate for use with SSL. Either certificate_pem or certificate_wallet must be set.

certificateArn string

The Amazon Resource Name (ARN) for the certificate.

certificateId string

The certificate identifier.

certificatePem string

The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set.

certificateWallet string

The contents of the Oracle Wallet certificate for use with SSL. Either certificate_pem or certificate_wallet must be set.

certificate_arn str

The Amazon Resource Name (ARN) for the certificate.

certificate_id str

The certificate identifier.

certificate_pem str

The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set.

certificate_wallet str

The contents of the Oracle Wallet certificate for use with SSL. Either certificate_pem or certificate_wallet must be set.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.