Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.workflows/v1beta.Workflow
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return ALREADY_EXISTS error.
Create Workflow Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Workflow(name: string, args: WorkflowArgs, opts?: CustomResourceOptions);
@overload
def Workflow(resource_name: str,
args: WorkflowArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Workflow(resource_name: str,
opts: Optional[ResourceOptions] = None,
workflow_id: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
service_account: Optional[str] = None,
source_contents: Optional[str] = None)
func NewWorkflow(ctx *Context, name string, args WorkflowArgs, opts ...ResourceOption) (*Workflow, error)
public Workflow(string name, WorkflowArgs args, CustomResourceOptions? opts = null)
public Workflow(String name, WorkflowArgs args)
public Workflow(String name, WorkflowArgs args, CustomResourceOptions options)
type: google-native:workflows/v1beta:Workflow
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkflowArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkflowArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkflowArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkflowArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkflowArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var google_nativeWorkflowResource = new GoogleNative.Workflows.V1Beta.Workflow("google-nativeWorkflowResource", new()
{
WorkflowId = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
ServiceAccount = "string",
SourceContents = "string",
});
example, err := workflowsv1beta.NewWorkflow(ctx, "google-nativeWorkflowResource", &workflowsv1beta.WorkflowArgs{
WorkflowId: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
ServiceAccount: pulumi.String("string"),
SourceContents: pulumi.String("string"),
})
var google_nativeWorkflowResource = new Workflow("google-nativeWorkflowResource", WorkflowArgs.builder()
.workflowId("string")
.description("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.serviceAccount("string")
.sourceContents("string")
.build());
google_native_workflow_resource = google_native.workflows.v1beta.Workflow("google-nativeWorkflowResource",
workflow_id="string",
description="string",
labels={
"string": "string",
},
location="string",
name="string",
project="string",
service_account="string",
source_contents="string")
const google_nativeWorkflowResource = new google_native.workflows.v1beta.Workflow("google-nativeWorkflowResource", {
workflowId: "string",
description: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
serviceAccount: "string",
sourceContents: "string",
});
type: google-native:workflows/v1beta:Workflow
properties:
description: string
labels:
string: string
location: string
name: string
project: string
serviceAccount: string
sourceContents: string
workflowId: string
Workflow Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Workflow resource accepts the following input properties:
- Workflow
Id string - Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
- Description string
- Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
- Labels Dictionary<string, string>
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
- Location string
- Name string
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}
- Project string
- Service
Account string - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - Source
Contents string - Workflow code to be executed. The size limit is 128KB.
- Workflow
Id string - Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
- Description string
- Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
- Labels map[string]string
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
- Location string
- Name string
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}
- Project string
- Service
Account string - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - Source
Contents string - Workflow code to be executed. The size limit is 128KB.
- workflow
Id String - Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
- description String
- Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
- labels Map<String,String>
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
- location String
- name String
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}
- project String
- service
Account String - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - source
Contents String - Workflow code to be executed. The size limit is 128KB.
- workflow
Id string - Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
- description string
- Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
- labels {[key: string]: string}
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
- location string
- name string
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}
- project string
- service
Account string - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - source
Contents string - Workflow code to be executed. The size limit is 128KB.
- workflow_
id str - Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
- description str
- Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
- labels Mapping[str, str]
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
- location str
- name str
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}
- project str
- service_
account str - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - source_
contents str - Workflow code to be executed. The size limit is 128KB.
- workflow
Id String - Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
- description String
- Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
- labels Map<String>
- Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
- location String
- name String
- The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}
- project String
- service
Account String - The service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account} Using
-
as a wildcard for the{project}
or not providing one at all will infer the project from the account. The{account}
value can be theemail
address or theunique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. - source
Contents String - Workflow code to be executed. The size limit is 128KB.
Outputs
All input properties are implicitly available as output properties. Additionally, the Workflow resource produces the following output properties:
- Create
Time string - The timestamp of when the workflow was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Revision
Create stringTime - The timestamp that the latest revision of the workflow was created.
- Revision
Id string - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random characters.
- State string
- State of the workflow deployment.
- Update
Time string - The last update timestamp of the workflow.
- Create
Time string - The timestamp of when the workflow was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Revision
Create stringTime - The timestamp that the latest revision of the workflow was created.
- Revision
Id string - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random characters.
- State string
- State of the workflow deployment.
- Update
Time string - The last update timestamp of the workflow.
- create
Time String - The timestamp of when the workflow was created.
- id String
- The provider-assigned unique ID for this managed resource.
- revision
Create StringTime - The timestamp that the latest revision of the workflow was created.
- revision
Id String - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random characters.
- state String
- State of the workflow deployment.
- update
Time String - The last update timestamp of the workflow.
- create
Time string - The timestamp of when the workflow was created.
- id string
- The provider-assigned unique ID for this managed resource.
- revision
Create stringTime - The timestamp that the latest revision of the workflow was created.
- revision
Id string - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random characters.
- state string
- State of the workflow deployment.
- update
Time string - The last update timestamp of the workflow.
- create_
time str - The timestamp of when the workflow was created.
- id str
- The provider-assigned unique ID for this managed resource.
- revision_
create_ strtime - The timestamp that the latest revision of the workflow was created.
- revision_
id str - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random characters.
- state str
- State of the workflow deployment.
- update_
time str - The last update timestamp of the workflow.
- create
Time String - The timestamp of when the workflow was created.
- id String
- The provider-assigned unique ID for this managed resource.
- revision
Create StringTime - The timestamp that the latest revision of the workflow was created.
- revision
Id String - The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow: - Service account - Workflow code to be executed The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random characters.
- state String
- State of the workflow deployment.
- update
Time String - The last update timestamp of the workflow.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.