gcp.clouddeploy.CustomTargetType
Explore with Pulumi AI
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:
- API documentation
- How-to Guides
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=gcp.clouddeploy.CustomTargetTypeCustomActionsArgs(
render_action="renderAction",
deploy_action="deployAction",
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/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=gcp.clouddeploy.CustomTargetTypeCustomActionsArgs(
render_action="renderAction",
deploy_action="deployAction",
include_skaffold_modules=[gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs(
configs=["my-config"],
git=gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs(
repo="http://github.com/example/example-repo.git",
path="configs/skaffold.yaml",
ref="main",
),
)],
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/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=gcp.clouddeploy.CustomTargetTypeCustomActionsArgs(
render_action="renderAction",
deploy_action="deployAction",
include_skaffold_modules=[gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs(
configs=["my-config"],
google_cloud_storage=gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorageArgs(
source="gs://example-bucket/dir/configs/*",
path="skaffold.yaml",
),
)],
))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/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=gcp.clouddeploy.CustomTargetTypeCustomActionsArgs(
render_action="renderAction",
deploy_action="deployAction",
include_skaffold_modules=[gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs(
configs=["my-config"],
google_cloud_build_repo=gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepoArgs(
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/v7/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=gcp.clouddeploy.CustomTargetTypeCustomActionsArgs(
deploy_action="string",
include_skaffold_modules=[gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleArgs(
configs=["string"],
git=gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs(
repo="string",
path="string",
ref="string",
),
google_cloud_build_repo=gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudBuildRepoArgs(
repository="string",
path="string",
ref="string",
),
google_cloud_storage=gcp.clouddeploy.CustomTargetTypeCustomActionsIncludeSkaffoldModuleGoogleCloudStorageArgs(
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
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. - Custom
Actions CustomTarget Type Custom Actions - 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. - Custom
Actions CustomTarget Type Custom Actions Args - 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. - custom
Actions CustomTarget Type Custom Actions - 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. - custom
Actions CustomTarget Type Custom Actions - 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 CustomTarget Type Custom Actions Args - 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. - custom
Actions 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:
- Create
Time string - Time at which the
CustomTargetType
was created. - Custom
Target stringType Id - Resource id of the
CustomTargetType
. - Effective
Annotations Dictionary<string, string> - Effective
Labels 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.
- Pulumi
Labels 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
. - Update
Time string - Time at which the
CustomTargetType
was updated.
- Create
Time string - Time at which the
CustomTargetType
was created. - Custom
Target stringType Id - Resource id of the
CustomTargetType
. - Effective
Annotations map[string]string - Effective
Labels 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.
- Pulumi
Labels 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
. - Update
Time string - Time at which the
CustomTargetType
was updated.
- create
Time String - Time at which the
CustomTargetType
was created. - custom
Target StringType Id - Resource id of the
CustomTargetType
. - effective
Annotations Map<String,String> - effective
Labels 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.
- pulumi
Labels 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
. - update
Time String - Time at which the
CustomTargetType
was updated.
- create
Time string - Time at which the
CustomTargetType
was created. - custom
Target stringType Id - Resource id of the
CustomTargetType
. - effective
Annotations {[key: string]: string} - effective
Labels {[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.
- pulumi
Labels {[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
. - update
Time string - Time at which the
CustomTargetType
was updated.
- create_
time str - Time at which the
CustomTargetType
was created. - custom_
target_ strtype_ id - 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.
- create
Time String - Time at which the
CustomTargetType
was created. - custom
Target StringType Id - Resource id of the
CustomTargetType
. - effective
Annotations Map<String> - effective
Labels 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.
- pulumi
Labels 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
. - update
Time 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.
- 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. - Create
Time string - Time at which the
CustomTargetType
was created. - Custom
Actions CustomTarget Type Custom Actions - Configures render and deploy for the
CustomTargetType
using Skaffold custom actions. Structure is documented below. - Custom
Target stringType Id - Resource id of the
CustomTargetType
. - Description string
- Description of the
CustomTargetType
. Max length is 255 characters. - Effective
Annotations Dictionary<string, string> - Effective
Labels 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.
- Pulumi
Labels 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
. - Update
Time 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. - Create
Time string - Time at which the
CustomTargetType
was created. - Custom
Actions CustomTarget Type Custom Actions Args - Configures render and deploy for the
CustomTargetType
using Skaffold custom actions. Structure is documented below. - Custom
Target stringType Id - Resource id of the
CustomTargetType
. - Description string
- Description of the
CustomTargetType
. Max length is 255 characters. - Effective
Annotations map[string]string - Effective
Labels 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.
- Pulumi
Labels 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
. - Update
Time 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. - create
Time String - Time at which the
CustomTargetType
was created. - custom
Actions CustomTarget Type Custom Actions - Configures render and deploy for the
CustomTargetType
using Skaffold custom actions. Structure is documented below. - custom
Target StringType Id - Resource id of the
CustomTargetType
. - description String
- Description of the
CustomTargetType
. Max length is 255 characters. - effective
Annotations Map<String,String> - effective
Labels 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.
- pulumi
Labels 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
. - update
Time 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. - create
Time string - Time at which the
CustomTargetType
was created. - custom
Actions CustomTarget Type Custom Actions - Configures render and deploy for the
CustomTargetType
using Skaffold custom actions. Structure is documented below. - custom
Target stringType Id - Resource id of the
CustomTargetType
. - description string
- Description of the
CustomTargetType
. Max length is 255 characters. - effective
Annotations {[key: string]: string} - effective
Labels {[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.
- pulumi
Labels {[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
. - update
Time 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 CustomTarget Type Custom Actions Args - Configures render and deploy for the
CustomTargetType
using Skaffold custom actions. Structure is documented below. - custom_
target_ strtype_ id - 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. - create
Time String - Time at which the
CustomTargetType
was created. - custom
Actions Property Map - Configures render and deploy for the
CustomTargetType
using Skaffold custom actions. Structure is documented below. - custom
Target StringType Id - Resource id of the
CustomTargetType
. - description String
- Description of the
CustomTargetType
. Max length is 255 characters. - effective
Annotations Map<String> - effective
Labels 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.
- pulumi
Labels 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
. - update
Time String - Time at which the
CustomTargetType
was updated.
Supporting Types
CustomTargetTypeCustomActions, CustomTargetTypeCustomActionsArgs
- Deploy
Action string - The Skaffold custom action responsible for deploy operations.
- Include
Skaffold List<CustomModules Target Type Custom Actions Include Skaffold Module> - List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
- Render
Action 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 string - The Skaffold custom action responsible for deploy operations.
- Include
Skaffold []CustomModules Target Type Custom Actions Include Skaffold Module - List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
- Render
Action 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 String - The Skaffold custom action responsible for deploy operations.
- include
Skaffold List<CustomModules Target Type Custom Actions Include Skaffold Module> - List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
- render
Action 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 string - The Skaffold custom action responsible for deploy operations.
- include
Skaffold CustomModules Target Type Custom Actions Include Skaffold Module[] - List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
- render
Action 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_ Sequence[Custommodules Target Type Custom Actions Include Skaffold Module] - 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
.
- deploy
Action String - The Skaffold custom action responsible for deploy operations.
- include
Skaffold List<Property Map>Modules - List of Skaffold modules Cloud Deploy will include in the Skaffold Config as required before performing diagnose. Structure is documented below.
- render
Action 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
Custom
Target Type Custom Actions Include Skaffold Module Git - Remote git repository containing the Skaffold Config modules. Structure is documented below.
- Google
Cloud CustomBuild Repo Target Type Custom Actions Include Skaffold Module Google Cloud Build Repo - Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
- Google
Cloud CustomStorage Target Type Custom Actions Include Skaffold Module Google Cloud Storage - Cloud Storage bucket containing Skaffold Config modules. Structure is documented below.
- Configs []string
- The Skaffold Config modules to use from the specified source.
- Git
Custom
Target Type Custom Actions Include Skaffold Module Git - Remote git repository containing the Skaffold Config modules. Structure is documented below.
- Google
Cloud CustomBuild Repo Target Type Custom Actions Include Skaffold Module Google Cloud Build Repo - Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
- Google
Cloud CustomStorage Target Type Custom Actions Include Skaffold Module Google Cloud Storage - 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
Custom
Target Type Custom Actions Include Skaffold Module Git - Remote git repository containing the Skaffold Config modules. Structure is documented below.
- google
Cloud CustomBuild Repo Target Type Custom Actions Include Skaffold Module Google Cloud Build Repo - Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
- google
Cloud CustomStorage Target Type Custom Actions Include Skaffold Module Google Cloud Storage - Cloud Storage bucket containing Skaffold Config modules. Structure is documented below.
- configs string[]
- The Skaffold Config modules to use from the specified source.
- git
Custom
Target Type Custom Actions Include Skaffold Module Git - Remote git repository containing the Skaffold Config modules. Structure is documented below.
- google
Cloud CustomBuild Repo Target Type Custom Actions Include Skaffold Module Google Cloud Build Repo - Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
- google
Cloud CustomStorage Target Type Custom Actions Include Skaffold Module Google Cloud Storage - 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
Custom
Target Type Custom Actions Include Skaffold Module Git - Remote git repository containing the Skaffold Config modules. Structure is documented below.
- google_
cloud_ Custombuild_ repo Target Type Custom Actions Include Skaffold Module Google Cloud Build Repo - Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
- google_
cloud_ Customstorage Target Type Custom Actions Include Skaffold Module Google Cloud Storage - 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.
- google
Cloud Property MapBuild Repo - Cloud Build 2nd gen repository containing the Skaffold Config modules. Structure is documented below.
- google
Cloud Property MapStorage - Cloud Storage bucket containing Skaffold Config modules. Structure is documented below.
CustomTargetTypeCustomActionsIncludeSkaffoldModuleGit, CustomTargetTypeCustomActionsIncludeSkaffoldModuleGitArgs
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
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.