Try AWS Native preview for resources not in the classic version.
aws.transfer.Certificate
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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 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 examplecertificateResourceResourceFromTransfercertificate = new Aws.Transfer.Certificate("examplecertificateResourceResourceFromTransfercertificate", new()
{
CertificateFile = "string",
Usage = "string",
CertificateChain = "string",
Description = "string",
PrivateKey = "string",
Tags =
{
{ "string", "string" },
},
});
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"),
},
})
var examplecertificateResourceResourceFromTransfercertificate = new Certificate("examplecertificateResourceResourceFromTransfercertificate", CertificateArgs.builder()
.certificate("string")
.usage("string")
.certificateChain("string")
.description("string")
.privateKey("string")
.tags(Map.of("string", "string"))
.build());
examplecertificate_resource_resource_from_transfercertificate = aws.transfer.Certificate("examplecertificateResourceResourceFromTransfercertificate",
certificate="string",
usage="string",
certificate_chain="string",
description="string",
private_key="string",
tags={
"string": "string",
})
const examplecertificateResourceResourceFromTransfercertificate = new aws.transfer.Certificate("examplecertificateResourceResourceFromTransfercertificate", {
certificate: "string",
usage: "string",
certificateChain: "string",
description: "string",
privateKey: "string",
tags: {
string: "string",
},
});
type: aws:transfer:Certificate
properties:
certificate: string
certificateChain: string
description: string
privateKey: string
tags:
string: string
usage: 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
The Certificate resource accepts the following input properties:
- Certificate
File string - The valid certificate file required for the transfer.
- Usage string
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- Certificate
Chain 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.
- Private
Key string - The private key associated with the certificate being imported.
- 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 string
- The valid certificate file required for the transfer.
- Usage string
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- Certificate
Chain 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.
- Private
Key string - The private key associated with the certificate being imported.
- 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 String
- The valid certificate file required for the transfer.
- usage String
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- certificate
Chain 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.
- private
Key String - The private key associated with the certificate being imported.
- 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 string
- The valid certificate file required for the transfer.
- usage string
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- certificate
Chain 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.
- private
Key string - The private key associated with the certificate being imported.
- {[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 str
- The valid certificate file required for the transfer.
- usage str
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- certificate_
chain 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 str - The private key associated with the certificate being imported.
- 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 String
- The valid certificate file required for the transfer.
- usage String
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- certificate
Chain 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.
- private
Key String - The private key associated with the certificate being imported.
- 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:
- Active
Date string - An date when the certificate becomes active
- Arn string
- The ARN of the certificate
- Certificate
Id string - The unique identifier for the AS2 certificate
- Id string
- The provider-assigned unique ID for this managed resource.
- Inactive
Date string - An date when the certificate becomes inactive
- Dictionary<string, string>
- Active
Date string - An date when the certificate becomes active
- Arn string
- The ARN of the certificate
- Certificate
Id string - The unique identifier for the AS2 certificate
- Id string
- The provider-assigned unique ID for this managed resource.
- Inactive
Date string - An date when the certificate becomes inactive
- map[string]string
- active
Date String - An date when the certificate becomes active
- arn String
- The ARN of the certificate
- certificate
Id String - The unique identifier for the AS2 certificate
- id String
- The provider-assigned unique ID for this managed resource.
- inactive
Date String - An date when the certificate becomes inactive
- Map<String,String>
- active
Date string - An date when the certificate becomes active
- arn string
- The ARN of the certificate
- certificate
Id string - The unique identifier for the AS2 certificate
- id string
- The provider-assigned unique ID for this managed resource.
- inactive
Date string - An date when the certificate becomes inactive
- {[key: string]: string}
- 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
- Mapping[str, str]
- active
Date String - An date when the certificate becomes active
- arn String
- The ARN of the certificate
- certificate
Id String - The unique identifier for the AS2 certificate
- id String
- The provider-assigned unique ID for this managed resource.
- inactive
Date String - An date when the certificate becomes inactive
- Map<String>
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)
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.
- Active
Date string - An date when the certificate becomes active
- Arn string
- The ARN of the certificate
- Certificate
Chain string - The optional list of certificate that make up the chain for the certificate that is being imported.
- Certificate
File string - The valid certificate file required for the transfer.
- Certificate
Id string - The unique identifier for the AS2 certificate
- Description string
- A short description that helps identify the certificate.
- Inactive
Date string - An date when the certificate becomes inactive
- Private
Key string - The private key associated with the certificate being imported.
- 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>
- Usage string
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- Active
Date string - An date when the certificate becomes active
- Arn string
- The ARN of the certificate
- Certificate string
- The valid certificate file required for the transfer.
- Certificate
Chain string - The optional list of certificate that make up the chain for the certificate that is being imported.
- Certificate
Id string - The unique identifier for the AS2 certificate
- Description string
- A short description that helps identify the certificate.
- Inactive
Date string - An date when the certificate becomes inactive
- Private
Key string - The private key associated with the certificate being imported.
- 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
- Usage string
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- active
Date String - An date when the certificate becomes active
- arn String
- The ARN of the certificate
- certificate String
- The valid certificate file required for the transfer.
- certificate
Chain String - The optional list of certificate that make up the chain for the certificate that is being imported.
- certificate
Id String - The unique identifier for the AS2 certificate
- description String
- A short description that helps identify the certificate.
- inactive
Date String - An date when the certificate becomes inactive
- private
Key String - The private key associated with the certificate being imported.
- 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>
- usage String
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- active
Date string - An date when the certificate becomes active
- arn string
- The ARN of the certificate
- certificate string
- The valid certificate file required for the transfer.
- certificate
Chain string - The optional list of certificate that make up the chain for the certificate that is being imported.
- certificate
Id string - The unique identifier for the AS2 certificate
- description string
- A short description that helps identify the certificate.
- inactive
Date string - An date when the certificate becomes inactive
- private
Key string - The private key associated with the certificate being imported.
- {[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}
- usage 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 str
- The valid certificate file required for the transfer.
- certificate_
chain 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 str - The private key associated with the certificate being imported.
- 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]
- usage str
- Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
- active
Date String - An date when the certificate becomes active
- arn String
- The ARN of the certificate
- certificate String
- The valid certificate file required for the transfer.
- certificate
Chain String - The optional list of certificate that make up the chain for the certificate that is being imported.
- certificate
Id String - The unique identifier for the AS2 certificate
- description String
- A short description that helps identify the certificate.
- inactive
Date String - An date when the certificate becomes inactive
- private
Key String - The private key associated with the certificate being imported.
- 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>
- usage 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
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.
Try AWS Native preview for resources not in the classic version.