KeyPrefix
Create a KeyPrefix Resource
new KeyPrefix(name: string, args: KeyPrefixArgs, opts?: CustomResourceOptions);def KeyPrefix(resource_name, opts=None, datacenter=None, namespace=None, path_prefix=None, subkey_collection=None, subkeys=None, token=None, __props__=None);func NewKeyPrefix(ctx *Context, name string, args KeyPrefixArgs, opts ...ResourceOption) (*KeyPrefix, error)public KeyPrefix(string name, KeyPrefixArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args KeyPrefixArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args KeyPrefixArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KeyPrefixArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
KeyPrefix Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The KeyPrefix resource accepts the following input properties:
- Path
Prefix string Specifies the common prefix shared by all keys that will be managed by this resource instance. In most cases this will end with a slash, to manage a “folder” of keys.
- Datacenter string
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- Namespace string
The namespace to create the keys within.
- Subkey
Collection List<KeyPrefix Subkey Collection Args> A subkey to add. Supported values documented below. Multiple blocks supported.
- Subkeys Dictionary<string, string>
A mapping from subkey name (which will be appended to the given
path_prefix) to the value that should be stored at that key. Use slashes, as shown in the above example, to create “sub-folders” under the given path prefix.- Token string
The ACL token to use. This overrides the token that the agent provides by default.
- Path
Prefix string Specifies the common prefix shared by all keys that will be managed by this resource instance. In most cases this will end with a slash, to manage a “folder” of keys.
- Datacenter string
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- Namespace string
The namespace to create the keys within.
- Subkey
Collection []KeyPrefix Subkey Collection A subkey to add. Supported values documented below. Multiple blocks supported.
- Subkeys map[string]string
A mapping from subkey name (which will be appended to the given
path_prefix) to the value that should be stored at that key. Use slashes, as shown in the above example, to create “sub-folders” under the given path prefix.- Token string
The ACL token to use. This overrides the token that the agent provides by default.
- path
Prefix string Specifies the common prefix shared by all keys that will be managed by this resource instance. In most cases this will end with a slash, to manage a “folder” of keys.
- datacenter string
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- namespace string
The namespace to create the keys within.
- subkey
Collection KeyPrefix Subkey Collection[] A subkey to add. Supported values documented below. Multiple blocks supported.
- subkeys {[key: string]: string}
A mapping from subkey name (which will be appended to the given
path_prefix) to the value that should be stored at that key. Use slashes, as shown in the above example, to create “sub-folders” under the given path prefix.- token string
The ACL token to use. This overrides the token that the agent provides by default.
- path_
prefix str Specifies the common prefix shared by all keys that will be managed by this resource instance. In most cases this will end with a slash, to manage a “folder” of keys.
- datacenter str
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- namespace str
The namespace to create the keys within.
- subkey_
collection List[KeyPrefix Subkey Collection] A subkey to add. Supported values documented below. Multiple blocks supported.
- subkeys Dict[str, str]
A mapping from subkey name (which will be appended to the given
path_prefix) to the value that should be stored at that key. Use slashes, as shown in the above example, to create “sub-folders” under the given path prefix.- token str
The ACL token to use. This overrides the token that the agent provides by default.
Outputs
All input properties are implicitly available as output properties. Additionally, the KeyPrefix resource produces the following output properties:
Look up an Existing KeyPrefix Resource
Get an existing KeyPrefix 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?: KeyPrefixState, opts?: CustomResourceOptions): KeyPrefixstatic get(resource_name, id, opts=None, datacenter=None, namespace=None, path_prefix=None, subkey_collection=None, subkeys=None, token=None, __props__=None);func GetKeyPrefix(ctx *Context, name string, id IDInput, state *KeyPrefixState, opts ...ResourceOption) (*KeyPrefix, error)public static KeyPrefix Get(string name, Input<string> id, KeyPrefixState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Datacenter string
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- Namespace string
The namespace to create the keys within.
- Path
Prefix string Specifies the common prefix shared by all keys that will be managed by this resource instance. In most cases this will end with a slash, to manage a “folder” of keys.
- Subkey
Collection List<KeyPrefix Subkey Collection Args> A subkey to add. Supported values documented below. Multiple blocks supported.
- Subkeys Dictionary<string, string>
A mapping from subkey name (which will be appended to the given
path_prefix) to the value that should be stored at that key. Use slashes, as shown in the above example, to create “sub-folders” under the given path prefix.- Token string
The ACL token to use. This overrides the token that the agent provides by default.
- Datacenter string
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- Namespace string
The namespace to create the keys within.
- Path
Prefix string Specifies the common prefix shared by all keys that will be managed by this resource instance. In most cases this will end with a slash, to manage a “folder” of keys.
- Subkey
Collection []KeyPrefix Subkey Collection A subkey to add. Supported values documented below. Multiple blocks supported.
- Subkeys map[string]string
A mapping from subkey name (which will be appended to the given
path_prefix) to the value that should be stored at that key. Use slashes, as shown in the above example, to create “sub-folders” under the given path prefix.- Token string
The ACL token to use. This overrides the token that the agent provides by default.
- datacenter string
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- namespace string
The namespace to create the keys within.
- path
Prefix string Specifies the common prefix shared by all keys that will be managed by this resource instance. In most cases this will end with a slash, to manage a “folder” of keys.
- subkey
Collection KeyPrefix Subkey Collection[] A subkey to add. Supported values documented below. Multiple blocks supported.
- subkeys {[key: string]: string}
A mapping from subkey name (which will be appended to the given
path_prefix) to the value that should be stored at that key. Use slashes, as shown in the above example, to create “sub-folders” under the given path prefix.- token string
The ACL token to use. This overrides the token that the agent provides by default.
- datacenter str
The datacenter to use. This overrides the agent’s default datacenter and the datacenter in the provider setup.
- namespace str
The namespace to create the keys within.
- path_
prefix str Specifies the common prefix shared by all keys that will be managed by this resource instance. In most cases this will end with a slash, to manage a “folder” of keys.
- subkey_
collection List[KeyPrefix Subkey Collection] A subkey to add. Supported values documented below. Multiple blocks supported.
- subkeys Dict[str, str]
A mapping from subkey name (which will be appended to the given
path_prefix) to the value that should be stored at that key. Use slashes, as shown in the above example, to create “sub-folders” under the given path prefix.- token str
The ACL token to use. This overrides the token that the agent provides by default.
Supporting Types
KeyPrefixSubkeyCollection
Package Details
- Repository
- https://github.com/pulumi/pulumi-consul
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
consulTerraform Provider.