Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Deprecated: volcengine.kms.MacVerifications has been deprecated in favor of volcengine.kms.getMacVerifications
Use this data source to query detailed information of kms mac verifications
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const mac = volcengine.kms.getMacs({
keyId: "68093dd1-d1a9-44ce-832a****-5a88c4bc31ab",
macAlgorithm: "HMAC_SHA_256",
message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
});
const verify = volcengine.kms.getMacVerifications({
keyId: "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
macAlgorithm: "HMAC_SHA_256",
message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
});
import pulumi
import pulumi_volcengine as volcengine
mac = volcengine.kms.get_macs(key_id="68093dd1-d1a9-44ce-832a****-5a88c4bc31ab",
mac_algorithm="HMAC_SHA_256",
message="VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=")
verify = volcengine.kms.get_mac_verifications(key_id="68093dd1-d1a9-44ce-****-5a88c4bc31ab",
mac="Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
mac_algorithm="HMAC_SHA_256",
message="VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=")
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.GetMacs(ctx, &kms.GetMacsArgs{
KeyId: pulumi.StringRef("68093dd1-d1a9-44ce-832a****-5a88c4bc31ab"),
MacAlgorithm: "HMAC_SHA_256",
Message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
}, nil)
if err != nil {
return err
}
_, err = kms.GetMacVerifications(ctx, &kms.GetMacVerificationsArgs{
KeyId: pulumi.StringRef("68093dd1-d1a9-44ce-****-5a88c4bc31ab"),
Mac: "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
MacAlgorithm: "HMAC_SHA_256",
Message: "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
}, nil)
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 mac = Volcengine.Kms.GetMacs.Invoke(new()
{
KeyId = "68093dd1-d1a9-44ce-832a****-5a88c4bc31ab",
MacAlgorithm = "HMAC_SHA_256",
Message = "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
});
var verify = Volcengine.Kms.GetMacVerifications.Invoke(new()
{
KeyId = "68093dd1-d1a9-44ce-****-5a88c4bc31ab",
Mac = "Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=",
MacAlgorithm = "HMAC_SHA_256",
Message = "VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.kms.KmsFunctions;
import com.pulumi.volcengine.kms.inputs.GetMacsArgs;
import com.pulumi.volcengine.kms.inputs.GetMacVerificationsArgs;
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) {
final var mac = KmsFunctions.getMacs(GetMacsArgs.builder()
.keyId("68093dd1-d1a9-44ce-832a****-5a88c4bc31ab")
.macAlgorithm("HMAC_SHA_256")
.message("VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=")
.build());
final var verify = KmsFunctions.getMacVerifications(GetMacVerificationsArgs.builder()
.keyId("68093dd1-d1a9-44ce-****-5a88c4bc31ab")
.mac("Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=")
.macAlgorithm("HMAC_SHA_256")
.message("VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=")
.build());
}
}
variables:
mac:
fn::invoke:
Function: volcengine:kms:getMacs
Arguments:
keyId: 68093dd1-d1a9-44ce-832a****-5a88c4bc31ab
macAlgorithm: HMAC_SHA_256
message: VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=
verify:
fn::invoke:
Function: volcengine:kms:getMacVerifications
Arguments:
keyId: 68093dd1-d1a9-44ce-****-5a88c4bc31ab
mac: Vm0D9fk6uDRZD6k9QZE9+d9gpgy6ESSPt0bfaA2p05w=
macAlgorithm: HMAC_SHA_256
message: VGhpcyBpcyBhIHRlc3QgTWVzc2FnZS4=
Using MacVerifications
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function macVerifications(args: MacVerificationsArgs, opts?: InvokeOptions): Promise<MacVerificationsResult>
function macVerificationsOutput(args: MacVerificationsOutputArgs, opts?: InvokeOptions): Output<MacVerificationsResult>def mac_verifications(key_id: Optional[str] = None,
key_name: Optional[str] = None,
keyring_name: Optional[str] = None,
mac: Optional[str] = None,
mac_algorithm: Optional[str] = None,
message: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> MacVerificationsResult
def mac_verifications_output(key_id: Optional[pulumi.Input[str]] = None,
key_name: Optional[pulumi.Input[str]] = None,
keyring_name: Optional[pulumi.Input[str]] = None,
mac: Optional[pulumi.Input[str]] = None,
mac_algorithm: Optional[pulumi.Input[str]] = None,
message: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[MacVerificationsResult]func MacVerifications(ctx *Context, args *MacVerificationsArgs, opts ...InvokeOption) (*MacVerificationsResult, error)
func MacVerificationsOutput(ctx *Context, args *MacVerificationsOutputArgs, opts ...InvokeOption) MacVerificationsResultOutputpublic static class MacVerifications
{
public static Task<MacVerificationsResult> InvokeAsync(MacVerificationsArgs args, InvokeOptions? opts = null)
public static Output<MacVerificationsResult> Invoke(MacVerificationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<MacVerificationsResult> macVerifications(MacVerificationsArgs args, InvokeOptions options)
public static Output<MacVerificationsResult> macVerifications(MacVerificationsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:kms:MacVerifications
arguments:
# arguments dictionaryThe following arguments are supported:
- Mac string
- The MAC to verify, Base64 encoded. Verify the Hash-based Message Authentication Code (HMAC), HMAC KMS key, and MAC algorithm for the specified message.
- Mac
Algorithm string - The MAC algorithm. Valid values:
HMAC_SM3,HMAC_SHA_256. - Message string
- The message to verify, 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.
- Output
File string - File name where to save data source results.
- Mac string
- The MAC to verify, Base64 encoded. Verify the Hash-based Message Authentication Code (HMAC), HMAC KMS key, and MAC algorithm for the specified message.
- Mac
Algorithm string - The MAC algorithm. Valid values:
HMAC_SM3,HMAC_SHA_256. - Message string
- The message to verify, 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.
- Output
File string - File name where to save data source results.
- mac String
- The MAC to verify, Base64 encoded. Verify the Hash-based Message Authentication Code (HMAC), HMAC KMS key, and MAC algorithm for the specified message.
- mac
Algorithm String - The MAC algorithm. Valid values:
HMAC_SM3,HMAC_SHA_256. - message String
- The message to verify, 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.
- output
File String - File name where to save data source results.
- mac string
- The MAC to verify, Base64 encoded. Verify the Hash-based Message Authentication Code (HMAC), HMAC KMS key, and MAC algorithm for the specified message.
- mac
Algorithm string - The MAC algorithm. Valid values:
HMAC_SM3,HMAC_SHA_256. - message string
- The message to verify, 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.
- output
File string - File name where to save data source results.
- mac str
- The MAC to verify, Base64 encoded. Verify the Hash-based Message Authentication Code (HMAC), HMAC KMS key, and MAC algorithm for the specified message.
- mac_
algorithm str - The MAC algorithm. Valid values:
HMAC_SM3,HMAC_SHA_256. - message str
- The message to verify, 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.
- output_
file str - File name where to save data source results.
- mac String
- The MAC to verify, Base64 encoded. Verify the Hash-based Message Authentication Code (HMAC), HMAC KMS key, and MAC algorithm for the specified message.
- mac
Algorithm String - The MAC algorithm. Valid values:
HMAC_SM3,HMAC_SHA_256. - message String
- The message to verify, 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.
- output
File String - File name where to save data source results.
MacVerifications Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac string
- Mac
Algorithm string - Mac
Verification List<MacInfos Verifications Mac Verification Info> - The MAC verification info.
- Message string
- Total
Count int - The total count of query.
- Key
Id string - The key id.
- Key
Name string - Keyring
Name string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac string
- Mac
Algorithm string - Mac
Verification []MacInfos Verifications Mac Verification Info - The MAC verification info.
- Message string
- Total
Count int - The total count of query.
- Key
Id string - The key id.
- Key
Name string - Keyring
Name string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- mac String
- mac
Algorithm String - mac
Verification List<MacInfos Verifications Mac Verification Info> - The MAC verification info.
- message String
- total
Count Integer - The total count of query.
- key
Id String - The key id.
- key
Name String - keyring
Name String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- mac string
- mac
Algorithm string - mac
Verification MacInfos Verifications Mac Verification Info[] - The MAC verification info.
- message string
- total
Count number - The total count of query.
- key
Id string - The key id.
- key
Name string - keyring
Name string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- mac str
- mac_
algorithm str - mac_
verification_ Sequence[Macinfos Verifications Mac Verification Info] - The MAC verification info.
- message str
- total_
count int - The total count of query.
- key_
id str - The key id.
- key_
name str - keyring_
name str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- mac String
- mac
Algorithm String - mac
Verification List<Property Map>Infos - The MAC verification info.
- message String
- total
Count Number - The total count of query.
- key
Id String - The key id.
- key
Name String - keyring
Name String - output
File String
Supporting Types
MacVerificationsMacVerificationInfo
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
