1. Packages
  2. Packages
  3. Bytepluscc Provider
  4. API Docs
  5. rdspostgresql
  6. InstanceSsl
Viewing docs for bytepluscc v0.0.35
published on Monday, Jun 15, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.35
published on Monday, Jun 15, 2026 by Byteplus

    Instance SSL configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const rDSPostgreSQLInstanceSSLDemo = new bytepluscc.rdspostgresql.InstanceSsl("RDSPostgreSQLInstanceSSLDemo", {
        reloadSslCertificate: true,
        instanceId: "postgres-60xxxx5ed9",
        forceEncryption: true,
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    r_ds_postgre_sql_instance_ssl_demo = bytepluscc.rdspostgresql.InstanceSsl("RDSPostgreSQLInstanceSSLDemo",
        reload_ssl_certificate=True,
        instance_id="postgres-60xxxx5ed9",
        force_encryption=True)
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/rdspostgresql"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rdspostgresql.NewInstanceSsl(ctx, "RDSPostgreSQLInstanceSSLDemo", &rdspostgresql.InstanceSslArgs{
    			ReloadSslCertificate: pulumi.Bool(true),
    			InstanceId:           pulumi.String("postgres-60xxxx5ed9"),
    			ForceEncryption:      pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var rDSPostgreSQLInstanceSSLDemo = new Bytepluscc.Rdspostgresql.InstanceSsl("RDSPostgreSQLInstanceSSLDemo", new()
        {
            ReloadSslCertificate = true,
            InstanceId = "postgres-60xxxx5ed9",
            ForceEncryption = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.rdspostgresql.InstanceSsl;
    import com.byteplus.bytepluscc.rdspostgresql.InstanceSslArgs;
    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 rDSPostgreSQLInstanceSSLDemo = new InstanceSsl("rDSPostgreSQLInstanceSSLDemo", InstanceSslArgs.builder()
                .reloadSslCertificate(true)
                .instanceId("postgres-60xxxx5ed9")
                .forceEncryption(true)
                .build());
    
        }
    }
    
    resources:
      rDSPostgreSQLInstanceSSLDemo:
        type: bytepluscc:rdspostgresql:InstanceSsl
        name: RDSPostgreSQLInstanceSSLDemo
        properties:
          reloadSslCertificate: true
          instanceId: postgres-60xxxx5ed9
          forceEncryption: true
    
    Example coming soon!
    

    Create InstanceSsl Resource

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

    Constructor syntax

    new InstanceSsl(name: string, args: InstanceSslArgs, opts?: CustomResourceOptions);
    @overload
    def InstanceSsl(resource_name: str,
                    args: InstanceSslArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstanceSsl(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    instance_id: Optional[str] = None,
                    force_encryption: Optional[bool] = None,
                    reload_ssl_certificate: Optional[bool] = None)
    func NewInstanceSsl(ctx *Context, name string, args InstanceSslArgs, opts ...ResourceOption) (*InstanceSsl, error)
    public InstanceSsl(string name, InstanceSslArgs args, CustomResourceOptions? opts = null)
    public InstanceSsl(String name, InstanceSslArgs args)
    public InstanceSsl(String name, InstanceSslArgs args, CustomResourceOptions options)
    
    type: bytepluscc:rdspostgresql:InstanceSsl
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "bytepluscc_rdspostgresql_instancessl" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args InstanceSslArgs
    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 InstanceSslArgs
    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 InstanceSslArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceSslArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceSslArgs
    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 instanceSslResource = new Bytepluscc.Rdspostgresql.InstanceSsl("instanceSslResource", new()
    {
        InstanceId = "string",
        ForceEncryption = false,
        ReloadSslCertificate = false,
    });
    
    example, err := rdspostgresql.NewInstanceSsl(ctx, "instanceSslResource", &rdspostgresql.InstanceSslArgs{
    	InstanceId:           pulumi.String("string"),
    	ForceEncryption:      pulumi.Bool(false),
    	ReloadSslCertificate: pulumi.Bool(false),
    })
    
    resource "bytepluscc_rdspostgresql_instancessl" "instanceSslResource" {
      instance_id            = "string"
      force_encryption       = false
      reload_ssl_certificate = false
    }
    
    var instanceSslResource = new InstanceSsl("instanceSslResource", InstanceSslArgs.builder()
        .instanceId("string")
        .forceEncryption(false)
        .reloadSslCertificate(false)
        .build());
    
    instance_ssl_resource = bytepluscc.rdspostgresql.InstanceSsl("instanceSslResource",
        instance_id="string",
        force_encryption=False,
        reload_ssl_certificate=False)
    
    const instanceSslResource = new bytepluscc.rdspostgresql.InstanceSsl("instanceSslResource", {
        instanceId: "string",
        forceEncryption: false,
        reloadSslCertificate: false,
    });
    
    type: bytepluscc:rdspostgresql:InstanceSsl
    properties:
        forceEncryption: false
        instanceId: string
        reloadSslCertificate: false
    

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

    InstanceId string
    Instance ID.
    ForceEncryption bool
    Is force encryption enabled? Value: true: Yes. false: No.
    ReloadSslCertificate bool
    If set to true, the SSL certificate validity period will be updated.
    InstanceId string
    Instance ID.
    ForceEncryption bool
    Is force encryption enabled? Value: true: Yes. false: No.
    ReloadSslCertificate bool
    If set to true, the SSL certificate validity period will be updated.
    instance_id string
    Instance ID.
    force_encryption bool
    Is force encryption enabled? Value: true: Yes. false: No.
    reload_ssl_certificate bool
    If set to true, the SSL certificate validity period will be updated.
    instanceId String
    Instance ID.
    forceEncryption Boolean
    Is force encryption enabled? Value: true: Yes. false: No.
    reloadSslCertificate Boolean
    If set to true, the SSL certificate validity period will be updated.
    instanceId string
    Instance ID.
    forceEncryption boolean
    Is force encryption enabled? Value: true: Yes. false: No.
    reloadSslCertificate boolean
    If set to true, the SSL certificate validity period will be updated.
    instance_id str
    Instance ID.
    force_encryption bool
    Is force encryption enabled? Value: true: Yes. false: No.
    reload_ssl_certificate bool
    If set to true, the SSL certificate validity period will be updated.
    instanceId String
    Instance ID.
    forceEncryption Boolean
    Is force encryption enabled? Value: true: Yes. false: No.
    reloadSslCertificate Boolean
    If set to true, the SSL certificate validity period will be updated.

    Outputs

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

    Addresses List<string>
    Protected address.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsValid bool
    Is the SSL certificate valid? Value: true: Yes. false: No.
    SslEnable bool
    Is SSL functionality enabled? Value: true: Yes. false: No.
    SslExpireTime string
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    TlsVersions List<string>
    Supported TLS versions.
    Addresses []string
    Protected address.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsValid bool
    Is the SSL certificate valid? Value: true: Yes. false: No.
    SslEnable bool
    Is SSL functionality enabled? Value: true: Yes. false: No.
    SslExpireTime string
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    TlsVersions []string
    Supported TLS versions.
    addresses list(string)
    Protected address.
    id string
    The provider-assigned unique ID for this managed resource.
    is_valid bool
    Is the SSL certificate valid? Value: true: Yes. false: No.
    ssl_enable bool
    Is SSL functionality enabled? Value: true: Yes. false: No.
    ssl_expire_time string
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tls_versions list(string)
    Supported TLS versions.
    addresses List<String>
    Protected address.
    id String
    The provider-assigned unique ID for this managed resource.
    isValid Boolean
    Is the SSL certificate valid? Value: true: Yes. false: No.
    sslEnable Boolean
    Is SSL functionality enabled? Value: true: Yes. false: No.
    sslExpireTime String
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tlsVersions List<String>
    Supported TLS versions.
    addresses string[]
    Protected address.
    id string
    The provider-assigned unique ID for this managed resource.
    isValid boolean
    Is the SSL certificate valid? Value: true: Yes. false: No.
    sslEnable boolean
    Is SSL functionality enabled? Value: true: Yes. false: No.
    sslExpireTime string
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tlsVersions string[]
    Supported TLS versions.
    addresses Sequence[str]
    Protected address.
    id str
    The provider-assigned unique ID for this managed resource.
    is_valid bool
    Is the SSL certificate valid? Value: true: Yes. false: No.
    ssl_enable bool
    Is SSL functionality enabled? Value: true: Yes. false: No.
    ssl_expire_time str
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tls_versions Sequence[str]
    Supported TLS versions.
    addresses List<String>
    Protected address.
    id String
    The provider-assigned unique ID for this managed resource.
    isValid Boolean
    Is the SSL certificate valid? Value: true: Yes. false: No.
    sslEnable Boolean
    Is SSL functionality enabled? Value: true: Yes. false: No.
    sslExpireTime String
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tlsVersions List<String>
    Supported TLS versions.

    Look up Existing InstanceSsl Resource

    Get an existing InstanceSsl 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?: InstanceSslState, opts?: CustomResourceOptions): InstanceSsl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            addresses: Optional[Sequence[str]] = None,
            force_encryption: Optional[bool] = None,
            instance_id: Optional[str] = None,
            is_valid: Optional[bool] = None,
            reload_ssl_certificate: Optional[bool] = None,
            ssl_enable: Optional[bool] = None,
            ssl_expire_time: Optional[str] = None,
            tls_versions: Optional[Sequence[str]] = None) -> InstanceSsl
    func GetInstanceSsl(ctx *Context, name string, id IDInput, state *InstanceSslState, opts ...ResourceOption) (*InstanceSsl, error)
    public static InstanceSsl Get(string name, Input<string> id, InstanceSslState? state, CustomResourceOptions? opts = null)
    public static InstanceSsl get(String name, Output<String> id, InstanceSslState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:rdspostgresql:InstanceSsl    get:      id: ${id}
    import {
      to = bytepluscc_rdspostgresql_instancessl.example
      id = "${id}"
    }
    
    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:
    Addresses List<string>
    Protected address.
    ForceEncryption bool
    Is force encryption enabled? Value: true: Yes. false: No.
    InstanceId string
    Instance ID.
    IsValid bool
    Is the SSL certificate valid? Value: true: Yes. false: No.
    ReloadSslCertificate bool
    If set to true, the SSL certificate validity period will be updated.
    SslEnable bool
    Is SSL functionality enabled? Value: true: Yes. false: No.
    SslExpireTime string
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    TlsVersions List<string>
    Supported TLS versions.
    Addresses []string
    Protected address.
    ForceEncryption bool
    Is force encryption enabled? Value: true: Yes. false: No.
    InstanceId string
    Instance ID.
    IsValid bool
    Is the SSL certificate valid? Value: true: Yes. false: No.
    ReloadSslCertificate bool
    If set to true, the SSL certificate validity period will be updated.
    SslEnable bool
    Is SSL functionality enabled? Value: true: Yes. false: No.
    SslExpireTime string
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    TlsVersions []string
    Supported TLS versions.
    addresses list(string)
    Protected address.
    force_encryption bool
    Is force encryption enabled? Value: true: Yes. false: No.
    instance_id string
    Instance ID.
    is_valid bool
    Is the SSL certificate valid? Value: true: Yes. false: No.
    reload_ssl_certificate bool
    If set to true, the SSL certificate validity period will be updated.
    ssl_enable bool
    Is SSL functionality enabled? Value: true: Yes. false: No.
    ssl_expire_time string
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tls_versions list(string)
    Supported TLS versions.
    addresses List<String>
    Protected address.
    forceEncryption Boolean
    Is force encryption enabled? Value: true: Yes. false: No.
    instanceId String
    Instance ID.
    isValid Boolean
    Is the SSL certificate valid? Value: true: Yes. false: No.
    reloadSslCertificate Boolean
    If set to true, the SSL certificate validity period will be updated.
    sslEnable Boolean
    Is SSL functionality enabled? Value: true: Yes. false: No.
    sslExpireTime String
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tlsVersions List<String>
    Supported TLS versions.
    addresses string[]
    Protected address.
    forceEncryption boolean
    Is force encryption enabled? Value: true: Yes. false: No.
    instanceId string
    Instance ID.
    isValid boolean
    Is the SSL certificate valid? Value: true: Yes. false: No.
    reloadSslCertificate boolean
    If set to true, the SSL certificate validity period will be updated.
    sslEnable boolean
    Is SSL functionality enabled? Value: true: Yes. false: No.
    sslExpireTime string
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tlsVersions string[]
    Supported TLS versions.
    addresses Sequence[str]
    Protected address.
    force_encryption bool
    Is force encryption enabled? Value: true: Yes. false: No.
    instance_id str
    Instance ID.
    is_valid bool
    Is the SSL certificate valid? Value: true: Yes. false: No.
    reload_ssl_certificate bool
    If set to true, the SSL certificate validity period will be updated.
    ssl_enable bool
    Is SSL functionality enabled? Value: true: Yes. false: No.
    ssl_expire_time str
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tls_versions Sequence[str]
    Supported TLS versions.
    addresses List<String>
    Protected address.
    forceEncryption Boolean
    Is force encryption enabled? Value: true: Yes. false: No.
    instanceId String
    Instance ID.
    isValid Boolean
    Is the SSL certificate valid? Value: true: Yes. false: No.
    reloadSslCertificate Boolean
    If set to true, the SSL certificate validity period will be updated.
    sslEnable Boolean
    Is SSL functionality enabled? Value: true: Yes. false: No.
    sslExpireTime String
    SSL certificate expiration time. Format: yyyy-MM-ddTHH:mm:ss (UTC).
    tlsVersions List<String>
    Supported TLS versions.

    Import

    $ pulumi import bytepluscc:rdspostgresql/instanceSsl:InstanceSsl example "instance_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.35
    published on Monday, Jun 15, 2026 by Byteplus

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial