1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. clouddeploy
  5. CustomTargetType
Google Cloud Classic v8.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

gcp.clouddeploy.CustomTargetType

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

    A Cloud Deploy CustomTargetType defines a type of custom target that can be referenced in a Cloud Deploy Target in order to facilitate deploying to other systems besides the supported runtimes.

    To get more information about CustomTargetType, see:

    Example Usage

    Clouddeploy Custom Target Type Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const custom_target_type = new gcp.clouddeploy.CustomTargetType("custom-target-type", {
        location: "us-central1",
        name: "my-custom-target-type",
        description: "My custom target type",
        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",
        },
        customActions: {
            renderAction: "renderAction",
            deployAction: "deployAction",
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    custom_target_type = gcp.clouddeploy.CustomTargetType("custom-target-type",
        location="us-central1",
        name="my-custom-target-type",
        description="My custom target type",
        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",
        },
        custom_actions={
            "render_action": "renderAction",
            "deploy_action": "deployAction",
        })
    
    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.NewCustomTargetType(ctx, "custom-target-type", &clouddeploy.CustomTargetTypeArgs{
    			Location:    pulumi.String("us-central1"),
    			Name:        pulumi.String("my-custom-target-type"),
    			Description: pulumi.String("My custom target type"),
    			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"),
    			},
    			CustomActions: &clouddeploy.CustomTargetTypeCustomActionsArgs{
    				RenderAction: pulumi.String("renderAction"),
    				DeployAction: pulumi.String("deployAction"),
    			},
    		})
    		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 custom_target_type = new Gcp.CloudDeploy.CustomTargetType("custom-target-type", new()
        {
            Location = "us-central1",
            Name = "my-custom-target-type",
            Description = "My custom target type",
            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" },
            },
            CustomActions = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsArgs
            {
                RenderAction = "renderAction",
                DeployAction = "deployAction",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.clouddeploy.CustomTargetType;
    import com.pulumi.gcp.clouddeploy.CustomTargetTypeArgs;
    import com.pulumi.gcp.clouddeploy.inputs.CustomTargetTypeCustomActionsArgs;
    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 custom_target_type = new CustomTargetType("custom-target-type", CustomTargetTypeArgs.builder()
                .location("us-central1")
                .name("my-custom-target-type")
                .description("My custom target type")
                .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")
                ))
                .customActions(CustomTargetTypeCustomActionsArgs.builder()
                    .renderAction("renderAction")
                    .deployAction("deployAction")
                    .build())
                .build());
    
        }
    }
    
    resources:
      custom-target-type:
        type: gcp:clouddeploy:CustomTargetType
        properties:
          location: us-central1
          name: my-custom-target-type
          description: My custom target type
          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
          customActions:
            renderAction: renderAction
            deployAction: deployAction
    

    Clouddeploy Custom Target Type Git Skaffold Modules

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const custom_target_type = new gcp.clouddeploy.CustomTargetType("custom-target-type", {
        location: "us-central1",
        name: "my-custom-target-type",
        description: "My custom target type",
        customActions: {
            renderAction: "renderAction",
            deployAction: "deployAction",
            includeSkaffoldModules: [{
                configs: ["my-config"],
                git: {
                    repo: "http://github.com/example/example-repo.git",
                    path: "configs/skaffold.yaml",
                    ref: "main",
                },
            }],
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    custom_target_type = gcp.clouddeploy.CustomTargetType("custom-target-type",
        location="us-central1",
        name="my-custom-target-type",
        description="My custom target type",
        custom_actions={
            "render_action": "renderAction",
            "deploy_action": "deployAction",
            "include_skaffold_modules": [{
                "configs": ["my-config"],
                "git": {
                    "repo": "http://github.com/example/example-repo.git",
                    "path": "configs/skaffold.yaml",
                    "ref": "main",
                },
            }],
        })
    
    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.NewCustomTargetType(ctx, "custom-target-type", &clouddeploy.CustomTargetTypeArgs{
    			Location:    pulumi.String("us-central1"),
    			Name:        pulumi.String("my-custom-target-type"),
    			Description: pulumi.String("My custom target type"),
    			CustomActions: &clouddeploy.CustomTargetTypeCustomActionsArgs{
    				RenderAction: pulumi.String("renderAction"),
    				DeployAction: pulumi.String("deployAction"),
    				IncludeSkaffoldModules: clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArray{
    					&clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs{
    						Configs: pulumi.StringArray{
    							pulumi.String("my-config"),
    						},
    						Git: &clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs{
    							Repo: pulumi.String("http://github.com/example/example-repo.git"),
    							Path: pulumi.String("configs/skaffold.yaml"),
    							Ref:  pulumi.String("main"),
    						},
    					},
    				},
    			},
    		})
    		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 custom_target_type = new Gcp.CloudDeploy.CustomTargetType("custom-target-type", new()
        {
            Location = "us-central1",
            Name = "my-custom-target-type",
            Description = "My custom target type",
            CustomActions = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsArgs
            {
                RenderAction = "renderAction",
                DeployAction = "deployAction",
                IncludeSkaffoldModules = new[]
                {
                    new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs
                    {
                        Configs = new[]
                        {
                            "my-config",
                        },
                        Git = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs
                        {
                            Repo = "http://github.com/example/example-repo.git",
                            Path = "configs/skaffold.yaml",
                            Ref = "main",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.clouddeploy.CustomTargetType;
    import com.pulumi.gcp.clouddeploy.CustomTargetTypeArgs;
    import com.pulumi.gcp.clouddeploy.inputs.CustomTargetTypeCustomActionsArgs;
    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 custom_target_type = new CustomTargetType("custom-target-type", CustomTargetTypeArgs.builder()
                .location("us-central1")
                .name("my-custom-target-type")
                .description("My custom target type")
                .customActions(CustomTargetTypeCustomActionsArgs.builder()
                    .renderAction("renderAction")
                    .deployAction("deployAction")
                    .includeSkaffoldModules(CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs.builder()
                        .configs("my-config")
                        .git(CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs.builder()
                            .repo("http://github.com/example/example-repo.git")
                            .path("configs/skaffold.yaml")
                            .ref("main")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      custom-target-type:
        type: gcp:clouddeploy:CustomTargetType
        properties:
          location: us-central1
          name: my-custom-target-type
          description: My custom target type
          customActions:
            renderAction: renderAction
            deployAction: deployAction
            includeSkaffoldModules:
              - configs:
                  - my-config
                git:
                  repo: http://github.com/example/example-repo.git
                  path: configs/skaffold.yaml
                  ref: main
    

    Clouddeploy Custom Target Type Gcs Skaffold Modules

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const custom_target_type = new gcp.clouddeploy.CustomTargetType("custom-target-type", {
        location: "us-central1",
        name: "my-custom-target-type",
        description: "My custom target type",
        customActions: {
            renderAction: "renderAction",
            deployAction: "deployAction",
            includeSkaffoldModules: [{
                configs: ["my-config"],
                googleCloudStorage: {
                    source: "gs://example-bucket/dir/configs/*",
                    path: "skaffold.yaml",
                },
            }],
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    custom_target_type = gcp.clouddeploy.CustomTargetType("custom-target-type",
        location="us-central1",
        name="my-custom-target-type",
        description="My custom target type",
        custom_actions={
            "render_action": "renderAction",
            "deploy_action": "deployAction",
            "include_skaffold_modules": [{
                "configs": ["my-config"],
                "google_cloud_storage": {
                    "source": "gs://example-bucket/dir/configs/*",
                    "path": "skaffold.yaml",
                },
            }],
        })
    
    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.NewCustomTargetType(ctx, "custom-target-type", &clouddeploy.CustomTargetTypeArgs{
    			Location:    pulumi.String("us-central1"),
    			Name:        pulumi.String("my-custom-target-type"),
    			Description: pulumi.String("My custom target type"),
    			CustomActions: &clouddeploy.CustomTargetTypeCustomActionsArgs{
    				RenderAction: pulumi.String("renderAction"),
    				DeployAction: pulumi.String("deployAction"),
    				IncludeSkaffoldModules: clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArray{
    					&clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs{
    						Configs: pulumi.StringArray{
    							pulumi.String("my-config"),
    						},
    						GoogleCloudStorage: &clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorageArgs{
    							Source: pulumi.String("gs://example-bucket/dir/configs/*"),
    							Path:   pulumi.String("skaffold.yaml"),
    						},
    					},
    				},
    			},
    		})
    		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 custom_target_type = new Gcp.CloudDeploy.CustomTargetType("custom-target-type", new()
        {
            Location = "us-central1",
            Name = "my-custom-target-type",
            Description = "My custom target type",
            CustomActions = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsArgs
            {
                RenderAction = "renderAction",
                DeployAction = "deployAction",
                IncludeSkaffoldModules = new[]
                {
                    new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs
                    {
                        Configs = new[]
                        {
                            "my-config",
                        },
                        GoogleCloudStorage = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorageArgs
                        {
                            Source = "gs://example-bucket/dir/configs/*",
                            Path = "skaffold.yaml",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.clouddeploy.CustomTargetType;
    import com.pulumi.gcp.clouddeploy.CustomTargetTypeArgs;
    import com.pulumi.gcp.clouddeploy.inputs.CustomTargetTypeCustomActionsArgs;
    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 custom_target_type = new CustomTargetType("custom-target-type", CustomTargetTypeArgs.builder()
                .location("us-central1")
                .name("my-custom-target-type")
                .description("My custom target type")
                .customActions(CustomTargetTypeCustomActionsArgs.builder()
                    .renderAction("renderAction")
                    .deployAction("deployAction")
                    .includeSkaffoldModules(CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs.builder()
                        .configs("my-config")
                        .googleCloudStorage(CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorageArgs.builder()
                            .source("gs://example-bucket/dir/configs/*")
                            .path("skaffold.yaml")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      custom-target-type:
        type: gcp:clouddeploy:CustomTargetType
        properties:
          location: us-central1
          name: my-custom-target-type
          description: My custom target type
          customActions:
            renderAction: renderAction
            deployAction: deployAction
            includeSkaffoldModules:
              - configs:
                  - my-config
                googleCloudStorage:
                  source: gs://example-bucket/dir/configs/*
                  path: skaffold.yaml
    

    Clouddeploy Custom Target Type Gcb Repo Skaffold Modules

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const custom_target_type = new gcp.clouddeploy.CustomTargetType("custom-target-type", {
        location: "us-central1",
        name: "my-custom-target-type",
        description: "My custom target type",
        customActions: {
            renderAction: "renderAction",
            deployAction: "deployAction",
            includeSkaffoldModules: [{
                configs: ["my-config"],
                googleCloudBuildRepo: {
                    repository: "projects/example/locations/us-central1/connections/git/repositories/example-repo",
                    path: "configs/skaffold.yaml",
                    ref: "main",
                },
            }],
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    custom_target_type = gcp.clouddeploy.CustomTargetType("custom-target-type",
        location="us-central1",
        name="my-custom-target-type",
        description="My custom target type",
        custom_actions={
            "render_action": "renderAction",
            "deploy_action": "deployAction",
            "include_skaffold_modules": [{
                "configs": ["my-config"],
                "google_cloud_build_repo": {
                    "repository": "projects/example/locations/us-central1/connections/git/repositories/example-repo",
                    "path": "configs/skaffold.yaml",
                    "ref": "main",
                },
            }],
        })
    
    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.NewCustomTargetType(ctx, "custom-target-type", &clouddeploy.CustomTargetTypeArgs{
    			Location:    pulumi.String("us-central1"),
    			Name:        pulumi.String("my-custom-target-type"),
    			Description: pulumi.String("My custom target type"),
    			CustomActions: &clouddeploy.CustomTargetTypeCustomActionsArgs{
    				RenderAction: pulumi.String("renderAction"),
    				DeployAction: pulumi.String("deployAction"),
    				IncludeSkaffoldModules: clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArray{
    					&clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs{
    						Configs: pulumi.StringArray{
    							pulumi.String("my-config"),
    						},
    						GoogleCloudBuildRepo: &clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepoArgs{
    							Repository: pulumi.String("projects/example/locations/us-central1/connections/git/repositories/example-repo"),
    							Path:       pulumi.String("configs/skaffold.yaml"),
    							Ref:        pulumi.String("main"),
    						},
    					},
    				},
    			},
    		})
    		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 custom_target_type = new Gcp.CloudDeploy.CustomTargetType("custom-target-type", new()
        {
            Location = "us-central1",
            Name = "my-custom-target-type",
            Description = "My custom target type",
            CustomActions = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsArgs
            {
                RenderAction = "renderAction",
                DeployAction = "deployAction",
                IncludeSkaffoldModules = new[]
                {
                    new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs
                    {
                        Configs = new[]
                        {
                            "my-config",
                        },
                        GoogleCloudBuildRepo = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepoArgs
                        {
                            Repository = "projects/example/locations/us-central1/connections/git/repositories/example-repo",
                            Path = "configs/skaffold.yaml",
                            Ref = "main",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.clouddeploy.CustomTargetType;
    import com.pulumi.gcp.clouddeploy.CustomTargetTypeArgs;
    import com.pulumi.gcp.clouddeploy.inputs.CustomTargetTypeCustomActionsArgs;
    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 custom_target_type = new CustomTargetType("custom-target-type", CustomTargetTypeArgs.builder()
                .location("us-central1")
                .name("my-custom-target-type")
                .description("My custom target type")
                .customActions(CustomTargetTypeCustomActionsArgs.builder()
                    .renderAction("renderAction")
                    .deployAction("deployAction")
                    .includeSkaffoldModules(CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs.builder()
                        .configs("my-config")
                        .googleCloudBuildRepo(CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepoArgs.builder()
                            .repository("projects/example/locations/us-central1/connections/git/repositories/example-repo")
                            .path("configs/skaffold.yaml")
                            .ref("main")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      custom-target-type:
        type: gcp:clouddeploy:CustomTargetType
        properties:
          location: us-central1
          name: my-custom-target-type
          description: My custom target type
          customActions:
            renderAction: renderAction
            deployAction: deployAction
            includeSkaffoldModules:
              - configs:
                  - my-config
                googleCloudBuildRepo:
                  repository: projects/example/locations/us-central1/connections/git/repositories/example-repo
                  path: configs/skaffold.yaml
                  ref: main
    

    Create CustomTargetType Resource

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

    Constructor syntax

    new CustomTargetType(name: string, args: CustomTargetTypeArgs, opts?: CustomResourceOptions);
    @overload
    def CustomTargetType(resource_name: str,
                         args: CustomTargetTypeArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomTargetType(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         location: Optional[str] = None,
                         annotations: Optional[Mapping[str, str]] = None,
                         custom_actions: Optional[CustomTargetTypeCustomActionsArgs] = None,
                         description: Optional[str] = None,
                         labels: Optional[Mapping[str, str]] = None,
                         name: Optional[str] = None,
                         project: Optional[str] = None)
    func NewCustomTargetType(ctx *Context, name string, args CustomTargetTypeArgs, opts ...ResourceOption) (*CustomTargetType, error)
    public CustomTargetType(string name, CustomTargetTypeArgs args, CustomResourceOptions? opts = null)
    public CustomTargetType(String name, CustomTargetTypeArgs args)
    public CustomTargetType(String name, CustomTargetTypeArgs args, CustomResourceOptions options)
    
    type: gcp:clouddeploy:CustomTargetType
    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 CustomTargetTypeArgs
    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 CustomTargetTypeArgs
    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 CustomTargetTypeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomTargetTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomTargetTypeArgs
    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 customTargetTypeResource = new Gcp.CloudDeploy.CustomTargetType("customTargetTypeResource", new()
    {
        Location = "string",
        Annotations = 
        {
            { "string", "string" },
        },
        CustomActions = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsArgs
        {
            DeployAction = "string",
            IncludeSkaffoldModules = new[]
            {
                new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs
                {
                    Configs = new[]
                    {
                        "string",
                    },
                    Git = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs
                    {
                        Repo = "string",
                        Path = "string",
                        Ref = "string",
                    },
                    GoogleCloudBuildRepo = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepoArgs
                    {
                        Repository = "string",
                        Path = "string",
                        Ref = "string",
                    },
                    GoogleCloudStorage = new Gcp.CloudDeploy.Inputs.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorageArgs
                    {
                        Source = "string",
                        Path = "string",
                    },
                },
            },
            RenderAction = "string",
        },
        Description = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        Project = "string",
    });
    
    example, err := clouddeploy.NewCustomTargetType(ctx, "customTargetTypeResource", &clouddeploy.CustomTargetTypeArgs{
    	Location: pulumi.String("string"),
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	CustomActions: &clouddeploy.CustomTargetTypeCustomActionsArgs{
    		DeployAction: pulumi.String("string"),
    		IncludeSkaffoldModules: clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArray{
    			&clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs{
    				Configs: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Git: &clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs{
    					Repo: pulumi.String("string"),
    					Path: pulumi.String("string"),
    					Ref:  pulumi.String("string"),
    				},
    				GoogleCloudBuildRepo: &clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepoArgs{
    					Repository: pulumi.String("string"),
    					Path:       pulumi.String("string"),
    					Ref:        pulumi.String("string"),
    				},
    				GoogleCloudStorage: &clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorageArgs{
    					Source: pulumi.String("string"),
    					Path:   pulumi.String("string"),
    				},
    			},
    		},
    		RenderAction: pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:    pulumi.String("string"),
    	Project: pulumi.String("string"),
    })
    
    var customTargetTypeResource = new CustomTargetType("customTargetTypeResource", CustomTargetTypeArgs.builder()
        .location("string")
        .annotations(Map.of("string", "string"))
        .customActions(CustomTargetTypeCustomActionsArgs.builder()
            .deployAction("string")
            .includeSkaffoldModules(CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs.builder()
                .configs("string")
                .git(CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs.builder()
                    .repo("string")
                    .path("string")
                    .ref("string")
                    .build())
                .googleCloudBuildRepo(CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepoArgs.builder()
                    .repository("string")
                    .path("string")
                    .ref("string")
                    .build())
                .googleCloudStorage(CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorageArgs.builder()
                    .source("string")
                    .path("string")
                    .build())
                .build())
            .renderAction("string")
            .build())
        .description("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .project("string")
        .build());
    
    custom_target_type_resource = gcp.clouddeploy.CustomTargetType("customTargetTypeResource",
        location="string",
        annotations={
            "string": "string",
        },
        custom_actions={
            "deploy_action": "string",
            "include_skaffold_modules": [{
                "configs": ["string"],
                "git": {
                    "repo": "string",
                    "path": "string",
                    "ref": "string",
                },
                "google_cloud_build_repo": {
                    "repository": "string",
                    "path": "string",
                    "ref": "string",
                },
                "google_cloud_storage": {
                    "source": "string",
                    "path": "string",
                },
            }],
            "render_action": "string",
        },
        description="string",
        labels={
            "string": "string",
        },
        name="string",
        project="string")
    
    const customTargetTypeResource = new gcp.clouddeploy.CustomTargetType("customTargetTypeResource", {
        location: "string",
        annotations: {
            string: "string",
        },
        customActions: {
            deployAction: "string",
            includeSkaffoldModules: [{
                configs: ["string"],
                git: {
                    repo: "string",
                    path: "string",
                    ref: "string",
                },
                googleCloudBuildRepo: {
                    repository: "string",
                    path: "string",
                    ref: "string",
                },
                googleCloudStorage: {
                    source: "string",
                    path: "string",
                },
            }],
            renderAction: "string",
        },
        description: "string",
        labels: {
            string: "string",
        },
        name: "string",
        project: "string",
    });
    
    type: gcp:clouddeploy:CustomTargetType
    properties:
        annotations:
            string: string
        customActions:
            deployAction: string
            includeSkaffoldModules:
                - configs:
                    - string
                  git:
                    path: string
                    ref: string
                    repo: string
                  googleCloudBuildRepo:
                    path: string
                    ref: string
                    repository: string
                  googleCloudStorage:
                    path: string
                    source: string
            renderAction: string
        description: string
        labels:
            string: string
        location: string
        name: string
        project: string
    

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

    Location string
    The location of the source.


    Annotations Dictionary<string, string>
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    CustomActions CustomTargetTypeCustomActions
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    Description string
    Description of the CustomTargetType. Max length is 255 characters.
    Labels Dictionary<string, string>
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    Name string
    Name of the CustomTargetType.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Location string
    The location of the source.


    Annotations map[string]string
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    CustomActions CustomTargetTypeCustomActionsArgs
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    Description string
    Description of the CustomTargetType. Max length is 255 characters.
    Labels map[string]string
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    Name string
    Name of the CustomTargetType.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The location of the source.


    annotations Map<String,String>
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    customActions CustomTargetTypeCustomActions
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    description String
    Description of the CustomTargetType. Max length is 255 characters.
    labels Map<String,String>
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    name String
    Name of the CustomTargetType.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location string
    The location of the source.


    annotations {[key: string]: string}
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    customActions CustomTargetTypeCustomActions
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    description string
    Description of the CustomTargetType. Max length is 255 characters.
    labels {[key: string]: string}
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    name string
    Name of the CustomTargetType.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location str
    The location of the source.


    annotations Mapping[str, str]
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    custom_actions CustomTargetTypeCustomActionsArgs
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    description str
    Description of the CustomTargetType. Max length is 255 characters.
    labels Mapping[str, str]
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    name str
    Name of the CustomTargetType.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The location of the source.


    annotations Map<String>
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    customActions Property Map
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    description String
    Description of the CustomTargetType. Max length is 255 characters.
    labels Map<String>
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    name String
    Name of the CustomTargetType.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

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

    CreateTime string
    Time at which the CustomTargetType was created.
    CustomTargetTypeId string
    Resource id of the CustomTargetType.
    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
    The weak etag of the CustomTargetType resource. 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.
    Uid string
    Unique identifier of the CustomTargetType.
    UpdateTime string
    Time at which the CustomTargetType was updated.
    CreateTime string
    Time at which the CustomTargetType was created.
    CustomTargetTypeId string
    Resource id of the CustomTargetType.
    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
    The weak etag of the CustomTargetType resource. 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.
    Uid string
    Unique identifier of the CustomTargetType.
    UpdateTime string
    Time at which the CustomTargetType was updated.
    createTime String
    Time at which the CustomTargetType was created.
    customTargetTypeId String
    Resource id of the CustomTargetType.
    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
    The weak etag of the CustomTargetType resource. 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.
    uid String
    Unique identifier of the CustomTargetType.
    updateTime String
    Time at which the CustomTargetType was updated.
    createTime string
    Time at which the CustomTargetType was created.
    customTargetTypeId string
    Resource id of the CustomTargetType.
    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
    The weak etag of the CustomTargetType resource. 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.
    uid string
    Unique identifier of the CustomTargetType.
    updateTime string
    Time at which the CustomTargetType was updated.
    create_time str
    Time at which the CustomTargetType was created.
    custom_target_type_id str
    Resource id of the CustomTargetType.
    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
    The weak etag of the CustomTargetType resource. 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.
    uid str
    Unique identifier of the CustomTargetType.
    update_time str
    Time at which the CustomTargetType was updated.
    createTime String
    Time at which the CustomTargetType was created.
    customTargetTypeId String
    Resource id of the CustomTargetType.
    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
    The weak etag of the CustomTargetType resource. 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.
    uid String
    Unique identifier of the CustomTargetType.
    updateTime String
    Time at which the CustomTargetType was updated.

    Look up Existing CustomTargetType Resource

    Get an existing CustomTargetType 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?: CustomTargetTypeState, opts?: CustomResourceOptions): CustomTargetType
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            annotations: Optional[Mapping[str, str]] = None,
            create_time: Optional[str] = None,
            custom_actions: Optional[CustomTargetTypeCustomActionsArgs] = None,
            custom_target_type_id: Optional[str] = None,
            description: Optional[str] = None,
            effective_annotations: Optional[Mapping[str, str]] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            etag: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            uid: Optional[str] = None,
            update_time: Optional[str] = None) -> CustomTargetType
    func GetCustomTargetType(ctx *Context, name string, id IDInput, state *CustomTargetTypeState, opts ...ResourceOption) (*CustomTargetType, error)
    public static CustomTargetType Get(string name, Input<string> id, CustomTargetTypeState? state, CustomResourceOptions? opts = null)
    public static CustomTargetType get(String name, Output<String> id, CustomTargetTypeState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Annotations Dictionary<string, string>
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    CreateTime string
    Time at which the CustomTargetType was created.
    CustomActions CustomTargetTypeCustomActions
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    CustomTargetTypeId string
    Resource id of the CustomTargetType.
    Description string
    Description of the CustomTargetType. 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
    The weak etag of the CustomTargetType resource. 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.
    Labels Dictionary<string, string>
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    Location string
    The location of the source.


    Name string
    Name of the CustomTargetType.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Uid string
    Unique identifier of the CustomTargetType.
    UpdateTime string
    Time at which the CustomTargetType was updated.
    Annotations map[string]string
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    CreateTime string
    Time at which the CustomTargetType was created.
    CustomActions CustomTargetTypeCustomActionsArgs
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    CustomTargetTypeId string
    Resource id of the CustomTargetType.
    Description string
    Description of the CustomTargetType. 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
    The weak etag of the CustomTargetType resource. 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.
    Labels map[string]string
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    Location string
    The location of the source.


    Name string
    Name of the CustomTargetType.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Uid string
    Unique identifier of the CustomTargetType.
    UpdateTime string
    Time at which the CustomTargetType was updated.
    annotations Map<String,String>
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    createTime String
    Time at which the CustomTargetType was created.
    customActions CustomTargetTypeCustomActions
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    customTargetTypeId String
    Resource id of the CustomTargetType.
    description String
    Description of the CustomTargetType. 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
    The weak etag of the CustomTargetType resource. 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.
    labels Map<String,String>
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    location String
    The location of the source.


    name String
    Name of the CustomTargetType.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    uid String
    Unique identifier of the CustomTargetType.
    updateTime String
    Time at which the CustomTargetType was updated.
    annotations {[key: string]: string}
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    createTime string
    Time at which the CustomTargetType was created.
    customActions CustomTargetTypeCustomActions
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    customTargetTypeId string
    Resource id of the CustomTargetType.
    description string
    Description of the CustomTargetType. 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
    The weak etag of the CustomTargetType resource. 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.
    labels {[key: string]: string}
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    location string
    The location of the source.


    name string
    Name of the CustomTargetType.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    uid string
    Unique identifier of the CustomTargetType.
    updateTime string
    Time at which the CustomTargetType was updated.
    annotations Mapping[str, str]
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    create_time str
    Time at which the CustomTargetType was created.
    custom_actions CustomTargetTypeCustomActionsArgs
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    custom_target_type_id str
    Resource id of the CustomTargetType.
    description str
    Description of the CustomTargetType. 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
    The weak etag of the CustomTargetType resource. 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.
    labels Mapping[str, str]
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    location str
    The location of the source.


    name str
    Name of the CustomTargetType.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    uid str
    Unique identifier of the CustomTargetType.
    update_time str
    Time at which the CustomTargetType was updated.
    annotations Map<String>
    User annotations. These attributes can only be set and used by the user, and not by 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_annotations for all of the annotations present on the resource.
    createTime String
    Time at which the CustomTargetType was created.
    customActions Property Map
    Configures render and deploy for the CustomTargetType using Skaffold custom actions. Structure is documented below.
    customTargetTypeId String
    Resource id of the CustomTargetType.
    description String
    Description of the CustomTargetType. 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
    The weak etag of the CustomTargetType resource. 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.
    labels Map<String>
    Labels are attributes that can be set and used by both the user and by 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_labels for all of the labels present on the resource.
    location String
    The location of the source.


    name String
    Name of the CustomTargetType.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    uid String
    Unique identifier of the CustomTargetType.
    updateTime String
    Time at which the CustomTargetType was updated.

    Supporting Types

    CustomTargetTypeCustomActions, CustomTargetTypeCustomActionsArgs

    DeployAction string
    The Skaffold custom action responsible for deploy operations.
    IncludeSkaffoldModules List<CustomTargetTypeCustomActionsIncludeSkaffoldModule>
    List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
    RenderAction string
    The Skaffold custom action responsible for render operations. If not provided then Cloud Deploy will perform the render operations via skaffold render.
    DeployAction string
    The Skaffold custom action responsible for deploy operations.
    IncludeSkaffoldModules []CustomTargetTypeCustomActionsIncludeSkaffoldModule
    List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
    RenderAction string
    The Skaffold custom action responsible for render operations. If not provided then Cloud Deploy will perform the render operations via skaffold render.
    deployAction String
    The Skaffold custom action responsible for deploy operations.
    includeSkaffoldModules List<CustomTargetTypeCustomActionsIncludeSkaffoldModule>
    List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
    renderAction String
    The Skaffold custom action responsible for render operations. If not provided then Cloud Deploy will perform the render operations via skaffold render.
    deployAction string
    The Skaffold custom action responsible for deploy operations.
    includeSkaffoldModules CustomTargetTypeCustomActionsIncludeSkaffoldModule[]
    List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
    renderAction string
    The Skaffold custom action responsible for render operations. If not provided then Cloud Deploy will perform the render operations via skaffold render.
    deploy_action str
    The Skaffold custom action responsible for deploy operations.
    include_skaffold_modules Sequence[CustomTargetTypeCustomActionsIncludeSkaffoldModule]
    List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
    render_action str
    The Skaffold custom action responsible for render operations. If not provided then Cloud Deploy will perform the render operations via skaffold render.
    deployAction String
    The Skaffold custom action responsible for deploy operations.
    includeSkaffoldModules List<Property Map>
    List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
    renderAction String
    The Skaffold custom action responsible for render operations. If not provided then Cloud Deploy will perform the render operations via skaffold render.

    CustomTargetTypeCustomActionsIncludeSkaffoldModule, CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs

    Configs List<string>
    The Skaffold Config modules to use from the specified source.
    Git CustomTargetTypeCustomActionsIncludeSkaffoldModuleGit
    Remote git repository containing the Skaffold Config modules. Structure is documented below.
    GoogleCloudBuildRepo CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepo
    Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
    GoogleCloudStorage CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorage
    Cloud Storage bucket containing Skaffold Config modules. Structure is documented below.
    Configs []string
    The Skaffold Config modules to use from the specified source.
    Git CustomTargetTypeCustomActionsIncludeSkaffoldModuleGit
    Remote git repository containing the Skaffold Config modules. Structure is documented below.
    GoogleCloudBuildRepo CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepo
    Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
    GoogleCloudStorage CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorage
    Cloud Storage bucket containing Skaffold Config modules. Structure is documented below.
    configs List<String>
    The Skaffold Config modules to use from the specified source.
    git CustomTargetTypeCustomActionsIncludeSkaffoldModuleGit
    Remote git repository containing the Skaffold Config modules. Structure is documented below.
    googleCloudBuildRepo CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepo
    Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
    googleCloudStorage CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorage
    Cloud Storage bucket containing Skaffold Config modules. Structure is documented below.
    configs string[]
    The Skaffold Config modules to use from the specified source.
    git CustomTargetTypeCustomActionsIncludeSkaffoldModuleGit
    Remote git repository containing the Skaffold Config modules. Structure is documented below.
    googleCloudBuildRepo CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepo
    Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
    googleCloudStorage CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorage
    Cloud Storage bucket containing Skaffold Config modules. Structure is documented below.
    configs Sequence[str]
    The Skaffold Config modules to use from the specified source.
    git CustomTargetTypeCustomActionsIncludeSkaffoldModuleGit
    Remote git repository containing the Skaffold Config modules. Structure is documented below.
    google_cloud_build_repo CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepo
    Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
    google_cloud_storage CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorage
    Cloud Storage bucket containing Skaffold Config modules. Structure is documented below.
    configs List<String>
    The Skaffold Config modules to use from the specified source.
    git Property Map
    Remote git repository containing the Skaffold Config modules. Structure is documented below.
    googleCloudBuildRepo Property Map
    Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
    googleCloudStorage Property Map
    Cloud Storage bucket containing Skaffold Config modules. Structure is documented below.

    CustomTargetTypeCustomActionsIncludeSkaffoldModuleGit, CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs

    Repo string
    Git repository the package should be cloned from.
    Path string
    Relative path from the repository root to the Skaffold file.
    Ref string
    Git ref the package should be cloned from.
    Repo string
    Git repository the package should be cloned from.
    Path string
    Relative path from the repository root to the Skaffold file.
    Ref string
    Git ref the package should be cloned from.
    repo String
    Git repository the package should be cloned from.
    path String
    Relative path from the repository root to the Skaffold file.
    ref String
    Git ref the package should be cloned from.
    repo string
    Git repository the package should be cloned from.
    path string
    Relative path from the repository root to the Skaffold file.
    ref string
    Git ref the package should be cloned from.
    repo str
    Git repository the package should be cloned from.
    path str
    Relative path from the repository root to the Skaffold file.
    ref str
    Git ref the package should be cloned from.
    repo String
    Git repository the package should be cloned from.
    path String
    Relative path from the repository root to the Skaffold file.
    ref String
    Git ref the package should be cloned from.

    CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepo, CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepoArgs

    Repository string
    Cloud Build 2nd gen repository in the format of 'projects//locations//connections//repositories/'.
    Path string
    Relative path from the repository root to the Skaffold file.
    Ref string
    Branch or tag to use when cloning the repository.
    Repository string
    Cloud Build 2nd gen repository in the format of 'projects//locations//connections//repositories/'.
    Path string
    Relative path from the repository root to the Skaffold file.
    Ref string
    Branch or tag to use when cloning the repository.
    repository String
    Cloud Build 2nd gen repository in the format of 'projects//locations//connections//repositories/'.
    path String
    Relative path from the repository root to the Skaffold file.
    ref String
    Branch or tag to use when cloning the repository.
    repository string
    Cloud Build 2nd gen repository in the format of 'projects//locations//connections//repositories/'.
    path string
    Relative path from the repository root to the Skaffold file.
    ref string
    Branch or tag to use when cloning the repository.
    repository str
    Cloud Build 2nd gen repository in the format of 'projects//locations//connections//repositories/'.
    path str
    Relative path from the repository root to the Skaffold file.
    ref str
    Branch or tag to use when cloning the repository.
    repository String
    Cloud Build 2nd gen repository in the format of 'projects//locations//connections//repositories/'.
    path String
    Relative path from the repository root to the Skaffold file.
    ref String
    Branch or tag to use when cloning the repository.

    CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorage, CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorageArgs

    Source string
    Cloud Storage source paths to copy recursively. For example, providing gs://my-bucket/dir/configs/* will result in Skaffold copying all files within the dir/configs directory in the bucket my-bucket.
    Path string
    Relative path from the source to the Skaffold file.
    Source string
    Cloud Storage source paths to copy recursively. For example, providing gs://my-bucket/dir/configs/* will result in Skaffold copying all files within the dir/configs directory in the bucket my-bucket.
    Path string
    Relative path from the source to the Skaffold file.
    source String
    Cloud Storage source paths to copy recursively. For example, providing gs://my-bucket/dir/configs/* will result in Skaffold copying all files within the dir/configs directory in the bucket my-bucket.
    path String
    Relative path from the source to the Skaffold file.
    source string
    Cloud Storage source paths to copy recursively. For example, providing gs://my-bucket/dir/configs/* will result in Skaffold copying all files within the dir/configs directory in the bucket my-bucket.
    path string
    Relative path from the source to the Skaffold file.
    source str
    Cloud Storage source paths to copy recursively. For example, providing gs://my-bucket/dir/configs/* will result in Skaffold copying all files within the dir/configs directory in the bucket my-bucket.
    path str
    Relative path from the source to the Skaffold file.
    source String
    Cloud Storage source paths to copy recursively. For example, providing gs://my-bucket/dir/configs/* will result in Skaffold copying all files within the dir/configs directory in the bucket my-bucket.
    path String
    Relative path from the source to the Skaffold file.

    Import

    CustomTargetType can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/customTargetTypes/{{name}}

    • {{project}}/{{location}}/{{name}}

    • {{location}}/{{name}}

    When using the pulumi import command, CustomTargetType can be imported using one of the formats above. For example:

    $ pulumi import gcp:clouddeploy/customTargetType:CustomTargetType default projects/{{project}}/locations/{{location}}/customTargetTypes/{{name}}
    
    $ pulumi import gcp:clouddeploy/customTargetType:CustomTargetType default {{project}}/{{location}}/{{name}}
    
    $ pulumi import gcp:clouddeploy/customTargetType:CustomTargetType 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-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.10.0 published on Wednesday, Nov 20, 2024 by Pulumi