GetKMSCryptoKey
Provides access to a Google Cloud Platform KMS CryptoKey. For more information see the official documentation and API.
A CryptoKey is an interface to key material which can be used to encrypt and decrypt data. A CryptoKey belongs to a Google Cloud KMS KeyRing.
Using GetKMSCryptoKey
function getKMSCryptoKey(args: GetKMSCryptoKeyArgs, opts?: InvokeOptions): Promise<GetKMSCryptoKeyResult>function get_kms_crypto_key(key_ring=None, name=None, opts=None)func GetKMSCryptoKey(ctx *Context, args *GetKMSCryptoKeyArgs, opts ...InvokeOption) (*GetKMSCryptoKeyResult, error)public static class GetKMSCryptoKey {
public static Task<GetKMSCryptoKeyResult> InvokeAsync(GetKMSCryptoKeyArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetKMSCryptoKey Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Ring string - Labels Dictionary<string, string>
- Name string
- Purpose string
Defines the cryptographic capabilities of the key.
- Rotation
Period string Every time this period passes, generate a new CryptoKeyVersion and set it as the primary. The first rotation will take place after the specified period. The rotation period has the format of a decimal number with up to 9 fractional digits, followed by the letter s (seconds).
- Self
Link string The self link of the created CryptoKey. Its format is
projects/{projectId}/locations/{location}/keyRings/{keyRingName}/cryptoKeys/{cryptoKeyName}.- Version
Templates List<GetKMSCrypto Key Version Template>
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Ring string - Labels map[string]string
- Name string
- Purpose string
Defines the cryptographic capabilities of the key.
- Rotation
Period string Every time this period passes, generate a new CryptoKeyVersion and set it as the primary. The first rotation will take place after the specified period. The rotation period has the format of a decimal number with up to 9 fractional digits, followed by the letter s (seconds).
- Self
Link string The self link of the created CryptoKey. Its format is
projects/{projectId}/locations/{location}/keyRings/{keyRingName}/cryptoKeys/{cryptoKeyName}.- Version
Templates []GetKMSCrypto Key Version Template
- id string
The provider-assigned unique ID for this managed resource.
- key
Ring string - labels {[key: string]: string}
- name string
- purpose string
Defines the cryptographic capabilities of the key.
- rotation
Period string Every time this period passes, generate a new CryptoKeyVersion and set it as the primary. The first rotation will take place after the specified period. The rotation period has the format of a decimal number with up to 9 fractional digits, followed by the letter s (seconds).
- self
Link string The self link of the created CryptoKey. Its format is
projects/{projectId}/locations/{location}/keyRings/{keyRingName}/cryptoKeys/{cryptoKeyName}.- version
Templates GetKMSCrypto Key Version Template[]
- id str
The provider-assigned unique ID for this managed resource.
- key_
ring str - labels Dict[str, str]
- name str
- purpose str
Defines the cryptographic capabilities of the key.
- rotation_
period str Every time this period passes, generate a new CryptoKeyVersion and set it as the primary. The first rotation will take place after the specified period. The rotation period has the format of a decimal number with up to 9 fractional digits, followed by the letter s (seconds).
- self_
link str The self link of the created CryptoKey. Its format is
projects/{projectId}/locations/{location}/keyRings/{keyRingName}/cryptoKeys/{cryptoKeyName}.- version_
templates List[GetKMSCrypto Key Version Template]
Supporting Types
GetKMSCryptoKeyVersionTemplate
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.