DeploymentArgs

data class DeploymentArgs(val createPolicy: Output<String>? = null, val description: Output<String>? = null, val id: Output<String>? = null, val labels: Output<List<DeploymentLabelEntryArgs>>? = null, val name: Output<String>? = null, val preview: Output<Boolean>? = null, val project: Output<String>? = null, val target: Output<TargetConfigurationArgs>? = null) : ConvertibleToJava<DeploymentArgs>

Creates a deployment and all of the resources described by the deployment manifest.

Constructors

Link copied to clipboard
fun DeploymentArgs(createPolicy: Output<String>? = null, description: Output<String>? = null, id: Output<String>? = null, labels: Output<List<DeploymentLabelEntryArgs>>? = null, name: Output<String>? = null, preview: Output<Boolean>? = null, project: Output<String>? = null, target: Output<TargetConfigurationArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DeploymentArgs

Properties

Link copied to clipboard
val createPolicy: Output<String>? = null

Sets the policy to use for creating new resources.

Link copied to clipboard
val description: Output<String>? = null

An optional user-provided description of the deployment.

Link copied to clipboard
val id: Output<String>? = null
Link copied to clipboard
val labels: Output<List<DeploymentLabelEntryArgs>>? = null

Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?.

Link copied to clipboard
val name: Output<String>? = null

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Link copied to clipboard
val preview: Output<Boolean>? = null

If set to true, creates a deployment and creates "shell" resources but does not actually instantiate these resources. This allows you to preview what your deployment looks like. After previewing a deployment, you can deploy your resources by making a request with the update() method or you can use the cancelPreview() method to cancel the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val target: Output<TargetConfigurationArgs>? = null

Input Only The parameters that define your deployment, including the deployment configuration and relevant templates.