Provides a resource to manage rds postgresql instance ssl
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const example = new volcengine.rds_postgresql.InstanceSsl("example", {
forceEncryption: true,
instanceId: "postgres-72715e0d9f58",
sslEnable: true,
});
import pulumi
import pulumi_volcengine as volcengine
example = volcengine.rds_postgresql.InstanceSsl("example",
force_encryption=True,
instance_id="postgres-72715e0d9f58",
ssl_enable=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds_postgresql.NewInstanceSsl(ctx, "example", &rds_postgresql.InstanceSslArgs{
ForceEncryption: pulumi.Bool(true),
InstanceId: pulumi.String("postgres-72715e0d9f58"),
SslEnable: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var example = new Volcengine.Rds_postgresql.InstanceSsl("example", new()
{
ForceEncryption = true,
InstanceId = "postgres-72715e0d9f58",
SslEnable = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds_postgresql.InstanceSsl;
import com.pulumi.volcengine.rds_postgresql.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 example = new InstanceSsl("example", InstanceSslArgs.builder()
.forceEncryption(true)
.instanceId("postgres-72715e0d9f58")
.sslEnable(true)
.build());
}
}
resources:
example:
type: volcengine:rds_postgresql:InstanceSsl
properties:
forceEncryption: true
instanceId: postgres-72715e0d9f58
sslEnable: true
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,
ssl_enable: 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: volcengine:rds_postgresql:InstanceSsl
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 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 Volcengine.Rds_postgresql.InstanceSsl("instanceSslResource", new()
{
InstanceId = "string",
ForceEncryption = false,
ReloadSslCertificate = false,
SslEnable = false,
});
example, err := rds_postgresql.NewInstanceSsl(ctx, "instanceSslResource", &rds_postgresql.InstanceSslArgs{
InstanceId: pulumi.String("string"),
ForceEncryption: pulumi.Bool(false),
ReloadSslCertificate: pulumi.Bool(false),
SslEnable: pulumi.Bool(false),
})
var instanceSslResource = new InstanceSsl("instanceSslResource", InstanceSslArgs.builder()
.instanceId("string")
.forceEncryption(false)
.reloadSslCertificate(false)
.sslEnable(false)
.build());
instance_ssl_resource = volcengine.rds_postgresql.InstanceSsl("instanceSslResource",
instance_id="string",
force_encryption=False,
reload_ssl_certificate=False,
ssl_enable=False)
const instanceSslResource = new volcengine.rds_postgresql.InstanceSsl("instanceSslResource", {
instanceId: "string",
forceEncryption: false,
reloadSslCertificate: false,
sslEnable: false,
});
type: volcengine:rds_postgresql:InstanceSsl
properties:
forceEncryption: false
instanceId: string
reloadSslCertificate: false
sslEnable: 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:
- Instance
Id string - The id of the postgresql Instance.
- Force
Encryption bool - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- Reload
Ssl boolCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- Ssl
Enable bool - Whether to enable SSL.
- Instance
Id string - The id of the postgresql Instance.
- Force
Encryption bool - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- Reload
Ssl boolCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- Ssl
Enable bool - Whether to enable SSL.
- instance
Id String - The id of the postgresql Instance.
- force
Encryption Boolean - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- reload
Ssl BooleanCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- ssl
Enable Boolean - Whether to enable SSL.
- instance
Id string - The id of the postgresql Instance.
- force
Encryption boolean - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- reload
Ssl booleanCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- ssl
Enable boolean - Whether to enable SSL.
- instance_
id str - The id of the postgresql Instance.
- force_
encryption bool - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- reload_
ssl_ boolcertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- ssl_
enable bool - Whether to enable SSL.
- instance
Id String - The id of the postgresql Instance.
- force
Encryption Boolean - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- reload
Ssl BooleanCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- ssl
Enable Boolean - Whether to enable SSL.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceSsl 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 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,
force_encryption: Optional[bool] = None,
instance_id: Optional[str] = None,
reload_ssl_certificate: Optional[bool] = None,
ssl_enable: Optional[bool] = None) -> InstanceSslfunc 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: volcengine:rds_postgresql:InstanceSsl 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.
- Force
Encryption bool - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- Instance
Id string - The id of the postgresql Instance.
- Reload
Ssl boolCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- Ssl
Enable bool - Whether to enable SSL.
- Force
Encryption bool - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- Instance
Id string - The id of the postgresql Instance.
- Reload
Ssl boolCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- Ssl
Enable bool - Whether to enable SSL.
- force
Encryption Boolean - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- instance
Id String - The id of the postgresql Instance.
- reload
Ssl BooleanCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- ssl
Enable Boolean - Whether to enable SSL.
- force
Encryption boolean - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- instance
Id string - The id of the postgresql Instance.
- reload
Ssl booleanCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- ssl
Enable boolean - Whether to enable SSL.
- force_
encryption bool - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- instance_
id str - The id of the postgresql Instance.
- reload_
ssl_ boolcertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- ssl_
enable bool - Whether to enable SSL.
- force
Encryption Boolean - Whether to enable force encryption. This only takes effect when the SSL encryption function of the instance is enabled.
- instance
Id String - The id of the postgresql Instance.
- reload
Ssl BooleanCertificate - Update the validity period of the SSL certificate. This only takes effect when the SSL encryption function of the instance is enabled. It is not supported to pass in reload_ssl_certificate and ssl_enable at the same time.
- ssl
Enable Boolean - Whether to enable SSL.
Import
RdsPostgresqlInstanceSsl can be imported using the id, e.g.
$ pulumi import volcengine:rds_postgresql/instanceSsl:InstanceSsl default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
