
com.pulumi.awsnative.iot.kotlin.AccountAuditConfiguration.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
import com.pulumi.awsnative.iot.kotlin.outputs.AccountAuditConfigurationAuditCheckConfigurations
import com.pulumi.awsnative.iot.kotlin.outputs.AccountAuditConfigurationAuditNotificationTargetConfigurations
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.iot.kotlin.outputs.AccountAuditConfigurationAuditCheckConfigurations.Companion.toKotlin as accountAuditConfigurationAuditCheckConfigurationsToKotlin
import com.pulumi.awsnative.iot.kotlin.outputs.AccountAuditConfigurationAuditNotificationTargetConfigurations.Companion.toKotlin as accountAuditConfigurationAuditNotificationTargetConfigurationsToKotlin
/**
* Builder for [AccountAuditConfiguration].
*/
@PulumiTagMarker
public class AccountAuditConfigurationResourceBuilder internal constructor() {
public var name: String? = null
public var args: AccountAuditConfigurationArgs = AccountAuditConfigurationArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend AccountAuditConfigurationArgsBuilder.() -> Unit) {
val builder = AccountAuditConfigurationArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): AccountAuditConfiguration {
val builtJavaResource =
com.pulumi.awsnative.iot.AccountAuditConfiguration(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return AccountAuditConfiguration(builtJavaResource)
}
}
/**
* Configures the Device Defender audit settings for this account. Settings include how audit notifications are sent and which audit checks are enabled or disabled.
*/
public class AccountAuditConfiguration internal constructor(
override val javaResource: com.pulumi.awsnative.iot.AccountAuditConfiguration,
) : KotlinCustomResource(javaResource, AccountAuditConfigurationMapper) {
/**
* Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
*/
public val accountId: Output
get() = javaResource.accountId().applyValue({ args0 -> args0 })
/**
* Specifies which audit checks are enabled and disabled for this account.
* Some data collection might start immediately when certain checks are enabled. When a check is disabled, any data collected so far in relation to the check is deleted. To disable a check, set the value of the `Enabled:` key to `false` .
* If an enabled check is removed from the template, it will also be disabled.
* You can't disable a check if it's used by any scheduled audit. You must delete the check from the scheduled audit or delete the scheduled audit itself to disable the check.
* For more information on avialbe auidt checks see [AWS::IoT::AccountAuditConfiguration AuditCheckConfigurations](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-accountauditconfiguration-auditcheckconfigurations.html)
*/
public val auditCheckConfigurations: Output
get() = javaResource.auditCheckConfigurations().applyValue({ args0 ->
args0.let({ args0 ->
accountAuditConfigurationAuditCheckConfigurationsToKotlin(args0)
})
})
/**
* Information about the targets to which audit notifications are sent.
*/
public val auditNotificationTargetConfigurations:
Output?
get() = javaResource.auditNotificationTargetConfigurations().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
accountAuditConfigurationAuditNotificationTargetConfigurationsToKotlin(args0)
})
}).orElse(null)
})
/**
* The ARN of the role that grants permission to AWS IoT to access information about your devices, policies, certificates and other items as required when performing an audit.
*/
public val roleArn: Output
get() = javaResource.roleArn().applyValue({ args0 -> args0 })
}
public object AccountAuditConfigurationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.iot.AccountAuditConfiguration::class == javaResource::class
override fun map(javaResource: Resource): AccountAuditConfiguration =
AccountAuditConfiguration(javaResource as com.pulumi.awsnative.iot.AccountAuditConfiguration)
}
/**
* @see [AccountAuditConfiguration].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [AccountAuditConfiguration].
*/
public suspend fun accountAuditConfiguration(
name: String,
block: suspend AccountAuditConfigurationResourceBuilder.() -> Unit,
): AccountAuditConfiguration {
val builder = AccountAuditConfigurationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [AccountAuditConfiguration].
* @param name The _unique_ name of the resulting resource.
*/
public fun accountAuditConfiguration(name: String): AccountAuditConfiguration {
val builder = AccountAuditConfigurationResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy