Provides a resource to manage kms secret
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.kms.Secret("foo", {
description: "tf-test",
secretName: "tf-test1",
secretType: "Generic",
secretValue: "{\"dasdasd\":\"dasdasd\"}",
versionName: "v1.0",
});
const fooEcs = new volcengine.kms.Secret("fooEcs", {
automaticRotation: false,
description: "tf-test ecs",
encryptionKey: "trn:kms:cn-beijing:21000******:keyrings/Tf-test/keys/Test-key1",
extendedConfig: "{\"InstanceId\":\"i-yeehzz2tc0ygp2******\",\"SecretSubType\":\"Password\",\"CustomData\":{\"desc\":\"test\"}}",
forceDelete: false,
pendingWindowInDays: 7,
projectName: "default",
secretName: "tf-test2",
secretType: "ECS",
secretValue: "{\"UserName\":\"root\",\"Password\":\"********\"}",
versionName: "v2.0",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.kms.Secret("foo",
description="tf-test",
secret_name="tf-test1",
secret_type="Generic",
secret_value="{\"dasdasd\":\"dasdasd\"}",
version_name="v1.0")
foo_ecs = volcengine.kms.Secret("fooEcs",
automatic_rotation=False,
description="tf-test ecs",
encryption_key="trn:kms:cn-beijing:21000******:keyrings/Tf-test/keys/Test-key1",
extended_config="{\"InstanceId\":\"i-yeehzz2tc0ygp2******\",\"SecretSubType\":\"Password\",\"CustomData\":{\"desc\":\"test\"}}",
force_delete=False,
pending_window_in_days=7,
project_name="default",
secret_name="tf-test2",
secret_type="ECS",
secret_value="{\"UserName\":\"root\",\"Password\":\"********\"}",
version_name="v2.0")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/kms"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kms.NewSecret(ctx, "foo", &kms.SecretArgs{
Description: pulumi.String("tf-test"),
SecretName: pulumi.String("tf-test1"),
SecretType: pulumi.String("Generic"),
SecretValue: pulumi.String("{\"dasdasd\":\"dasdasd\"}"),
VersionName: pulumi.String("v1.0"),
})
if err != nil {
return err
}
_, err = kms.NewSecret(ctx, "fooEcs", &kms.SecretArgs{
AutomaticRotation: pulumi.Bool(false),
Description: pulumi.String("tf-test ecs"),
EncryptionKey: pulumi.String("trn:kms:cn-beijing:21000******:keyrings/Tf-test/keys/Test-key1"),
ExtendedConfig: pulumi.String("{\"InstanceId\":\"i-yeehzz2tc0ygp2******\",\"SecretSubType\":\"Password\",\"CustomData\":{\"desc\":\"test\"}}"),
ForceDelete: pulumi.Bool(false),
PendingWindowInDays: pulumi.Int(7),
ProjectName: pulumi.String("default"),
SecretName: pulumi.String("tf-test2"),
SecretType: pulumi.String("ECS"),
SecretValue: pulumi.String("{\"UserName\":\"root\",\"Password\":\"********\"}"),
VersionName: pulumi.String("v2.0"),
})
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 foo = new Volcengine.Kms.Secret("foo", new()
{
Description = "tf-test",
SecretName = "tf-test1",
SecretType = "Generic",
SecretValue = "{\"dasdasd\":\"dasdasd\"}",
VersionName = "v1.0",
});
var fooEcs = new Volcengine.Kms.Secret("fooEcs", new()
{
AutomaticRotation = false,
Description = "tf-test ecs",
EncryptionKey = "trn:kms:cn-beijing:21000******:keyrings/Tf-test/keys/Test-key1",
ExtendedConfig = "{\"InstanceId\":\"i-yeehzz2tc0ygp2******\",\"SecretSubType\":\"Password\",\"CustomData\":{\"desc\":\"test\"}}",
ForceDelete = false,
PendingWindowInDays = 7,
ProjectName = "default",
SecretName = "tf-test2",
SecretType = "ECS",
SecretValue = "{\"UserName\":\"root\",\"Password\":\"********\"}",
VersionName = "v2.0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.kms.Secret;
import com.pulumi.volcengine.kms.SecretArgs;
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 foo = new Secret("foo", SecretArgs.builder()
.description("tf-test")
.secretName("tf-test1")
.secretType("Generic")
.secretValue("{\"dasdasd\":\"dasdasd\"}")
.versionName("v1.0")
.build());
var fooEcs = new Secret("fooEcs", SecretArgs.builder()
.automaticRotation(false)
.description("tf-test ecs")
.encryptionKey("trn:kms:cn-beijing:21000******:keyrings/Tf-test/keys/Test-key1")
.extendedConfig("{\"InstanceId\":\"i-yeehzz2tc0ygp2******\",\"SecretSubType\":\"Password\",\"CustomData\":{\"desc\":\"test\"}}")
.forceDelete(false)
.pendingWindowInDays(7)
.projectName("default")
.secretName("tf-test2")
.secretType("ECS")
.secretValue("{\"UserName\":\"root\",\"Password\":\"********\"}")
.versionName("v2.0")
.build());
}
}
resources:
foo:
type: volcengine:kms:Secret
properties:
description: tf-test
secretName: tf-test1
secretType: Generic
secretValue: '{"dasdasd":"dasdasd"}'
versionName: v1.0
fooEcs:
type: volcengine:kms:Secret
properties:
automaticRotation: false
description: tf-test ecs
encryptionKey: trn:kms:cn-beijing:21000******:keyrings/Tf-test/keys/Test-key1
extendedConfig: '{"InstanceId":"i-yeehzz2tc0ygp2******","SecretSubType":"Password","CustomData":{"desc":"test"}}'
forceDelete: false
pendingWindowInDays: 7
projectName: default
secretName: tf-test2
secretType: ECS
secretValue: '{"UserName":"root","Password":"********"}'
versionName: v2.0
Create Secret Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Secret(name: string, args: SecretArgs, opts?: CustomResourceOptions);@overload
def Secret(resource_name: str,
args: SecretArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Secret(resource_name: str,
opts: Optional[ResourceOptions] = None,
secret_name: Optional[str] = None,
secret_type: Optional[str] = None,
secret_value: Optional[str] = None,
automatic_rotation: Optional[bool] = None,
description: Optional[str] = None,
encryption_key: Optional[str] = None,
extended_config: Optional[str] = None,
force_delete: Optional[bool] = None,
pending_window_in_days: Optional[int] = None,
project_name: Optional[str] = None,
rotation_interval: Optional[str] = None,
version_name: Optional[str] = None)func NewSecret(ctx *Context, name string, args SecretArgs, opts ...ResourceOption) (*Secret, error)public Secret(string name, SecretArgs args, CustomResourceOptions? opts = null)
public Secret(String name, SecretArgs args)
public Secret(String name, SecretArgs args, CustomResourceOptions options)
type: volcengine:kms:Secret
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 SecretArgs
- 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 SecretArgs
- 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 SecretArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecretArgs
- 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 secretResource = new Volcengine.Kms.Secret("secretResource", new()
{
SecretName = "string",
SecretType = "string",
SecretValue = "string",
AutomaticRotation = false,
Description = "string",
EncryptionKey = "string",
ExtendedConfig = "string",
ForceDelete = false,
PendingWindowInDays = 0,
ProjectName = "string",
RotationInterval = "string",
VersionName = "string",
});
example, err := kms.NewSecret(ctx, "secretResource", &kms.SecretArgs{
SecretName: pulumi.String("string"),
SecretType: pulumi.String("string"),
SecretValue: pulumi.String("string"),
AutomaticRotation: pulumi.Bool(false),
Description: pulumi.String("string"),
EncryptionKey: pulumi.String("string"),
ExtendedConfig: pulumi.String("string"),
ForceDelete: pulumi.Bool(false),
PendingWindowInDays: pulumi.Int(0),
ProjectName: pulumi.String("string"),
RotationInterval: pulumi.String("string"),
VersionName: pulumi.String("string"),
})
var secretResource = new Secret("secretResource", SecretArgs.builder()
.secretName("string")
.secretType("string")
.secretValue("string")
.automaticRotation(false)
.description("string")
.encryptionKey("string")
.extendedConfig("string")
.forceDelete(false)
.pendingWindowInDays(0)
.projectName("string")
.rotationInterval("string")
.versionName("string")
.build());
secret_resource = volcengine.kms.Secret("secretResource",
secret_name="string",
secret_type="string",
secret_value="string",
automatic_rotation=False,
description="string",
encryption_key="string",
extended_config="string",
force_delete=False,
pending_window_in_days=0,
project_name="string",
rotation_interval="string",
version_name="string")
const secretResource = new volcengine.kms.Secret("secretResource", {
secretName: "string",
secretType: "string",
secretValue: "string",
automaticRotation: false,
description: "string",
encryptionKey: "string",
extendedConfig: "string",
forceDelete: false,
pendingWindowInDays: 0,
projectName: "string",
rotationInterval: "string",
versionName: "string",
});
type: volcengine:kms:Secret
properties:
automaticRotation: false
description: string
encryptionKey: string
extendedConfig: string
forceDelete: false
pendingWindowInDays: 0
projectName: string
rotationInterval: string
secretName: string
secretType: string
secretValue: string
versionName: string
Secret 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 Secret resource accepts the following input properties:
- Secret
Name string - The name of the secret.
- Secret
Type string - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- Secret
Value string - The value of the secret. Only Generic type secret support modifying secret_value.
- Automatic
Rotation bool - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- Description string
- The description of the secret.
- Encryption
Key string - The TRN of the KMS key used to encrypt the secret value.
- Extended
Config string - The extended configurations of the secret.
- Force
Delete bool - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- Pending
Window intIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- Project
Name string - The project name of the secret.
- Rotation
Interval string - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- Version
Name string - The version alias of the secret. Only Generic type secret support modifying version_name.
- Secret
Name string - The name of the secret.
- Secret
Type string - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- Secret
Value string - The value of the secret. Only Generic type secret support modifying secret_value.
- Automatic
Rotation bool - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- Description string
- The description of the secret.
- Encryption
Key string - The TRN of the KMS key used to encrypt the secret value.
- Extended
Config string - The extended configurations of the secret.
- Force
Delete bool - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- Pending
Window intIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- Project
Name string - The project name of the secret.
- Rotation
Interval string - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- Version
Name string - The version alias of the secret. Only Generic type secret support modifying version_name.
- secret
Name String - The name of the secret.
- secret
Type String - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- secret
Value String - The value of the secret. Only Generic type secret support modifying secret_value.
- automatic
Rotation Boolean - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- description String
- The description of the secret.
- encryption
Key String - The TRN of the KMS key used to encrypt the secret value.
- extended
Config String - The extended configurations of the secret.
- force
Delete Boolean - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- pending
Window IntegerIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- project
Name String - The project name of the secret.
- rotation
Interval String - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- version
Name String - The version alias of the secret. Only Generic type secret support modifying version_name.
- secret
Name string - The name of the secret.
- secret
Type string - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- secret
Value string - The value of the secret. Only Generic type secret support modifying secret_value.
- automatic
Rotation boolean - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- description string
- The description of the secret.
- encryption
Key string - The TRN of the KMS key used to encrypt the secret value.
- extended
Config string - The extended configurations of the secret.
- force
Delete boolean - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- pending
Window numberIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- project
Name string - The project name of the secret.
- rotation
Interval string - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- version
Name string - The version alias of the secret. Only Generic type secret support modifying version_name.
- secret_
name str - The name of the secret.
- secret_
type str - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- secret_
value str - The value of the secret. Only Generic type secret support modifying secret_value.
- automatic_
rotation bool - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- description str
- The description of the secret.
- encryption_
key str - The TRN of the KMS key used to encrypt the secret value.
- extended_
config str - The extended configurations of the secret.
- force_
delete bool - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- pending_
window_ intin_ days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- project_
name str - The project name of the secret.
- rotation_
interval str - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- version_
name str - The version alias of the secret. Only Generic type secret support modifying version_name.
- secret
Name String - The name of the secret.
- secret
Type String - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- secret
Value String - The value of the secret. Only Generic type secret support modifying secret_value.
- automatic
Rotation Boolean - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- description String
- The description of the secret.
- encryption
Key String - The TRN of the KMS key used to encrypt the secret value.
- extended
Config String - The extended configurations of the secret.
- force
Delete Boolean - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- pending
Window NumberIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- project
Name String - The project name of the secret.
- rotation
Interval String - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- version
Name String - The version alias of the secret. Only Generic type secret support modifying version_name.
Outputs
All input properties are implicitly available as output properties. Additionally, the Secret resource produces the following output properties:
- Creation
Date int - The date when the secret was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Rotation stringTime - The last time the secret was rotated.
- Managed bool
- Indicates whether the secret is hosted.
- Owning
Service string - The cloud service that owns the secret.
- Rotation
Interval intSecond - Rotation interval second.
- Rotation
State string - The rotation state of the secret.
- Schedule
Delete stringTime - The time when the secret will be deleted.
- Schedule
Rotation stringTime - The next time the secret will be rotated.
- State string
- The state of secret.
- Trn string
- The information about the tenant resource name (TRN).
- Uid string
- The tenant ID of the secret.
- Update
Date int - The date when the secret was updated.
- Uuid string
- The ID of secret.
- Creation
Date int - The date when the secret was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Rotation stringTime - The last time the secret was rotated.
- Managed bool
- Indicates whether the secret is hosted.
- Owning
Service string - The cloud service that owns the secret.
- Rotation
Interval intSecond - Rotation interval second.
- Rotation
State string - The rotation state of the secret.
- Schedule
Delete stringTime - The time when the secret will be deleted.
- Schedule
Rotation stringTime - The next time the secret will be rotated.
- State string
- The state of secret.
- Trn string
- The information about the tenant resource name (TRN).
- Uid string
- The tenant ID of the secret.
- Update
Date int - The date when the secret was updated.
- Uuid string
- The ID of secret.
- creation
Date Integer - The date when the secret was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Rotation StringTime - The last time the secret was rotated.
- managed Boolean
- Indicates whether the secret is hosted.
- owning
Service String - The cloud service that owns the secret.
- rotation
Interval IntegerSecond - Rotation interval second.
- rotation
State String - The rotation state of the secret.
- schedule
Delete StringTime - The time when the secret will be deleted.
- schedule
Rotation StringTime - The next time the secret will be rotated.
- state String
- The state of secret.
- trn String
- The information about the tenant resource name (TRN).
- uid String
- The tenant ID of the secret.
- update
Date Integer - The date when the secret was updated.
- uuid String
- The ID of secret.
- creation
Date number - The date when the secret was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Rotation stringTime - The last time the secret was rotated.
- managed boolean
- Indicates whether the secret is hosted.
- owning
Service string - The cloud service that owns the secret.
- rotation
Interval numberSecond - Rotation interval second.
- rotation
State string - The rotation state of the secret.
- schedule
Delete stringTime - The time when the secret will be deleted.
- schedule
Rotation stringTime - The next time the secret will be rotated.
- state string
- The state of secret.
- trn string
- The information about the tenant resource name (TRN).
- uid string
- The tenant ID of the secret.
- update
Date number - The date when the secret was updated.
- uuid string
- The ID of secret.
- creation_
date int - The date when the secret was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
rotation_ strtime - The last time the secret was rotated.
- managed bool
- Indicates whether the secret is hosted.
- owning_
service str - The cloud service that owns the secret.
- rotation_
interval_ intsecond - Rotation interval second.
- rotation_
state str - The rotation state of the secret.
- schedule_
delete_ strtime - The time when the secret will be deleted.
- schedule_
rotation_ strtime - The next time the secret will be rotated.
- state str
- The state of secret.
- trn str
- The information about the tenant resource name (TRN).
- uid str
- The tenant ID of the secret.
- update_
date int - The date when the secret was updated.
- uuid str
- The ID of secret.
- creation
Date Number - The date when the secret was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Rotation StringTime - The last time the secret was rotated.
- managed Boolean
- Indicates whether the secret is hosted.
- owning
Service String - The cloud service that owns the secret.
- rotation
Interval NumberSecond - Rotation interval second.
- rotation
State String - The rotation state of the secret.
- schedule
Delete StringTime - The time when the secret will be deleted.
- schedule
Rotation StringTime - The next time the secret will be rotated.
- state String
- The state of secret.
- trn String
- The information about the tenant resource name (TRN).
- uid String
- The tenant ID of the secret.
- update
Date Number - The date when the secret was updated.
- uuid String
- The ID of secret.
Look up Existing Secret Resource
Get an existing Secret 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?: SecretState, opts?: CustomResourceOptions): Secret@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
automatic_rotation: Optional[bool] = None,
creation_date: Optional[int] = None,
description: Optional[str] = None,
encryption_key: Optional[str] = None,
extended_config: Optional[str] = None,
force_delete: Optional[bool] = None,
last_rotation_time: Optional[str] = None,
managed: Optional[bool] = None,
owning_service: Optional[str] = None,
pending_window_in_days: Optional[int] = None,
project_name: Optional[str] = None,
rotation_interval: Optional[str] = None,
rotation_interval_second: Optional[int] = None,
rotation_state: Optional[str] = None,
schedule_delete_time: Optional[str] = None,
schedule_rotation_time: Optional[str] = None,
secret_name: Optional[str] = None,
secret_type: Optional[str] = None,
secret_value: Optional[str] = None,
state: Optional[str] = None,
trn: Optional[str] = None,
uid: Optional[str] = None,
update_date: Optional[int] = None,
uuid: Optional[str] = None,
version_name: Optional[str] = None) -> Secretfunc GetSecret(ctx *Context, name string, id IDInput, state *SecretState, opts ...ResourceOption) (*Secret, error)public static Secret Get(string name, Input<string> id, SecretState? state, CustomResourceOptions? opts = null)public static Secret get(String name, Output<String> id, SecretState state, CustomResourceOptions options)resources: _: type: volcengine:kms:Secret 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.
- Automatic
Rotation bool - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- Creation
Date int - The date when the secret was created.
- Description string
- The description of the secret.
- Encryption
Key string - The TRN of the KMS key used to encrypt the secret value.
- Extended
Config string - The extended configurations of the secret.
- Force
Delete bool - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- Last
Rotation stringTime - The last time the secret was rotated.
- Managed bool
- Indicates whether the secret is hosted.
- Owning
Service string - The cloud service that owns the secret.
- Pending
Window intIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- Project
Name string - The project name of the secret.
- Rotation
Interval string - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- Rotation
Interval intSecond - Rotation interval second.
- Rotation
State string - The rotation state of the secret.
- Schedule
Delete stringTime - The time when the secret will be deleted.
- Schedule
Rotation stringTime - The next time the secret will be rotated.
- Secret
Name string - The name of the secret.
- Secret
Type string - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- Secret
Value string - The value of the secret. Only Generic type secret support modifying secret_value.
- State string
- The state of secret.
- Trn string
- The information about the tenant resource name (TRN).
- Uid string
- The tenant ID of the secret.
- Update
Date int - The date when the secret was updated.
- Uuid string
- The ID of secret.
- Version
Name string - The version alias of the secret. Only Generic type secret support modifying version_name.
- Automatic
Rotation bool - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- Creation
Date int - The date when the secret was created.
- Description string
- The description of the secret.
- Encryption
Key string - The TRN of the KMS key used to encrypt the secret value.
- Extended
Config string - The extended configurations of the secret.
- Force
Delete bool - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- Last
Rotation stringTime - The last time the secret was rotated.
- Managed bool
- Indicates whether the secret is hosted.
- Owning
Service string - The cloud service that owns the secret.
- Pending
Window intIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- Project
Name string - The project name of the secret.
- Rotation
Interval string - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- Rotation
Interval intSecond - Rotation interval second.
- Rotation
State string - The rotation state of the secret.
- Schedule
Delete stringTime - The time when the secret will be deleted.
- Schedule
Rotation stringTime - The next time the secret will be rotated.
- Secret
Name string - The name of the secret.
- Secret
Type string - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- Secret
Value string - The value of the secret. Only Generic type secret support modifying secret_value.
- State string
- The state of secret.
- Trn string
- The information about the tenant resource name (TRN).
- Uid string
- The tenant ID of the secret.
- Update
Date int - The date when the secret was updated.
- Uuid string
- The ID of secret.
- Version
Name string - The version alias of the secret. Only Generic type secret support modifying version_name.
- automatic
Rotation Boolean - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- creation
Date Integer - The date when the secret was created.
- description String
- The description of the secret.
- encryption
Key String - The TRN of the KMS key used to encrypt the secret value.
- extended
Config String - The extended configurations of the secret.
- force
Delete Boolean - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- last
Rotation StringTime - The last time the secret was rotated.
- managed Boolean
- Indicates whether the secret is hosted.
- owning
Service String - The cloud service that owns the secret.
- pending
Window IntegerIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- project
Name String - The project name of the secret.
- rotation
Interval String - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- rotation
Interval IntegerSecond - Rotation interval second.
- rotation
State String - The rotation state of the secret.
- schedule
Delete StringTime - The time when the secret will be deleted.
- schedule
Rotation StringTime - The next time the secret will be rotated.
- secret
Name String - The name of the secret.
- secret
Type String - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- secret
Value String - The value of the secret. Only Generic type secret support modifying secret_value.
- state String
- The state of secret.
- trn String
- The information about the tenant resource name (TRN).
- uid String
- The tenant ID of the secret.
- update
Date Integer - The date when the secret was updated.
- uuid String
- The ID of secret.
- version
Name String - The version alias of the secret. Only Generic type secret support modifying version_name.
- automatic
Rotation boolean - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- creation
Date number - The date when the secret was created.
- description string
- The description of the secret.
- encryption
Key string - The TRN of the KMS key used to encrypt the secret value.
- extended
Config string - The extended configurations of the secret.
- force
Delete boolean - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- last
Rotation stringTime - The last time the secret was rotated.
- managed boolean
- Indicates whether the secret is hosted.
- owning
Service string - The cloud service that owns the secret.
- pending
Window numberIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- project
Name string - The project name of the secret.
- rotation
Interval string - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- rotation
Interval numberSecond - Rotation interval second.
- rotation
State string - The rotation state of the secret.
- schedule
Delete stringTime - The time when the secret will be deleted.
- schedule
Rotation stringTime - The next time the secret will be rotated.
- secret
Name string - The name of the secret.
- secret
Type string - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- secret
Value string - The value of the secret. Only Generic type secret support modifying secret_value.
- state string
- The state of secret.
- trn string
- The information about the tenant resource name (TRN).
- uid string
- The tenant ID of the secret.
- update
Date number - The date when the secret was updated.
- uuid string
- The ID of secret.
- version
Name string - The version alias of the secret. Only Generic type secret support modifying version_name.
- automatic_
rotation bool - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- creation_
date int - The date when the secret was created.
- description str
- The description of the secret.
- encryption_
key str - The TRN of the KMS key used to encrypt the secret value.
- extended_
config str - The extended configurations of the secret.
- force_
delete bool - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- last_
rotation_ strtime - The last time the secret was rotated.
- managed bool
- Indicates whether the secret is hosted.
- owning_
service str - The cloud service that owns the secret.
- pending_
window_ intin_ days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- project_
name str - The project name of the secret.
- rotation_
interval str - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- rotation_
interval_ intsecond - Rotation interval second.
- rotation_
state str - The rotation state of the secret.
- schedule_
delete_ strtime - The time when the secret will be deleted.
- schedule_
rotation_ strtime - The next time the secret will be rotated.
- secret_
name str - The name of the secret.
- secret_
type str - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- secret_
value str - The value of the secret. Only Generic type secret support modifying secret_value.
- state str
- The state of secret.
- trn str
- The information about the tenant resource name (TRN).
- uid str
- The tenant ID of the secret.
- update_
date int - The date when the secret was updated.
- uuid str
- The ID of secret.
- version_
name str - The version alias of the secret. Only Generic type secret support modifying version_name.
- automatic
Rotation Boolean - The rotation state of the secret. Only valid for IAM, RDS, Redis, ECS secrets.
- creation
Date Number - The date when the secret was created.
- description String
- The description of the secret.
- encryption
Key String - The TRN of the KMS key used to encrypt the secret value.
- extended
Config String - The extended configurations of the secret.
- force
Delete Boolean - Whether to delete the secret immediately. If false, the secret enters pending deletion state. Only effective when destroying resources.
- last
Rotation StringTime - The last time the secret was rotated.
- managed Boolean
- Indicates whether the secret is hosted.
- owning
Service String - The cloud service that owns the secret.
- pending
Window NumberIn Days - The waiting period before deletion when force_delete is false. Valid values: 7~30. Only effective when destroying resources.
- project
Name String - The project name of the secret.
- rotation
Interval String - The interval at which automatic rotation is performed. This parameter must be specified when automatic_rotation is true.
- rotation
Interval NumberSecond - Rotation interval second.
- rotation
State String - The rotation state of the secret.
- schedule
Delete StringTime - The time when the secret will be deleted.
- schedule
Rotation StringTime - The next time the secret will be rotated.
- secret
Name String - The name of the secret.
- secret
Type String - The type of the secret. Valid values: Generic, IAM, RDS, Redis, ECS.
- secret
Value String - The value of the secret. Only Generic type secret support modifying secret_value.
- state String
- The state of secret.
- trn String
- The information about the tenant resource name (TRN).
- uid String
- The tenant ID of the secret.
- update
Date Number - The date when the secret was updated.
- uuid String
- The ID of secret.
- version
Name String - The version alias of the secret. Only Generic type secret support modifying version_name.
Import
KmsSecret can be imported using the id, e.g.
$ pulumi import volcengine:kms/secret:Secret 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.
