gcp.clouddeploy.Target
Explore with Pulumi AI
The Cloud Deploy Target resource
Example Usage
Multi_target
tests creating and updating a multi-target
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const primary = new gcp.clouddeploy.Target("primary", {
    location: "us-west1",
    name: "target",
    deployParameters: {},
    description: "multi-target description",
    executionConfigs: [{
        usages: [
            "RENDER",
            "DEPLOY",
        ],
        executionTimeout: "3600s",
    }],
    multiTarget: {
        targetIds: [
            "1",
            "2",
        ],
    },
    project: "my-project-name",
    requireApproval: false,
    annotations: {
        my_first_annotation: "example-annotation-1",
        my_second_annotation: "example-annotation-2",
    },
    labels: {
        my_first_label: "example-label-1",
        my_second_label: "example-label-2",
    },
});
import pulumi
import pulumi_gcp as gcp
primary = gcp.clouddeploy.Target("primary",
    location="us-west1",
    name="target",
    deploy_parameters={},
    description="multi-target description",
    execution_configs=[{
        "usages": [
            "RENDER",
            "DEPLOY",
        ],
        "execution_timeout": "3600s",
    }],
    multi_target={
        "target_ids": [
            "1",
            "2",
        ],
    },
    project="my-project-name",
    require_approval=False,
    annotations={
        "my_first_annotation": "example-annotation-1",
        "my_second_annotation": "example-annotation-2",
    },
    labels={
        "my_first_label": "example-label-1",
        "my_second_label": "example-label-2",
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/clouddeploy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := clouddeploy.NewTarget(ctx, "primary", &clouddeploy.TargetArgs{
			Location:         pulumi.String("us-west1"),
			Name:             pulumi.String("target"),
			DeployParameters: pulumi.StringMap{},
			Description:      pulumi.String("multi-target description"),
			ExecutionConfigs: clouddeploy.TargetExecutionConfigArray{
				&clouddeploy.TargetExecutionConfigArgs{
					Usages: pulumi.StringArray{
						pulumi.String("RENDER"),
						pulumi.String("DEPLOY"),
					},
					ExecutionTimeout: pulumi.String("3600s"),
				},
			},
			MultiTarget: &clouddeploy.TargetMultiTargetArgs{
				TargetIds: pulumi.StringArray{
					pulumi.String("1"),
					pulumi.String("2"),
				},
			},
			Project:         pulumi.String("my-project-name"),
			RequireApproval: pulumi.Bool(false),
			Annotations: pulumi.StringMap{
				"my_first_annotation":  pulumi.String("example-annotation-1"),
				"my_second_annotation": pulumi.String("example-annotation-2"),
			},
			Labels: pulumi.StringMap{
				"my_first_label":  pulumi.String("example-label-1"),
				"my_second_label": pulumi.String("example-label-2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var primary = new Gcp.CloudDeploy.Target("primary", new()
    {
        Location = "us-west1",
        Name = "target",
        DeployParameters = null,
        Description = "multi-target description",
        ExecutionConfigs = new[]
        {
            new Gcp.CloudDeploy.Inputs.TargetExecutionConfigArgs
            {
                Usages = new[]
                {
                    "RENDER",
                    "DEPLOY",
                },
                ExecutionTimeout = "3600s",
            },
        },
        MultiTarget = new Gcp.CloudDeploy.Inputs.TargetMultiTargetArgs
        {
            TargetIds = new[]
            {
                "1",
                "2",
            },
        },
        Project = "my-project-name",
        RequireApproval = false,
        Annotations = 
        {
            { "my_first_annotation", "example-annotation-1" },
            { "my_second_annotation", "example-annotation-2" },
        },
        Labels = 
        {
            { "my_first_label", "example-label-1" },
            { "my_second_label", "example-label-2" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.clouddeploy.Target;
import com.pulumi.gcp.clouddeploy.TargetArgs;
import com.pulumi.gcp.clouddeploy.inputs.TargetExecutionConfigArgs;
import com.pulumi.gcp.clouddeploy.inputs.TargetMultiTargetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var primary = new Target("primary", TargetArgs.builder()
            .location("us-west1")
            .name("target")
            .deployParameters()
            .description("multi-target description")
            .executionConfigs(TargetExecutionConfigArgs.builder()
                .usages(                
                    "RENDER",
                    "DEPLOY")
                .executionTimeout("3600s")
                .build())
            .multiTarget(TargetMultiTargetArgs.builder()
                .targetIds(                
                    "1",
                    "2")
                .build())
            .project("my-project-name")
            .requireApproval(false)
            .annotations(Map.ofEntries(
                Map.entry("my_first_annotation", "example-annotation-1"),
                Map.entry("my_second_annotation", "example-annotation-2")
            ))
            .labels(Map.ofEntries(
                Map.entry("my_first_label", "example-label-1"),
                Map.entry("my_second_label", "example-label-2")
            ))
            .build());
    }
}
resources:
  primary:
    type: gcp:clouddeploy:Target
    properties:
      location: us-west1
      name: target
      deployParameters: {}
      description: multi-target description
      executionConfigs:
        - usages:
            - RENDER
            - DEPLOY
          executionTimeout: 3600s
      multiTarget:
        targetIds:
          - '1'
          - '2'
      project: my-project-name
      requireApproval: false
      annotations:
        my_first_annotation: example-annotation-1
        my_second_annotation: example-annotation-2
      labels:
        my_first_label: example-label-1
        my_second_label: example-label-2
Run_target
tests creating and updating a cloud run target
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const primary = new gcp.clouddeploy.Target("primary", {
    location: "us-west1",
    name: "target",
    deployParameters: {},
    description: "basic description",
    executionConfigs: [{
        usages: [
            "RENDER",
            "DEPLOY",
        ],
        executionTimeout: "3600s",
    }],
    project: "my-project-name",
    requireApproval: false,
    run: {
        location: "projects/my-project-name/locations/us-west1",
    },
    annotations: {
        my_first_annotation: "example-annotation-1",
        my_second_annotation: "example-annotation-2",
    },
    labels: {
        my_first_label: "example-label-1",
        my_second_label: "example-label-2",
    },
});
import pulumi
import pulumi_gcp as gcp
primary = gcp.clouddeploy.Target("primary",
    location="us-west1",
    name="target",
    deploy_parameters={},
    description="basic description",
    execution_configs=[{
        "usages": [
            "RENDER",
            "DEPLOY",
        ],
        "execution_timeout": "3600s",
    }],
    project="my-project-name",
    require_approval=False,
    run={
        "location": "projects/my-project-name/locations/us-west1",
    },
    annotations={
        "my_first_annotation": "example-annotation-1",
        "my_second_annotation": "example-annotation-2",
    },
    labels={
        "my_first_label": "example-label-1",
        "my_second_label": "example-label-2",
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/clouddeploy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := clouddeploy.NewTarget(ctx, "primary", &clouddeploy.TargetArgs{
			Location:         pulumi.String("us-west1"),
			Name:             pulumi.String("target"),
			DeployParameters: pulumi.StringMap{},
			Description:      pulumi.String("basic description"),
			ExecutionConfigs: clouddeploy.TargetExecutionConfigArray{
				&clouddeploy.TargetExecutionConfigArgs{
					Usages: pulumi.StringArray{
						pulumi.String("RENDER"),
						pulumi.String("DEPLOY"),
					},
					ExecutionTimeout: pulumi.String("3600s"),
				},
			},
			Project:         pulumi.String("my-project-name"),
			RequireApproval: pulumi.Bool(false),
			Run: &clouddeploy.TargetRunArgs{
				Location: pulumi.String("projects/my-project-name/locations/us-west1"),
			},
			Annotations: pulumi.StringMap{
				"my_first_annotation":  pulumi.String("example-annotation-1"),
				"my_second_annotation": pulumi.String("example-annotation-2"),
			},
			Labels: pulumi.StringMap{
				"my_first_label":  pulumi.String("example-label-1"),
				"my_second_label": pulumi.String("example-label-2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var primary = new Gcp.CloudDeploy.Target("primary", new()
    {
        Location = "us-west1",
        Name = "target",
        DeployParameters = null,
        Description = "basic description",
        ExecutionConfigs = new[]
        {
            new Gcp.CloudDeploy.Inputs.TargetExecutionConfigArgs
            {
                Usages = new[]
                {
                    "RENDER",
                    "DEPLOY",
                },
                ExecutionTimeout = "3600s",
            },
        },
        Project = "my-project-name",
        RequireApproval = false,
        Run = new Gcp.CloudDeploy.Inputs.TargetRunArgs
        {
            Location = "projects/my-project-name/locations/us-west1",
        },
        Annotations = 
        {
            { "my_first_annotation", "example-annotation-1" },
            { "my_second_annotation", "example-annotation-2" },
        },
        Labels = 
        {
            { "my_first_label", "example-label-1" },
            { "my_second_label", "example-label-2" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.clouddeploy.Target;
import com.pulumi.gcp.clouddeploy.TargetArgs;
import com.pulumi.gcp.clouddeploy.inputs.TargetExecutionConfigArgs;
import com.pulumi.gcp.clouddeploy.inputs.TargetRunArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var primary = new Target("primary", TargetArgs.builder()
            .location("us-west1")
            .name("target")
            .deployParameters()
            .description("basic description")
            .executionConfigs(TargetExecutionConfigArgs.builder()
                .usages(                
                    "RENDER",
                    "DEPLOY")
                .executionTimeout("3600s")
                .build())
            .project("my-project-name")
            .requireApproval(false)
            .run(TargetRunArgs.builder()
                .location("projects/my-project-name/locations/us-west1")
                .build())
            .annotations(Map.ofEntries(
                Map.entry("my_first_annotation", "example-annotation-1"),
                Map.entry("my_second_annotation", "example-annotation-2")
            ))
            .labels(Map.ofEntries(
                Map.entry("my_first_label", "example-label-1"),
                Map.entry("my_second_label", "example-label-2")
            ))
            .build());
    }
}
resources:
  primary:
    type: gcp:clouddeploy:Target
    properties:
      location: us-west1
      name: target
      deployParameters: {}
      description: basic description
      executionConfigs:
        - usages:
            - RENDER
            - DEPLOY
          executionTimeout: 3600s
      project: my-project-name
      requireApproval: false
      run:
        location: projects/my-project-name/locations/us-west1
      annotations:
        my_first_annotation: example-annotation-1
        my_second_annotation: example-annotation-2
      labels:
        my_first_label: example-label-1
        my_second_label: example-label-2
Target
Creates a basic Cloud Deploy target
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const primary = new gcp.clouddeploy.Target("primary", {
    location: "us-west1",
    name: "target",
    deployParameters: {
        deployParameterKey: "deployParameterValue",
    },
    description: "basic description",
    gke: {
        cluster: "projects/my-project-name/locations/us-west1/clusters/example-cluster-name",
    },
    project: "my-project-name",
    requireApproval: false,
    annotations: {
        my_first_annotation: "example-annotation-1",
        my_second_annotation: "example-annotation-2",
    },
    labels: {
        my_first_label: "example-label-1",
        my_second_label: "example-label-2",
    },
});
import pulumi
import pulumi_gcp as gcp
primary = gcp.clouddeploy.Target("primary",
    location="us-west1",
    name="target",
    deploy_parameters={
        "deployParameterKey": "deployParameterValue",
    },
    description="basic description",
    gke={
        "cluster": "projects/my-project-name/locations/us-west1/clusters/example-cluster-name",
    },
    project="my-project-name",
    require_approval=False,
    annotations={
        "my_first_annotation": "example-annotation-1",
        "my_second_annotation": "example-annotation-2",
    },
    labels={
        "my_first_label": "example-label-1",
        "my_second_label": "example-label-2",
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/clouddeploy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := clouddeploy.NewTarget(ctx, "primary", &clouddeploy.TargetArgs{
			Location: pulumi.String("us-west1"),
			Name:     pulumi.String("target"),
			DeployParameters: pulumi.StringMap{
				"deployParameterKey": pulumi.String("deployParameterValue"),
			},
			Description: pulumi.String("basic description"),
			Gke: &clouddeploy.TargetGkeArgs{
				Cluster: pulumi.String("projects/my-project-name/locations/us-west1/clusters/example-cluster-name"),
			},
			Project:         pulumi.String("my-project-name"),
			RequireApproval: pulumi.Bool(false),
			Annotations: pulumi.StringMap{
				"my_first_annotation":  pulumi.String("example-annotation-1"),
				"my_second_annotation": pulumi.String("example-annotation-2"),
			},
			Labels: pulumi.StringMap{
				"my_first_label":  pulumi.String("example-label-1"),
				"my_second_label": pulumi.String("example-label-2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var primary = new Gcp.CloudDeploy.Target("primary", new()
    {
        Location = "us-west1",
        Name = "target",
        DeployParameters = 
        {
            { "deployParameterKey", "deployParameterValue" },
        },
        Description = "basic description",
        Gke = new Gcp.CloudDeploy.Inputs.TargetGkeArgs
        {
            Cluster = "projects/my-project-name/locations/us-west1/clusters/example-cluster-name",
        },
        Project = "my-project-name",
        RequireApproval = false,
        Annotations = 
        {
            { "my_first_annotation", "example-annotation-1" },
            { "my_second_annotation", "example-annotation-2" },
        },
        Labels = 
        {
            { "my_first_label", "example-label-1" },
            { "my_second_label", "example-label-2" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.clouddeploy.Target;
import com.pulumi.gcp.clouddeploy.TargetArgs;
import com.pulumi.gcp.clouddeploy.inputs.TargetGkeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var primary = new Target("primary", TargetArgs.builder()
            .location("us-west1")
            .name("target")
            .deployParameters(Map.of("deployParameterKey", "deployParameterValue"))
            .description("basic description")
            .gke(TargetGkeArgs.builder()
                .cluster("projects/my-project-name/locations/us-west1/clusters/example-cluster-name")
                .build())
            .project("my-project-name")
            .requireApproval(false)
            .annotations(Map.ofEntries(
                Map.entry("my_first_annotation", "example-annotation-1"),
                Map.entry("my_second_annotation", "example-annotation-2")
            ))
            .labels(Map.ofEntries(
                Map.entry("my_first_label", "example-label-1"),
                Map.entry("my_second_label", "example-label-2")
            ))
            .build());
    }
}
resources:
  primary:
    type: gcp:clouddeploy:Target
    properties:
      location: us-west1
      name: target
      deployParameters:
        deployParameterKey: deployParameterValue
      description: basic description
      gke:
        cluster: projects/my-project-name/locations/us-west1/clusters/example-cluster-name
      project: my-project-name
      requireApproval: false
      annotations:
        my_first_annotation: example-annotation-1
        my_second_annotation: example-annotation-2
      labels:
        my_first_label: example-label-1
        my_second_label: example-label-2
Create Target Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Target(name: string, args: TargetArgs, opts?: CustomResourceOptions);@overload
def Target(resource_name: str,
           args: TargetArgs,
           opts: Optional[ResourceOptions] = None)
@overload
def Target(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           location: Optional[str] = None,
           custom_target: Optional[TargetCustomTargetArgs] = None,
           labels: Optional[Mapping[str, str]] = None,
           annotations: Optional[Mapping[str, str]] = None,
           deploy_parameters: Optional[Mapping[str, str]] = None,
           description: Optional[str] = None,
           execution_configs: Optional[Sequence[TargetExecutionConfigArgs]] = None,
           gke: Optional[TargetGkeArgs] = None,
           associated_entities: Optional[Sequence[TargetAssociatedEntityArgs]] = None,
           anthos_cluster: Optional[TargetAnthosClusterArgs] = None,
           multi_target: Optional[TargetMultiTargetArgs] = None,
           name: Optional[str] = None,
           project: Optional[str] = None,
           require_approval: Optional[bool] = None,
           run: Optional[TargetRunArgs] = None)func NewTarget(ctx *Context, name string, args TargetArgs, opts ...ResourceOption) (*Target, error)public Target(string name, TargetArgs args, CustomResourceOptions? opts = null)
public Target(String name, TargetArgs args)
public Target(String name, TargetArgs args, CustomResourceOptions options)
type: gcp:clouddeploy:Target
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 TargetArgs
- 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 TargetArgs
- 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 TargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetArgs
- 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 targetResource = new Gcp.CloudDeploy.Target("targetResource", new()
{
    Location = "string",
    CustomTarget = new Gcp.CloudDeploy.Inputs.TargetCustomTargetArgs
    {
        CustomTargetType = "string",
    },
    Labels = 
    {
        { "string", "string" },
    },
    Annotations = 
    {
        { "string", "string" },
    },
    DeployParameters = 
    {
        { "string", "string" },
    },
    Description = "string",
    ExecutionConfigs = new[]
    {
        new Gcp.CloudDeploy.Inputs.TargetExecutionConfigArgs
        {
            Usages = new[]
            {
                "string",
            },
            ArtifactStorage = "string",
            ExecutionTimeout = "string",
            ServiceAccount = "string",
            Verbose = false,
            WorkerPool = "string",
        },
    },
    Gke = new Gcp.CloudDeploy.Inputs.TargetGkeArgs
    {
        Cluster = "string",
        InternalIp = false,
        ProxyUrl = "string",
    },
    AssociatedEntities = new[]
    {
        new Gcp.CloudDeploy.Inputs.TargetAssociatedEntityArgs
        {
            EntityId = "string",
            AnthosClusters = new[]
            {
                new Gcp.CloudDeploy.Inputs.TargetAssociatedEntityAnthosClusterArgs
                {
                    Membership = "string",
                },
            },
            GkeClusters = new[]
            {
                new Gcp.CloudDeploy.Inputs.TargetAssociatedEntityGkeClusterArgs
                {
                    Cluster = "string",
                    InternalIp = false,
                    ProxyUrl = "string",
                },
            },
        },
    },
    AnthosCluster = new Gcp.CloudDeploy.Inputs.TargetAnthosClusterArgs
    {
        Membership = "string",
    },
    MultiTarget = new Gcp.CloudDeploy.Inputs.TargetMultiTargetArgs
    {
        TargetIds = new[]
        {
            "string",
        },
    },
    Name = "string",
    Project = "string",
    RequireApproval = false,
    Run = new Gcp.CloudDeploy.Inputs.TargetRunArgs
    {
        Location = "string",
    },
});
example, err := clouddeploy.NewTarget(ctx, "targetResource", &clouddeploy.TargetArgs{
	Location: pulumi.String("string"),
	CustomTarget: &clouddeploy.TargetCustomTargetArgs{
		CustomTargetType: pulumi.String("string"),
	},
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Annotations: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DeployParameters: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	ExecutionConfigs: clouddeploy.TargetExecutionConfigArray{
		&clouddeploy.TargetExecutionConfigArgs{
			Usages: pulumi.StringArray{
				pulumi.String("string"),
			},
			ArtifactStorage:  pulumi.String("string"),
			ExecutionTimeout: pulumi.String("string"),
			ServiceAccount:   pulumi.String("string"),
			Verbose:          pulumi.Bool(false),
			WorkerPool:       pulumi.String("string"),
		},
	},
	Gke: &clouddeploy.TargetGkeArgs{
		Cluster:    pulumi.String("string"),
		InternalIp: pulumi.Bool(false),
		ProxyUrl:   pulumi.String("string"),
	},
	AssociatedEntities: clouddeploy.TargetAssociatedEntityArray{
		&clouddeploy.TargetAssociatedEntityArgs{
			EntityId: pulumi.String("string"),
			AnthosClusters: clouddeploy.TargetAssociatedEntityAnthosClusterArray{
				&clouddeploy.TargetAssociatedEntityAnthosClusterArgs{
					Membership: pulumi.String("string"),
				},
			},
			GkeClusters: clouddeploy.TargetAssociatedEntityGkeClusterArray{
				&clouddeploy.TargetAssociatedEntityGkeClusterArgs{
					Cluster:    pulumi.String("string"),
					InternalIp: pulumi.Bool(false),
					ProxyUrl:   pulumi.String("string"),
				},
			},
		},
	},
	AnthosCluster: &clouddeploy.TargetAnthosClusterArgs{
		Membership: pulumi.String("string"),
	},
	MultiTarget: &clouddeploy.TargetMultiTargetArgs{
		TargetIds: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	Name:            pulumi.String("string"),
	Project:         pulumi.String("string"),
	RequireApproval: pulumi.Bool(false),
	Run: &clouddeploy.TargetRunArgs{
		Location: pulumi.String("string"),
	},
})
var targetResource = new Target("targetResource", TargetArgs.builder()
    .location("string")
    .customTarget(TargetCustomTargetArgs.builder()
        .customTargetType("string")
        .build())
    .labels(Map.of("string", "string"))
    .annotations(Map.of("string", "string"))
    .deployParameters(Map.of("string", "string"))
    .description("string")
    .executionConfigs(TargetExecutionConfigArgs.builder()
        .usages("string")
        .artifactStorage("string")
        .executionTimeout("string")
        .serviceAccount("string")
        .verbose(false)
        .workerPool("string")
        .build())
    .gke(TargetGkeArgs.builder()
        .cluster("string")
        .internalIp(false)
        .proxyUrl("string")
        .build())
    .associatedEntities(TargetAssociatedEntityArgs.builder()
        .entityId("string")
        .anthosClusters(TargetAssociatedEntityAnthosClusterArgs.builder()
            .membership("string")
            .build())
        .gkeClusters(TargetAssociatedEntityGkeClusterArgs.builder()
            .cluster("string")
            .internalIp(false)
            .proxyUrl("string")
            .build())
        .build())
    .anthosCluster(TargetAnthosClusterArgs.builder()
        .membership("string")
        .build())
    .multiTarget(TargetMultiTargetArgs.builder()
        .targetIds("string")
        .build())
    .name("string")
    .project("string")
    .requireApproval(false)
    .run(TargetRunArgs.builder()
        .location("string")
        .build())
    .build());
target_resource = gcp.clouddeploy.Target("targetResource",
    location="string",
    custom_target={
        "custom_target_type": "string",
    },
    labels={
        "string": "string",
    },
    annotations={
        "string": "string",
    },
    deploy_parameters={
        "string": "string",
    },
    description="string",
    execution_configs=[{
        "usages": ["string"],
        "artifact_storage": "string",
        "execution_timeout": "string",
        "service_account": "string",
        "verbose": False,
        "worker_pool": "string",
    }],
    gke={
        "cluster": "string",
        "internal_ip": False,
        "proxy_url": "string",
    },
    associated_entities=[{
        "entity_id": "string",
        "anthos_clusters": [{
            "membership": "string",
        }],
        "gke_clusters": [{
            "cluster": "string",
            "internal_ip": False,
            "proxy_url": "string",
        }],
    }],
    anthos_cluster={
        "membership": "string",
    },
    multi_target={
        "target_ids": ["string"],
    },
    name="string",
    project="string",
    require_approval=False,
    run={
        "location": "string",
    })
const targetResource = new gcp.clouddeploy.Target("targetResource", {
    location: "string",
    customTarget: {
        customTargetType: "string",
    },
    labels: {
        string: "string",
    },
    annotations: {
        string: "string",
    },
    deployParameters: {
        string: "string",
    },
    description: "string",
    executionConfigs: [{
        usages: ["string"],
        artifactStorage: "string",
        executionTimeout: "string",
        serviceAccount: "string",
        verbose: false,
        workerPool: "string",
    }],
    gke: {
        cluster: "string",
        internalIp: false,
        proxyUrl: "string",
    },
    associatedEntities: [{
        entityId: "string",
        anthosClusters: [{
            membership: "string",
        }],
        gkeClusters: [{
            cluster: "string",
            internalIp: false,
            proxyUrl: "string",
        }],
    }],
    anthosCluster: {
        membership: "string",
    },
    multiTarget: {
        targetIds: ["string"],
    },
    name: "string",
    project: "string",
    requireApproval: false,
    run: {
        location: "string",
    },
});
type: gcp:clouddeploy:Target
properties:
    annotations:
        string: string
    anthosCluster:
        membership: string
    associatedEntities:
        - anthosClusters:
            - membership: string
          entityId: string
          gkeClusters:
            - cluster: string
              internalIp: false
              proxyUrl: string
    customTarget:
        customTargetType: string
    deployParameters:
        string: string
    description: string
    executionConfigs:
        - artifactStorage: string
          executionTimeout: string
          serviceAccount: string
          usages:
            - string
          verbose: false
          workerPool: string
    gke:
        cluster: string
        internalIp: false
        proxyUrl: string
    labels:
        string: string
    location: string
    multiTarget:
        targetIds:
            - string
    name: string
    project: string
    requireApproval: false
    run:
        location: string
Target 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 Target resource accepts the following input properties:
- Location string
- The location for the resource
- Annotations Dictionary<string, string>
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- AnthosCluster TargetAnthos Cluster 
- Information specifying an Anthos Cluster.
- AssociatedEntities List<TargetAssociated Entity> 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- CustomTarget TargetCustom Target 
- Optional. Information specifying a Custom Target.
- DeployParameters Dictionary<string, string>
- Optional. The deploy parameters to use for this target.
- Description string
- Optional. Description of the Target. Max length is 255 characters.
- ExecutionConfigs List<TargetExecution Config> 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- Gke
TargetGke 
- Information specifying a GKE Cluster.
- Labels Dictionary<string, string>
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- MultiTarget TargetMulti Target 
- Information specifying a multiTarget.
- Name string
- Name of the Target. Format isa-z?.
- Project string
- The project for the resource
- RequireApproval bool
- Optional. Whether or not the Targetrequires approval.
- Run
TargetRun 
- Information specifying a Cloud Run deployment target.
- Location string
- The location for the resource
- Annotations map[string]string
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- AnthosCluster TargetAnthos Cluster Args 
- Information specifying an Anthos Cluster.
- AssociatedEntities []TargetAssociated Entity Args 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- CustomTarget TargetCustom Target Args 
- Optional. Information specifying a Custom Target.
- DeployParameters map[string]string
- Optional. The deploy parameters to use for this target.
- Description string
- Optional. Description of the Target. Max length is 255 characters.
- ExecutionConfigs []TargetExecution Config Args 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- Gke
TargetGke Args 
- Information specifying a GKE Cluster.
- Labels map[string]string
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- MultiTarget TargetMulti Target Args 
- Information specifying a multiTarget.
- Name string
- Name of the Target. Format isa-z?.
- Project string
- The project for the resource
- RequireApproval bool
- Optional. Whether or not the Targetrequires approval.
- Run
TargetRun Args 
- Information specifying a Cloud Run deployment target.
- location String
- The location for the resource
- annotations Map<String,String>
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- anthosCluster TargetAnthos Cluster 
- Information specifying an Anthos Cluster.
- associatedEntities List<TargetAssociated Entity> 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- customTarget TargetCustom Target 
- Optional. Information specifying a Custom Target.
- deployParameters Map<String,String>
- Optional. The deploy parameters to use for this target.
- description String
- Optional. Description of the Target. Max length is 255 characters.
- executionConfigs List<TargetExecution Config> 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- gke
TargetGke 
- Information specifying a GKE Cluster.
- labels Map<String,String>
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- multiTarget TargetMulti Target 
- Information specifying a multiTarget.
- name String
- Name of the Target. Format isa-z?.
- project String
- The project for the resource
- requireApproval Boolean
- Optional. Whether or not the Targetrequires approval.
- run
TargetRun 
- Information specifying a Cloud Run deployment target.
- location string
- The location for the resource
- annotations {[key: string]: string}
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- anthosCluster TargetAnthos Cluster 
- Information specifying an Anthos Cluster.
- associatedEntities TargetAssociated Entity[] 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- customTarget TargetCustom Target 
- Optional. Information specifying a Custom Target.
- deployParameters {[key: string]: string}
- Optional. The deploy parameters to use for this target.
- description string
- Optional. Description of the Target. Max length is 255 characters.
- executionConfigs TargetExecution Config[] 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- gke
TargetGke 
- Information specifying a GKE Cluster.
- labels {[key: string]: string}
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- multiTarget TargetMulti Target 
- Information specifying a multiTarget.
- name string
- Name of the Target. Format isa-z?.
- project string
- The project for the resource
- requireApproval boolean
- Optional. Whether or not the Targetrequires approval.
- run
TargetRun 
- Information specifying a Cloud Run deployment target.
- location str
- The location for the resource
- annotations Mapping[str, str]
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- anthos_cluster TargetAnthos Cluster Args 
- Information specifying an Anthos Cluster.
- associated_entities Sequence[TargetAssociated Entity Args] 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- custom_target TargetCustom Target Args 
- Optional. Information specifying a Custom Target.
- deploy_parameters Mapping[str, str]
- Optional. The deploy parameters to use for this target.
- description str
- Optional. Description of the Target. Max length is 255 characters.
- execution_configs Sequence[TargetExecution Config Args] 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- gke
TargetGke Args 
- Information specifying a GKE Cluster.
- labels Mapping[str, str]
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- multi_target TargetMulti Target Args 
- Information specifying a multiTarget.
- name str
- Name of the Target. Format isa-z?.
- project str
- The project for the resource
- require_approval bool
- Optional. Whether or not the Targetrequires approval.
- run
TargetRun Args 
- Information specifying a Cloud Run deployment target.
- location String
- The location for the resource
- annotations Map<String>
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- anthosCluster Property Map
- Information specifying an Anthos Cluster.
- associatedEntities List<Property Map>
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- customTarget Property Map
- Optional. Information specifying a Custom Target.
- deployParameters Map<String>
- Optional. The deploy parameters to use for this target.
- description String
- Optional. Description of the Target. Max length is 255 characters.
- executionConfigs List<Property Map>
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- gke Property Map
- Information specifying a GKE Cluster.
- labels Map<String>
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- multiTarget Property Map
- Information specifying a multiTarget.
- name String
- Name of the Target. Format isa-z?.
- project String
- The project for the resource
- requireApproval Boolean
- Optional. Whether or not the Targetrequires approval.
- run Property Map
- Information specifying a Cloud Run deployment target.
Outputs
All input properties are implicitly available as output properties. Additionally, the Target resource produces the following output properties:
- CreateTime string
- Output only. Time at which the Targetwas created.
- EffectiveAnnotations Dictionary<string, string>
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- TargetId string
- Output only. Resource id of the Target.
- Uid string
- Output only. Unique identifier of the Target.
- UpdateTime string
- Output only. Most recent time at which the Targetwas updated.
- CreateTime string
- Output only. Time at which the Targetwas created.
- EffectiveAnnotations map[string]string
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- TargetId string
- Output only. Resource id of the Target.
- Uid string
- Output only. Unique identifier of the Target.
- UpdateTime string
- Output only. Most recent time at which the Targetwas updated.
- createTime String
- Output only. Time at which the Targetwas created.
- effectiveAnnotations Map<String,String>
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- targetId String
- Output only. Resource id of the Target.
- uid String
- Output only. Unique identifier of the Target.
- updateTime String
- Output only. Most recent time at which the Targetwas updated.
- createTime string
- Output only. Time at which the Targetwas created.
- effectiveAnnotations {[key: string]: string}
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag string
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- targetId string
- Output only. Resource id of the Target.
- uid string
- Output only. Unique identifier of the Target.
- updateTime string
- Output only. Most recent time at which the Targetwas updated.
- create_time str
- Output only. Time at which the Targetwas created.
- effective_annotations Mapping[str, str]
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag str
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- target_id str
- Output only. Resource id of the Target.
- uid str
- Output only. Unique identifier of the Target.
- update_time str
- Output only. Most recent time at which the Targetwas updated.
- createTime String
- Output only. Time at which the Targetwas created.
- effectiveAnnotations Map<String>
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- targetId String
- Output only. Resource id of the Target.
- uid String
- Output only. Unique identifier of the Target.
- updateTime String
- Output only. Most recent time at which the Targetwas updated.
Look up Existing Target Resource
Get an existing Target 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>, state?: TargetState, opts?: CustomResourceOptions): Target@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        annotations: Optional[Mapping[str, str]] = None,
        anthos_cluster: Optional[TargetAnthosClusterArgs] = None,
        associated_entities: Optional[Sequence[TargetAssociatedEntityArgs]] = None,
        create_time: Optional[str] = None,
        custom_target: Optional[TargetCustomTargetArgs] = None,
        deploy_parameters: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        effective_annotations: Optional[Mapping[str, str]] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        etag: Optional[str] = None,
        execution_configs: Optional[Sequence[TargetExecutionConfigArgs]] = None,
        gke: Optional[TargetGkeArgs] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        multi_target: Optional[TargetMultiTargetArgs] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        require_approval: Optional[bool] = None,
        run: Optional[TargetRunArgs] = None,
        target_id: Optional[str] = None,
        uid: Optional[str] = None,
        update_time: Optional[str] = None) -> Targetfunc GetTarget(ctx *Context, name string, id IDInput, state *TargetState, opts ...ResourceOption) (*Target, error)public static Target Get(string name, Input<string> id, TargetState? state, CustomResourceOptions? opts = null)public static Target get(String name, Output<String> id, TargetState state, CustomResourceOptions options)resources:  _:    type: gcp:clouddeploy:Target    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Annotations Dictionary<string, string>
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- AnthosCluster TargetAnthos Cluster 
- Information specifying an Anthos Cluster.
- AssociatedEntities List<TargetAssociated Entity> 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- CreateTime string
- Output only. Time at which the Targetwas created.
- CustomTarget TargetCustom Target 
- Optional. Information specifying a Custom Target.
- DeployParameters Dictionary<string, string>
- Optional. The deploy parameters to use for this target.
- Description string
- Optional. Description of the Target. Max length is 255 characters.
- EffectiveAnnotations Dictionary<string, string>
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- ExecutionConfigs List<TargetExecution Config> 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- Gke
TargetGke 
- Information specifying a GKE Cluster.
- Labels Dictionary<string, string>
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Location string
- The location for the resource
- MultiTarget TargetMulti Target 
- Information specifying a multiTarget.
- Name string
- Name of the Target. Format isa-z?.
- Project string
- The project for the resource
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- RequireApproval bool
- Optional. Whether or not the Targetrequires approval.
- Run
TargetRun 
- Information specifying a Cloud Run deployment target.
- TargetId string
- Output only. Resource id of the Target.
- Uid string
- Output only. Unique identifier of the Target.
- UpdateTime string
- Output only. Most recent time at which the Targetwas updated.
- Annotations map[string]string
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- AnthosCluster TargetAnthos Cluster Args 
- Information specifying an Anthos Cluster.
- AssociatedEntities []TargetAssociated Entity Args 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- CreateTime string
- Output only. Time at which the Targetwas created.
- CustomTarget TargetCustom Target Args 
- Optional. Information specifying a Custom Target.
- DeployParameters map[string]string
- Optional. The deploy parameters to use for this target.
- Description string
- Optional. Description of the Target. Max length is 255 characters.
- EffectiveAnnotations map[string]string
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Etag string
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- ExecutionConfigs []TargetExecution Config Args 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- Gke
TargetGke Args 
- Information specifying a GKE Cluster.
- Labels map[string]string
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Location string
- The location for the resource
- MultiTarget TargetMulti Target Args 
- Information specifying a multiTarget.
- Name string
- Name of the Target. Format isa-z?.
- Project string
- The project for the resource
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- RequireApproval bool
- Optional. Whether or not the Targetrequires approval.
- Run
TargetRun Args 
- Information specifying a Cloud Run deployment target.
- TargetId string
- Output only. Resource id of the Target.
- Uid string
- Output only. Unique identifier of the Target.
- UpdateTime string
- Output only. Most recent time at which the Targetwas updated.
- annotations Map<String,String>
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- anthosCluster TargetAnthos Cluster 
- Information specifying an Anthos Cluster.
- associatedEntities List<TargetAssociated Entity> 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- createTime String
- Output only. Time at which the Targetwas created.
- customTarget TargetCustom Target 
- Optional. Information specifying a Custom Target.
- deployParameters Map<String,String>
- Optional. The deploy parameters to use for this target.
- description String
- Optional. Description of the Target. Max length is 255 characters.
- effectiveAnnotations Map<String,String>
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- executionConfigs List<TargetExecution Config> 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- gke
TargetGke 
- Information specifying a GKE Cluster.
- labels Map<String,String>
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location String
- The location for the resource
- multiTarget TargetMulti Target 
- Information specifying a multiTarget.
- name String
- Name of the Target. Format isa-z?.
- project String
- The project for the resource
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- requireApproval Boolean
- Optional. Whether or not the Targetrequires approval.
- run
TargetRun 
- Information specifying a Cloud Run deployment target.
- targetId String
- Output only. Resource id of the Target.
- uid String
- Output only. Unique identifier of the Target.
- updateTime String
- Output only. Most recent time at which the Targetwas updated.
- annotations {[key: string]: string}
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- anthosCluster TargetAnthos Cluster 
- Information specifying an Anthos Cluster.
- associatedEntities TargetAssociated Entity[] 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- createTime string
- Output only. Time at which the Targetwas created.
- customTarget TargetCustom Target 
- Optional. Information specifying a Custom Target.
- deployParameters {[key: string]: string}
- Optional. The deploy parameters to use for this target.
- description string
- Optional. Description of the Target. Max length is 255 characters.
- effectiveAnnotations {[key: string]: string}
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag string
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- executionConfigs TargetExecution Config[] 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- gke
TargetGke 
- Information specifying a GKE Cluster.
- labels {[key: string]: string}
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location string
- The location for the resource
- multiTarget TargetMulti Target 
- Information specifying a multiTarget.
- name string
- Name of the Target. Format isa-z?.
- project string
- The project for the resource
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- requireApproval boolean
- Optional. Whether or not the Targetrequires approval.
- run
TargetRun 
- Information specifying a Cloud Run deployment target.
- targetId string
- Output only. Resource id of the Target.
- uid string
- Output only. Unique identifier of the Target.
- updateTime string
- Output only. Most recent time at which the Targetwas updated.
- annotations Mapping[str, str]
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- anthos_cluster TargetAnthos Cluster Args 
- Information specifying an Anthos Cluster.
- associated_entities Sequence[TargetAssociated Entity Args] 
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- create_time str
- Output only. Time at which the Targetwas created.
- custom_target TargetCustom Target Args 
- Optional. Information specifying a Custom Target.
- deploy_parameters Mapping[str, str]
- Optional. The deploy parameters to use for this target.
- description str
- Optional. Description of the Target. Max length is 255 characters.
- effective_annotations Mapping[str, str]
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag str
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- execution_configs Sequence[TargetExecution Config Args] 
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- gke
TargetGke Args 
- Information specifying a GKE Cluster.
- labels Mapping[str, str]
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location str
- The location for the resource
- multi_target TargetMulti Target Args 
- Information specifying a multiTarget.
- name str
- Name of the Target. Format isa-z?.
- project str
- The project for the resource
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- require_approval bool
- Optional. Whether or not the Targetrequires approval.
- run
TargetRun Args 
- Information specifying a Cloud Run deployment target.
- target_id str
- Output only. Resource id of the Target.
- uid str
- Output only. Unique identifier of the Target.
- update_time str
- Output only. Most recent time at which the Targetwas updated.
- annotations Map<String>
- Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. - Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field - effective_annotationsfor all of the annotations present on the resource.
- anthosCluster Property Map
- Information specifying an Anthos Cluster.
- associatedEntities List<Property Map>
- Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: ^a-z?$.
- createTime String
- Output only. Time at which the Targetwas created.
- customTarget Property Map
- Optional. Information specifying a Custom Target.
- deployParameters Map<String>
- Optional. The deploy parameters to use for this target.
- description String
- Optional. Description of the Target. Max length is 255 characters.
- effectiveAnnotations Map<String>
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- etag String
- Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- executionConfigs List<Property Map>
- Configurations for all execution that relates to this Target. EachExecutionEnvironmentUsagevalue may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDERandDEPLOYExecutionEnvironmentUsagevalues. When no configurations are specified, execution will use the default specified inDefaultPool.
- gke Property Map
- Information specifying a GKE Cluster.
- labels Map<String>
- Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location String
- The location for the resource
- multiTarget Property Map
- Information specifying a multiTarget.
- name String
- Name of the Target. Format isa-z?.
- project String
- The project for the resource
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- requireApproval Boolean
- Optional. Whether or not the Targetrequires approval.
- run Property Map
- Information specifying a Cloud Run deployment target.
- targetId String
- Output only. Resource id of the Target.
- uid String
- Output only. Unique identifier of the Target.
- updateTime String
- Output only. Most recent time at which the Targetwas updated.
Supporting Types
TargetAnthosCluster, TargetAnthosClusterArgs      
- Membership string
- Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- Membership string
- Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- membership String
- Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- membership string
- Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- membership str
- Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- membership String
- Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
TargetAssociatedEntity, TargetAssociatedEntityArgs      
- EntityId string
- The name for the key in the map for which this object is mapped to in the API
- AnthosClusters List<TargetAssociated Entity Anthos Cluster> 
- Optional. Information specifying Anthos clusters as associated entities.
- GkeClusters List<TargetAssociated Entity Gke Cluster> 
- Optional. Information specifying GKE clusters as associated entities.
- EntityId string
- The name for the key in the map for which this object is mapped to in the API
- AnthosClusters []TargetAssociated Entity Anthos Cluster 
- Optional. Information specifying Anthos clusters as associated entities.
- GkeClusters []TargetAssociated Entity Gke Cluster 
- Optional. Information specifying GKE clusters as associated entities.
- entityId String
- The name for the key in the map for which this object is mapped to in the API
- anthosClusters List<TargetAssociated Entity Anthos Cluster> 
- Optional. Information specifying Anthos clusters as associated entities.
- gkeClusters List<TargetAssociated Entity Gke Cluster> 
- Optional. Information specifying GKE clusters as associated entities.
- entityId string
- The name for the key in the map for which this object is mapped to in the API
- anthosClusters TargetAssociated Entity Anthos Cluster[] 
- Optional. Information specifying Anthos clusters as associated entities.
- gkeClusters TargetAssociated Entity Gke Cluster[] 
- Optional. Information specifying GKE clusters as associated entities.
- entity_id str
- The name for the key in the map for which this object is mapped to in the API
- anthos_clusters Sequence[TargetAssociated Entity Anthos Cluster] 
- Optional. Information specifying Anthos clusters as associated entities.
- gke_clusters Sequence[TargetAssociated Entity Gke Cluster] 
- Optional. Information specifying GKE clusters as associated entities.
- entityId String
- The name for the key in the map for which this object is mapped to in the API
- anthosClusters List<Property Map>
- Optional. Information specifying Anthos clusters as associated entities.
- gkeClusters List<Property Map>
- Optional. Information specifying GKE clusters as associated entities.
TargetAssociatedEntityAnthosCluster, TargetAssociatedEntityAnthosClusterArgs          
- Membership string
- Optional. Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- Membership string
- Optional. Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- membership String
- Optional. Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- membership string
- Optional. Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- membership str
- Optional. Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
- membership String
- Optional. Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is projects/{project}/locations/{location}/memberships/{membership_name}.
TargetAssociatedEntityGkeCluster, TargetAssociatedEntityGkeClusterArgs          
- Cluster string
- Optional. Information specifying a GKE Cluster. Format is projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- InternalIp bool
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- ProxyUrl string
- Optional. If set, used to configure a proxy to the Kubernetes server.
- Cluster string
- Optional. Information specifying a GKE Cluster. Format is projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- InternalIp bool
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- ProxyUrl string
- Optional. If set, used to configure a proxy to the Kubernetes server.
- cluster String
- Optional. Information specifying a GKE Cluster. Format is projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- internalIp Boolean
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- proxyUrl String
- Optional. If set, used to configure a proxy to the Kubernetes server.
- cluster string
- Optional. Information specifying a GKE Cluster. Format is projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- internalIp boolean
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- proxyUrl string
- Optional. If set, used to configure a proxy to the Kubernetes server.
- cluster str
- Optional. Information specifying a GKE Cluster. Format is projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- internal_ip bool
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- proxy_url str
- Optional. If set, used to configure a proxy to the Kubernetes server.
- cluster String
- Optional. Information specifying a GKE Cluster. Format is projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- internalIp Boolean
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- proxyUrl String
- Optional. If set, used to configure a proxy to the Kubernetes server.
TargetCustomTarget, TargetCustomTargetArgs      
- CustomTarget stringType 
- Required. The name of the CustomTargetType. Format must be projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
- CustomTarget stringType 
- Required. The name of the CustomTargetType. Format must be projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
- customTarget StringType 
- Required. The name of the CustomTargetType. Format must be projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
- customTarget stringType 
- Required. The name of the CustomTargetType. Format must be projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
- custom_target_ strtype 
- Required. The name of the CustomTargetType. Format must be projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
- customTarget StringType 
- Required. The name of the CustomTargetType. Format must be projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}.
TargetExecutionConfig, TargetExecutionConfigArgs      
- Usages List<string>
- Required. Usages when this configuration should be applied.
- ArtifactStorage string
- Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.
- ExecutionTimeout string
- Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
- ServiceAccount string
- Optional. Google service account to use for execution. If unspecified, the project execution service account (-compute@developer.gserviceaccount.com) is used.
- Verbose bool
- Optional. If true, additional logging will be enabled when running builds in this execution environment.
- WorkerPool string
- Optional. The resource name of the WorkerPool, with the formatprojects/{project}/locations/{location}/workerPools/{worker_pool}. If this optional field is unspecified, the default Cloud Build pool will be used.
- Usages []string
- Required. Usages when this configuration should be applied.
- ArtifactStorage string
- Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.
- ExecutionTimeout string
- Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
- ServiceAccount string
- Optional. Google service account to use for execution. If unspecified, the project execution service account (-compute@developer.gserviceaccount.com) is used.
- Verbose bool
- Optional. If true, additional logging will be enabled when running builds in this execution environment.
- WorkerPool string
- Optional. The resource name of the WorkerPool, with the formatprojects/{project}/locations/{location}/workerPools/{worker_pool}. If this optional field is unspecified, the default Cloud Build pool will be used.
- usages List<String>
- Required. Usages when this configuration should be applied.
- artifactStorage String
- Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.
- executionTimeout String
- Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
- serviceAccount String
- Optional. Google service account to use for execution. If unspecified, the project execution service account (-compute@developer.gserviceaccount.com) is used.
- verbose Boolean
- Optional. If true, additional logging will be enabled when running builds in this execution environment.
- workerPool String
- Optional. The resource name of the WorkerPool, with the formatprojects/{project}/locations/{location}/workerPools/{worker_pool}. If this optional field is unspecified, the default Cloud Build pool will be used.
- usages string[]
- Required. Usages when this configuration should be applied.
- artifactStorage string
- Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.
- executionTimeout string
- Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
- serviceAccount string
- Optional. Google service account to use for execution. If unspecified, the project execution service account (-compute@developer.gserviceaccount.com) is used.
- verbose boolean
- Optional. If true, additional logging will be enabled when running builds in this execution environment.
- workerPool string
- Optional. The resource name of the WorkerPool, with the formatprojects/{project}/locations/{location}/workerPools/{worker_pool}. If this optional field is unspecified, the default Cloud Build pool will be used.
- usages Sequence[str]
- Required. Usages when this configuration should be applied.
- artifact_storage str
- Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.
- execution_timeout str
- Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
- service_account str
- Optional. Google service account to use for execution. If unspecified, the project execution service account (-compute@developer.gserviceaccount.com) is used.
- verbose bool
- Optional. If true, additional logging will be enabled when running builds in this execution environment.
- worker_pool str
- Optional. The resource name of the WorkerPool, with the formatprojects/{project}/locations/{location}/workerPools/{worker_pool}. If this optional field is unspecified, the default Cloud Build pool will be used.
- usages List<String>
- Required. Usages when this configuration should be applied.
- artifactStorage String
- Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.
- executionTimeout String
- Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
- serviceAccount String
- Optional. Google service account to use for execution. If unspecified, the project execution service account (-compute@developer.gserviceaccount.com) is used.
- verbose Boolean
- Optional. If true, additional logging will be enabled when running builds in this execution environment.
- workerPool String
- Optional. The resource name of the WorkerPool, with the formatprojects/{project}/locations/{location}/workerPools/{worker_pool}. If this optional field is unspecified, the default Cloud Build pool will be used.
TargetGke, TargetGkeArgs    
- Cluster string
- Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- InternalIp bool
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- ProxyUrl string
- Optional. If set, used to configure a proxy to the Kubernetes server.
- Cluster string
- Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- InternalIp bool
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- ProxyUrl string
- Optional. If set, used to configure a proxy to the Kubernetes server.
- cluster String
- Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- internalIp Boolean
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- proxyUrl String
- Optional. If set, used to configure a proxy to the Kubernetes server.
- cluster string
- Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- internalIp boolean
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- proxyUrl string
- Optional. If set, used to configure a proxy to the Kubernetes server.
- cluster str
- Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- internal_ip bool
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- proxy_url str
- Optional. If set, used to configure a proxy to the Kubernetes server.
- cluster String
- Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
- internalIp Boolean
- Optional. If true, clusteris accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise. Only specify this option whenclusteris a private GKE cluster.
- proxyUrl String
- Optional. If set, used to configure a proxy to the Kubernetes server.
TargetMultiTarget, TargetMultiTargetArgs      
- TargetIds List<string>
- Required. The target_ids of this multiTarget.
- TargetIds []string
- Required. The target_ids of this multiTarget.
- targetIds List<String>
- Required. The target_ids of this multiTarget.
- targetIds string[]
- Required. The target_ids of this multiTarget.
- target_ids Sequence[str]
- Required. The target_ids of this multiTarget.
- targetIds List<String>
- Required. The target_ids of this multiTarget.
TargetRun, TargetRunArgs    
- Location string
- Required. The location where the Cloud Run Service should be located. Format is projects/{project}/locations/{location}.
- Location string
- Required. The location where the Cloud Run Service should be located. Format is projects/{project}/locations/{location}.
- location String
- Required. The location where the Cloud Run Service should be located. Format is projects/{project}/locations/{location}.
- location string
- Required. The location where the Cloud Run Service should be located. Format is projects/{project}/locations/{location}.
- location str
- Required. The location where the Cloud Run Service should be located. Format is projects/{project}/locations/{location}.
- location String
- Required. The location where the Cloud Run Service should be located. Format is projects/{project}/locations/{location}.
Import
Target can be imported using any of these accepted formats:
- projects/{{project}}/locations/{{location}}/targets/{{name}}
- {{project}}/{{location}}/{{name}}
- {{location}}/{{name}}
When using the pulumi import command, Target can be imported using one of the formats above. For example:
$ pulumi import gcp:clouddeploy/target:Target default projects/{{project}}/locations/{{location}}/targets/{{name}}
$ pulumi import gcp:clouddeploy/target:Target default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:clouddeploy/target:Target default {{location}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.