aws.dms.Certificate
Explore with Pulumi AI
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",
})
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
})
}
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 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
Create Certificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
args: CertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Certificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
certificate_pem: Optional[str] = None,
certificate_wallet: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: aws:dms:Certificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args CertificateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplecertificateResourceResourceFromDmscertificate = new Aws.Dms.Certificate("examplecertificateResourceResourceFromDmscertificate", new()
{
CertificateId = "string",
CertificatePem = "string",
CertificateWallet = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := dms.NewCertificate(ctx, "examplecertificateResourceResourceFromDmscertificate", &dms.CertificateArgs{
CertificateId: pulumi.String("string"),
CertificatePem: pulumi.String("string"),
CertificateWallet: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var examplecertificateResourceResourceFromDmscertificate = new Certificate("examplecertificateResourceResourceFromDmscertificate", CertificateArgs.builder()
.certificateId("string")
.certificatePem("string")
.certificateWallet("string")
.tags(Map.of("string", "string"))
.build());
examplecertificate_resource_resource_from_dmscertificate = aws.dms.Certificate("examplecertificateResourceResourceFromDmscertificate",
certificate_id="string",
certificate_pem="string",
certificate_wallet="string",
tags={
"string": "string",
})
const examplecertificateResourceResourceFromDmscertificate = new aws.dms.Certificate("examplecertificateResourceResourceFromDmscertificate", {
certificateId: "string",
certificatePem: "string",
certificateWallet: "string",
tags: {
string: "string",
},
});
type: aws:dms:Certificate
properties:
certificateId: string
certificatePem: string
certificateWallet: string
tags:
string: string
Certificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Certificate resource accepts the following input properties:
- Certificate
Id string - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- Certificate
Pem string - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - Certificate
Wallet string - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - Dictionary<string, string>
- 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.
- Certificate
Id string - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- Certificate
Pem string - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - Certificate
Wallet string - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - map[string]string
- 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.
- certificate
Id String - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- certificate
Pem String - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - certificate
Wallet String - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - Map<String,String>
- 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.
- certificate
Id string - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- certificate
Pem string - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - certificate
Wallet string - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - {[key: string]: string}
- 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.
- certificate_
id str - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- certificate_
pem str - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - certificate_
wallet str - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - Mapping[str, str]
- 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.
- certificate
Id String - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- certificate
Pem String - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - certificate
Wallet String - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - Map<String>
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:
- Certificate
Arn string - The Amazon Resource Name (ARN) for the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Certificate
Arn string - The Amazon Resource Name (ARN) for the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- certificate
Arn String - The Amazon Resource Name (ARN) for the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- certificate
Arn string - The Amazon Resource Name (ARN) for the certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- certificate_
arn str - The Amazon Resource Name (ARN) for the certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- certificate
Arn String - The Amazon Resource Name (ARN) for the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up 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
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_arn: Optional[str] = None,
certificate_id: Optional[str] = None,
certificate_pem: Optional[str] = None,
certificate_wallet: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> Certificate
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)
public static Certificate get(String name, Output<String> id, CertificateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Certificate
Arn string - The Amazon Resource Name (ARN) for the certificate.
- Certificate
Id string - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- Certificate
Pem string - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - Certificate
Wallet string - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - Dictionary<string, string>
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Certificate
Arn string - The Amazon Resource Name (ARN) for the certificate.
- Certificate
Id string - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- Certificate
Pem string - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - Certificate
Wallet string - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - map[string]string
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- certificate
Arn String - The Amazon Resource Name (ARN) for the certificate.
- certificate
Id String - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- certificate
Pem String - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - certificate
Wallet String - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - Map<String,String>
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- certificate
Arn string - The Amazon Resource Name (ARN) for the certificate.
- certificate
Id string - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- certificate
Pem string - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - certificate
Wallet string - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - {[key: string]: string}
- 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- certificate_
arn str - The Amazon Resource Name (ARN) for the certificate.
- certificate_
id str - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- certificate_
pem str - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - certificate_
wallet str - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- certificate
Arn String - The Amazon Resource Name (ARN) for the certificate.
- certificate
Id String - The certificate identifier.
- Must contain from 1 to 255 alphanumeric characters and hyphens.
- certificate
Pem String - The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pem
orcertificate_wallet
must be set. - certificate
Wallet String - The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either
certificate_pem
orcertificate_wallet
must be set. - Map<String>
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import certificates using the certificate_id
. For example:
$ pulumi import aws:dms/certificate:Certificate test test-dms-certificate-tf
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.