DeploymentArgs class
The set of arguments for Deployment. The set of arguments for Deployment.
Constructors
-
DeploymentArgs({Input<
String?> ? createPolicy, Input<String?> ? deletePolicy, Input<String?> ? deletionPolicy, Input<String?> ? description, Input<List< ? labels, Input<DeploymentLabel> ?>String?> ? name, Input<bool?> ? preview, Input<String?> ? project, required Input<DeploymentTarget> target}) -
Creates a new DeploymentArgs.
createPolicySet the policy to use for creating new resources. Only used ondeletePolicySet the policy to use for deleting new resources on update/delete.deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.descriptionOptional user-provided description of deployment.labelsKey-value pairs to apply to this labels.nameUnique name for the deploymentpreviewIf set to true, a deployment is created with "shell" resourcesprojectThe ID of the project in which the resource belongs.targetParameters that define your deployment, including the deploymentconst -
DeploymentArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
createPolicy
→ Input<
String?> ? -
Set the policy to use for creating new resources. Only used on
create and update. Valid values are
CREATE_OR_ACQUIRE(default) orACQUIRE. If set toACQUIREand 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 isCREATE_OR_ACQUIRE. Possible values are:ACQUIRE,CREATE_OR_ACQUIRE.final -
deletePolicy
→ Input<
String?> ? -
Set the policy to use for deleting new resources on update/delete.
Valid values are
DELETE(default) orABANDON. IfDELETE, resource is deleted after removal from Deployment Manager. IfABANDON, 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 isDELETE. Possible values are:ABANDON,DELETE.final -
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
description
→ Input<
String?> ? -
Optional user-provided description of deployment.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ Input<
List< ?DeploymentLabel> ?> -
Key-value pairs to apply to this labels.
Structure is documented below.
final
-
name
→ Input<
String?> ? -
Unique name for the deployment
final
-
preview
→ Input<
bool?> ? -
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,
the provider will force-recreate deployments if either preview is updated
to true or if other fields are updated while preview is true.
final
-
project
→ Input<
String?> ? -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
target
→ Input<
DeploymentTarget> -
Parameters that define your deployment, including the deployment
configuration and relevant templates.
Structure is documented below.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited