This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Create a new KeyRing in a given Project and Location. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
Create KeyRing Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KeyRing(name: string, args?: KeyRingArgs, opts?: CustomResourceOptions);@overload
def KeyRing(resource_name: str,
args: Optional[KeyRingArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def KeyRing(resource_name: str,
opts: Optional[ResourceOptions] = None,
key_ring_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None)func NewKeyRing(ctx *Context, name string, args *KeyRingArgs, opts ...ResourceOption) (*KeyRing, error)public KeyRing(string name, KeyRingArgs? args = null, CustomResourceOptions? opts = null)
public KeyRing(String name, KeyRingArgs args)
public KeyRing(String name, KeyRingArgs args, CustomResourceOptions options)
type: google-native:cloudkms/v1:KeyRing
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_cloudkms_v1_key_ring" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args KeyRingArgs
- 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 KeyRingArgs
- 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 KeyRingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KeyRingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KeyRingArgs
- 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 keyRingResource = new GoogleNative.Cloudkms.V1.KeyRing("keyRingResource", new()
{
KeyRingId = "string",
Location = "string",
Project = "string",
});
example, err := cloudkms.NewKeyRing(ctx, "keyRingResource", &cloudkms.KeyRingArgs{
KeyRingId: pulumi.String("string"),
Location: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "google-native_cloudkms_v1_key_ring" "keyRingResource" {
lifecycle {
create_before_destroy = true
}
key_ring_id = "string"
location = "string"
project = "string"
}
var keyRingResource = new KeyRing("keyRingResource", KeyRingArgs.builder()
.keyRingId("string")
.location("string")
.project("string")
.build());
key_ring_resource = google_native.cloudkms.v1.KeyRing("keyRingResource",
key_ring_id="string",
location="string",
project="string")
const keyRingResource = new google_native.cloudkms.v1.KeyRing("keyRingResource", {
keyRingId: "string",
location: "string",
project: "string",
});
type: google-native:cloudkms/v1:KeyRing
properties:
keyRingId: string
location: string
project: string
KeyRing 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 KeyRing resource accepts the following input properties:
- key_
ring_ stringid - Required. It must be unique within a location and match the regular expression
[a-zA-Z0-9_-]{1,63} - location string
- project string
- key_
ring_ strid - Required. It must be unique within a location and match the regular expression
[a-zA-Z0-9_-]{1,63} - location str
- project str
Outputs
All input properties are implicitly available as output properties. Additionally, the KeyRing resource produces the following output properties:
- Create
Time string - The time at which this KeyRing was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name for the KeyRing in the format
projects/*/locations/*/keyRings/*.
- Create
Time string - The time at which this KeyRing was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name for the KeyRing in the format
projects/*/locations/*/keyRings/*.
- create_
time string - The time at which this KeyRing was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name for the KeyRing in the format
projects/*/locations/*/keyRings/*.
- create
Time String - The time at which this KeyRing was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name for the KeyRing in the format
projects/*/locations/*/keyRings/*.
- create
Time string - The time at which this KeyRing was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name for the KeyRing in the format
projects/*/locations/*/keyRings/*.
- create_
time str - The time at which this KeyRing was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name for the KeyRing in the format
projects/*/locations/*/keyRings/*.
- create
Time String - The time at which this KeyRing was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name for the KeyRing in the format
projects/*/locations/*/keyRings/*.
Look up Existing KeyRing Resource
Get an existing KeyRing 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>, opts?: CustomResourceOptions): KeyRing@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> KeyRingfunc GetKeyRing(ctx *Context, name string, id IDInput, state *KeyRingState, opts ...ResourceOption) (*KeyRing, error)public static KeyRing Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static KeyRing get(String name, Output<String> id, CustomResourceOptions options)resources: existingKeyRing: type: google-native:cloudkms/v1:KeyRing get: id: ${id}import {
to = google-native_cloudkms_v1_key_ring.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state KeyRingState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi