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
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);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:
- Certificate
Id string The certificate identifier.
- Certificate
Pem string The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pemorcertificate_walletmust be set.- Certificate
Wallet string The contents of the Oracle Wallet certificate for use with SSL. Either
certificate_pemorcertificate_walletmust be set.
- Certificate
Id string The certificate identifier.
- Certificate
Pem string The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pemorcertificate_walletmust be set.- Certificate
Wallet string The contents of the Oracle Wallet certificate for use with SSL. Either
certificate_pemorcertificate_walletmust be set.
- certificate
Id string The certificate identifier.
- certificate
Pem string The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pemorcertificate_walletmust be set.- certificate
Wallet string The contents of the Oracle Wallet certificate for use with SSL. Either
certificate_pemorcertificate_walletmust 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_pemorcertificate_walletmust be set.- certificate_
wallet str The contents of the Oracle Wallet certificate for use with SSL. Either
certificate_pemorcertificate_walletmust be set.
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.
- Certificate
Arn string The Amazon Resource Name (ARN) for the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- certificate
Arn 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): Certificatestatic 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:
- Certificate
Arn string The Amazon Resource Name (ARN) for the certificate.
- Certificate
Id string The certificate identifier.
- Certificate
Pem string The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pemorcertificate_walletmust be set.- Certificate
Wallet string The contents of the Oracle Wallet certificate for use with SSL. Either
certificate_pemorcertificate_walletmust be set.
- Certificate
Arn string The Amazon Resource Name (ARN) for the certificate.
- Certificate
Id string The certificate identifier.
- Certificate
Pem string The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pemorcertificate_walletmust be set.- Certificate
Wallet string The contents of the Oracle Wallet certificate for use with SSL. Either
certificate_pemorcertificate_walletmust be set.
- certificate
Arn string The Amazon Resource Name (ARN) for the certificate.
- certificate
Id string The certificate identifier.
- certificate
Pem string The contents of the .pem X.509 certificate file for the certificate. Either
certificate_pemorcertificate_walletmust be set.- certificate
Wallet string The contents of the Oracle Wallet certificate for use with SSL. Either
certificate_pemorcertificate_walletmust 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_pemorcertificate_walletmust be set.- certificate_
wallet str The contents of the Oracle Wallet certificate for use with SSL. Either
certificate_pemorcertificate_walletmust be set.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.