Variable

Manages a RuntimeConfig variable in Google Cloud. For more information, see the official documentation, or the JSON API.

Create a Variable Resource

def Variable(resource_name, opts=None, name=None, parent=None, project=None, text=None, value=None, __props__=None);
func NewVariable(ctx *Context, name string, args VariableArgs, opts ...ResourceOption) (*Variable, error)
public Variable(string name, VariableArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args VariableArgs
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 VariableArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VariableArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Variable Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Variable resource accepts the following input properties:

Parent string

The name of the RuntimeConfig resource containing this variable.

Name string

The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Text string

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.

Value string
Parent string

The name of the RuntimeConfig resource containing this variable.

Name string

The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Text string

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.

Value string
parent string

The name of the RuntimeConfig resource containing this variable.

name string

The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

text string

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.

value string
parent str

The name of the RuntimeConfig resource containing this variable.

name str

The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

text str

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.

value str

Outputs

All input properties are implicitly available as output properties. Additionally, the Variable resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
UpdateTime string

(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”.

Id string
The provider-assigned unique ID for this managed resource.
UpdateTime string

(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”.

id string
The provider-assigned unique ID for this managed resource.
updateTime string

(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”.

id str
The provider-assigned unique ID for this managed resource.
update_time str

(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”.

Look up an Existing Variable Resource

Get an existing Variable 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?: VariableState, opts?: CustomResourceOptions): Variable
static get(resource_name, id, opts=None, name=None, parent=None, project=None, text=None, update_time=None, value=None, __props__=None);
func GetVariable(ctx *Context, name string, id IDInput, state *VariableState, opts ...ResourceOption) (*Variable, error)
public static Variable Get(string name, Input<string> id, VariableState? 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:

Name string

The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).

Parent string

The name of the RuntimeConfig resource containing this variable.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Text string

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.

UpdateTime string

(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”.

Value string
Name string

The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).

Parent string

The name of the RuntimeConfig resource containing this variable.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Text string

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.

UpdateTime string

(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”.

Value string
name string

The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).

parent string

The name of the RuntimeConfig resource containing this variable.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

text string

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.

updateTime string

(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”.

value string
name str

The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).

parent str

The name of the RuntimeConfig resource containing this variable.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

text str

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.

update_time str

(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”.

value str

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.