gcp.deploymentmanager.Deployment
Explore with Pulumi AI
A collection of resources that are deployed and managed together using a configuration file
Warning: This resource is intended only to manage a Deployment resource, and attempts to manage the Deployment’s resources in the provider as well will likely result in errors or unexpected behavior as the two tools fight over ownership. We strongly discourage doing so unless you are an experienced user of both tools.
In addition, due to limitations of the API, the provider will treat
deployments in preview as recreate-only for any update operation other
than actually deploying an in-preview deployment (i.e. preview=true
to
preview=false
).
Example Usage
Deployment Manager Deployment Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as std from "@pulumi/std";
const deployment = new gcp.deploymentmanager.Deployment("deployment", {
name: "my-deployment",
target: {
config: {
content: std.file({
input: "path/to/config.yml",
}).then(invoke => invoke.result),
},
},
labels: [{
key: "foo",
value: "bar",
}],
});
import pulumi
import pulumi_gcp as gcp
import pulumi_std as std
deployment = gcp.deploymentmanager.Deployment("deployment",
name="my-deployment",
target={
"config": {
"content": std.file(input="path/to/config.yml").result,
},
},
labels=[{
"key": "foo",
"value": "bar",
}])
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/deploymentmanager"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
invokeFile, err := std.File(ctx, &std.FileArgs{
Input: "path/to/config.yml",
}, nil)
if err != nil {
return err
}
_, err = deploymentmanager.NewDeployment(ctx, "deployment", &deploymentmanager.DeploymentArgs{
Name: pulumi.String("my-deployment"),
Target: &deploymentmanager.DeploymentTargetArgs{
Config: &deploymentmanager.DeploymentTargetConfigArgs{
Content: pulumi.String(invokeFile.Result),
},
},
Labels: deploymentmanager.DeploymentLabelArray{
&deploymentmanager.DeploymentLabelArgs{
Key: pulumi.String("foo"),
Value: pulumi.String("bar"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var deployment = new Gcp.DeploymentManager.Deployment("deployment", new()
{
Name = "my-deployment",
Target = new Gcp.DeploymentManager.Inputs.DeploymentTargetArgs
{
Config = new Gcp.DeploymentManager.Inputs.DeploymentTargetConfigArgs
{
Content = Std.File.Invoke(new()
{
Input = "path/to/config.yml",
}).Apply(invoke => invoke.Result),
},
},
Labels = new[]
{
new Gcp.DeploymentManager.Inputs.DeploymentLabelArgs
{
Key = "foo",
Value = "bar",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.deploymentmanager.Deployment;
import com.pulumi.gcp.deploymentmanager.DeploymentArgs;
import com.pulumi.gcp.deploymentmanager.inputs.DeploymentTargetArgs;
import com.pulumi.gcp.deploymentmanager.inputs.DeploymentTargetConfigArgs;
import com.pulumi.gcp.deploymentmanager.inputs.DeploymentLabelArgs;
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 deployment = new Deployment("deployment", DeploymentArgs.builder()
.name("my-deployment")
.target(DeploymentTargetArgs.builder()
.config(DeploymentTargetConfigArgs.builder()
.content(StdFunctions.file(FileArgs.builder()
.input("path/to/config.yml")
.build()).result())
.build())
.build())
.labels(DeploymentLabelArgs.builder()
.key("foo")
.value("bar")
.build())
.build());
}
}
resources:
deployment:
type: gcp:deploymentmanager:Deployment
properties:
name: my-deployment
target:
config:
content:
fn::invoke:
Function: std:file
Arguments:
input: path/to/config.yml
Return: result
labels:
- key: foo
value: bar
Import
Deployment can be imported using any of these accepted formats:
projects/{{project}}/deployments/{{name}}
{{project}}/{{name}}
{{name}}
When using the pulumi import
command, Deployment can be imported using one of the formats above. For example:
$ pulumi import gcp:deploymentmanager/deployment:Deployment default projects/{{project}}/deployments/{{name}}
$ pulumi import gcp:deploymentmanager/deployment:Deployment default {{project}}/{{name}}
$ pulumi import gcp:deploymentmanager/deployment:Deployment default {{name}}
Create Deployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);
@overload
def Deployment(resource_name: str,
args: DeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Deployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
target: Optional[DeploymentTargetArgs] = None,
create_policy: Optional[str] = None,
delete_policy: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Sequence[DeploymentLabelArgs]] = None,
name: Optional[str] = None,
preview: Optional[bool] = None,
project: Optional[str] = None)
func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)
public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
public Deployment(String name, DeploymentArgs args)
public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
type: gcp:deploymentmanager:Deployment
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 DeploymentArgs
- 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 DeploymentArgs
- 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 DeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeploymentArgs
- 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 deploymentResource = new Gcp.DeploymentManager.Deployment("deploymentResource", new()
{
Target = new Gcp.DeploymentManager.Inputs.DeploymentTargetArgs
{
Config = new Gcp.DeploymentManager.Inputs.DeploymentTargetConfigArgs
{
Content = "string",
},
Imports = new[]
{
new Gcp.DeploymentManager.Inputs.DeploymentTargetImportArgs
{
Content = "string",
Name = "string",
},
},
},
CreatePolicy = "string",
DeletePolicy = "string",
Description = "string",
Labels = new[]
{
new Gcp.DeploymentManager.Inputs.DeploymentLabelArgs
{
Key = "string",
Value = "string",
},
},
Name = "string",
Preview = false,
Project = "string",
});
example, err := deploymentmanager.NewDeployment(ctx, "deploymentResource", &deploymentmanager.DeploymentArgs{
Target: &deploymentmanager.DeploymentTargetArgs{
Config: &deploymentmanager.DeploymentTargetConfigArgs{
Content: pulumi.String("string"),
},
Imports: deploymentmanager.DeploymentTargetImportArray{
&deploymentmanager.DeploymentTargetImportArgs{
Content: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
CreatePolicy: pulumi.String("string"),
DeletePolicy: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: deploymentmanager.DeploymentLabelArray{
&deploymentmanager.DeploymentLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Preview: pulumi.Bool(false),
Project: pulumi.String("string"),
})
var deploymentResource = new Deployment("deploymentResource", DeploymentArgs.builder()
.target(DeploymentTargetArgs.builder()
.config(DeploymentTargetConfigArgs.builder()
.content("string")
.build())
.imports(DeploymentTargetImportArgs.builder()
.content("string")
.name("string")
.build())
.build())
.createPolicy("string")
.deletePolicy("string")
.description("string")
.labels(DeploymentLabelArgs.builder()
.key("string")
.value("string")
.build())
.name("string")
.preview(false)
.project("string")
.build());
deployment_resource = gcp.deploymentmanager.Deployment("deploymentResource",
target={
"config": {
"content": "string",
},
"imports": [{
"content": "string",
"name": "string",
}],
},
create_policy="string",
delete_policy="string",
description="string",
labels=[{
"key": "string",
"value": "string",
}],
name="string",
preview=False,
project="string")
const deploymentResource = new gcp.deploymentmanager.Deployment("deploymentResource", {
target: {
config: {
content: "string",
},
imports: [{
content: "string",
name: "string",
}],
},
createPolicy: "string",
deletePolicy: "string",
description: "string",
labels: [{
key: "string",
value: "string",
}],
name: "string",
preview: false,
project: "string",
});
type: gcp:deploymentmanager:Deployment
properties:
createPolicy: string
deletePolicy: string
description: string
labels:
- key: string
value: string
name: string
preview: false
project: string
target:
config:
content: string
imports:
- content: string
name: string
Deployment 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 Deployment resource accepts the following input properties:
- Target
Deployment
Target - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- Create
Policy string - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- Delete
Policy string - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- Description string
- Optional user-provided description of deployment.
- Labels
List<Deployment
Label> - Key-value pairs to apply to this labels.
- Name string
- Unique name for the deployment
- Preview bool
- Project string
- Target
Deployment
Target Args - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- Create
Policy string - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- Delete
Policy string - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- Description string
- Optional user-provided description of deployment.
- Labels
[]Deployment
Label Args - Key-value pairs to apply to this labels.
- Name string
- Unique name for the deployment
- Preview bool
- Project string
- target
Deployment
Target - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- create
Policy String - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- delete
Policy String - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- description String
- Optional user-provided description of deployment.
- labels
List<Deployment
Label> - Key-value pairs to apply to this labels.
- name String
- Unique name for the deployment
- preview Boolean
- project String
- target
Deployment
Target - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- create
Policy string - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- delete
Policy string - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- description string
- Optional user-provided description of deployment.
- labels
Deployment
Label[] - Key-value pairs to apply to this labels.
- name string
- Unique name for the deployment
- preview boolean
- project string
- target
Deployment
Target Args - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- create_
policy str - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- delete_
policy str - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- description str
- Optional user-provided description of deployment.
- labels
Sequence[Deployment
Label Args] - Key-value pairs to apply to this labels.
- name str
- Unique name for the deployment
- preview bool
- project str
- target Property Map
- Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- create
Policy String - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- delete
Policy String - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- description String
- Optional user-provided description of deployment.
- labels List<Property Map>
- Key-value pairs to apply to this labels.
- name String
- Unique name for the deployment
- preview Boolean
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Deployment resource produces the following output properties:
- Deployment
Id string - Unique identifier for deployment. Output only.
- Id string
- The provider-assigned unique ID for this managed resource.
- Manifest string
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- Self
Link string - Output only. Server defined URL for the resource.
- Deployment
Id string - Unique identifier for deployment. Output only.
- Id string
- The provider-assigned unique ID for this managed resource.
- Manifest string
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- Self
Link string - Output only. Server defined URL for the resource.
- deployment
Id String - Unique identifier for deployment. Output only.
- id String
- The provider-assigned unique ID for this managed resource.
- manifest String
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- self
Link String - Output only. Server defined URL for the resource.
- deployment
Id string - Unique identifier for deployment. Output only.
- id string
- The provider-assigned unique ID for this managed resource.
- manifest string
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- self
Link string - Output only. Server defined URL for the resource.
- deployment_
id str - Unique identifier for deployment. Output only.
- id str
- The provider-assigned unique ID for this managed resource.
- manifest str
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- self_
link str - Output only. Server defined URL for the resource.
- deployment
Id String - Unique identifier for deployment. Output only.
- id String
- The provider-assigned unique ID for this managed resource.
- manifest String
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- self
Link String - Output only. Server defined URL for the resource.
Look up Existing Deployment Resource
Get an existing Deployment 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?: DeploymentState, opts?: CustomResourceOptions): Deployment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_policy: Optional[str] = None,
delete_policy: Optional[str] = None,
deployment_id: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Sequence[DeploymentLabelArgs]] = None,
manifest: Optional[str] = None,
name: Optional[str] = None,
preview: Optional[bool] = None,
project: Optional[str] = None,
self_link: Optional[str] = None,
target: Optional[DeploymentTargetArgs] = None) -> Deployment
func GetDeployment(ctx *Context, name string, id IDInput, state *DeploymentState, opts ...ResourceOption) (*Deployment, error)
public static Deployment Get(string name, Input<string> id, DeploymentState? state, CustomResourceOptions? opts = null)
public static Deployment get(String name, Output<String> id, DeploymentState 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.
- Create
Policy string - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- Delete
Policy string - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- Deployment
Id string - Unique identifier for deployment. Output only.
- Description string
- Optional user-provided description of deployment.
- Labels
List<Deployment
Label> - Key-value pairs to apply to this labels.
- Manifest string
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- Name string
- Unique name for the deployment
- Preview bool
- Project string
- Self
Link string - Output only. Server defined URL for the resource.
- Target
Deployment
Target - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- Create
Policy string - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- Delete
Policy string - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- Deployment
Id string - Unique identifier for deployment. Output only.
- Description string
- Optional user-provided description of deployment.
- Labels
[]Deployment
Label Args - Key-value pairs to apply to this labels.
- Manifest string
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- Name string
- Unique name for the deployment
- Preview bool
- Project string
- Self
Link string - Output only. Server defined URL for the resource.
- Target
Deployment
Target Args - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- create
Policy String - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- delete
Policy String - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- deployment
Id String - Unique identifier for deployment. Output only.
- description String
- Optional user-provided description of deployment.
- labels
List<Deployment
Label> - Key-value pairs to apply to this labels.
- manifest String
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- name String
- Unique name for the deployment
- preview Boolean
- project String
- self
Link String - Output only. Server defined URL for the resource.
- target
Deployment
Target - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- create
Policy string - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- delete
Policy string - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- deployment
Id string - Unique identifier for deployment. Output only.
- description string
- Optional user-provided description of deployment.
- labels
Deployment
Label[] - Key-value pairs to apply to this labels.
- manifest string
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- name string
- Unique name for the deployment
- preview boolean
- project string
- self
Link string - Output only. Server defined URL for the resource.
- target
Deployment
Target - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- create_
policy str - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- delete_
policy str - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- deployment_
id str - Unique identifier for deployment. Output only.
- description str
- Optional user-provided description of deployment.
- labels
Sequence[Deployment
Label Args] - Key-value pairs to apply to this labels.
- manifest str
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- name str
- Unique name for the deployment
- preview bool
- project str
- self_
link str - Output only. Server defined URL for the resource.
- target
Deployment
Target Args - Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
- create
Policy String - Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"]
- delete
Policy String - Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"]
- deployment
Id String - Unique identifier for deployment. Output only.
- description String
- Optional user-provided description of deployment.
- labels List<Property Map>
- Key-value pairs to apply to this labels.
- manifest String
- Output only. URL of the manifest representing the last manifest that was successfully deployed.
- name String
- Unique name for the deployment
- preview Boolean
- project String
- self
Link String - Output only. Server defined URL for the resource.
- target Property Map
- Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
Supporting Types
DeploymentLabel, DeploymentLabelArgs
DeploymentTarget, DeploymentTargetArgs
- Config
Deployment
Target Config - The root configuration file to use for this deployment. Structure is documented below.
- Imports
List<Deployment
Target Import> - Specifies import files for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. Structure is documented below.
- Config
Deployment
Target Config - The root configuration file to use for this deployment. Structure is documented below.
- Imports
[]Deployment
Target Import - Specifies import files for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. Structure is documented below.
- config
Deployment
Target Config - The root configuration file to use for this deployment. Structure is documented below.
- imports
List<Deployment
Target Import> - Specifies import files for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. Structure is documented below.
- config
Deployment
Target Config - The root configuration file to use for this deployment. Structure is documented below.
- imports
Deployment
Target Import[] - Specifies import files for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. Structure is documented below.
- config
Deployment
Target Config - The root configuration file to use for this deployment. Structure is documented below.
- imports
Sequence[Deployment
Target Import] - Specifies import files for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. Structure is documented below.
- config Property Map
- The root configuration file to use for this deployment. Structure is documented below.
- imports List<Property Map>
- Specifies import files for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. Structure is documented below.
DeploymentTargetConfig, DeploymentTargetConfigArgs
- Content string
- The full YAML contents of your configuration file.
- Content string
- The full YAML contents of your configuration file.
- content String
- The full YAML contents of your configuration file.
- content string
- The full YAML contents of your configuration file.
- content str
- The full YAML contents of your configuration file.
- content String
- The full YAML contents of your configuration file.
DeploymentTargetImport, DeploymentTargetImportArgs
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.