1. Packages
  2. Volcengine
  3. API Docs
  4. kms
  5. CancelSecretDeletion
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
volcengine logo
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine

    Provides a resource to manage kms cancel secret deletion

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const _default = new volcengine.kms.CancelSecretDeletion("default", {secretName: "tf-test2"});
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.kms.CancelSecretDeletion("default", secret_name="tf-test2")
    
    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.NewCancelSecretDeletion(ctx, "default", &kms.CancelSecretDeletionArgs{
    			SecretName: pulumi.String("tf-test2"),
    		})
    		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 @default = new Volcengine.Kms.CancelSecretDeletion("default", new()
        {
            SecretName = "tf-test2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.kms.CancelSecretDeletion;
    import com.pulumi.volcengine.kms.CancelSecretDeletionArgs;
    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 CancelSecretDeletion("default", CancelSecretDeletionArgs.builder()        
                .secretName("tf-test2")
                .build());
    
        }
    }
    
    resources:
      default:
        type: volcengine:kms:CancelSecretDeletion
        properties:
          secretName: tf-test2
    

    Create CancelSecretDeletion Resource

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

    Constructor syntax

    new CancelSecretDeletion(name: string, args: CancelSecretDeletionArgs, opts?: CustomResourceOptions);
    @overload
    def CancelSecretDeletion(resource_name: str,
                             args: CancelSecretDeletionArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def CancelSecretDeletion(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             secret_name: Optional[str] = None)
    func NewCancelSecretDeletion(ctx *Context, name string, args CancelSecretDeletionArgs, opts ...ResourceOption) (*CancelSecretDeletion, error)
    public CancelSecretDeletion(string name, CancelSecretDeletionArgs args, CustomResourceOptions? opts = null)
    public CancelSecretDeletion(String name, CancelSecretDeletionArgs args)
    public CancelSecretDeletion(String name, CancelSecretDeletionArgs args, CustomResourceOptions options)
    
    type: volcengine:kms:CancelSecretDeletion
    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 CancelSecretDeletionArgs
    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 CancelSecretDeletionArgs
    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 CancelSecretDeletionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CancelSecretDeletionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CancelSecretDeletionArgs
    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 cancelSecretDeletionResource = new Volcengine.Kms.CancelSecretDeletion("cancelSecretDeletionResource", new()
    {
        SecretName = "string",
    });
    
    example, err := kms.NewCancelSecretDeletion(ctx, "cancelSecretDeletionResource", &kms.CancelSecretDeletionArgs{
    	SecretName: pulumi.String("string"),
    })
    
    var cancelSecretDeletionResource = new CancelSecretDeletion("cancelSecretDeletionResource", CancelSecretDeletionArgs.builder()
        .secretName("string")
        .build());
    
    cancel_secret_deletion_resource = volcengine.kms.CancelSecretDeletion("cancelSecretDeletionResource", secret_name="string")
    
    const cancelSecretDeletionResource = new volcengine.kms.CancelSecretDeletion("cancelSecretDeletionResource", {secretName: "string"});
    
    type: volcengine:kms:CancelSecretDeletion
    properties:
        secretName: string
    

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

    SecretName string
    The name of the secret.
    SecretName string
    The name of the secret.
    secretName String
    The name of the secret.
    secretName string
    The name of the secret.
    secret_name str
    The name of the secret.
    secretName String
    The name of the secret.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    SecretState string
    The state of the secret.
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretState string
    The state of the secret.
    id String
    The provider-assigned unique ID for this managed resource.
    secretState String
    The state of the secret.
    id string
    The provider-assigned unique ID for this managed resource.
    secretState string
    The state of the secret.
    id str
    The provider-assigned unique ID for this managed resource.
    secret_state str
    The state of the secret.
    id String
    The provider-assigned unique ID for this managed resource.
    secretState String
    The state of the secret.

    Look up Existing CancelSecretDeletion Resource

    Get an existing CancelSecretDeletion 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?: CancelSecretDeletionState, opts?: CustomResourceOptions): CancelSecretDeletion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            secret_name: Optional[str] = None,
            secret_state: Optional[str] = None) -> CancelSecretDeletion
    func GetCancelSecretDeletion(ctx *Context, name string, id IDInput, state *CancelSecretDeletionState, opts ...ResourceOption) (*CancelSecretDeletion, error)
    public static CancelSecretDeletion Get(string name, Input<string> id, CancelSecretDeletionState? state, CustomResourceOptions? opts = null)
    public static CancelSecretDeletion get(String name, Output<String> id, CancelSecretDeletionState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:kms:CancelSecretDeletion    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    SecretName string
    The name of the secret.
    SecretState string
    The state of the secret.
    SecretName string
    The name of the secret.
    SecretState string
    The state of the secret.
    secretName String
    The name of the secret.
    secretState String
    The state of the secret.
    secretName string
    The name of the secret.
    secretState string
    The state of the secret.
    secret_name str
    The name of the secret.
    secret_state str
    The state of the secret.
    secretName String
    The name of the secret.
    secretState String
    The state of the secret.

    Import

    KmsCancelSecretDeletion can be imported using the id, e.g.

    $ pulumi import volcengine:kms/cancelSecretDeletion:CancelSecretDeletion default secret_name
    

    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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate