flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getKmsKeyV1
Start a Neo task
Explain and create a flexibleengine.getKmsKeyV1 resource
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get the ID of an available FlexibleEngine KMS key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const key1 = flexibleengine.getKmsKeyV1({
keyAlias: "test_key",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
key1 = flexibleengine.get_kms_key_v1(key_alias="test_key")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.LookupKmsKeyV1(ctx, &flexibleengine.LookupKmsKeyV1Args{
KeyAlias: pulumi.StringRef("test_key"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var key1 = Flexibleengine.GetKmsKeyV1.Invoke(new()
{
KeyAlias = "test_key",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetKmsKeyV1Args;
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 key1 = FlexibleengineFunctions.getKmsKeyV1(GetKmsKeyV1Args.builder()
.keyAlias("test_key")
.build());
}
}
variables:
key1:
fn::invoke:
function: flexibleengine:getKmsKeyV1
arguments:
keyAlias: test_key
Using getKmsKeyV1
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 getKmsKeyV1(args: GetKmsKeyV1Args, opts?: InvokeOptions): Promise<GetKmsKeyV1Result>
function getKmsKeyV1Output(args: GetKmsKeyV1OutputArgs, opts?: InvokeOptions): Output<GetKmsKeyV1Result>def get_kms_key_v1(default_key_flag: Optional[str] = None,
domain_id: Optional[str] = None,
id: Optional[str] = None,
key_alias: Optional[str] = None,
key_description: Optional[str] = None,
key_id: Optional[str] = None,
key_state: Optional[str] = None,
origin: Optional[str] = None,
realm: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKmsKeyV1Result
def get_kms_key_v1_output(default_key_flag: Optional[pulumi.Input[str]] = None,
domain_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
key_alias: Optional[pulumi.Input[str]] = None,
key_description: Optional[pulumi.Input[str]] = None,
key_id: Optional[pulumi.Input[str]] = None,
key_state: Optional[pulumi.Input[str]] = None,
origin: Optional[pulumi.Input[str]] = None,
realm: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKmsKeyV1Result]func LookupKmsKeyV1(ctx *Context, args *LookupKmsKeyV1Args, opts ...InvokeOption) (*LookupKmsKeyV1Result, error)
func LookupKmsKeyV1Output(ctx *Context, args *LookupKmsKeyV1OutputArgs, opts ...InvokeOption) LookupKmsKeyV1ResultOutput> Note: This function is named LookupKmsKeyV1 in the Go SDK.
public static class GetKmsKeyV1
{
public static Task<GetKmsKeyV1Result> InvokeAsync(GetKmsKeyV1Args args, InvokeOptions? opts = null)
public static Output<GetKmsKeyV1Result> Invoke(GetKmsKeyV1InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKmsKeyV1Result> getKmsKeyV1(GetKmsKeyV1Args args, InvokeOptions options)
public static Output<GetKmsKeyV1Result> getKmsKeyV1(GetKmsKeyV1Args args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getKmsKeyV1:getKmsKeyV1
arguments:
# arguments dictionaryThe following arguments are supported:
- Default
Key stringFlag - Identification of a Master Key. The value "1" indicates a Default Master Key, and the value "0" indicates a key. Changing this gets a new key.
- Domain
Id string - ID of a user domain for the key. Changing this gets a new key.
- Id string
- The data source ID in UUID format.
- Key
Alias string - The alias in which to create the key. It is required when we create a new key. Changing this gets the new key.
- Key
Description string - The description of the key as viewed in FlexibleEngine console. Changing this gets a new key.
- Key
Id string - The globally unique identifier for the key. Changing this gets the new key.
- Key
State string - The state of a key. "2" indicates that the key is enabled. "3" indicates that the key is disabled. "4" indicates that the key is scheduled for deletion. Changing this gets a new key.
- Origin string
- Origin of a key. such as: kms. Changing this gets a new key.
- Realm string
- Region where a key resides. Changing this gets a new key.
- Default
Key stringFlag - Identification of a Master Key. The value "1" indicates a Default Master Key, and the value "0" indicates a key. Changing this gets a new key.
- Domain
Id string - ID of a user domain for the key. Changing this gets a new key.
- Id string
- The data source ID in UUID format.
- Key
Alias string - The alias in which to create the key. It is required when we create a new key. Changing this gets the new key.
- Key
Description string - The description of the key as viewed in FlexibleEngine console. Changing this gets a new key.
- Key
Id string - The globally unique identifier for the key. Changing this gets the new key.
- Key
State string - The state of a key. "2" indicates that the key is enabled. "3" indicates that the key is disabled. "4" indicates that the key is scheduled for deletion. Changing this gets a new key.
- Origin string
- Origin of a key. such as: kms. Changing this gets a new key.
- Realm string
- Region where a key resides. Changing this gets a new key.
- default
Key StringFlag - Identification of a Master Key. The value "1" indicates a Default Master Key, and the value "0" indicates a key. Changing this gets a new key.
- domain
Id String - ID of a user domain for the key. Changing this gets a new key.
- id String
- The data source ID in UUID format.
- key
Alias String - The alias in which to create the key. It is required when we create a new key. Changing this gets the new key.
- key
Description String - The description of the key as viewed in FlexibleEngine console. Changing this gets a new key.
- key
Id String - The globally unique identifier for the key. Changing this gets the new key.
- key
State String - The state of a key. "2" indicates that the key is enabled. "3" indicates that the key is disabled. "4" indicates that the key is scheduled for deletion. Changing this gets a new key.
- origin String
- Origin of a key. such as: kms. Changing this gets a new key.
- realm String
- Region where a key resides. Changing this gets a new key.
- default
Key stringFlag - Identification of a Master Key. The value "1" indicates a Default Master Key, and the value "0" indicates a key. Changing this gets a new key.
- domain
Id string - ID of a user domain for the key. Changing this gets a new key.
- id string
- The data source ID in UUID format.
- key
Alias string - The alias in which to create the key. It is required when we create a new key. Changing this gets the new key.
- key
Description string - The description of the key as viewed in FlexibleEngine console. Changing this gets a new key.
- key
Id string - The globally unique identifier for the key. Changing this gets the new key.
- key
State string - The state of a key. "2" indicates that the key is enabled. "3" indicates that the key is disabled. "4" indicates that the key is scheduled for deletion. Changing this gets a new key.
- origin string
- Origin of a key. such as: kms. Changing this gets a new key.
- realm string
- Region where a key resides. Changing this gets a new key.
- default_
key_ strflag - Identification of a Master Key. The value "1" indicates a Default Master Key, and the value "0" indicates a key. Changing this gets a new key.
- domain_
id str - ID of a user domain for the key. Changing this gets a new key.
- id str
- The data source ID in UUID format.
- key_
alias str - The alias in which to create the key. It is required when we create a new key. Changing this gets the new key.
- key_
description str - The description of the key as viewed in FlexibleEngine console. Changing this gets a new key.
- key_
id str - The globally unique identifier for the key. Changing this gets the new key.
- key_
state str - The state of a key. "2" indicates that the key is enabled. "3" indicates that the key is disabled. "4" indicates that the key is scheduled for deletion. Changing this gets a new key.
- origin str
- Origin of a key. such as: kms. Changing this gets a new key.
- realm str
- Region where a key resides. Changing this gets a new key.
- default
Key StringFlag - Identification of a Master Key. The value "1" indicates a Default Master Key, and the value "0" indicates a key. Changing this gets a new key.
- domain
Id String - ID of a user domain for the key. Changing this gets a new key.
- id String
- The data source ID in UUID format.
- key
Alias String - The alias in which to create the key. It is required when we create a new key. Changing this gets the new key.
- key
Description String - The description of the key as viewed in FlexibleEngine console. Changing this gets a new key.
- key
Id String - The globally unique identifier for the key. Changing this gets the new key.
- key
State String - The state of a key. "2" indicates that the key is enabled. "3" indicates that the key is disabled. "4" indicates that the key is scheduled for deletion. Changing this gets a new key.
- origin String
- Origin of a key. such as: kms. Changing this gets a new key.
- realm String
- Region where a key resides. Changing this gets a new key.
getKmsKeyV1 Result
The following output properties are available:
- Creation
Date string - Creation time (time stamp) of a key.
- Default
Key stringFlag - Domain
Id string - Id string
- The data source ID in UUID format.
- Key
State string - Origin string
- Realm string
- Rotation
Enabled bool - Indicates whether the key rotation is enabled or not.
- Rotation
Interval double - The key rotation interval. It's valid when rotation is enabled.
- Rotation
Number double - The total number of key rotations. It's valid when rotation is enabled.
- Scheduled
Deletion stringDate - Scheduled deletion time (time stamp) of a key.
- Key
Alias string - Key
Description string - Key
Id string
- Creation
Date string - Creation time (time stamp) of a key.
- Default
Key stringFlag - Domain
Id string - Id string
- The data source ID in UUID format.
- Key
State string - Origin string
- Realm string
- Rotation
Enabled bool - Indicates whether the key rotation is enabled or not.
- Rotation
Interval float64 - The key rotation interval. It's valid when rotation is enabled.
- Rotation
Number float64 - The total number of key rotations. It's valid when rotation is enabled.
- Scheduled
Deletion stringDate - Scheduled deletion time (time stamp) of a key.
- Key
Alias string - Key
Description string - Key
Id string
- creation
Date String - Creation time (time stamp) of a key.
- default
Key StringFlag - domain
Id String - id String
- The data source ID in UUID format.
- key
State String - origin String
- realm String
- rotation
Enabled Boolean - Indicates whether the key rotation is enabled or not.
- rotation
Interval Double - The key rotation interval. It's valid when rotation is enabled.
- rotation
Number Double - The total number of key rotations. It's valid when rotation is enabled.
- scheduled
Deletion StringDate - Scheduled deletion time (time stamp) of a key.
- key
Alias String - key
Description String - key
Id String
- creation
Date string - Creation time (time stamp) of a key.
- default
Key stringFlag - domain
Id string - id string
- The data source ID in UUID format.
- key
State string - origin string
- realm string
- rotation
Enabled boolean - Indicates whether the key rotation is enabled or not.
- rotation
Interval number - The key rotation interval. It's valid when rotation is enabled.
- rotation
Number number - The total number of key rotations. It's valid when rotation is enabled.
- scheduled
Deletion stringDate - Scheduled deletion time (time stamp) of a key.
- key
Alias string - key
Description string - key
Id string
- creation_
date str - Creation time (time stamp) of a key.
- default_
key_ strflag - domain_
id str - id str
- The data source ID in UUID format.
- key_
state str - origin str
- realm str
- rotation_
enabled bool - Indicates whether the key rotation is enabled or not.
- rotation_
interval float - The key rotation interval. It's valid when rotation is enabled.
- rotation_
number float - The total number of key rotations. It's valid when rotation is enabled.
- scheduled_
deletion_ strdate - Scheduled deletion time (time stamp) of a key.
- key_
alias str - key_
description str - key_
id str
- creation
Date String - Creation time (time stamp) of a key.
- default
Key StringFlag - domain
Id String - id String
- The data source ID in UUID format.
- key
State String - origin String
- realm String
- rotation
Enabled Boolean - Indicates whether the key rotation is enabled or not.
- rotation
Interval Number - The key rotation interval. It's valid when rotation is enabled.
- rotation
Number Number - The total number of key rotations. It's valid when rotation is enabled.
- scheduled
Deletion StringDate - Scheduled deletion time (time stamp) of a key.
- key
Alias String - key
Description String - key
Id String
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengineTerraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
