1. Packages
  2. AWS
  3. API Docs
  4. rds
  5. Certificate
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.rds.Certificate

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.rds.Certificate("example", {certificateIdentifier: "rds-ca-rsa4096-g1"});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.rds.Certificate("example", certificate_identifier="rds-ca-rsa4096-g1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rds.NewCertificate(ctx, "example", &rds.CertificateArgs{
    			CertificateIdentifier: pulumi.String("rds-ca-rsa4096-g1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Rds.Certificate("example", new()
        {
            CertificateIdentifier = "rds-ca-rsa4096-g1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.rds.Certificate;
    import com.pulumi.aws.rds.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) {
            var example = new Certificate("example", CertificateArgs.builder()
                .certificateIdentifier("rds-ca-rsa4096-g1")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:rds:Certificate
        properties:
          certificateIdentifier: rds-ca-rsa4096-g1
    

    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_identifier: Optional[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:rds: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 examplecertificateResourceResourceFromRdscertificate = new Aws.Rds.Certificate("examplecertificateResourceResourceFromRdscertificate", new()
    {
        CertificateIdentifier = "string",
    });
    
    example, err := rds.NewCertificate(ctx, "examplecertificateResourceResourceFromRdscertificate", &rds.CertificateArgs{
    	CertificateIdentifier: pulumi.String("string"),
    })
    
    var examplecertificateResourceResourceFromRdscertificate = new Certificate("examplecertificateResourceResourceFromRdscertificate", CertificateArgs.builder()
        .certificateIdentifier("string")
        .build());
    
    examplecertificate_resource_resource_from_rdscertificate = aws.rds.Certificate("examplecertificateResourceResourceFromRdscertificate", certificate_identifier="string")
    
    const examplecertificateResourceResourceFromRdscertificate = new aws.rds.Certificate("examplecertificateResourceResourceFromRdscertificate", {certificateIdentifier: "string"});
    
    type: aws:rds:Certificate
    properties:
        certificateIdentifier: 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:

    CertificateIdentifier string
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    CertificateIdentifier string
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    certificateIdentifier String
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    certificateIdentifier string
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    certificate_identifier str
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    certificateIdentifier String
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    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_identifier: 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:
    CertificateIdentifier string
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    CertificateIdentifier string
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    certificateIdentifier String
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    certificateIdentifier string
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    certificate_identifier str
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.
    certificateIdentifier String
    Certificate identifier. For example, rds-ca-rsa4096-g1. Refer to AWS RDS (Relational Database) Certificate Identifier for more information.

    Import

    Using pulumi import, import the default EBS encryption state. For example:

    $ pulumi import aws:rds/certificate:Certificate example default
    

    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
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi