
com.pulumi.awsnative.securityhub.kotlin.inputs.StandardsControlArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.securityhub.kotlin.inputs
import com.pulumi.awsnative.securityhub.inputs.StandardsControlArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides details about an individual security control. For a list of ASH controls, see [controls reference](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-controls-reference.html) in the *User Guide*.
* @property reason A user-defined reason for changing a control's enablement status in a specified standard. If you are disabling a control, then this property is required.
* @property standardsControlArn The Amazon Resource Name (ARN) of the control.
*/
public data class StandardsControlArgs(
public val reason: Output? = null,
public val standardsControlArn: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.securityhub.inputs.StandardsControlArgs =
com.pulumi.awsnative.securityhub.inputs.StandardsControlArgs.builder()
.reason(reason?.applyValue({ args0 -> args0 }))
.standardsControlArn(standardsControlArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StandardsControlArgs].
*/
@PulumiTagMarker
public class StandardsControlArgsBuilder internal constructor() {
private var reason: Output? = null
private var standardsControlArn: Output? = null
/**
* @param value A user-defined reason for changing a control's enablement status in a specified standard. If you are disabling a control, then this property is required.
*/
@JvmName("gpyajdalxbcpmkkp")
public suspend fun reason(`value`: Output) {
this.reason = value
}
/**
* @param value The Amazon Resource Name (ARN) of the control.
*/
@JvmName("vbjslhtvfdusbvfy")
public suspend fun standardsControlArn(`value`: Output) {
this.standardsControlArn = value
}
/**
* @param value A user-defined reason for changing a control's enablement status in a specified standard. If you are disabling a control, then this property is required.
*/
@JvmName("uiwrxeghtuhwdkmi")
public suspend fun reason(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.reason = mapped
}
/**
* @param value The Amazon Resource Name (ARN) of the control.
*/
@JvmName("oygwgdlvbuasampl")
public suspend fun standardsControlArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.standardsControlArn = mapped
}
internal fun build(): StandardsControlArgs = StandardsControlArgs(
reason = reason,
standardsControlArn = standardsControlArn ?: throw PulumiNullFieldException("standardsControlArn"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy