This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Creates a new Workspace in a given Repository. Auto-naming is currently not supported for this resource.
Create Workspace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Workspace(name: string, args: WorkspaceArgs, opts?: CustomResourceOptions);@overload
def Workspace(resource_name: str,
args: WorkspaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Workspace(resource_name: str,
opts: Optional[ResourceOptions] = None,
repository_id: Optional[str] = None,
workspace_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None)func NewWorkspace(ctx *Context, name string, args WorkspaceArgs, opts ...ResourceOption) (*Workspace, error)public Workspace(string name, WorkspaceArgs args, CustomResourceOptions? opts = null)
public Workspace(String name, WorkspaceArgs args)
public Workspace(String name, WorkspaceArgs args, CustomResourceOptions options)
type: google-native:dataform/v1beta1:Workspace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_dataform_v1beta1_workspace" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WorkspaceArgs
- 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 WorkspaceArgs
- 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 WorkspaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkspaceArgs
- 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 workspaceResource = new GoogleNative.Dataform.V1Beta1.Workspace("workspaceResource", new()
{
RepositoryId = "string",
WorkspaceId = "string",
Location = "string",
Project = "string",
});
example, err := dataform.NewWorkspace(ctx, "workspaceResource", &dataform.WorkspaceArgs{
RepositoryId: pulumi.String("string"),
WorkspaceId: pulumi.String("string"),
Location: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "google-native_dataform_v1beta1_workspace" "workspaceResource" {
lifecycle {
create_before_destroy = true
}
repository_id = "string"
workspace_id = "string"
location = "string"
project = "string"
}
var workspaceResource = new Workspace("workspaceResource", WorkspaceArgs.builder()
.repositoryId("string")
.workspaceId("string")
.location("string")
.project("string")
.build());
workspace_resource = google_native.dataform.v1beta1.Workspace("workspaceResource",
repository_id="string",
workspace_id="string",
location="string",
project="string")
const workspaceResource = new google_native.dataform.v1beta1.Workspace("workspaceResource", {
repositoryId: "string",
workspaceId: "string",
location: "string",
project: "string",
});
type: google-native:dataform/v1beta1:Workspace
properties:
location: string
project: string
repositoryId: string
workspaceId: string
Workspace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Workspace resource accepts the following input properties:
- Repository
Id string - Workspace
Id string - Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.
- Location string
- Project string
- Repository
Id string - Workspace
Id string - Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.
- Location string
- Project string
- repository_
id string - workspace_
id string - Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.
- location string
- project string
- repository
Id String - workspace
Id String - Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.
- location String
- project String
- repository
Id string - workspace
Id string - Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.
- location string
- project string
- repository_
id str - workspace_
id str - Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.
- location str
- project str
- repository
Id String - workspace
Id String - Required. The ID to use for the workspace, which will become the final component of the workspace's resource name.
- location String
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Workspace resource produces the following output properties:
Look up Existing Workspace Resource
Get an existing Workspace 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>, opts?: CustomResourceOptions): Workspace@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Workspacefunc GetWorkspace(ctx *Context, name string, id IDInput, state *WorkspaceState, opts ...ResourceOption) (*Workspace, error)public static Workspace Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Workspace get(String name, Output<String> id, CustomResourceOptions options)resources: existingWorkspace: type: google-native:dataform/v1beta1:Workspace get: id: ${id}import {
to = google-native_dataform_v1beta1_workspace.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state WorkspaceState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi