alicloud.kms.Secret
Explore with Pulumi AI
This resouce used to create a secret and store its initial version.
NOTE: Available in 1.76.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.Kms.Secret("default", new()
{
Description = "from terraform",
ForceDeleteWithoutRecovery = true,
SecretData = "Secret data.",
SecretName = "secret-foo",
VersionId = "000000000001",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kms.NewSecret(ctx, "default", &kms.SecretArgs{
Description: pulumi.String("from terraform"),
ForceDeleteWithoutRecovery: pulumi.Bool(true),
SecretData: pulumi.String("Secret data."),
SecretName: pulumi.String("secret-foo"),
VersionId: pulumi.String("000000000001"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.kms.Secret;
import com.pulumi.alicloud.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 default_ = new Secret("default", SecretArgs.builder()
.description("from terraform")
.forceDeleteWithoutRecovery(true)
.secretData("Secret data.")
.secretName("secret-foo")
.versionId("000000000001")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.kms.Secret("default",
description="from terraform",
force_delete_without_recovery=True,
secret_data="Secret data.",
secret_name="secret-foo",
version_id="000000000001")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.kms.Secret("default", {
description: "from terraform",
forceDeleteWithoutRecovery: true,
secretData: "Secret data.",
secretName: "secret-foo",
versionId: "000000000001",
});
resources:
default:
type: alicloud:kms:Secret
properties:
description: from terraform
forceDeleteWithoutRecovery: true
secretData: Secret data.
secretName: secret-foo
versionId: '000000000001'
Create Secret Resource
new Secret(name: string, args: SecretArgs, opts?: CustomResourceOptions);
@overload
def Secret(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dkms_instance_id: Optional[str] = None,
enable_automatic_rotation: Optional[bool] = None,
encryption_key_id: Optional[str] = None,
extended_config: Optional[str] = None,
force_delete_without_recovery: Optional[bool] = None,
recovery_window_in_days: Optional[int] = None,
rotation_interval: Optional[str] = None,
secret_data: Optional[str] = None,
secret_data_type: Optional[str] = None,
secret_name: Optional[str] = None,
secret_type: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
version_id: Optional[str] = None,
version_stages: Optional[Sequence[str]] = None)
@overload
def Secret(resource_name: str,
args: SecretArgs,
opts: Optional[ResourceOptions] = 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: alicloud:kms:Secret
properties: # The arguments to resource properties.
options: # 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.
- 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.
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
The Secret resource accepts the following input properties:
- Secret
Data string The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- Secret
Name string The name of the secret.
- Version
Id string The version number of the initial version. Version numbers are unique in each secret object.
- Description string
The description of the secret.
- Dkms
Instance stringId The instance ID of the exclusive KMS instance.
- Enable
Automatic boolRotation Whether to enable automatic key rotation.
- Encryption
Key stringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- Extended
Config string The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- Force
Delete boolWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- Recovery
Window intIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- Rotation
Interval string The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- Secret
Data stringType The type of the secret value. Valid values: text, binary. Default to "text".
- Secret
Type string The type of the secret. Valid values:
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Version
Stages List<string> ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- Secret
Data string The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- Secret
Name string The name of the secret.
- Version
Id string The version number of the initial version. Version numbers are unique in each secret object.
- Description string
The description of the secret.
- Dkms
Instance stringId The instance ID of the exclusive KMS instance.
- Enable
Automatic boolRotation Whether to enable automatic key rotation.
- Encryption
Key stringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- Extended
Config string The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- Force
Delete boolWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- Recovery
Window intIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- Rotation
Interval string The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- Secret
Data stringType The type of the secret value. Valid values: text, binary. Default to "text".
- Secret
Type string The type of the secret. Valid values:
- map[string]interface{}
A mapping of tags to assign to the resource.
- Version
Stages []string ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- secret
Data String The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- secret
Name String The name of the secret.
- version
Id String The version number of the initial version. Version numbers are unique in each secret object.
- description String
The description of the secret.
- dkms
Instance StringId The instance ID of the exclusive KMS instance.
- enable
Automatic BooleanRotation Whether to enable automatic key rotation.
- encryption
Key StringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- extended
Config String The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- force
Delete BooleanWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- recovery
Window IntegerIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- rotation
Interval String The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- secret
Data StringType The type of the secret value. Valid values: text, binary. Default to "text".
- secret
Type String The type of the secret. Valid values:
- Map<String,Object>
A mapping of tags to assign to the resource.
- version
Stages List<String> ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- secret
Data string The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- secret
Name string The name of the secret.
- version
Id string The version number of the initial version. Version numbers are unique in each secret object.
- description string
The description of the secret.
- dkms
Instance stringId The instance ID of the exclusive KMS instance.
- enable
Automatic booleanRotation Whether to enable automatic key rotation.
- encryption
Key stringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- extended
Config string The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- force
Delete booleanWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- recovery
Window numberIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- rotation
Interval string The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- secret
Data stringType The type of the secret value. Valid values: text, binary. Default to "text".
- secret
Type string The type of the secret. Valid values:
- {[key: string]: any}
A mapping of tags to assign to the resource.
- version
Stages string[] ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- secret_
data str The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- secret_
name str The name of the secret.
- version_
id str The version number of the initial version. Version numbers are unique in each secret object.
- description str
The description of the secret.
- dkms_
instance_ strid The instance ID of the exclusive KMS instance.
- enable_
automatic_ boolrotation Whether to enable automatic key rotation.
- encryption_
key_ strid The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- extended_
config str The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- force_
delete_ boolwithout_ recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- recovery_
window_ intin_ days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- rotation_
interval str The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- secret_
data_ strtype The type of the secret value. Valid values: text, binary. Default to "text".
- secret_
type str The type of the secret. Valid values:
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- version_
stages Sequence[str] ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- secret
Data String The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- secret
Name String The name of the secret.
- version
Id String The version number of the initial version. Version numbers are unique in each secret object.
- description String
The description of the secret.
- dkms
Instance StringId The instance ID of the exclusive KMS instance.
- enable
Automatic BooleanRotation Whether to enable automatic key rotation.
- encryption
Key StringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- extended
Config String The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- force
Delete BooleanWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- recovery
Window NumberIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- rotation
Interval String The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- secret
Data StringType The type of the secret value. Valid values: text, binary. Default to "text".
- secret
Type String The type of the secret. Valid values:
- Map<Any>
A mapping of tags to assign to the resource.
- version
Stages List<String> ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
Outputs
All input properties are implicitly available as output properties. Additionally, the Secret resource produces the following output properties:
- Arn string
The Alicloud Resource Name (ARN) of the secret.
- Id string
The provider-assigned unique ID for this managed resource.
- Planned
Delete stringTime The time when the secret is scheduled to be deleted.
- Arn string
The Alicloud Resource Name (ARN) of the secret.
- Id string
The provider-assigned unique ID for this managed resource.
- Planned
Delete stringTime The time when the secret is scheduled to be deleted.
- arn String
The Alicloud Resource Name (ARN) of the secret.
- id String
The provider-assigned unique ID for this managed resource.
- planned
Delete StringTime The time when the secret is scheduled to be deleted.
- arn string
The Alicloud Resource Name (ARN) of the secret.
- id string
The provider-assigned unique ID for this managed resource.
- planned
Delete stringTime The time when the secret is scheduled to be deleted.
- arn str
The Alicloud Resource Name (ARN) of the secret.
- id str
The provider-assigned unique ID for this managed resource.
- planned_
delete_ strtime The time when the secret is scheduled to be deleted.
- arn String
The Alicloud Resource Name (ARN) of the secret.
- id String
The provider-assigned unique ID for this managed resource.
- planned
Delete StringTime The time when the secret is scheduled to be deleted.
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,
arn: Optional[str] = None,
description: Optional[str] = None,
dkms_instance_id: Optional[str] = None,
enable_automatic_rotation: Optional[bool] = None,
encryption_key_id: Optional[str] = None,
extended_config: Optional[str] = None,
force_delete_without_recovery: Optional[bool] = None,
planned_delete_time: Optional[str] = None,
recovery_window_in_days: Optional[int] = None,
rotation_interval: Optional[str] = None,
secret_data: Optional[str] = None,
secret_data_type: Optional[str] = None,
secret_name: Optional[str] = None,
secret_type: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
version_id: Optional[str] = None,
version_stages: Optional[Sequence[str]] = None) -> Secret
func 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)
Resource lookup is not supported in YAML
- 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.
- Arn string
The Alicloud Resource Name (ARN) of the secret.
- Description string
The description of the secret.
- Dkms
Instance stringId The instance ID of the exclusive KMS instance.
- Enable
Automatic boolRotation Whether to enable automatic key rotation.
- Encryption
Key stringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- Extended
Config string The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- Force
Delete boolWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- Planned
Delete stringTime The time when the secret is scheduled to be deleted.
- Recovery
Window intIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- Rotation
Interval string The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- Secret
Data string The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- Secret
Data stringType The type of the secret value. Valid values: text, binary. Default to "text".
- Secret
Name string The name of the secret.
- Secret
Type string The type of the secret. Valid values:
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Version
Id string The version number of the initial version. Version numbers are unique in each secret object.
- Version
Stages List<string> ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- Arn string
The Alicloud Resource Name (ARN) of the secret.
- Description string
The description of the secret.
- Dkms
Instance stringId The instance ID of the exclusive KMS instance.
- Enable
Automatic boolRotation Whether to enable automatic key rotation.
- Encryption
Key stringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- Extended
Config string The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- Force
Delete boolWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- Planned
Delete stringTime The time when the secret is scheduled to be deleted.
- Recovery
Window intIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- Rotation
Interval string The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- Secret
Data string The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- Secret
Data stringType The type of the secret value. Valid values: text, binary. Default to "text".
- Secret
Name string The name of the secret.
- Secret
Type string The type of the secret. Valid values:
- map[string]interface{}
A mapping of tags to assign to the resource.
- Version
Id string The version number of the initial version. Version numbers are unique in each secret object.
- Version
Stages []string ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- arn String
The Alicloud Resource Name (ARN) of the secret.
- description String
The description of the secret.
- dkms
Instance StringId The instance ID of the exclusive KMS instance.
- enable
Automatic BooleanRotation Whether to enable automatic key rotation.
- encryption
Key StringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- extended
Config String The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- force
Delete BooleanWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- planned
Delete StringTime The time when the secret is scheduled to be deleted.
- recovery
Window IntegerIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- rotation
Interval String The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- secret
Data String The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- secret
Data StringType The type of the secret value. Valid values: text, binary. Default to "text".
- secret
Name String The name of the secret.
- secret
Type String The type of the secret. Valid values:
- Map<String,Object>
A mapping of tags to assign to the resource.
- version
Id String The version number of the initial version. Version numbers are unique in each secret object.
- version
Stages List<String> ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- arn string
The Alicloud Resource Name (ARN) of the secret.
- description string
The description of the secret.
- dkms
Instance stringId The instance ID of the exclusive KMS instance.
- enable
Automatic booleanRotation Whether to enable automatic key rotation.
- encryption
Key stringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- extended
Config string The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- force
Delete booleanWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- planned
Delete stringTime The time when the secret is scheduled to be deleted.
- recovery
Window numberIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- rotation
Interval string The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- secret
Data string The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- secret
Data stringType The type of the secret value. Valid values: text, binary. Default to "text".
- secret
Name string The name of the secret.
- secret
Type string The type of the secret. Valid values:
- {[key: string]: any}
A mapping of tags to assign to the resource.
- version
Id string The version number of the initial version. Version numbers are unique in each secret object.
- version
Stages string[] ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- arn str
The Alicloud Resource Name (ARN) of the secret.
- description str
The description of the secret.
- dkms_
instance_ strid The instance ID of the exclusive KMS instance.
- enable_
automatic_ boolrotation Whether to enable automatic key rotation.
- encryption_
key_ strid The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- extended_
config str The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- force_
delete_ boolwithout_ recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- planned_
delete_ strtime The time when the secret is scheduled to be deleted.
- recovery_
window_ intin_ days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- rotation_
interval str The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- secret_
data str The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- secret_
data_ strtype The type of the secret value. Valid values: text, binary. Default to "text".
- secret_
name str The name of the secret.
- secret_
type str The type of the secret. Valid values:
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- version_
id str The version number of the initial version. Version numbers are unique in each secret object.
- version_
stages Sequence[str] ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
- arn String
The Alicloud Resource Name (ARN) of the secret.
- description String
The description of the secret.
- dkms
Instance StringId The instance ID of the exclusive KMS instance.
- enable
Automatic BooleanRotation Whether to enable automatic key rotation.
- encryption
Key StringId The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret.
- extended
Config String The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length. For more information, see How to use it.
- force
Delete BooleanWithout Recovery Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false.
- planned
Delete StringTime The time when the secret is scheduled to be deleted.
- recovery
Window NumberIn Days Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when
force_delete_without_recovery
is true.- rotation
Interval String The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle.
- secret
Data String The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. NOTE: From version 1.204.1, attribute
secret_data
updating diff will be ignored whensecret_type
is not Generic.- secret
Data StringType The type of the secret value. Valid values: text, binary. Default to "text".
- secret
Name String The name of the secret.
- secret
Type String The type of the secret. Valid values:
- Map<Any>
A mapping of tags to assign to the resource.
- version
Id String The version number of the initial version. Version numbers are unique in each secret object.
- version
Stages List<String> ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent".
Import
KMS secret can be imported using the id, e.g.
$ pulumi import alicloud:kms/secret:Secret default <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.