1. Packages
  2. AWS
  3. API Docs
  4. transfer
  5. Certificate
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.transfer.Certificate

Explore with Pulumi AI

Provides a AWS Transfer AS2 Certificate resource.

Example Usage

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: Optional[str] = None,
                usage: Optional[str] = None,
                certificate_chain: Optional[str] = None,
                description: Optional[str] = None,
                private_key: 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:transfer:Certificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 examplecertificateResourceResourceFromTransfercertificate = new Aws.Transfer.Certificate("examplecertificateResourceResourceFromTransfercertificate", new()
{
    CertificateFile = "string",
    Usage = "string",
    CertificateChain = "string",
    Description = "string",
    PrivateKey = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := transfer.NewCertificate(ctx, "examplecertificateResourceResourceFromTransfercertificate", &transfer.CertificateArgs{
	Certificate:      pulumi.String("string"),
	Usage:            pulumi.String("string"),
	CertificateChain: pulumi.String("string"),
	Description:      pulumi.String("string"),
	PrivateKey:       pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var examplecertificateResourceResourceFromTransfercertificate = new Certificate("examplecertificateResourceResourceFromTransfercertificate", CertificateArgs.builder()
    .certificate("string")
    .usage("string")
    .certificateChain("string")
    .description("string")
    .privateKey("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
examplecertificate_resource_resource_from_transfercertificate = aws.transfer.Certificate("examplecertificateResourceResourceFromTransfercertificate",
    certificate="string",
    usage="string",
    certificate_chain="string",
    description="string",
    private_key="string",
    tags={
        "string": "string",
    })
Copy
const examplecertificateResourceResourceFromTransfercertificate = new aws.transfer.Certificate("examplecertificateResourceResourceFromTransfercertificate", {
    certificate: "string",
    usage: "string",
    certificateChain: "string",
    description: "string",
    privateKey: "string",
    tags: {
        string: "string",
    },
});
Copy
type: aws:transfer:Certificate
properties:
    certificate: string
    certificateChain: string
    description: string
    privateKey: string
    tags:
        string: string
    usage: string
Copy

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:

CertificateFile
This property is required.
Changes to this property will trigger replacement.
string
The valid certificate file required for the transfer.
Usage
This property is required.
Changes to this property will trigger replacement.
string
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
CertificateChain Changes to this property will trigger replacement. string
The optional list of certificate that make up the chain for the certificate that is being imported.
Description string
A short description that helps identify the certificate.
PrivateKey Changes to this property will trigger replacement. string
The private key associated with the certificate being imported.
Tags 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
This property is required.
Changes to this property will trigger replacement.
string
The valid certificate file required for the transfer.
Usage
This property is required.
Changes to this property will trigger replacement.
string
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
CertificateChain Changes to this property will trigger replacement. string
The optional list of certificate that make up the chain for the certificate that is being imported.
Description string
A short description that helps identify the certificate.
PrivateKey Changes to this property will trigger replacement. string
The private key associated with the certificate being imported.
Tags 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
This property is required.
Changes to this property will trigger replacement.
String
The valid certificate file required for the transfer.
usage
This property is required.
Changes to this property will trigger replacement.
String
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
certificateChain Changes to this property will trigger replacement. String
The optional list of certificate that make up the chain for the certificate that is being imported.
description String
A short description that helps identify the certificate.
privateKey Changes to this property will trigger replacement. String
The private key associated with the certificate being imported.
tags 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
This property is required.
Changes to this property will trigger replacement.
string
The valid certificate file required for the transfer.
usage
This property is required.
Changes to this property will trigger replacement.
string
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
certificateChain Changes to this property will trigger replacement. string
The optional list of certificate that make up the chain for the certificate that is being imported.
description string
A short description that helps identify the certificate.
privateKey Changes to this property will trigger replacement. string
The private key associated with the certificate being imported.
tags {[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
This property is required.
Changes to this property will trigger replacement.
str
The valid certificate file required for the transfer.
usage
This property is required.
Changes to this property will trigger replacement.
str
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
certificate_chain Changes to this property will trigger replacement. str
The optional list of certificate that make up the chain for the certificate that is being imported.
description str
A short description that helps identify the certificate.
private_key Changes to this property will trigger replacement. str
The private key associated with the certificate being imported.
tags 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
This property is required.
Changes to this property will trigger replacement.
String
The valid certificate file required for the transfer.
usage
This property is required.
Changes to this property will trigger replacement.
String
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
certificateChain Changes to this property will trigger replacement. String
The optional list of certificate that make up the chain for the certificate that is being imported.
description String
A short description that helps identify the certificate.
privateKey Changes to this property will trigger replacement. String
The private key associated with the certificate being imported.
tags 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:

ActiveDate string
An date when the certificate becomes active
Arn string
The ARN of the certificate
CertificateId string
The unique identifier for the AS2 certificate
Id string
The provider-assigned unique ID for this managed resource.
InactiveDate string
An date when the certificate becomes inactive
TagsAll Dictionary<string, string>

Deprecated: Please use tags instead.

ActiveDate string
An date when the certificate becomes active
Arn string
The ARN of the certificate
CertificateId string
The unique identifier for the AS2 certificate
Id string
The provider-assigned unique ID for this managed resource.
InactiveDate string
An date when the certificate becomes inactive
TagsAll map[string]string

Deprecated: Please use tags instead.

activeDate String
An date when the certificate becomes active
arn String
The ARN of the certificate
certificateId String
The unique identifier for the AS2 certificate
id String
The provider-assigned unique ID for this managed resource.
inactiveDate String
An date when the certificate becomes inactive
tagsAll Map<String,String>

Deprecated: Please use tags instead.

activeDate string
An date when the certificate becomes active
arn string
The ARN of the certificate
certificateId string
The unique identifier for the AS2 certificate
id string
The provider-assigned unique ID for this managed resource.
inactiveDate string
An date when the certificate becomes inactive
tagsAll {[key: string]: string}

Deprecated: Please use tags instead.

active_date str
An date when the certificate becomes active
arn str
The ARN of the certificate
certificate_id str
The unique identifier for the AS2 certificate
id str
The provider-assigned unique ID for this managed resource.
inactive_date str
An date when the certificate becomes inactive
tags_all Mapping[str, str]

Deprecated: Please use tags instead.

activeDate String
An date when the certificate becomes active
arn String
The ARN of the certificate
certificateId String
The unique identifier for the AS2 certificate
id String
The provider-assigned unique ID for this managed resource.
inactiveDate String
An date when the certificate becomes inactive
tagsAll Map<String>

Deprecated: Please use tags instead.

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,
        active_date: Optional[str] = None,
        arn: Optional[str] = None,
        certificate: Optional[str] = None,
        certificate_chain: Optional[str] = None,
        certificate_id: Optional[str] = None,
        description: Optional[str] = None,
        inactive_date: Optional[str] = None,
        private_key: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        usage: Optional[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)
resources:  _:    type: aws:transfer:Certificate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ActiveDate string
An date when the certificate becomes active
Arn string
The ARN of the certificate
CertificateChain Changes to this property will trigger replacement. string
The optional list of certificate that make up the chain for the certificate that is being imported.
CertificateFile Changes to this property will trigger replacement. string
The valid certificate file required for the transfer.
CertificateId string
The unique identifier for the AS2 certificate
Description string
A short description that helps identify the certificate.
InactiveDate string
An date when the certificate becomes inactive
PrivateKey Changes to this property will trigger replacement. string
The private key associated with the certificate being imported.
Tags 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.
TagsAll Dictionary<string, string>

Deprecated: Please use tags instead.

Usage Changes to this property will trigger replacement. string
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
ActiveDate string
An date when the certificate becomes active
Arn string
The ARN of the certificate
Certificate Changes to this property will trigger replacement. string
The valid certificate file required for the transfer.
CertificateChain Changes to this property will trigger replacement. string
The optional list of certificate that make up the chain for the certificate that is being imported.
CertificateId string
The unique identifier for the AS2 certificate
Description string
A short description that helps identify the certificate.
InactiveDate string
An date when the certificate becomes inactive
PrivateKey Changes to this property will trigger replacement. string
The private key associated with the certificate being imported.
Tags 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.
TagsAll map[string]string

Deprecated: Please use tags instead.

Usage Changes to this property will trigger replacement. string
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
activeDate String
An date when the certificate becomes active
arn String
The ARN of the certificate
certificate Changes to this property will trigger replacement. String
The valid certificate file required for the transfer.
certificateChain Changes to this property will trigger replacement. String
The optional list of certificate that make up the chain for the certificate that is being imported.
certificateId String
The unique identifier for the AS2 certificate
description String
A short description that helps identify the certificate.
inactiveDate String
An date when the certificate becomes inactive
privateKey Changes to this property will trigger replacement. String
The private key associated with the certificate being imported.
tags 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.
tagsAll Map<String,String>

Deprecated: Please use tags instead.

usage Changes to this property will trigger replacement. String
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
activeDate string
An date when the certificate becomes active
arn string
The ARN of the certificate
certificate Changes to this property will trigger replacement. string
The valid certificate file required for the transfer.
certificateChain Changes to this property will trigger replacement. string
The optional list of certificate that make up the chain for the certificate that is being imported.
certificateId string
The unique identifier for the AS2 certificate
description string
A short description that helps identify the certificate.
inactiveDate string
An date when the certificate becomes inactive
privateKey Changes to this property will trigger replacement. string
The private key associated with the certificate being imported.
tags {[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.
tagsAll {[key: string]: string}

Deprecated: Please use tags instead.

usage Changes to this property will trigger replacement. string
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
active_date str
An date when the certificate becomes active
arn str
The ARN of the certificate
certificate Changes to this property will trigger replacement. str
The valid certificate file required for the transfer.
certificate_chain Changes to this property will trigger replacement. str
The optional list of certificate that make up the chain for the certificate that is being imported.
certificate_id str
The unique identifier for the AS2 certificate
description str
A short description that helps identify the certificate.
inactive_date str
An date when the certificate becomes inactive
private_key Changes to this property will trigger replacement. str
The private key associated with the certificate being imported.
tags 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.
tags_all Mapping[str, str]

Deprecated: Please use tags instead.

usage Changes to this property will trigger replacement. str
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
activeDate String
An date when the certificate becomes active
arn String
The ARN of the certificate
certificate Changes to this property will trigger replacement. String
The valid certificate file required for the transfer.
certificateChain Changes to this property will trigger replacement. String
The optional list of certificate that make up the chain for the certificate that is being imported.
certificateId String
The unique identifier for the AS2 certificate
description String
A short description that helps identify the certificate.
inactiveDate String
An date when the certificate becomes inactive
privateKey Changes to this property will trigger replacement. String
The private key associated with the certificate being imported.
tags 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.
tagsAll Map<String>

Deprecated: Please use tags instead.

usage Changes to this property will trigger replacement. String
Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.

Import

Using pulumi import, import Transfer AS2 Certificate using the certificate_id. For example:

$ pulumi import aws:transfer/certificate:Certificate example c-4221a88afd5f4362a
Copy

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.