1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. deploymentmanager
  5. Deployment
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.deploymentmanager.Deployment

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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=gcp.deploymentmanager.DeploymentTargetArgs(
            config=gcp.deploymentmanager.DeploymentTargetConfigArgs(
                content=std.file(input="path/to/config.yml").result,
            ),
        ),
        labels=[gcp.deploymentmanager.DeploymentLabelArgs(
            key="foo",
            value="bar",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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: 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=gcp.deploymentmanager.DeploymentTargetArgs(
            config=gcp.deploymentmanager.DeploymentTargetConfigArgs(
                content="string",
            ),
            imports=[gcp.deploymentmanager.DeploymentTargetImportArgs(
                content="string",
                name="string",
            )],
        ),
        create_policy="string",
        delete_policy="string",
        description="string",
        labels=[gcp.deploymentmanager.DeploymentLabelArgs(
            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

    The Deployment resource accepts the following input properties:

    Target DeploymentTarget
    Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
    CreatePolicy 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"]
    DeletePolicy 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<DeploymentLabel>
    Key-value pairs to apply to this labels.
    Name string
    Unique name for the deployment
    Preview bool
    Project string
    Target DeploymentTargetArgs
    Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
    CreatePolicy 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"]
    DeletePolicy 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 []DeploymentLabelArgs
    Key-value pairs to apply to this labels.
    Name string
    Unique name for the deployment
    Preview bool
    Project string
    target DeploymentTarget
    Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
    createPolicy 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"]
    deletePolicy 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<DeploymentLabel>
    Key-value pairs to apply to this labels.
    name String
    Unique name for the deployment
    preview Boolean
    project String
    target DeploymentTarget
    Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
    createPolicy 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"]
    deletePolicy 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 DeploymentLabel[]
    Key-value pairs to apply to this labels.
    name string
    Unique name for the deployment
    preview boolean
    project string
    target DeploymentTargetArgs
    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[DeploymentLabelArgs]
    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.
    createPolicy 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"]
    deletePolicy 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:

    DeploymentId 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.
    SelfLink string
    Output only. Server defined URL for the resource.
    DeploymentId 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.
    SelfLink string
    Output only. Server defined URL for the resource.
    deploymentId 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.
    selfLink String
    Output only. Server defined URL for the resource.
    deploymentId 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.
    selfLink 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.
    deploymentId 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.
    selfLink 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.
    The following state arguments are supported:
    CreatePolicy 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"]
    DeletePolicy 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"]
    DeploymentId string
    Unique identifier for deployment. Output only.
    Description string
    Optional user-provided description of deployment.
    Labels List<DeploymentLabel>
    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
    SelfLink string
    Output only. Server defined URL for the resource.
    Target DeploymentTarget
    Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
    CreatePolicy 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"]
    DeletePolicy 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"]
    DeploymentId string
    Unique identifier for deployment. Output only.
    Description string
    Optional user-provided description of deployment.
    Labels []DeploymentLabelArgs
    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
    SelfLink string
    Output only. Server defined URL for the resource.
    Target DeploymentTargetArgs
    Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
    createPolicy 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"]
    deletePolicy 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"]
    deploymentId String
    Unique identifier for deployment. Output only.
    description String
    Optional user-provided description of deployment.
    labels List<DeploymentLabel>
    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
    selfLink String
    Output only. Server defined URL for the resource.
    target DeploymentTarget
    Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
    createPolicy 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"]
    deletePolicy 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"]
    deploymentId string
    Unique identifier for deployment. Output only.
    description string
    Optional user-provided description of deployment.
    labels DeploymentLabel[]
    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
    selfLink string
    Output only. Server defined URL for the resource.
    target DeploymentTarget
    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[DeploymentLabelArgs]
    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 DeploymentTargetArgs
    Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.
    createPolicy 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"]
    deletePolicy 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"]
    deploymentId 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
    selfLink 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

    Key string
    Key for label.
    Value string
    Value of label.
    Key string
    Key for label.
    Value string
    Value of label.
    key String
    Key for label.
    value String
    Value of label.
    key string
    Key for label.
    value string
    Value of label.
    key str
    Key for label.
    value str
    Value of label.
    key String
    Key for label.
    value String
    Value of label.

    DeploymentTarget, DeploymentTargetArgs

    Config DeploymentTargetConfig
    The root configuration file to use for this deployment. Structure is documented below.
    Imports List<DeploymentTargetImport>
    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 DeploymentTargetConfig
    The root configuration file to use for this deployment. Structure is documented below.
    Imports []DeploymentTargetImport
    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 DeploymentTargetConfig
    The root configuration file to use for this deployment. Structure is documented below.
    imports List<DeploymentTargetImport>
    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 DeploymentTargetConfig
    The root configuration file to use for this deployment. Structure is documented below.
    imports DeploymentTargetImport[]
    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 DeploymentTargetConfig
    The root configuration file to use for this deployment. Structure is documented below.
    imports Sequence[DeploymentTargetImport]
    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

    Content string
    The full contents of the template that you want to import.
    Name string
    The name of the template to import, as declared in the YAML configuration.


    Content string
    The full contents of the template that you want to import.
    Name string
    The name of the template to import, as declared in the YAML configuration.


    content String
    The full contents of the template that you want to import.
    name String
    The name of the template to import, as declared in the YAML configuration.


    content string
    The full contents of the template that you want to import.
    name string
    The name of the template to import, as declared in the YAML configuration.


    content str
    The full contents of the template that you want to import.
    name str
    The name of the template to import, as declared in the YAML configuration.


    content String
    The full contents of the template that you want to import.
    name String
    The name of the template to import, as declared in the YAML configuration.


    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi