
com.pulumi.gcp.securityposture.kotlin.PostureDeploymentArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.securityposture.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.securityposture.PostureDeploymentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Represents a deployment of a security posture on a resource. A posture contains user curated policy sets. A posture can
* be deployed on a project or on a folder or on an organization. To deploy a posture we need to populate the posture's name
* and its revision_id in the posture deployment configuration. Every update to a deployed posture generates a new revision_id.
* Thus, the updated revision_id should be used in the respective posture deployment's configuration to deploy that posture
* on a resource.
* To get more information about PostureDeployment, see:
* * How-to Guides
* * [Create and deploy a posture](https://cloud.google.com/security-command-center/docs/how-to-use-security-posture)
* ## Import
* PostureDeployment can be imported using any of these accepted formats:
* * `{{parent}}/locations/{{location}}/postureDeployments/{{posture_deployment_id}}`
* When using the `pulumi import` command, PostureDeployment can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:securityposture/postureDeployment:PostureDeployment default {{parent}}/locations/{{location}}/postureDeployments/{{posture_deployment_id}}
* ```
* @property description Description of the posture deployment.
* @property location The location of the resource, eg. global`.
* @property parent The parent of the resource, an organization. Format should be `organizations/{organization_id}`.
* @property postureDeploymentId ID of the posture deployment.
* - - -
* @property postureId Relative name of the posture which needs to be deployed. It should be in the format:
* organizations/{organization_id}/locations/{location}/postures/{posture_id}
* @property postureRevisionId Revision_id the posture which needs to be deployed.
* @property targetResource The resource on which the posture should be deployed. This can be in one of the following formats:
* projects/{project_number},
* folders/{folder_number},
* organizations/{organization_id}
*/
public data class PostureDeploymentArgs(
public val description: Output? = null,
public val location: Output? = null,
public val parent: Output? = null,
public val postureDeploymentId: Output? = null,
public val postureId: Output? = null,
public val postureRevisionId: Output? = null,
public val targetResource: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.securityposture.PostureDeploymentArgs =
com.pulumi.gcp.securityposture.PostureDeploymentArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.parent(parent?.applyValue({ args0 -> args0 }))
.postureDeploymentId(postureDeploymentId?.applyValue({ args0 -> args0 }))
.postureId(postureId?.applyValue({ args0 -> args0 }))
.postureRevisionId(postureRevisionId?.applyValue({ args0 -> args0 }))
.targetResource(targetResource?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PostureDeploymentArgs].
*/
@PulumiTagMarker
public class PostureDeploymentArgsBuilder internal constructor() {
private var description: Output? = null
private var location: Output? = null
private var parent: Output? = null
private var postureDeploymentId: Output? = null
private var postureId: Output? = null
private var postureRevisionId: Output? = null
private var targetResource: Output? = null
/**
* @param value Description of the posture deployment.
*/
@JvmName("wbjdyigiowlmndmq")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The location of the resource, eg. global`.
*/
@JvmName("qptedlgcdvbxikdt")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The parent of the resource, an organization. Format should be `organizations/{organization_id}`.
*/
@JvmName("newawbqmkrmomvia")
public suspend fun parent(`value`: Output) {
this.parent = value
}
/**
* @param value ID of the posture deployment.
* - - -
*/
@JvmName("wpytxsnptntqektx")
public suspend fun postureDeploymentId(`value`: Output) {
this.postureDeploymentId = value
}
/**
* @param value Relative name of the posture which needs to be deployed. It should be in the format:
* organizations/{organization_id}/locations/{location}/postures/{posture_id}
*/
@JvmName("rbkpaldyrknrtife")
public suspend fun postureId(`value`: Output) {
this.postureId = value
}
/**
* @param value Revision_id the posture which needs to be deployed.
*/
@JvmName("embsvgfhwiagftkj")
public suspend fun postureRevisionId(`value`: Output) {
this.postureRevisionId = value
}
/**
* @param value The resource on which the posture should be deployed. This can be in one of the following formats:
* projects/{project_number},
* folders/{folder_number},
* organizations/{organization_id}
*/
@JvmName("yrwqyjypvvgtlkjk")
public suspend fun targetResource(`value`: Output) {
this.targetResource = value
}
/**
* @param value Description of the posture deployment.
*/
@JvmName("ryfnekgwupbniqqu")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The location of the resource, eg. global`.
*/
@JvmName("ktmqvypkhboriixu")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The parent of the resource, an organization. Format should be `organizations/{organization_id}`.
*/
@JvmName("muwxmppnkcojyugx")
public suspend fun parent(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parent = mapped
}
/**
* @param value ID of the posture deployment.
* - - -
*/
@JvmName("ovicafnxkbulrscv")
public suspend fun postureDeploymentId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.postureDeploymentId = mapped
}
/**
* @param value Relative name of the posture which needs to be deployed. It should be in the format:
* organizations/{organization_id}/locations/{location}/postures/{posture_id}
*/
@JvmName("rbplubdbtbpehkej")
public suspend fun postureId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.postureId = mapped
}
/**
* @param value Revision_id the posture which needs to be deployed.
*/
@JvmName("ucswoenubkbfdidf")
public suspend fun postureRevisionId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.postureRevisionId = mapped
}
/**
* @param value The resource on which the posture should be deployed. This can be in one of the following formats:
* projects/{project_number},
* folders/{folder_number},
* organizations/{organization_id}
*/
@JvmName("geduxoeterudwkce")
public suspend fun targetResource(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.targetResource = mapped
}
internal fun build(): PostureDeploymentArgs = PostureDeploymentArgs(
description = description,
location = location,
parent = parent,
postureDeploymentId = postureDeploymentId,
postureId = postureId,
postureRevisionId = postureRevisionId,
targetResource = targetResource,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy