CertificateArgs

data class CertificateArgs(val certificateId: Output<String>? = null, val certificatePem: Output<String>? = null, val certificateWallet: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CertificateArgs>

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

Example Usage

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: "...",
tags: {
Name: "test",
},
});
import pulumi
import pulumi_aws as aws
# Create a new certificate
test = aws.dms.Certificate("test",
certificate_id="test-dms-certificate-tf",
certificate_pem="...",
tags={
"Name": "test",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
// Create a new certificate
var test = new Aws.Dms.Certificate("test", new()
{
CertificateId = "test-dms-certificate-tf",
CertificatePem = "...",
Tags =
{
{ "Name", "test" },
},
});
});
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 {
// Create a new certificate
_, err := dms.NewCertificate(ctx, "test", &dms.CertificateArgs{
CertificateId: pulumi.String("test-dms-certificate-tf"),
CertificatePem: pulumi.String("..."),
Tags: pulumi.StringMap{
"Name": pulumi.String("test"),
},
})
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.Certificate;
import com.pulumi.aws.dms.CertificateArgs;
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) {
// Create a new certificate
var test = new Certificate("test", CertificateArgs.builder()
.certificateId("test-dms-certificate-tf")
.certificatePem("...")
.tags(Map.of("Name", "test"))
.build());
}
}
resources:
# Create a new certificate
test:
type: aws:dms:Certificate
properties:
certificateId: test-dms-certificate-tf
certificatePem: '...'
tags:
Name: test

Import

Using pulumi import, import certificates using the certificate_id. For example:

$ pulumi import aws:dms/certificate:Certificate test test-dms-certificate-tf

Constructors

Link copied to clipboard
constructor(certificateId: Output<String>? = null, certificatePem: Output<String>? = null, certificateWallet: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val certificateId: Output<String>? = null

The certificate identifier.

Link copied to clipboard
val certificatePem: Output<String>? = null

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

Link copied to clipboard
val certificateWallet: Output<String>? = null

The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either certificate_pem or certificate_wallet must be set.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): CertificateArgs