Module cloudrun
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.
Resources
Others
- DomainMappingArgs
- DomainMappingState
- IamBindingArgs
- IamBindingState
- IamMemberArgs
- IamMemberState
- IamPolicyArgs
- IamPolicyState
- ServiceArgs
- ServiceState
Resources
Resource DomainMapping
class DomainMapping extends CustomResourceResource to hold the state and status of a user’s domain mapping.
To get more information about DomainMapping, see:
- API documentation
- How-to Guides
Example Usage - Cloud Run Domain Mapping Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultService = new gcp.cloudrun.Service("defaultService", {
location: "us-central1",
metadata: {
namespace: "my-project-name",
},
template: {
spec: {
containers: [{
image: "gcr.io/cloudrun/hello",
}],
},
},
});
const defaultDomainMapping = new gcp.cloudrun.DomainMapping("defaultDomainMapping", {
location: "us-central1",
metadata: {
namespace: "my-project-name",
},
spec: {
routeName: defaultService.name,
},
});constructor
new DomainMapping(name: string, args: DomainMappingArgs, opts?: pulumi.CustomResourceOptions)Create a DomainMapping resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DomainMappingState, opts?: pulumi.CustomResourceOptions): DomainMappingGet an existing DomainMapping resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DomainMappingReturns true if the given object is an instance of DomainMapping. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property location
public location: pulumi.Output<string>;The location of the cloud run instance. eg us-central1
property metadata
public metadata: pulumi.Output<DomainMappingMetadata>;Metadata associated with this DomainMapping. Structure is documented below.
property name
public name: pulumi.Output<string>;Name should be a verified domain
property project
public project: pulumi.Output<string>;The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
property spec
public spec: pulumi.Output<DomainMappingSpec>;The spec for this DomainMapping. Structure is documented below.
property status
public status: pulumi.Output<DomainMappingStatus>;The current status of the DomainMapping.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource IamBinding
class IamBinding extends CustomResourceThree different resources help you manage your IAM policy for Cloud Run Service. Each of these resources serves a different use case:
gcp.cloudrun.IamPolicy: Authoritative. Sets the IAM policy for the service and replaces any existing policy already attached.gcp.cloudrun.IamBinding: 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 service are preserved.gcp.cloudrun.IamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the service are preserved.
Note:
gcp.cloudrun.IamPolicycannot be used in conjunction withgcp.cloudrun.IamBindingandgcp.cloudrun.IamMemberor they will fight over what your policy should be.Note:
gcp.cloudrun.IamBindingresources can be used in conjunction withgcp.cloudrun.IamMemberresources only if they do not grant privilege to the same role.
google_cloud_run_service_iam_policy
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const admin = gcp.organizations.getIAMPolicy({
binding: [{
role: "roles/viewer",
members: ["user:jane@example.com"],
}],
});
const policy = new gcp.cloudrun.IamPolicy("policy", {
location: google_cloud_run_service["default"].location,
project: google_cloud_run_service["default"].project,
service: google_cloud_run_service["default"].name,
policyData: admin.then(admin => admin.policyData),
});google_cloud_run_service_iam_binding
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const binding = new gcp.cloudrun.IamBinding("binding", {
location: google_cloud_run_service["default"].location,
project: google_cloud_run_service["default"].project,
service: google_cloud_run_service["default"].name,
role: "roles/viewer",
members: ["user:jane@example.com"],
});google_cloud_run_service_iam_member
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const member = new gcp.cloudrun.IamMember("member", {
location: google_cloud_run_service["default"].location,
project: google_cloud_run_service["default"].project,
service: google_cloud_run_service["default"].name,
role: "roles/viewer",
member: "user:jane@example.com",
});constructor
new IamBinding(name: string, args: IamBindingArgs, opts?: pulumi.CustomResourceOptions)Create a IamBinding resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IamBindingState, opts?: pulumi.CustomResourceOptions): IamBindingGet an existing IamBinding resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is IamBindingReturns true if the given object is an instance of IamBinding. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property condition
public condition: pulumi.Output<IamBindingCondition | undefined>;property etag
public etag: pulumi.Output<string>;(Computed) The etag of the IAM policy.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property location
public location: pulumi.Output<string>;The location of the cloud run instance. eg us-central1 Used to find the parent resource to bind the IAM policy to
property members
public members: pulumi.Output<string[]>;property project
public project: pulumi.Output<string>;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.
property role
public role: pulumi.Output<string>;The role that should be applied. Only one
gcp.cloudrun.IamBinding can be used per role. Note that custom roles must be of the format
[projects|organizations]/{parent-name}/roles/{role-name}.
property service
public service: pulumi.Output<string>;Used to find the parent resource to bind the IAM policy to
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource IamMember
class IamMember extends CustomResourceThree different resources help you manage your IAM policy for Cloud Run Service. Each of these resources serves a different use case:
gcp.cloudrun.IamPolicy: Authoritative. Sets the IAM policy for the service and replaces any existing policy already attached.gcp.cloudrun.IamBinding: 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 service are preserved.gcp.cloudrun.IamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the service are preserved.
Note:
gcp.cloudrun.IamPolicycannot be used in conjunction withgcp.cloudrun.IamBindingandgcp.cloudrun.IamMemberor they will fight over what your policy should be.Note:
gcp.cloudrun.IamBindingresources can be used in conjunction withgcp.cloudrun.IamMemberresources only if they do not grant privilege to the same role.
google_cloud_run_service_iam_policy
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const admin = gcp.organizations.getIAMPolicy({
binding: [{
role: "roles/viewer",
members: ["user:jane@example.com"],
}],
});
const policy = new gcp.cloudrun.IamPolicy("policy", {
location: google_cloud_run_service["default"].location,
project: google_cloud_run_service["default"].project,
service: google_cloud_run_service["default"].name,
policyData: admin.then(admin => admin.policyData),
});google_cloud_run_service_iam_binding
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const binding = new gcp.cloudrun.IamBinding("binding", {
location: google_cloud_run_service["default"].location,
project: google_cloud_run_service["default"].project,
service: google_cloud_run_service["default"].name,
role: "roles/viewer",
members: ["user:jane@example.com"],
});google_cloud_run_service_iam_member
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const member = new gcp.cloudrun.IamMember("member", {
location: google_cloud_run_service["default"].location,
project: google_cloud_run_service["default"].project,
service: google_cloud_run_service["default"].name,
role: "roles/viewer",
member: "user:jane@example.com",
});constructor
new IamMember(name: string, args: IamMemberArgs, opts?: pulumi.CustomResourceOptions)Create a IamMember resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IamMemberState, opts?: pulumi.CustomResourceOptions): IamMemberGet an existing IamMember resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is IamMemberReturns true if the given object is an instance of IamMember. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property condition
public condition: pulumi.Output<IamMemberCondition | undefined>;property etag
public etag: pulumi.Output<string>;(Computed) The etag of the IAM policy.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property location
public location: pulumi.Output<string>;The location of the cloud run instance. eg us-central1 Used to find the parent resource to bind the IAM policy to
property member
public member: pulumi.Output<string>;property project
public project: pulumi.Output<string>;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.
property role
public role: pulumi.Output<string>;The role that should be applied. Only one
gcp.cloudrun.IamBinding can be used per role. Note that custom roles must be of the format
[projects|organizations]/{parent-name}/roles/{role-name}.
property service
public service: pulumi.Output<string>;Used to find the parent resource to bind the IAM policy to
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource IamPolicy
class IamPolicy extends CustomResourceThree different resources help you manage your IAM policy for Cloud Run Service. Each of these resources serves a different use case:
gcp.cloudrun.IamPolicy: Authoritative. Sets the IAM policy for the service and replaces any existing policy already attached.gcp.cloudrun.IamBinding: 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 service are preserved.gcp.cloudrun.IamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the service are preserved.
Note:
gcp.cloudrun.IamPolicycannot be used in conjunction withgcp.cloudrun.IamBindingandgcp.cloudrun.IamMemberor they will fight over what your policy should be.Note:
gcp.cloudrun.IamBindingresources can be used in conjunction withgcp.cloudrun.IamMemberresources only if they do not grant privilege to the same role.
google_cloud_run_service_iam_policy
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const admin = gcp.organizations.getIAMPolicy({
binding: [{
role: "roles/viewer",
members: ["user:jane@example.com"],
}],
});
const policy = new gcp.cloudrun.IamPolicy("policy", {
location: google_cloud_run_service["default"].location,
project: google_cloud_run_service["default"].project,
service: google_cloud_run_service["default"].name,
policyData: admin.then(admin => admin.policyData),
});google_cloud_run_service_iam_binding
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const binding = new gcp.cloudrun.IamBinding("binding", {
location: google_cloud_run_service["default"].location,
project: google_cloud_run_service["default"].project,
service: google_cloud_run_service["default"].name,
role: "roles/viewer",
members: ["user:jane@example.com"],
});google_cloud_run_service_iam_member
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const member = new gcp.cloudrun.IamMember("member", {
location: google_cloud_run_service["default"].location,
project: google_cloud_run_service["default"].project,
service: google_cloud_run_service["default"].name,
role: "roles/viewer",
member: "user:jane@example.com",
});constructor
new IamPolicy(name: string, args: IamPolicyArgs, opts?: pulumi.CustomResourceOptions)Create a IamPolicy resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IamPolicyState, opts?: pulumi.CustomResourceOptions): IamPolicyGet an existing IamPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is IamPolicyReturns true if the given object is an instance of IamPolicy. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property etag
public etag: pulumi.Output<string>;(Computed) The etag of the IAM policy.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property location
public location: pulumi.Output<string>;The location of the cloud run instance. eg us-central1 Used to find the parent resource to bind the IAM policy to
property policyData
public policyData: pulumi.Output<string>;The policy data generated by
a gcp.organizations.getIAMPolicy data source.
property project
public project: pulumi.Output<string>;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.
property service
public service: pulumi.Output<string>;Used to find the parent resource to bind the IAM policy to
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource Service
class Service extends CustomResourceService acts as a top-level container that manages a set of Routes and Configurations which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets).
The Service’s controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own.
See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#service
To get more information about Service, see:
- API documentation
- How-to Guides
Example Usage
Cloud Run Service Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultService = new gcp.cloudrun.Service("default", {
location: "us-central1",
template: {
spec: {
containers: [{
image: "gcr.io/cloudrun/hello",
}],
},
},
traffics: [{
latestRevision: true,
percent: 100,
}],
});Cloud Run Service Sql
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const instance = new gcp.sql.DatabaseInstance("instance", {
region: "us-east1",
settings: {
tier: "db-f1-micro",
},
});
const defaultService = new gcp.cloudrun.Service("default", {
autogenerateRevisionName: true,
location: "us-central1",
template: {
metadata: {
annotations: {
"autoscaling.knative.dev/maxScale": "1000",
"run.googleapis.com/client-name": "demo",
"run.googleapis.com/cloudsql-instances": pulumi.interpolate`my-project-name:us-central1:${instance.name}`,
},
},
spec: {
containers: [{
image: "gcr.io/cloudrun/hello",
}],
},
},
});Cloud Run Service Multiple Environment Variables
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultService = new gcp.cloudrun.Service("default", {
autogenerateRevisionName: true,
location: "us-central1",
template: {
spec: {
containers: [{
envs: [
{
name: "SOURCE",
value: "remote",
},
{
name: "TARGET",
value: "home",
},
],
image: "gcr.io/cloudrun/hello",
}],
},
},
traffics: [{
latestRevision: true,
percent: 100,
}],
});Example Usage - Cloud Run Service Traffic Split
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultService = new gcp.cloudrun.Service("default", {
location: "us-central1",
template: {
metadata: {
name: "cloudrun-srv-green",
},
spec: {
containers: [{
image: "gcr.io/cloudrun/hello",
}],
},
},
traffics: [
{
percent: 25,
revisionName: "cloudrun-srv-green",
},
{
percent: 75,
// This revision needs to already exist
revisionName: "cloudrun-srv-blue",
},
],
});constructor
new Service(name: string, args: ServiceArgs, opts?: pulumi.CustomResourceOptions)Create a Service resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceState, opts?: pulumi.CustomResourceOptions): ServiceGet an existing Service resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ServiceReturns true if the given object is an instance of Service. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property autogenerateRevisionName
public autogenerateRevisionName: pulumi.Output<boolean | undefined>;If set to true, the revision name (template.metadata.name) will be omitted and
autogenerated by Cloud Run. This cannot be set to true while template.metadata.name
is also set.
(For legacy support, if template.metadata.name is unset in state while
this field is set to false, the revision name will still autogenerate.)
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property location
public location: pulumi.Output<string>;The location of the cloud run instance. eg us-central1
property metadata
public metadata: pulumi.Output<ServiceMetadata>;Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
property name
public name: pulumi.Output<string>;Name of the environment variable.
property project
public project: pulumi.Output<string>;The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
property status
public status: pulumi.Output<ServiceStatus>;The current status of the Service.
property template
public template: pulumi.Output<ServiceTemplate | undefined>;template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn’t otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/master/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below.
property traffics
public traffics: pulumi.Output<ServiceTraffic[]>;Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Others
interface DomainMappingArgs
interface DomainMappingArgsThe set of arguments for constructing a DomainMapping resource.
property location
location: pulumi.Input<string>;The location of the cloud run instance. eg us-central1
property metadata
metadata: pulumi.Input<DomainMappingMetadata>;Metadata associated with this DomainMapping. Structure is documented below.
property name
name?: pulumi.Input<string>;Name should be a verified domain
property project
project?: pulumi.Input<string>;The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
property spec
spec: pulumi.Input<DomainMappingSpec>;The spec for this DomainMapping. Structure is documented below.
interface DomainMappingState
interface DomainMappingStateInput properties used for looking up and filtering DomainMapping resources.
property location
location?: pulumi.Input<string>;The location of the cloud run instance. eg us-central1
property metadata
metadata?: pulumi.Input<DomainMappingMetadata>;Metadata associated with this DomainMapping. Structure is documented below.
property name
name?: pulumi.Input<string>;Name should be a verified domain
property project
project?: pulumi.Input<string>;The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
property spec
spec?: pulumi.Input<DomainMappingSpec>;The spec for this DomainMapping. Structure is documented below.
property status
status?: pulumi.Input<DomainMappingStatus>;The current status of the DomainMapping.
interface IamBindingArgs
interface IamBindingArgsThe set of arguments for constructing a IamBinding resource.
property condition
condition?: pulumi.Input<IamBindingCondition>;property location
location?: pulumi.Input<string>;The location of the cloud run instance. eg us-central1 Used to find the parent resource to bind the IAM policy to
property members
members: pulumi.Input<pulumi.Input<string>[]>;property project
project?: pulumi.Input<string>;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.
property role
role: pulumi.Input<string>;The role that should be applied. Only one
gcp.cloudrun.IamBinding can be used per role. Note that custom roles must be of the format
[projects|organizations]/{parent-name}/roles/{role-name}.
property service
service: pulumi.Input<string>;Used to find the parent resource to bind the IAM policy to
interface IamBindingState
interface IamBindingStateInput properties used for looking up and filtering IamBinding resources.
property condition
condition?: pulumi.Input<IamBindingCondition>;property etag
etag?: pulumi.Input<string>;(Computed) The etag of the IAM policy.
property location
location?: pulumi.Input<string>;The location of the cloud run instance. eg us-central1 Used to find the parent resource to bind the IAM policy to
property members
members?: pulumi.Input<pulumi.Input<string>[]>;property project
project?: pulumi.Input<string>;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.
property role
role?: pulumi.Input<string>;The role that should be applied. Only one
gcp.cloudrun.IamBinding can be used per role. Note that custom roles must be of the format
[projects|organizations]/{parent-name}/roles/{role-name}.
property service
service?: pulumi.Input<string>;Used to find the parent resource to bind the IAM policy to
interface IamMemberArgs
interface IamMemberArgsThe set of arguments for constructing a IamMember resource.
property condition
condition?: pulumi.Input<IamMemberCondition>;property location
location?: pulumi.Input<string>;The location of the cloud run instance. eg us-central1 Used to find the parent resource to bind the IAM policy to
property member
member: pulumi.Input<string>;property project
project?: pulumi.Input<string>;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.
property role
role: pulumi.Input<string>;The role that should be applied. Only one
gcp.cloudrun.IamBinding can be used per role. Note that custom roles must be of the format
[projects|organizations]/{parent-name}/roles/{role-name}.
property service
service: pulumi.Input<string>;Used to find the parent resource to bind the IAM policy to
interface IamMemberState
interface IamMemberStateInput properties used for looking up and filtering IamMember resources.
property condition
condition?: pulumi.Input<IamMemberCondition>;property etag
etag?: pulumi.Input<string>;(Computed) The etag of the IAM policy.
property location
location?: pulumi.Input<string>;The location of the cloud run instance. eg us-central1 Used to find the parent resource to bind the IAM policy to
property member
member?: pulumi.Input<string>;property project
project?: pulumi.Input<string>;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.
property role
role?: pulumi.Input<string>;The role that should be applied. Only one
gcp.cloudrun.IamBinding can be used per role. Note that custom roles must be of the format
[projects|organizations]/{parent-name}/roles/{role-name}.
property service
service?: pulumi.Input<string>;Used to find the parent resource to bind the IAM policy to
interface IamPolicyArgs
interface IamPolicyArgsThe set of arguments for constructing a IamPolicy resource.
property location
location?: pulumi.Input<string>;The location of the cloud run instance. eg us-central1 Used to find the parent resource to bind the IAM policy to
property policyData
policyData: pulumi.Input<string>;The policy data generated by
a gcp.organizations.getIAMPolicy data source.
property project
project?: pulumi.Input<string>;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.
property service
service: pulumi.Input<string>;Used to find the parent resource to bind the IAM policy to
interface IamPolicyState
interface IamPolicyStateInput properties used for looking up and filtering IamPolicy resources.
property etag
etag?: pulumi.Input<string>;(Computed) The etag of the IAM policy.
property location
location?: pulumi.Input<string>;The location of the cloud run instance. eg us-central1 Used to find the parent resource to bind the IAM policy to
property policyData
policyData?: pulumi.Input<string>;The policy data generated by
a gcp.organizations.getIAMPolicy data source.
property project
project?: pulumi.Input<string>;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.
property service
service?: pulumi.Input<string>;Used to find the parent resource to bind the IAM policy to
interface ServiceArgs
interface ServiceArgsThe set of arguments for constructing a Service resource.
property autogenerateRevisionName
autogenerateRevisionName?: pulumi.Input<boolean>;If set to true, the revision name (template.metadata.name) will be omitted and
autogenerated by Cloud Run. This cannot be set to true while template.metadata.name
is also set.
(For legacy support, if template.metadata.name is unset in state while
this field is set to false, the revision name will still autogenerate.)
property location
location: pulumi.Input<string>;The location of the cloud run instance. eg us-central1
property metadata
metadata?: pulumi.Input<ServiceMetadata>;Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
property name
name?: pulumi.Input<string>;Name of the environment variable.
property project
project?: pulumi.Input<string>;The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
property template
template?: pulumi.Input<ServiceTemplate>;template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn’t otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/master/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below.
property traffics
traffics?: pulumi.Input<pulumi.Input<ServiceTraffic>[]>;Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
interface ServiceState
interface ServiceStateInput properties used for looking up and filtering Service resources.
property autogenerateRevisionName
autogenerateRevisionName?: pulumi.Input<boolean>;If set to true, the revision name (template.metadata.name) will be omitted and
autogenerated by Cloud Run. This cannot be set to true while template.metadata.name
is also set.
(For legacy support, if template.metadata.name is unset in state while
this field is set to false, the revision name will still autogenerate.)
property location
location?: pulumi.Input<string>;The location of the cloud run instance. eg us-central1
property metadata
metadata?: pulumi.Input<ServiceMetadata>;Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
property name
name?: pulumi.Input<string>;Name of the environment variable.
property project
project?: pulumi.Input<string>;The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
property status
status?: pulumi.Input<ServiceStatus>;The current status of the Service.
property template
template?: pulumi.Input<ServiceTemplate>;template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn’t otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/master/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below.
property traffics
traffics?: pulumi.Input<pulumi.Input<ServiceTraffic>[]>;Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.