Class Variable
Manages a RuntimeConfig variable in Google Cloud. For more information, see the official documentation, or the JSON API.
Inherited Members
Namespace: Pulumi.Gcp.RuntimeConfig
Assembly: Pulumi.Gcp.dll
Syntax
public class Variable : CustomResource
Constructors
View SourceVariable(String, VariableArgs, CustomResourceOptions)
Create a Variable resource with the given unique name, arguments, and options.
Declaration
public Variable(string name, VariableArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VariableArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceName
The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. "prod-variables/hostname").
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Parent
The name of the RuntimeConfig resource containing this variable.
Declaration
public Output<string> Parent { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Text
or value - (Required) The content to associate with the variable.
Exactly one of text or variable must be specified. If text is specified,
it must be a valid UTF-8 string and less than 4096 bytes in length. If value
is specified, it must be base64 encoded and less than 4096 bytes in length.
Declaration
public Output<string> Text { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UpdateTime
(Computed) The timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds, representing when the variable was last updated. Example: "2016-10-09T12:33:37.578138407Z".
Declaration
public Output<string> UpdateTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Value
Declaration
public Output<string> Value { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, VariableState, CustomResourceOptions)
Get an existing Variable resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Variable Get(string name, Input<string> id, VariableState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| VariableState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Variable |