published on Thursday, Apr 23, 2026 by Volcengine
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:
- Instance
Id string - Instance ID
- Ssl
Action 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 string - Instance ID
- Ssl
Action 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 String - Instance ID
- ssl
Action 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 string - Instance ID
- ssl
Action 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.
- instance
Id String - Instance ID
- ssl
Action 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.
- 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 stringTime - 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.
- 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 stringTime - 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.
- is
Valid Boolean - Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
- ssl
Enable Boolean - Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
- ssl
Expired StringTime - 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.
- is
Valid boolean - Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
- ssl
Enable boolean - Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
- ssl
Expired stringTime - 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_ strtime - 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.
- is
Valid Boolean - Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
- ssl
Enable Boolean - Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
- ssl
Expired StringTime - 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) -> SslStatefunc 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.
- Instance
Id string - Instance ID
- Is
Valid bool - Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
- Ssl
Action 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.
- Ssl
Enable bool - Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
- Ssl
Expired stringTime - 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 string - Instance ID
- Is
Valid bool - Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
- Ssl
Action 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.
- Ssl
Enable bool - Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
- Ssl
Expired stringTime - 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 String - Instance ID
- is
Valid Boolean - Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
- ssl
Action 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.
- ssl
Enable Boolean - Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
- ssl
Expired StringTime - 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 string - Instance ID
- is
Valid boolean - Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
- ssl
Action 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.
- ssl
Enable boolean - Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
- ssl
Expired stringTime - 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_ strtime - 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 String - Instance ID
- is
Valid Boolean - Whether the SSL certificate is valid. Possible values: - true: Valid - false: Invalid
- ssl
Action 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.
- ssl
Enable Boolean - Whether SSL encryption is enabled. Possible values: - true: Enabled - false: Disabled
- ssl
Expired StringTime - 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
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
