This page documents the language specification for the gcp package. If you're looking for help working with the inputs, outputs, or functions of gcp resources in a Pulumi program, please see the resource documentation for examples and API reference.
runtimeconfig¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.
- class
pulumi_gcp.runtimeconfig.Config(resource_name, opts=None, description=None, name=None, project=None, __props__=None, __name__=None, __opts__=None)¶ Manages a RuntimeConfig resource in Google Cloud. For more information, see the official documentation, or the JSON API.
import pulumi import pulumi_gcp as gcp my_runtime_config = gcp.runtimeconfig.Config("my-runtime-config", description="Runtime configuration values for my service")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
description (pulumi.Input[str]) – The description to associate with the runtime config.
name (pulumi.Input[str]) – The name of the runtime config.
project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
description: pulumi.Output[str] = None¶The description to associate with the runtime config.
name: pulumi.Output[str] = None¶The name of the runtime config.
project: pulumi.Output[str] = None¶The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- static
get(resource_name, id, opts=None, description=None, name=None, project=None)¶ Get an existing Config resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
description (pulumi.Input[str]) – The description to associate with the runtime config.
name (pulumi.Input[str]) – The name of the runtime config.
project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_gcp.runtimeconfig.ConfigIamBinding(resource_name, opts=None, condition=None, config=None, members=None, project=None, role=None, __props__=None, __name__=None, __opts__=None)¶ Three different resources help you manage your IAM policy for Runtime Configurator Config. Each of these resources serves a different use case:
runtimeconfig.ConfigIamPolicy: Authoritative. Sets the IAM policy for the config and replaces any existing policy already attached.runtimeconfig.ConfigIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the config are preserved.runtimeconfig.ConfigIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the config are preserved.
Note:
runtimeconfig.ConfigIamPolicycannot be used in conjunction withruntimeconfig.ConfigIamBindingandruntimeconfig.ConfigIamMemberor they will fight over what your policy should be.Note:
runtimeconfig.ConfigIamBindingresources can be used in conjunction withruntimeconfig.ConfigIamMemberresources only if they do not grant privilege to the same role.import pulumi import pulumi_gcp as gcp admin = gcp.organizations.get_iam_policy(binding=[{ "role": "roles/viewer", "members": ["user:jane@example.com"], }]) policy = gcp.runtimeconfig.ConfigIamPolicy("policy", project=google_runtimeconfig_config["config"]["project"], config=google_runtimeconfig_config["config"]["name"], policy_data=admin.policy_data)
import pulumi import pulumi_gcp as gcp binding = gcp.runtimeconfig.ConfigIamBinding("binding", project=google_runtimeconfig_config["config"]["project"], config=google_runtimeconfig_config["config"]["name"], role="roles/viewer", members=["user:jane@example.com"])
import pulumi import pulumi_gcp as gcp member = gcp.runtimeconfig.ConfigIamMember("member", project=google_runtimeconfig_config["config"]["project"], config=google_runtimeconfig_config["config"]["name"], role="roles/viewer", member="user:jane@example.com")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
config (pulumi.Input[str]) – Used to find the parent resource to bind the IAM policy to
project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
role (pulumi.Input[str]) – The role that should be applied. Only one
runtimeconfig.ConfigIamBindingcan be used per role. Note that custom roles must be of the format[projects|organizations]/{parent-name}/roles/{role-name}.
The condition object supports the following:
description(pulumi.Input[str])expression(pulumi.Input[str])title(pulumi.Input[str])
config: pulumi.Output[str] = None¶Used to find the parent resource to bind the IAM policy to
etag: pulumi.Output[str] = None¶(Computed) The etag of the IAM policy.
project: pulumi.Output[str] = None¶The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
role: pulumi.Output[str] = None¶The role that should be applied. Only one
runtimeconfig.ConfigIamBindingcan be used per role. Note that custom roles must be of the format[projects|organizations]/{parent-name}/roles/{role-name}.
- static
get(resource_name, id, opts=None, condition=None, config=None, etag=None, members=None, project=None, role=None)¶ Get an existing ConfigIamBinding resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
config (pulumi.Input[str]) – Used to find the parent resource to bind the IAM policy to
etag (pulumi.Input[str]) – (Computed) The etag of the IAM policy.
project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
role (pulumi.Input[str]) – The role that should be applied. Only one
runtimeconfig.ConfigIamBindingcan be used per role. Note that custom roles must be of the format[projects|organizations]/{parent-name}/roles/{role-name}.
The condition object supports the following:
description(pulumi.Input[str])expression(pulumi.Input[str])title(pulumi.Input[str])
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_gcp.runtimeconfig.ConfigIamMember(resource_name, opts=None, condition=None, config=None, member=None, project=None, role=None, __props__=None, __name__=None, __opts__=None)¶ Three different resources help you manage your IAM policy for Runtime Configurator Config. Each of these resources serves a different use case:
runtimeconfig.ConfigIamPolicy: Authoritative. Sets the IAM policy for the config and replaces any existing policy already attached.runtimeconfig.ConfigIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the config are preserved.runtimeconfig.ConfigIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the config are preserved.
Note:
runtimeconfig.ConfigIamPolicycannot be used in conjunction withruntimeconfig.ConfigIamBindingandruntimeconfig.ConfigIamMemberor they will fight over what your policy should be.Note:
runtimeconfig.ConfigIamBindingresources can be used in conjunction withruntimeconfig.ConfigIamMemberresources only if they do not grant privilege to the same role.import pulumi import pulumi_gcp as gcp admin = gcp.organizations.get_iam_policy(binding=[{ "role": "roles/viewer", "members": ["user:jane@example.com"], }]) policy = gcp.runtimeconfig.ConfigIamPolicy("policy", project=google_runtimeconfig_config["config"]["project"], config=google_runtimeconfig_config["config"]["name"], policy_data=admin.policy_data)
import pulumi import pulumi_gcp as gcp binding = gcp.runtimeconfig.ConfigIamBinding("binding", project=google_runtimeconfig_config["config"]["project"], config=google_runtimeconfig_config["config"]["name"], role="roles/viewer", members=["user:jane@example.com"])
import pulumi import pulumi_gcp as gcp member = gcp.runtimeconfig.ConfigIamMember("member", project=google_runtimeconfig_config["config"]["project"], config=google_runtimeconfig_config["config"]["name"], role="roles/viewer", member="user:jane@example.com")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
config (pulumi.Input[str]) – Used to find the parent resource to bind the IAM policy to
project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
role (pulumi.Input[str]) – The role that should be applied. Only one
runtimeconfig.ConfigIamBindingcan be used per role. Note that custom roles must be of the format[projects|organizations]/{parent-name}/roles/{role-name}.
The condition object supports the following:
description(pulumi.Input[str])expression(pulumi.Input[str])title(pulumi.Input[str])
config: pulumi.Output[str] = None¶Used to find the parent resource to bind the IAM policy to
etag: pulumi.Output[str] = None¶(Computed) The etag of the IAM policy.
project: pulumi.Output[str] = None¶The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
role: pulumi.Output[str] = None¶The role that should be applied. Only one
runtimeconfig.ConfigIamBindingcan be used per role. Note that custom roles must be of the format[projects|organizations]/{parent-name}/roles/{role-name}.
- static
get(resource_name, id, opts=None, condition=None, config=None, etag=None, member=None, project=None, role=None)¶ Get an existing ConfigIamMember resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
config (pulumi.Input[str]) – Used to find the parent resource to bind the IAM policy to
etag (pulumi.Input[str]) – (Computed) The etag of the IAM policy.
project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
role (pulumi.Input[str]) – The role that should be applied. Only one
runtimeconfig.ConfigIamBindingcan be used per role. Note that custom roles must be of the format[projects|organizations]/{parent-name}/roles/{role-name}.
The condition object supports the following:
description(pulumi.Input[str])expression(pulumi.Input[str])title(pulumi.Input[str])
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_gcp.runtimeconfig.ConfigIamPolicy(resource_name, opts=None, config=None, policy_data=None, project=None, __props__=None, __name__=None, __opts__=None)¶ Three different resources help you manage your IAM policy for Runtime Configurator Config. Each of these resources serves a different use case:
runtimeconfig.ConfigIamPolicy: Authoritative. Sets the IAM policy for the config and replaces any existing policy already attached.runtimeconfig.ConfigIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the config are preserved.runtimeconfig.ConfigIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the config are preserved.
Note:
runtimeconfig.ConfigIamPolicycannot be used in conjunction withruntimeconfig.ConfigIamBindingandruntimeconfig.ConfigIamMemberor they will fight over what your policy should be.Note:
runtimeconfig.ConfigIamBindingresources can be used in conjunction withruntimeconfig.ConfigIamMemberresources only if they do not grant privilege to the same role.import pulumi import pulumi_gcp as gcp admin = gcp.organizations.get_iam_policy(binding=[{ "role": "roles/viewer", "members": ["user:jane@example.com"], }]) policy = gcp.runtimeconfig.ConfigIamPolicy("policy", project=google_runtimeconfig_config["config"]["project"], config=google_runtimeconfig_config["config"]["name"], policy_data=admin.policy_data)
import pulumi import pulumi_gcp as gcp binding = gcp.runtimeconfig.ConfigIamBinding("binding", project=google_runtimeconfig_config["config"]["project"], config=google_runtimeconfig_config["config"]["name"], role="roles/viewer", members=["user:jane@example.com"])
import pulumi import pulumi_gcp as gcp member = gcp.runtimeconfig.ConfigIamMember("member", project=google_runtimeconfig_config["config"]["project"], config=google_runtimeconfig_config["config"]["name"], role="roles/viewer", member="user:jane@example.com")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
config (pulumi.Input[str]) – Used to find the parent resource to bind the IAM policy to
policy_data (pulumi.Input[str]) – The policy data generated by a
organizations.getIAMPolicydata source.project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
config: pulumi.Output[str] = None¶Used to find the parent resource to bind the IAM policy to
etag: pulumi.Output[str] = None¶(Computed) The etag of the IAM policy.
policy_data: pulumi.Output[str] = None¶The policy data generated by a
organizations.getIAMPolicydata source.
project: pulumi.Output[str] = None¶The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
- static
get(resource_name, id, opts=None, config=None, etag=None, policy_data=None, project=None)¶ Get an existing ConfigIamPolicy resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
config (pulumi.Input[str]) – Used to find the parent resource to bind the IAM policy to
etag (pulumi.Input[str]) – (Computed) The etag of the IAM policy.
policy_data (pulumi.Input[str]) – The policy data generated by a
organizations.getIAMPolicydata source.project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_gcp.runtimeconfig.Variable(resource_name, opts=None, name=None, parent=None, project=None, text=None, value=None, __props__=None, __name__=None, __opts__=None)¶ Manages a RuntimeConfig variable in Google Cloud. For more information, see the official documentation, or the JSON API.
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
name (pulumi.Input[str]) – The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).
parent (pulumi.Input[str]) – The name of the RuntimeConfig resource containing this variable.
project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
text (pulumi.Input[str]) – or
value- (Required) The content to associate with the variable. Exactly one oftextorvariablemust be specified. Iftextis specified, it must be a valid UTF-8 string and less than 4096 bytes in length. Ifvalueis specified, it must be base64 encoded and less than 4096 bytes in length.
name: pulumi.Output[str] = None¶The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).
parent: pulumi.Output[str] = None¶The name of the RuntimeConfig resource containing this variable.
project: pulumi.Output[str] = None¶The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
text: pulumi.Output[str] = None¶or
value- (Required) The content to associate with the variable. Exactly one oftextorvariablemust be specified. Iftextis specified, it must be a valid UTF-8 string and less than 4096 bytes in length. Ifvalueis specified, it must be base64 encoded and less than 4096 bytes in length.
update_time: pulumi.Output[str] = None¶(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”.
- static
get(resource_name, id, opts=None, name=None, parent=None, project=None, text=None, update_time=None, value=None)¶ Get an existing Variable resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
name (pulumi.Input[str]) – The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. “prod-variables/hostname”).
parent (pulumi.Input[str]) – The name of the RuntimeConfig resource containing this variable.
project (pulumi.Input[str]) – The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
text (pulumi.Input[str]) – or
value- (Required) The content to associate with the variable. Exactly one oftextorvariablemust be specified. Iftextis specified, it must be a valid UTF-8 string and less than 4096 bytes in length. Ifvalueis specified, it must be base64 encoded and less than 4096 bytes in length.update_time (pulumi.Input[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”.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str