1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. mongodb
  6. SslState
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    SSL encryption settings for the MongoDB instance, including whether the feature is enabled, SSL certificate expiration time, and other information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const mongoDBSSLStateDemo = new volcenginecc.mongodb.SslState("MongoDBSSLStateDemo", {
        instanceId: "mongo-replica-d1****",
        sslAction: "Open",
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    mongo_dbssl_state_demo = volcenginecc.mongodb.SslState("MongoDBSSLStateDemo",
        instance_id="mongo-replica-d1****",
        ssl_action="Open")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/mongodb"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mongodb.NewSslState(ctx, "MongoDBSSLStateDemo", &mongodb.SslStateArgs{
    			InstanceId: pulumi.String("mongo-replica-d1****"),
    			SslAction:  pulumi.String("Open"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var mongoDBSSLStateDemo = new Volcenginecc.Mongodb.SslState("MongoDBSSLStateDemo", new()
        {
            InstanceId = "mongo-replica-d1****",
            SslAction = "Open",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.mongodb.SslState;
    import com.volcengine.volcenginecc.mongodb.SslStateArgs;
    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 mongoDBSSLStateDemo = new SslState("mongoDBSSLStateDemo", SslStateArgs.builder()
                .instanceId("mongo-replica-d1****")
                .sslAction("Open")
                .build());
    
        }
    }
    
    resources:
      mongoDBSSLStateDemo:
        type: volcenginecc:mongodb:SslState
        name: MongoDBSSLStateDemo
        properties:
          instanceId: mongo-replica-d1****
          sslAction: Open
    

    Create SslState Resource

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

    Constructor syntax

    new SslState(name: string, args: SslStateArgs, opts?: CustomResourceOptions);
    @overload
    def SslState(resource_name: str,
                 args: SslStateArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SslState(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 instance_id: Optional[str] = None,
                 ssl_action: Optional[str] = None)
    func NewSslState(ctx *Context, name string, args SslStateArgs, opts ...ResourceOption) (*SslState, error)
    public SslState(string name, SslStateArgs args, CustomResourceOptions? opts = null)
    public SslState(String name, SslStateArgs args)
    public SslState(String name, SslStateArgs args, CustomResourceOptions options)
    
    type: volcenginecc:mongodb:SslState
    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 SslStateArgs
    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 SslStateArgs
    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 SslStateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SslStateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SslStateArgs
    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 sslStateResource = new Volcenginecc.Mongodb.SslState("sslStateResource", new()
    {
        InstanceId = "string",
        SslAction = "string",
    });
    
    example, err := mongodb.NewSslState(ctx, "sslStateResource", &mongodb.SslStateArgs{
    	InstanceId: pulumi.String("string"),
    	SslAction:  pulumi.String("string"),
    })
    
    var sslStateResource = new SslState("sslStateResource", SslStateArgs.builder()
        .instanceId("string")
        .sslAction("string")
        .build());
    
    ssl_state_resource = volcenginecc.mongodb.SslState("sslStateResource",
        instance_id="string",
        ssl_action="string")
    
    const sslStateResource = new volcenginecc.mongodb.SslState("sslStateResource", {
        instanceId: "string",
        sslAction: "string",
    });
    
    type: volcenginecc:mongodb:SslState
    properties:
        instanceId: string
        sslAction: string
    

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

    InstanceId string
    Instance ID
    SslAction string
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    InstanceId string
    Instance ID
    SslAction string
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    instanceId String
    Instance ID
    sslAction String
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    instanceId string
    Instance ID
    sslAction string
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    instance_id str
    Instance ID
    ssl_action str
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    instanceId String
    Instance ID
    sslAction String
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    IsValid bool
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    SslEnable bool
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    SslExpiredTime string
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    Id string
    The provider-assigned unique ID for this managed resource.
    IsValid bool
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    SslEnable bool
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    SslExpiredTime string
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    id String
    The provider-assigned unique ID for this managed resource.
    isValid Boolean
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    sslEnable Boolean
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    sslExpiredTime String
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    id string
    The provider-assigned unique ID for this managed resource.
    isValid boolean
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    sslEnable boolean
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    sslExpiredTime string
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    id str
    The provider-assigned unique ID for this managed resource.
    is_valid bool
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    ssl_enable bool
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    ssl_expired_time str
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    id String
    The provider-assigned unique ID for this managed resource.
    isValid Boolean
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    sslEnable Boolean
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    sslExpiredTime String
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).

    Look up Existing SslState Resource

    Get an existing SslState 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?: SslStateState, opts?: CustomResourceOptions): SslState
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            instance_id: Optional[str] = None,
            is_valid: Optional[bool] = None,
            ssl_action: Optional[str] = None,
            ssl_enable: Optional[bool] = None,
            ssl_expired_time: Optional[str] = None) -> SslState
    func GetSslState(ctx *Context, name string, id IDInput, state *SslStateState, opts ...ResourceOption) (*SslState, error)
    public static SslState Get(string name, Input<string> id, SslStateState? state, CustomResourceOptions? opts = null)
    public static SslState get(String name, Output<String> id, SslStateState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:mongodb:SslState    get:      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:
    InstanceId string
    Instance ID
    IsValid bool
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    SslAction string
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    SslEnable bool
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    SslExpiredTime string
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    InstanceId string
    Instance ID
    IsValid bool
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    SslAction string
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    SslEnable bool
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    SslExpiredTime string
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    instanceId String
    Instance ID
    isValid Boolean
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    sslAction String
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    sslEnable Boolean
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    sslExpiredTime String
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    instanceId string
    Instance ID
    isValid boolean
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    sslAction string
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    sslEnable boolean
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    sslExpiredTime string
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    instance_id str
    Instance ID
    is_valid bool
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    ssl_action str
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    ssl_enable bool
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    ssl_expired_time str
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).
    instanceId String
    Instance ID
    isValid Boolean
    Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
    sslAction String
    Perform operations on the SSL encryption feature. Possible values: - Open (default): Enable SSL encryption - Close: Disable SSL encryption - Update: Update SSL certificate validity period. You can update the SSL certificate validity period only after SSL encryption is enabled.
    sslEnable Boolean
    Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
    sslExpiredTime String
    SSL certificate expiration time, formatted as yyyy-MM-ddTHH:mm:ssZ (UTC). This parameter is returned only when the SSL certificate is valid (that is, IsValid is true).

    Import

    $ pulumi import volcenginecc:mongodb/sslState:SslState example "instance_id"
    

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

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.