deploymentmanager

package
v2.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

nolint: lll

nolint: lll

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	pulumi.CustomResourceState

	// 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.
	CreatePolicy pulumi.StringPtrOutput `pulumi:"createPolicy"`
	// 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.
	DeletePolicy pulumi.StringPtrOutput `pulumi:"deletePolicy"`
	// Unique identifier for deployment. Output only.
	DeploymentId pulumi.StringOutput `pulumi:"deploymentId"`
	// Optional user-provided description of deployment.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Key-value pairs to apply to this labels.
	Labels DeploymentLabelArrayOutput `pulumi:"labels"`
	// Output only. URL of the manifest representing the last manifest that was successfully deployed.
	Manifest pulumi.StringOutput `pulumi:"manifest"`
	// Unique name for the deployment
	Name pulumi.StringOutput `pulumi:"name"`
	// If set to true, a deployment is created with "shell" resources that are not actually instantiated. This allows you to
	// preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE**: Deployment Manager
	// does not allow update of a deployment in preview (unless updating to preview=false). Thus, Terraform will force-recreate
	// deployments if either preview is updated to true or if other fields are updated while preview is true.
	Preview pulumi.BoolPtrOutput `pulumi:"preview"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// Output only. Server defined URL for the resource.
	SelfLink pulumi.StringOutput `pulumi:"selfLink"`
	// Parameters that define your deployment, including the deployment configuration and relevant templates.
	Target DeploymentTargetOutput `pulumi:"target"`
}

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`).

> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/deployment_manager_deployment.html.markdown.

func GetDeployment

func GetDeployment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DeploymentState, opts ...pulumi.ResourceOption) (*Deployment, error)

GetDeployment gets an existing Deployment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDeployment

func NewDeployment(ctx *pulumi.Context,
	name string, args *DeploymentArgs, opts ...pulumi.ResourceOption) (*Deployment, error)

NewDeployment registers a new resource with the given unique name, arguments, and options.

type DeploymentArgs

type DeploymentArgs struct {
	// 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.
	CreatePolicy pulumi.StringPtrInput
	// 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.
	DeletePolicy pulumi.StringPtrInput
	// Optional user-provided description of deployment.
	Description pulumi.StringPtrInput
	// Key-value pairs to apply to this labels.
	Labels DeploymentLabelArrayInput
	// Unique name for the deployment
	Name pulumi.StringPtrInput
	// If set to true, a deployment is created with "shell" resources that are not actually instantiated. This allows you to
	// preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE**: Deployment Manager
	// does not allow update of a deployment in preview (unless updating to preview=false). Thus, Terraform will force-recreate
	// deployments if either preview is updated to true or if other fields are updated while preview is true.
	Preview pulumi.BoolPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Parameters that define your deployment, including the deployment configuration and relevant templates.
	Target DeploymentTargetInput
}

The set of arguments for constructing a Deployment resource.

func (DeploymentArgs) ElementType

func (DeploymentArgs) ElementType() reflect.Type

type DeploymentLabel

type DeploymentLabel struct {
	Key   *string `pulumi:"key"`
	Value *string `pulumi:"value"`
}

type DeploymentLabelArgs

