com.pulumi.awsnative.iot.kotlin.outputs.MitigationActionActionParams.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.iot.kotlin.outputs
import kotlin.Suppress
/**
* The set of parameters for this mitigation action. You can specify only one type of parameter (in other words, you can apply only one action for each defined mitigation action).
* @property addThingsToThingGroupParams Specifies the group to which you want to add the devices.
* @property enableIoTLoggingParams Specifies the logging level and the role with permissions for logging. You cannot specify a logging level of `DISABLED` .
* @property publishFindingToSnsParams Specifies the topic to which the finding should be published.
* @property replaceDefaultPolicyVersionParams Replaces the policy version with a default or blank policy. You specify the template name. Only a value of `BLANK_POLICY` is currently supported.
* @property updateCaCertificateParams Specifies the new state for the CA certificate. Only a value of `DEACTIVATE` is currently supported.
* @property updateDeviceCertificateParams Specifies the new state for a device certificate. Only a value of `DEACTIVATE` is currently supported.
*/
public data class MitigationActionActionParams(
public val addThingsToThingGroupParams: MitigationActionAddThingsToThingGroupParams? = null,
public val enableIoTLoggingParams: MitigationActionEnableIoTLoggingParams? = null,
public val publishFindingToSnsParams: MitigationActionPublishFindingToSnsParams? = null,
public val replaceDefaultPolicyVersionParams: MitigationActionReplaceDefaultPolicyVersionParams? =
null,
public val updateCaCertificateParams: MitigationActionUpdateCaCertificateParams? = null,
public val updateDeviceCertificateParams: MitigationActionUpdateDeviceCertificateParams? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.MitigationActionActionParams): MitigationActionActionParams = MitigationActionActionParams(
addThingsToThingGroupParams = javaType.addThingsToThingGroupParams().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.outputs.MitigationActionAddThingsToThingGroupParams.Companion.toKotlin(args0)
})
}).orElse(null),
enableIoTLoggingParams = javaType.enableIoTLoggingParams().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.outputs.MitigationActionEnableIoTLoggingParams.Companion.toKotlin(args0)
})
}).orElse(null),
publishFindingToSnsParams = javaType.publishFindingToSnsParams().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.outputs.MitigationActionPublishFindingToSnsParams.Companion.toKotlin(args0)
})
}).orElse(null),
replaceDefaultPolicyVersionParams = javaType.replaceDefaultPolicyVersionParams().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.outputs.MitigationActionReplaceDefaultPolicyVersionParams.Companion.toKotlin(args0)
})
}).orElse(null),
updateCaCertificateParams = javaType.updateCaCertificateParams().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.outputs.MitigationActionUpdateCaCertificateParams.Companion.toKotlin(args0)
})
}).orElse(null),
updateDeviceCertificateParams = javaType.updateDeviceCertificateParams().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iot.kotlin.outputs.MitigationActionUpdateDeviceCertificateParams.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}