1. Packages
  2. Google Cloud Native
  3. API Docs
  4. vmmigration
  5. vmmigration/v1
  6. TargetProject

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.vmmigration/v1.TargetProject

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is global. Auto-naming is currently not supported for this resource.

Create TargetProject Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new TargetProject(name: string, args: TargetProjectArgs, opts?: CustomResourceOptions);
@overload
def TargetProject(resource_name: str,
                  args: TargetProjectArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def TargetProject(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  target_project_id: Optional[str] = None,
                  description: Optional[str] = None,
                  location: Optional[str] = None,
                  project: Optional[str] = None,
                  request_id: Optional[str] = None)
func NewTargetProject(ctx *Context, name string, args TargetProjectArgs, opts ...ResourceOption) (*TargetProject, error)
public TargetProject(string name, TargetProjectArgs args, CustomResourceOptions? opts = null)
public TargetProject(String name, TargetProjectArgs args)
public TargetProject(String name, TargetProjectArgs args, CustomResourceOptions options)
type: google-native:vmmigration/v1:TargetProject
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TargetProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TargetProjectArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TargetProjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TargetProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TargetProjectArgs
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 targetProjectResource = new GoogleNative.VMMigration.V1.TargetProject("targetProjectResource", new()
{
    TargetProjectId = "string",
    Description = "string",
    Location = "string",
    Project = "string",
    RequestId = "string",
});
Copy
example, err := vmmigration.NewTargetProject(ctx, "targetProjectResource", &vmmigration.TargetProjectArgs{
	TargetProjectId: pulumi.String("string"),
	Description:     pulumi.String("string"),
	Location:        pulumi.String("string"),
	Project:         pulumi.String("string"),
	RequestId:       pulumi.String("string"),
})
Copy
var targetProjectResource = new TargetProject("targetProjectResource", TargetProjectArgs.builder()
    .targetProjectId("string")
    .description("string")
    .location("string")
    .project("string")
    .requestId("string")
    .build());
Copy
target_project_resource = google_native.vmmigration.v1.TargetProject("targetProjectResource",
    target_project_id="string",
    description="string",
    location="string",
    project="string",
    request_id="string")
Copy
const targetProjectResource = new google_native.vmmigration.v1.TargetProject("targetProjectResource", {
    targetProjectId: "string",
    description: "string",
    location: "string",
    project: "string",
    requestId: "string",
});
Copy
type: google-native:vmmigration/v1:TargetProject
properties:
    description: string
    location: string
    project: string
    requestId: string
    targetProjectId: string
Copy

TargetProject 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 TargetProject resource accepts the following input properties:

TargetProjectId
This property is required.
Changes to this property will trigger replacement.
string
Required. The target_project identifier.
Description string
The target project's description.
Location Changes to this property will trigger replacement. string
Project string
The target project ID (number) or project name.
RequestId string
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
TargetProjectId
This property is required.
Changes to this property will trigger replacement.
string
Required. The target_project identifier.
Description string
The target project's description.
Location Changes to this property will trigger replacement. string
Project string
The target project ID (number) or project name.
RequestId string
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
targetProjectId
This property is required.
Changes to this property will trigger replacement.
String
Required. The target_project identifier.
description String
The target project's description.
location Changes to this property will trigger replacement. String
project String
The target project ID (number) or project name.
requestId String
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
targetProjectId
This property is required.
Changes to this property will trigger replacement.
string
Required. The target_project identifier.
description string
The target project's description.
location Changes to this property will trigger replacement. string
project string
The target project ID (number) or project name.
requestId string
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
target_project_id
This property is required.
Changes to this property will trigger replacement.
str
Required. The target_project identifier.
description str
The target project's description.
location Changes to this property will trigger replacement. str
project str
The target project ID (number) or project name.
request_id str
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
targetProjectId
This property is required.
Changes to this property will trigger replacement.
String
Required. The target_project identifier.
description String
The target project's description.
location Changes to this property will trigger replacement. String
project String
The target project ID (number) or project name.
requestId String
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Outputs

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

CreateTime string
The time this target project resource was created (not related to when the Compute Engine project it points to was created).
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the target project.
UpdateTime string
The last time the target project resource was updated.
CreateTime string
The time this target project resource was created (not related to when the Compute Engine project it points to was created).
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the target project.
UpdateTime string
The last time the target project resource was updated.
createTime String
The time this target project resource was created (not related to when the Compute Engine project it points to was created).
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the target project.
updateTime String
The last time the target project resource was updated.
createTime string
The time this target project resource was created (not related to when the Compute Engine project it points to was created).
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the target project.
updateTime string
The last time the target project resource was updated.
create_time str
The time this target project resource was created (not related to when the Compute Engine project it points to was created).
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the target project.
update_time str
The last time the target project resource was updated.
createTime String
The time this target project resource was created (not related to when the Compute Engine project it points to was created).
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the target project.
updateTime String
The last time the target project resource was updated.

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.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi