Provides a resource to manage kms cancel key deletion
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.kms.CancelKeyDeletion("foo", {keyId: "50f588aa-32e1-4cd1-****-63afcbc7d523"});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.kms.CancelKeyDeletion("foo", key_id="50f588aa-32e1-4cd1-****-63afcbc7d523")
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.NewCancelKeyDeletion(ctx, "foo", &kms.CancelKeyDeletionArgs{
KeyId: pulumi.String("50f588aa-32e1-4cd1-****-63afcbc7d523"),
})
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.CancelKeyDeletion("foo", new()
{
KeyId = "50f588aa-32e1-4cd1-****-63afcbc7d523",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.kms.CancelKeyDeletion;
import com.pulumi.volcengine.kms.CancelKeyDeletionArgs;
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 CancelKeyDeletion("foo", CancelKeyDeletionArgs.builder()
.keyId("50f588aa-32e1-4cd1-****-63afcbc7d523")
.build());
}
}
resources:
foo:
type: volcengine:kms:CancelKeyDeletion
properties:
keyId: 50f588aa-32e1-4cd1-****-63afcbc7d523
Create CancelKeyDeletion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CancelKeyDeletion(name: string, args?: CancelKeyDeletionArgs, opts?: CustomResourceOptions);@overload
def CancelKeyDeletion(resource_name: str,
args: Optional[CancelKeyDeletionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CancelKeyDeletion(resource_name: str,
opts: Optional[ResourceOptions] = None,
key_id: Optional[str] = None,
key_name: Optional[str] = None,
keyring_name: Optional[str] = None)func NewCancelKeyDeletion(ctx *Context, name string, args *CancelKeyDeletionArgs, opts ...ResourceOption) (*CancelKeyDeletion, error)public CancelKeyDeletion(string name, CancelKeyDeletionArgs? args = null, CustomResourceOptions? opts = null)
public CancelKeyDeletion(String name, CancelKeyDeletionArgs args)
public CancelKeyDeletion(String name, CancelKeyDeletionArgs args, CustomResourceOptions options)
type: volcengine:kms:CancelKeyDeletion
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 CancelKeyDeletionArgs
- 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 CancelKeyDeletionArgs
- 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 CancelKeyDeletionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CancelKeyDeletionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CancelKeyDeletionArgs
- 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 cancelKeyDeletionResource = new Volcengine.Kms.CancelKeyDeletion("cancelKeyDeletionResource", new()
{
KeyId = "string",
KeyName = "string",
KeyringName = "string",
});
example, err := kms.NewCancelKeyDeletion(ctx, "cancelKeyDeletionResource", &kms.CancelKeyDeletionArgs{
KeyId: pulumi.String("string"),
KeyName: pulumi.String("string"),
KeyringName: pulumi.String("string"),
})
var cancelKeyDeletionResource = new CancelKeyDeletion("cancelKeyDeletionResource", CancelKeyDeletionArgs.builder()
.keyId("string")
.keyName("string")
.keyringName("string")
.build());
cancel_key_deletion_resource = volcengine.kms.CancelKeyDeletion("cancelKeyDeletionResource",
key_id="string",
key_name="string",
keyring_name="string")
const cancelKeyDeletionResource = new volcengine.kms.CancelKeyDeletion("cancelKeyDeletionResource", {
keyId: "string",
keyName: "string",
keyringName: "string",
});
type: volcengine:kms:CancelKeyDeletion
properties:
keyId: string
keyName: string
keyringName: string
CancelKeyDeletion 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 CancelKeyDeletion resource accepts the following input properties:
- Key
Id string - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- Key
Name string - The name of the key.
- Keyring
Name string - The name of the keyring.
- Key
Id string - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- Key
Name string - The name of the key.
- Keyring
Name string - The name of the keyring.
- key
Id String - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name String - The name of the key.
- keyring
Name String - The name of the keyring.
- key
Id string - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name string - The name of the key.
- keyring
Name string - The name of the keyring.
- key_
id str - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key_
name str - The name of the key.
- keyring_
name str - The name of the keyring.
- key
Id String - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name String - The name of the key.
- keyring
Name String - The name of the keyring.
Outputs
All input properties are implicitly available as output properties. Additionally, the CancelKeyDeletion resource produces the following output properties:
Look up Existing CancelKeyDeletion Resource
Get an existing CancelKeyDeletion 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?: CancelKeyDeletionState, opts?: CustomResourceOptions): CancelKeyDeletion@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
key_id: Optional[str] = None,
key_name: Optional[str] = None,
key_state: Optional[str] = None,
keyring_name: Optional[str] = None) -> CancelKeyDeletionfunc GetCancelKeyDeletion(ctx *Context, name string, id IDInput, state *CancelKeyDeletionState, opts ...ResourceOption) (*CancelKeyDeletion, error)public static CancelKeyDeletion Get(string name, Input<string> id, CancelKeyDeletionState? state, CustomResourceOptions? opts = null)public static CancelKeyDeletion get(String name, Output<String> id, CancelKeyDeletionState state, CustomResourceOptions options)resources: _: type: volcengine:kms:CancelKeyDeletion 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.
- Key
Id string - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- Key
Name string - The name of the key.
- Key
State string - The state of the key.
- Keyring
Name string - The name of the keyring.
- Key
Id string - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- Key
Name string - The name of the key.
- Key
State string - The state of the key.
- Keyring
Name string - The name of the keyring.
- key
Id String - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name String - The name of the key.
- key
State String - The state of the key.
- keyring
Name String - The name of the keyring.
- key
Id string - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name string - The name of the key.
- key
State string - The state of the key.
- keyring
Name string - The name of the keyring.
- key_
id str - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key_
name str - The name of the key.
- key_
state str - The state of the key.
- keyring_
name str - The name of the keyring.
- key
Id String - The id of the key. When key_id is not specified, both keyring_name and key_name must be specified.
- key
Name String - The name of the key.
- key
State String - The state of the key.
- keyring
Name String - The name of the keyring.
Import
KmsCancelKeyDeletion can be imported using the id, e.g.
$ pulumi import volcengine:kms/cancelKeyDeletion:CancelKeyDeletion default resource_id
or
$ pulumi import volcengine:kms/cancelKeyDeletion:CancelKeyDeletion default key_name:keyring_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
volcengineTerraform Provider.
