1. Packages
  2. AWS Classic
  3. API Docs
  4. transfer
  5. Certificate

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.1 published on Thursday, May 2, 2024 by Pulumi

aws.transfer.Certificate

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.1 published on Thursday, May 2, 2024 by Pulumi

    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.

    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:

    CertificateFile 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.
    CertificateChain 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 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 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.
    CertificateChain 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 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 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.
    certificateChain 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 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 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.
    certificateChain 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 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 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.
    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 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.
    certificateChain 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 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)
    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.
    The following state arguments are supported:
    ActiveDate string
    An date when the certificate becomes active
    Arn string
    The ARN of the certificate
    CertificateChain string
    The optional list of certificate that make up the chain for the certificate that is being imported.
    CertificateFile 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 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 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 string
    The valid certificate file required for the transfer.
    CertificateChain 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 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 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 String
    The valid certificate file required for the transfer.
    certificateChain 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 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 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 string
    The valid certificate file required for the transfer.
    certificateChain 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 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 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.
    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 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 String
    The valid certificate file required for the transfer.
    certificateChain 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 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 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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.33.1 published on Thursday, May 2, 2024 by Pulumi