Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.vmmigration/v1alpha1.TargetProject
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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/v1alpha1:TargetProject
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 TargetProjectArgs
- 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 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 string
- The unique name of the resource.
- args TargetProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 google_nativeTargetProjectResource = new GoogleNative.VMMigration.V1Alpha1.TargetProject("google-nativeTargetProjectResource", new()
{
TargetProjectId = "string",
Description = "string",
Location = "string",
Project = "string",
RequestId = "string",
});
example, err := vmmigrationv1alpha1.NewTargetProject(ctx, "google-nativeTargetProjectResource", &vmmigrationv1alpha1.TargetProjectArgs{
TargetProjectId: pulumi.String("string"),
Description: pulumi.String("string"),
Location: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
})
var google_nativeTargetProjectResource = new TargetProject("google-nativeTargetProjectResource", TargetProjectArgs.builder()
.targetProjectId("string")
.description("string")
.location("string")
.project("string")
.requestId("string")
.build());
google_native_target_project_resource = google_native.vmmigration.v1alpha1.TargetProject("google-nativeTargetProjectResource",
target_project_id="string",
description="string",
location="string",
project="string",
request_id="string")
const google_nativeTargetProjectResource = new google_native.vmmigration.v1alpha1.TargetProject("google-nativeTargetProjectResource", {
targetProjectId: "string",
description: "string",
location: "string",
project: "string",
requestId: "string",
});
type: google-native:vmmigration/v1alpha1:TargetProject
properties:
description: string
location: string
project: string
requestId: string
targetProjectId: string
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:
- Target
Project stringId - Required. The target_project identifier.
- Description string
- The target project's description.
- Location string
- Project string
- The target project ID (number) or project name.
- Request
Id 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 stringId - Required. The target_project identifier.
- Description string
- The target project's description.
- Location string
- Project string
- The target project ID (number) or project name.
- Request
Id 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 StringId - Required. The target_project identifier.
- description String
- The target project's description.
- location String
- project String
- The target project ID (number) or project name.
- request
Id 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 stringId - Required. The target_project identifier.
- description string
- The target project's description.
- location string
- project string
- The target project ID (number) or project name.
- request
Id 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_ strid - Required. The target_project identifier.
- description str
- The target project's description.
- location 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).
- target
Project StringId - Required. The target_project identifier.
- description String
- The target project's description.
- location String
- project String
- The target project ID (number) or project name.
- request
Id 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:
- Create
Time 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.
- Update
Time string - The last time the target project resource was updated.
- Create
Time 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.
- Update
Time string - The last time the target project resource was updated.
- create
Time 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.
- update
Time String - The last time the target project resource was updated.
- create
Time 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.
- update
Time 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.
- create
Time 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.
- update
Time 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.