type DeploymentLabelArgs struct {
	Key   pulumi.StringPtrInput `pulumi:"key"`
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (DeploymentLabelArgs) ElementType

func (DeploymentLabelArgs) ElementType() reflect.Type

func (DeploymentLabelArgs) ToDeploymentLabelOutput

func (i DeploymentLabelArgs) ToDeploymentLabelOutput() DeploymentLabelOutput

func (DeploymentLabelArgs) ToDeploymentLabelOutputWithContext

func (i DeploymentLabelArgs) ToDeploymentLabelOutputWithContext(ctx context.Context) DeploymentLabelOutput

type DeploymentLabelArray

type DeploymentLabelArray []DeploymentLabelInput

func (DeploymentLabelArray) ElementType

func (DeploymentLabelArray) ElementType() reflect.Type

func (DeploymentLabelArray) ToDeploymentLabelArrayOutput

func (i DeploymentLabelArray) ToDeploymentLabelArrayOutput() DeploymentLabelArrayOutput

func (DeploymentLabelArray) ToDeploymentLabelArrayOutputWithContext

func (i DeploymentLabelArray) ToDeploymentLabelArrayOutputWithContext(ctx context.Context) DeploymentLabelArrayOutput

type DeploymentLabelArrayInput

type DeploymentLabelArrayInput interface {
	pulumi.Input

	ToDeploymentLabelArrayOutput() DeploymentLabelArrayOutput
	ToDeploymentLabelArrayOutputWithContext(context.Context) DeploymentLabelArrayOutput
}

type DeploymentLabelArrayOutput

type DeploymentLabelArrayOutput struct{ *pulumi.OutputState }

func (DeploymentLabelArrayOutput) ElementType

func (DeploymentLabelArrayOutput) ElementType() reflect.Type

func (DeploymentLabelArrayOutput) Index

func (DeploymentLabelArrayOutput) ToDeploymentLabelArrayOutput

func (o DeploymentLabelArrayOutput) ToDeploymentLabelArrayOutput() DeploymentLabelArrayOutput

func (DeploymentLabelArrayOutput) ToDeploymentLabelArrayOutputWithContext

func (o DeploymentLabelArrayOutput) ToDeploymentLabelArrayOutputWithContext(ctx context.Context) DeploymentLabelArrayOutput

type DeploymentLabelInput

type DeploymentLabelInput interface {
	pulumi.Input

	ToDeploymentLabelOutput() DeploymentLabelOutput
	ToDeploymentLabelOutputWithContext(context.Context) DeploymentLabelOutput
}

type DeploymentLabelOutput

type DeploymentLabelOutput struct{ *pulumi.OutputState }

func (DeploymentLabelOutput) ElementType

func (DeploymentLabelOutput) ElementType() reflect.Type

func (DeploymentLabelOutput) Key

func (DeploymentLabelOutput) ToDeploymentLabelOutput

func (o DeploymentLabelOutput) ToDeploymentLabelOutput() DeploymentLabelOutput

func (DeploymentLabelOutput) ToDeploymentLabelOutputWithContext

func (o DeploymentLabelOutput) ToDeploymentLabelOutputWithContext(ctx context.Context) DeploymentLabelOutput

func (DeploymentLabelOutput) Value

type DeploymentState

type DeploymentState struct {
	// 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.
	CreatePolicy pulumi.StringPtrInput
	// 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.
	DeletePolicy pulumi.StringPtrInput
	// Unique identifier for deployment. Output only.
	DeploymentId pulumi.StringPtrInput
	// Optional user-provided description of deployment.
	Description pulumi.StringPtrInput
	// Key-value pairs to apply to this labels.
	Labels DeploymentLabelArrayInput
	// Output only. URL of the manifest representing the last manifest that was successfully deployed.
	Manifest pulumi.StringPtrInput
	// Unique name for the deployment
	Name pulumi.StringPtrInput
	// If set to true, a deployment is created with "shell" resources that are not actually instantiated. This allows you to
	// preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE**: Deployment Manager
	// does not allow update of a deployment in preview (unless updating to preview=false). Thus, Terraform will force-recreate
	// deployments if either preview is updated to true or if other fields are updated while preview is true.
	Preview pulumi.BoolPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Output only. Server defined URL for the resource.
	SelfLink pulumi.StringPtrInput
	// Parameters that define your deployment, including the deployment configuration and relevant templates.
	Target DeploymentTargetPtrInput
}

func (DeploymentState) ElementType

func (DeploymentState) ElementType() reflect.Type

type DeploymentTarget

type DeploymentTarget struct {
	Config  DeploymentTargetConfig   `pulumi:"config"`
	Imports []DeploymentTargetImport `pulumi:"imports"`
}

type DeploymentTargetArgs

type DeploymentTargetArgs struct {
	Config  DeploymentTargetConfigInput      `pulumi:"config"`
	Imports DeploymentTargetImportArrayInput `pulumi:"imports"`
}

func (DeploymentTargetArgs) ElementType

func (DeploymentTargetArgs) ElementType() reflect.Type

func (DeploymentTargetArgs) ToDeploymentTargetOutput

func (i DeploymentTargetArgs) ToDeploymentTargetOutput() DeploymentTargetOutput

func (DeploymentTargetArgs) ToDeploymentTargetOutputWithContext

func (i DeploymentTargetArgs) ToDeploymentTargetOutputWithContext(ctx context.Context) DeploymentTargetOutput

func (DeploymentTargetArgs) ToDeploymentTargetPtrOutput

func (i DeploymentTargetArgs) ToDeploymentTargetPtrOutput() DeploymentTargetPtrOutput

func (DeploymentTargetArgs) ToDeploymentTargetPtrOutputWithContext

func (i DeploymentTargetArgs) ToDeploymentTargetPtrOutputWithContext(ctx context.Context) DeploymentTargetPtrOutput

type DeploymentTargetConfig

type DeploymentTargetConfig struct {
	Content string `pulumi:"content"`
}

type DeploymentTargetConfigArgs

type DeploymentTargetConfigArgs struct {
	Content pulumi.StringInput `pulumi:"content"`
}

func (DeploymentTargetConfigArgs) ElementType

func (DeploymentTargetConfigArgs) ElementType() reflect.Type

func (DeploymentTargetConfigArgs) ToDeploymentTargetConfigOutput

func (i DeploymentTargetConfigArgs) ToDeploymentTargetConfigOutput() DeploymentTargetConfigOutput

func (DeploymentTargetConfigArgs) ToDeploymentTargetConfigOutputWithContext

func (i DeploymentTargetConfigArgs) ToDeploymentTargetConfigOutputWithContext(ctx context.Context) DeploymentTargetConfigOutput

type DeploymentTargetConfigInput

type DeploymentTargetConfigInput interface {
	pulumi.Input

	ToDeploymentTargetConfigOutput() DeploymentTargetConfigOutput
	ToDeploymentTargetConfigOutputWithContext(context.Context) DeploymentTargetConfigOutput
}

type DeploymentTargetConfigOutput

type DeploymentTargetConfigOutput struct{ *pulumi.OutputState }

func (DeploymentTargetConfigOutput) Content

func (DeploymentTargetConfigOutput) ElementType

func (DeploymentTargetConfigOutput) ToDeploymentTargetConfigOutput

func (o DeploymentTargetConfigOutput) ToDeploymentTargetConfigOutput() DeploymentTargetConfigOutput

func (DeploymentTargetConfigOutput) ToDeploymentTargetConfigOutputWithContext

func (o DeploymentTargetConfigOutput) ToDeploymentTargetConfigOutputWithContext(ctx context.Context) DeploymentTargetConfigOutput

type DeploymentTargetImport

type DeploymentTargetImport struct {
	Content *string `pulumi:"content"`
	Name    *string `pulumi:"name"`
}

type DeploymentTargetImportArgs

type DeploymentTargetImportArgs struct {
	Content pulumi.StringPtrInput `pulumi:"content"`
	Name    pulumi.StringPtrInput `pulumi:"name"`
}

func (DeploymentTargetImportArgs) ElementType

func (DeploymentTargetImportArgs) ElementType() reflect.Type

func (DeploymentTargetImportArgs) ToDeploymentTargetImportOutput

func (i DeploymentTargetImportArgs) ToDeploymentTargetImportOutput() DeploymentTargetImportOutput

func (DeploymentTargetImportArgs) ToDeploymentTargetImportOutputWithContext

func (i DeploymentTargetImportArgs) ToDeploymentTargetImportOutputWithContext(ctx context.Context) DeploymentTargetImportOutput

type DeploymentTargetImportArray

type DeploymentTargetImportArray []DeploymentTargetImportInput

func (DeploymentTargetImportArray) ElementType

func (DeploymentTargetImportArray) ToDeploymentTargetImportArrayOutput

func (i DeploymentTargetImportArray) ToDeploymentTargetImportArrayOutput() DeploymentTargetImportArrayOutput

func (DeploymentTargetImportArray) ToDeploymentTargetImportArrayOutputWithContext

func (i DeploymentTargetImportArray) ToDeploymentTargetImportArrayOutputWithContext(ctx context.Context) DeploymentTargetImportArrayOutput

type DeploymentTargetImportArrayInput

type DeploymentTargetImportArrayInput interface {
	pulumi.Input

	ToDeploymentTargetImportArrayOutput() DeploymentTargetImportArrayOutput
	ToDeploymentTargetImportArrayOutputWithContext(context.Context) DeploymentTargetImportArrayOutput
}

type DeploymentTargetImportArrayOutput

type DeploymentTargetImportArrayOutput struct{ *pulumi.OutputState }

func (DeploymentTargetImportArrayOutput) ElementType

func (DeploymentTargetImportArrayOutput) Index

func (DeploymentTargetImportArrayOutput) ToDeploymentTargetImportArrayOutput

func (o DeploymentTargetImportArrayOutput) ToDeploymentTargetImportArrayOutput() DeploymentTargetImportArrayOutput

func (DeploymentTargetImportArrayOutput) ToDeploymentTargetImportArrayOutputWithContext

func (o DeploymentTargetImportArrayOutput) ToDeploymentTargetImportArrayOutputWithContext(ctx context.Context) DeploymentTargetImportArrayOutput

type DeploymentTargetImportInput

type DeploymentTargetImportInput interface {
	pulumi.Input

	ToDeploymentTargetImportOutput() DeploymentTargetImportOutput
	ToDeploymentTargetImportOutputWithContext(context.Context) DeploymentTargetImportOutput
}

type DeploymentTargetImportOutput

type DeploymentTargetImportOutput struct{ *pulumi.OutputState }

func (DeploymentTargetImportOutput) Content

func (DeploymentTargetImportOutput) ElementType

func (DeploymentTargetImportOutput) Name

func (DeploymentTargetImportOutput) ToDeploymentTargetImportOutput

func (o DeploymentTargetImportOutput) ToDeploymentTargetImportOutput() DeploymentTargetImportOutput

func (DeploymentTargetImportOutput) ToDeploymentTargetImportOutputWithContext

func (o DeploymentTargetImportOutput) ToDeploymentTargetImportOutputWithContext(ctx context.Context) DeploymentTargetImportOutput

type DeploymentTargetInput

type DeploymentTargetInput interface {
	pulumi.Input

	ToDeploymentTargetOutput() DeploymentTargetOutput
	ToDeploymentTargetOutputWithContext(context.Context) DeploymentTargetOutput
}

type DeploymentTargetOutput

type DeploymentTargetOutput struct{ *pulumi.OutputState }

func (DeploymentTargetOutput) Config

func (DeploymentTargetOutput) ElementType

func (DeploymentTargetOutput) ElementType() reflect.Type

func (DeploymentTargetOutput) Imports

func (DeploymentTargetOutput) ToDeploymentTargetOutput

func (o DeploymentTargetOutput) ToDeploymentTargetOutput() DeploymentTargetOutput

func (DeploymentTargetOutput) ToDeploymentTargetOutputWithContext

func (o DeploymentTargetOutput) ToDeploymentTargetOutputWithContext(ctx context.Context) DeploymentTargetOutput

func (DeploymentTargetOutput) ToDeploymentTargetPtrOutput

func (o DeploymentTargetOutput) ToDeploymentTargetPtrOutput() DeploymentTargetPtrOutput

func (DeploymentTargetOutput) ToDeploymentTargetPtrOutputWithContext

func (o DeploymentTargetOutput) ToDeploymentTargetPtrOutputWithContext(ctx context.Context) DeploymentTargetPtrOutput

type DeploymentTargetPtrInput

type DeploymentTargetPtrInput interface {
	pulumi.Input

	ToDeploymentTargetPtrOutput() DeploymentTargetPtrOutput
	ToDeploymentTargetPtrOutputWithContext(context.Context) DeploymentTargetPtrOutput
}

type DeploymentTargetPtrOutput

type DeploymentTargetPtrOutput struct{ *pulumi.OutputState }

func (DeploymentTargetPtrOutput) Config

func (DeploymentTargetPtrOutput) Elem

func (DeploymentTargetPtrOutput) ElementType

func (DeploymentTargetPtrOutput) ElementType() reflect.Type

func (DeploymentTargetPtrOutput) Imports

func (DeploymentTargetPtrOutput) ToDeploymentTargetPtrOutput

func (o DeploymentTargetPtrOutput) ToDeploymentTargetPtrOutput() DeploymentTargetPtrOutput

func (DeploymentTargetPtrOutput) ToDeploymentTargetPtrOutputWithContext

func (o DeploymentTargetPtrOutput) ToDeploymentTargetPtrOutputWithContext(ctx context.Context) DeploymentTargetPtrOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL