1. Packages
  2. Scaleway
  3. API Docs
  4. LoadbalancerCertificate
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.LoadbalancerCertificate

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Create LoadbalancerCertificate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LoadbalancerCertificate(name: string, args: LoadbalancerCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def LoadbalancerCertificate(resource_name: str,
                                args: LoadbalancerCertificateArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoadbalancerCertificate(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                lb_id: Optional[str] = None,
                                custom_certificate: Optional[LoadbalancerCertificateCustomCertificateArgs] = None,
                                letsencrypt: Optional[LoadbalancerCertificateLetsencryptArgs] = None,
                                name: Optional[str] = None)
    func NewLoadbalancerCertificate(ctx *Context, name string, args LoadbalancerCertificateArgs, opts ...ResourceOption) (*LoadbalancerCertificate, error)
    public LoadbalancerCertificate(string name, LoadbalancerCertificateArgs args, CustomResourceOptions? opts = null)
    public LoadbalancerCertificate(String name, LoadbalancerCertificateArgs args)
    public LoadbalancerCertificate(String name, LoadbalancerCertificateArgs args, CustomResourceOptions options)
    
    type: scaleway:LoadbalancerCertificate
    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 LoadbalancerCertificateArgs
    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 LoadbalancerCertificateArgs
    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 LoadbalancerCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoadbalancerCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoadbalancerCertificateArgs
    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 loadbalancerCertificateResource = new Scaleway.LoadbalancerCertificate("loadbalancerCertificateResource", new()
    {
        LbId = "string",
        CustomCertificate = new Scaleway.Inputs.LoadbalancerCertificateCustomCertificateArgs
        {
            CertificateChain = "string",
        },
        Letsencrypt = new Scaleway.Inputs.LoadbalancerCertificateLetsencryptArgs
        {
            CommonName = "string",
            SubjectAlternativeNames = new[]
            {
                "string",
            },
        },
        Name = "string",
    });
    
    example, err := scaleway.NewLoadbalancerCertificate(ctx, "loadbalancerCertificateResource", &scaleway.LoadbalancerCertificateArgs{
    	LbId: pulumi.String("string"),
    	CustomCertificate: &scaleway.LoadbalancerCertificateCustomCertificateArgs{
    		CertificateChain: pulumi.String("string"),
    	},
    	Letsencrypt: &scaleway.LoadbalancerCertificateLetsencryptArgs{
    		CommonName: pulumi.String("string"),
    		SubjectAlternativeNames: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var loadbalancerCertificateResource = new LoadbalancerCertificate("loadbalancerCertificateResource", LoadbalancerCertificateArgs.builder()
        .lbId("string")
        .customCertificate(LoadbalancerCertificateCustomCertificateArgs.builder()
            .certificateChain("string")
            .build())
        .letsencrypt(LoadbalancerCertificateLetsencryptArgs.builder()
            .commonName("string")
            .subjectAlternativeNames("string")
            .build())
        .name("string")
        .build());
    
    loadbalancer_certificate_resource = scaleway.LoadbalancerCertificate("loadbalancerCertificateResource",
        lb_id="string",
        custom_certificate={
            "certificate_chain": "string",
        },
        letsencrypt={
            "common_name": "string",
            "subject_alternative_names": ["string"],
        },
        name="string")
    
    const loadbalancerCertificateResource = new scaleway.LoadbalancerCertificate("loadbalancerCertificateResource", {
        lbId: "string",
        customCertificate: {
            certificateChain: "string",
        },
        letsencrypt: {
            commonName: "string",
            subjectAlternativeNames: ["string"],
        },
        name: "string",
    });
    
    type: scaleway:LoadbalancerCertificate
    properties:
        customCertificate:
            certificateChain: string
        lbId: string
        letsencrypt:
            commonName: string
            subjectAlternativeNames:
                - string
        name: string
    

    LoadbalancerCertificate 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 LoadbalancerCertificate resource accepts the following input properties:

    LbId string
    The load-balancer ID
    CustomCertificate Pulumiverse.Scaleway.Inputs.LoadbalancerCertificateCustomCertificate
    The custom type certificate type configuration
    Letsencrypt Pulumiverse.Scaleway.Inputs.LoadbalancerCertificateLetsencrypt
    The Let's Encrypt type certificate configuration
    Name string
    The name of the load-balancer certificate
    LbId string
    The load-balancer ID
    CustomCertificate LoadbalancerCertificateCustomCertificateArgs
    The custom type certificate type configuration
    Letsencrypt LoadbalancerCertificateLetsencryptArgs
    The Let's Encrypt type certificate configuration
    Name string
    The name of the load-balancer certificate
    lbId String
    The load-balancer ID
    customCertificate LoadbalancerCertificateCustomCertificate
    The custom type certificate type configuration
    letsencrypt LoadbalancerCertificateLetsencrypt
    The Let's Encrypt type certificate configuration
    name String
    The name of the load-balancer certificate
    lbId string
    The load-balancer ID
    customCertificate LoadbalancerCertificateCustomCertificate
    The custom type certificate type configuration
    letsencrypt LoadbalancerCertificateLetsencrypt
    The Let's Encrypt type certificate configuration
    name string
    The name of the load-balancer certificate
    lb_id str
    The load-balancer ID
    custom_certificate LoadbalancerCertificateCustomCertificateArgs
    The custom type certificate type configuration
    letsencrypt LoadbalancerCertificateLetsencryptArgs
    The Let's Encrypt type certificate configuration
    name str
    The name of the load-balancer certificate
    lbId String
    The load-balancer ID
    customCertificate Property Map
    The custom type certificate type configuration
    letsencrypt Property Map
    The Let's Encrypt type certificate configuration
    name String
    The name of the load-balancer certificate

    Outputs

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

    CommonName string
    Main domain of the certificate
    Fingerprint string
    The identifier (SHA-1) of the certificate
    Id string
    The provider-assigned unique ID for this managed resource.
    NotValidAfter string
    The not valid after validity bound timestamp
    NotValidBefore string
    The not valid before validity bound timestamp
    Status string
    Certificate status
    SubjectAlternativeNames List<string>
    The alternative domain names of the certificate
    CommonName string
    Main domain of the certificate
    Fingerprint string
    The identifier (SHA-1) of the certificate
    Id string
    The provider-assigned unique ID for this managed resource.
    NotValidAfter string
    The not valid after validity bound timestamp
    NotValidBefore string
    The not valid before validity bound timestamp
    Status string
    Certificate status
    SubjectAlternativeNames []string
    The alternative domain names of the certificate
    commonName String
    Main domain of the certificate
    fingerprint String
    The identifier (SHA-1) of the certificate
    id String
    The provider-assigned unique ID for this managed resource.
    notValidAfter String
    The not valid after validity bound timestamp
    notValidBefore String
    The not valid before validity bound timestamp
    status String
    Certificate status
    subjectAlternativeNames List<String>
    The alternative domain names of the certificate
    commonName string
    Main domain of the certificate
    fingerprint string
    The identifier (SHA-1) of the certificate
    id string
    The provider-assigned unique ID for this managed resource.
    notValidAfter string
    The not valid after validity bound timestamp
    notValidBefore string
    The not valid before validity bound timestamp
    status string
    Certificate status
    subjectAlternativeNames string[]
    The alternative domain names of the certificate
    common_name str
    Main domain of the certificate
    fingerprint str
    The identifier (SHA-1) of the certificate
    id str
    The provider-assigned unique ID for this managed resource.
    not_valid_after str
    The not valid after validity bound timestamp
    not_valid_before str
    The not valid before validity bound timestamp
    status str
    Certificate status
    subject_alternative_names Sequence[str]
    The alternative domain names of the certificate
    commonName String
    Main domain of the certificate
    fingerprint String
    The identifier (SHA-1) of the certificate
    id String
    The provider-assigned unique ID for this managed resource.
    notValidAfter String
    The not valid after validity bound timestamp
    notValidBefore String
    The not valid before validity bound timestamp
    status String
    Certificate status
    subjectAlternativeNames List<String>
    The alternative domain names of the certificate

    Look up Existing LoadbalancerCertificate Resource

    Get an existing LoadbalancerCertificate 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?: LoadbalancerCertificateState, opts?: CustomResourceOptions): LoadbalancerCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            common_name: Optional[str] = None,
            custom_certificate: Optional[LoadbalancerCertificateCustomCertificateArgs] = None,
            fingerprint: Optional[str] = None,
            lb_id: Optional[str] = None,
            letsencrypt: Optional[LoadbalancerCertificateLetsencryptArgs] = None,
            name: Optional[str] = None,
            not_valid_after: Optional[str] = None,
            not_valid_before: Optional[str] = None,
            status: Optional[str] = None,
            subject_alternative_names: Optional[Sequence[str]] = None) -> LoadbalancerCertificate
    func GetLoadbalancerCertificate(ctx *Context, name string, id IDInput, state *LoadbalancerCertificateState, opts ...ResourceOption) (*LoadbalancerCertificate, error)
    public static LoadbalancerCertificate Get(string name, Input<string> id, LoadbalancerCertificateState? state, CustomResourceOptions? opts = null)
    public static LoadbalancerCertificate get(String name, Output<String> id, LoadbalancerCertificateState 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:
    CommonName string
    Main domain of the certificate
    CustomCertificate Pulumiverse.Scaleway.Inputs.LoadbalancerCertificateCustomCertificate
    The custom type certificate type configuration
    Fingerprint string
    The identifier (SHA-1) of the certificate
    LbId string
    The load-balancer ID
    Letsencrypt Pulumiverse.Scaleway.Inputs.LoadbalancerCertificateLetsencrypt
    The Let's Encrypt type certificate configuration
    Name string
    The name of the load-balancer certificate
    NotValidAfter string
    The not valid after validity bound timestamp
    NotValidBefore string
    The not valid before validity bound timestamp
    Status string
    Certificate status
    SubjectAlternativeNames List<string>
    The alternative domain names of the certificate
    CommonName string
    Main domain of the certificate
    CustomCertificate LoadbalancerCertificateCustomCertificateArgs
    The custom type certificate type configuration
    Fingerprint string
    The identifier (SHA-1) of the certificate
    LbId string
    The load-balancer ID
    Letsencrypt LoadbalancerCertificateLetsencryptArgs
    The Let's Encrypt type certificate configuration
    Name string
    The name of the load-balancer certificate
    NotValidAfter string
    The not valid after validity bound timestamp
    NotValidBefore string
    The not valid before validity bound timestamp
    Status string
    Certificate status
    SubjectAlternativeNames []string
    The alternative domain names of the certificate
    commonName String
    Main domain of the certificate
    customCertificate LoadbalancerCertificateCustomCertificate
    The custom type certificate type configuration
    fingerprint String
    The identifier (SHA-1) of the certificate
    lbId String
    The load-balancer ID
    letsencrypt LoadbalancerCertificateLetsencrypt
    The Let's Encrypt type certificate configuration
    name String
    The name of the load-balancer certificate
    notValidAfter String
    The not valid after validity bound timestamp
    notValidBefore String
    The not valid before validity bound timestamp
    status String
    Certificate status
    subjectAlternativeNames List<String>
    The alternative domain names of the certificate
    commonName string
    Main domain of the certificate
    customCertificate LoadbalancerCertificateCustomCertificate
    The custom type certificate type configuration
    fingerprint string
    The identifier (SHA-1) of the certificate
    lbId string
    The load-balancer ID
    letsencrypt LoadbalancerCertificateLetsencrypt
    The Let's Encrypt type certificate configuration
    name string
    The name of the load-balancer certificate
    notValidAfter string
    The not valid after validity bound timestamp
    notValidBefore string
    The not valid before validity bound timestamp
    status string
    Certificate status
    subjectAlternativeNames string[]
    The alternative domain names of the certificate
    common_name str
    Main domain of the certificate
    custom_certificate LoadbalancerCertificateCustomCertificateArgs
    The custom type certificate type configuration
    fingerprint str
    The identifier (SHA-1) of the certificate
    lb_id str
    The load-balancer ID
    letsencrypt LoadbalancerCertificateLetsencryptArgs
    The Let's Encrypt type certificate configuration
    name str
    The name of the load-balancer certificate
    not_valid_after str
    The not valid after validity bound timestamp
    not_valid_before str
    The not valid before validity bound timestamp
    status str
    Certificate status
    subject_alternative_names Sequence[str]
    The alternative domain names of the certificate
    commonName String
    Main domain of the certificate
    customCertificate Property Map
    The custom type certificate type configuration
    fingerprint String
    The identifier (SHA-1) of the certificate
    lbId String
    The load-balancer ID
    letsencrypt Property Map
    The Let's Encrypt type certificate configuration
    name String
    The name of the load-balancer certificate
    notValidAfter String
    The not valid after validity bound timestamp
    notValidBefore String
    The not valid before validity bound timestamp
    status String
    Certificate status
    subjectAlternativeNames List<String>
    The alternative domain names of the certificate

    Supporting Types

    LoadbalancerCertificateCustomCertificate, LoadbalancerCertificateCustomCertificateArgs

    CertificateChain string
    The full PEM-formatted certificate chain
    CertificateChain string
    The full PEM-formatted certificate chain
    certificateChain String
    The full PEM-formatted certificate chain
    certificateChain string
    The full PEM-formatted certificate chain
    certificate_chain str
    The full PEM-formatted certificate chain
    certificateChain String
    The full PEM-formatted certificate chain

    LoadbalancerCertificateLetsencrypt, LoadbalancerCertificateLetsencryptArgs

    CommonName string
    Main domain of the certificate
    SubjectAlternativeNames List<string>
    The alternative domain names of the certificate
    CommonName string
    Main domain of the certificate
    SubjectAlternativeNames []string
    The alternative domain names of the certificate
    commonName String
    Main domain of the certificate
    subjectAlternativeNames List<String>
    The alternative domain names of the certificate
    commonName string
    Main domain of the certificate
    subjectAlternativeNames string[]
    The alternative domain names of the certificate
    common_name str
    Main domain of the certificate
    subject_alternative_names Sequence[str]
    The alternative domain names of the certificate
    commonName String
    Main domain of the certificate
    subjectAlternativeNames List<String>
    The alternative domain names of the certificate

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse