Provides a resource to manage kms asymmetric signature
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const signStable1 = new volcengine.kms.AsymmetricSignature("signStable1", {
algorithm: "RSA_PSS_SHA_256",
keyId: "516274b3-0cba-4fad-****-c8355e3e8213",
message: "VGhpcyBpcyBhIG1lc3NhZ2UgZXhhbXBsZS4=",
messageType: "RAW",
});
const signStable2 = new volcengine.kms.AsymmetricSignature("signStable2", {
algorithm: "RSA_PSS_SHA_256",
keyId: "516274b3-0cba-4fad-****-c8355e3e8213",
message: "KsFMwOobjOMHfYaPl2IgXX6tzziiT+SucmfmXTo2f6U=",
messageType: "DIGEST",
});
import pulumi
import pulumi_volcengine as volcengine
sign_stable1 = volcengine.kms.AsymmetricSignature("signStable1",
algorithm="RSA_PSS_SHA_256",
key_id="516274b3-0cba-4fad-****-c8355e3e8213",
message="VGhpcyBpcyBhIG1lc3NhZ2UgZXhhbXBsZS4=",
message_type="RAW")
sign_stable2 = volcengine.kms.AsymmetricSignature("signStable2",
algorithm="RSA_PSS_SHA_256",
key_id="516274b3-0cba-4fad-****-c8355e3e8213",
message="KsFMwOobjOMHfYaPl2IgXX6tzziiT+SucmfmXTo2f6U=",
message_type="DIGEST")
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.NewAsymmetricSignature(ctx, "signStable1", &kms.AsymmetricSignatureArgs{
Algorithm: pulumi.String("RSA_PSS_SHA_256"),
KeyId: pulumi.String("516274b3-0cba-4fad-****-c8355e3e8213"),
Message: pulumi.String("VGhpcyBpcyBhIG1lc3NhZ2UgZXhhbXBsZS4="),
MessageType: pulumi.String("RAW"),
})
if err != nil {
return err
}
_, err = kms.NewAsymmetricSignature(ctx, "signStable2", &kms.AsymmetricSignatureArgs{
Algorithm: pulumi.String("RSA_PSS_SHA_256"),
KeyId: pulumi.String("516274b3-0cba-4fad-****-c8355e3e8213"),
Message: pulumi.String("KsFMwOobjOMHfYaPl2IgXX6tzziiT+SucmfmXTo2f6U="),
MessageType: pulumi.String("DIGEST"),
})
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 signStable1 = new Volcengine.Kms.AsymmetricSignature("signStable1", new()
{
Algorithm = "RSA_PSS_SHA_256",
KeyId = "516274b3-0cba-4fad-****-c8355e3e8213",
Message = "VGhpcyBpcyBhIG1lc3NhZ2UgZXhhbXBsZS4=",
MessageType = "RAW",
});
var signStable2 = new Volcengine.Kms.AsymmetricSignature("signStable2", new()
{
Algorithm = "RSA_PSS_SHA_256",
KeyId = "516274b3-0cba-4fad-****-c8355e3e8213",
Message = "KsFMwOobjOMHfYaPl2IgXX6tzziiT+SucmfmXTo2f6U=",
MessageType = "DIGEST",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.kms.AsymmetricSignature;
import com.pulumi.volcengine.kms.AsymmetricSignatureArgs;
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 signStable1 = new AsymmetricSignature("signStable1", AsymmetricSignatureArgs.builder()
.algorithm("RSA_PSS_SHA_256")
.keyId("516274b3-0cba-4fad-****-c8355e3e8213")
.message("VGhpcyBpcyBhIG1lc3NhZ2UgZXhhbXBsZS4=")
.messageType("RAW")
.build());
var signStable2 = new AsymmetricSignature("signStable2", AsymmetricSignatureArgs.builder()
.algorithm("RSA_PSS_SHA_256")
.keyId("516274b3-0cba-4fad-****-c8355e3e8213")
.message("KsFMwOobjOMHfYaPl2IgXX6tzziiT+SucmfmXTo2f6U=")
.messageType("DIGEST")
.build());
}
}
resources:
signStable1:
type: volcengine:kms:AsymmetricSignature
properties:
algorithm: RSA_PSS_SHA_256
keyId: 516274b3-0cba-4fad-****-c8355e3e8213
message: VGhpcyBpcyBhIG1lc3NhZ2UgZXhhbXBsZS4=
messageType: RAW
signStable2:
type: volcengine:kms:AsymmetricSignature
properties:
algorithm: RSA_PSS_SHA_256
keyId: 516274b3-0cba-4fad-****-c8355e3e8213
message: KsFMwOobjOMHfYaPl2IgXX6tzziiT+SucmfmXTo2f6U=
messageType: DIGEST
Create AsymmetricSignature Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AsymmetricSignature(name: string, args: AsymmetricSignatureArgs, opts?: CustomResourceOptions);@overload
def AsymmetricSignature(resource_name: str,
args: AsymmetricSignatureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AsymmetricSignature(resource_name: str,
opts: Optional[ResourceOptions] = None,
algorithm: Optional[str] = None,
message: Optional[str] = None,
key_id: Optional[str] = None,
key_name: Optional[str] = None,
keyring_name: Optional[str] = None,
message_type: Optional[str] = None)func NewAsymmetricSignature(ctx *Context, name string, args AsymmetricSignatureArgs, opts ...ResourceOption) (*AsymmetricSignature, error)public AsymmetricSignature(string name, AsymmetricSignatureArgs args, CustomResourceOptions? opts = null)
public AsymmetricSignature(String name, AsymmetricSignatureArgs args)
public AsymmetricSignature(String name, AsymmetricSignatureArgs args, CustomResourceOptions options)
type: volcengine:kms:AsymmetricSignature
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 AsymmetricSignatureArgs
- 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 AsymmetricSignatureArgs
- 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 AsymmetricSignatureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AsymmetricSignatureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AsymmetricSignatureArgs
- 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 asymmetricSignatureResource = new Volcengine.Kms.AsymmetricSignature("asymmetricSignatureResource", new()
{
Algorithm = "string",
Message = "string",
KeyId = "string",
KeyName = "string",
KeyringName = "string",
MessageType = "string",
});
example, err := kms.NewAsymmetricSignature(ctx, "asymmetricSignatureResource", &kms.AsymmetricSignatureArgs{
Algorithm: pulumi.String("string"),
Message: pulumi.String("string"),
KeyId: pulumi.String("string"),
KeyName: pulumi.String("string"),
KeyringName: pulumi.String("string"),
MessageType: pulumi.String("string"),
})
var asymmetricSignatureResource = new AsymmetricSignature("asymmetricSignatureResource", AsymmetricSignatureArgs.builder()
.algorithm("string")
.message("string")
.keyId("string")
.keyName("string")
.keyringName("string")
.messageType("string")
.build());
asymmetric_signature_resource = volcengine.kms.AsymmetricSignature("asymmetricSignatureResource",
algorithm="string",
message="string",
key_id="string",
key_name="string",
keyring_name="string",
message_type="string")
const asymmetricSignatureResource = new volcengine.kms.AsymmetricSignature("asymmetricSignatureResource", {
algorithm: "string",
message: "string",
keyId: "string",
keyName: "string",
keyringName: "string",
messageType: "string",
});
type: volcengine:kms:AsymmetricSignature
properties:
algorithm: string
keyId: string
keyName: string
keyringName: string
message: string
messageType: string
AsymmetricSignature 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 AsymmetricSignature resource accepts the following input properties:
- Algorithm string
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - Message string
- The message to be signed, Base64 encoded.
- 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.
- Message
Type string - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- Algorithm string
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - Message string
- The message to be signed, Base64 encoded.
- 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.
- Message
Type string - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- algorithm String
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - message String
- The message to be signed, Base64 encoded.
- 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.
- message
Type String - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- algorithm string
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - message string
- The message to be signed, Base64 encoded.
- 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.
- message
Type string - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- algorithm str
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - message str
- The message to be signed, Base64 encoded.
- 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.
- message_
type str - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- algorithm String
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - message String
- The message to be signed, Base64 encoded.
- 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.
- message
Type String - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
Outputs
All input properties are implicitly available as output properties. Additionally, the AsymmetricSignature resource produces the following output properties:
Look up Existing AsymmetricSignature Resource
Get an existing AsymmetricSignature 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?: AsymmetricSignatureState, opts?: CustomResourceOptions): AsymmetricSignature@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
algorithm: Optional[str] = None,
key_id: Optional[str] = None,
key_name: Optional[str] = None,
keyring_name: Optional[str] = None,
message: Optional[str] = None,
message_type: Optional[str] = None,
signature: Optional[str] = None) -> AsymmetricSignaturefunc GetAsymmetricSignature(ctx *Context, name string, id IDInput, state *AsymmetricSignatureState, opts ...ResourceOption) (*AsymmetricSignature, error)public static AsymmetricSignature Get(string name, Input<string> id, AsymmetricSignatureState? state, CustomResourceOptions? opts = null)public static AsymmetricSignature get(String name, Output<String> id, AsymmetricSignatureState state, CustomResourceOptions options)resources: _: type: volcengine:kms:AsymmetricSignature 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.
- Algorithm string
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - 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.
- Message string
- The message to be signed, Base64 encoded.
- Message
Type string - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- Signature string
- The signature, Base64 encoded. The produced signature stays stable across applies. If the message should be re-signed on each apply use the
volcengine.kms.getAsymmetricSignaturesdata source.
- Algorithm string
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - 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.
- Message string
- The message to be signed, Base64 encoded.
- Message
Type string - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- Signature string
- The signature, Base64 encoded. The produced signature stays stable across applies. If the message should be re-signed on each apply use the
volcengine.kms.getAsymmetricSignaturesdata source.
- algorithm String
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - 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.
- message String
- The message to be signed, Base64 encoded.
- message
Type String - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- signature String
- The signature, Base64 encoded. The produced signature stays stable across applies. If the message should be re-signed on each apply use the
volcengine.kms.getAsymmetricSignaturesdata source.
- algorithm string
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - 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.
- message string
- The message to be signed, Base64 encoded.
- message
Type string - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- signature string
- The signature, Base64 encoded. The produced signature stays stable across applies. If the message should be re-signed on each apply use the
volcengine.kms.getAsymmetricSignaturesdata source.
- algorithm str
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - 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.
- message str
- The message to be signed, Base64 encoded.
- message_
type str - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- signature str
- The signature, Base64 encoded. The produced signature stays stable across applies. If the message should be re-signed on each apply use the
volcengine.kms.getAsymmetricSignaturesdata source.
- algorithm String
- The signing algorithm. valid values:
RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512. - 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.
- message String
- The message to be signed, Base64 encoded.
- message
Type String - The type of message. Valid values: RAW or DIGEST. When message_type is DIGEST, KMS does not process the message digest of the original data source, it will sign directly with the private key.
- signature String
- The signature, Base64 encoded. The produced signature stays stable across applies. If the message should be re-signed on each apply use the
volcengine.kms.getAsymmetricSignaturesdata source.
Import
The KmsAsymmetricSignature is not support import.
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.
