All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.iot.kotlin.outputs.GetScheduledAuditResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.outputs

import com.pulumi.awsnative.iot.kotlin.enums.ScheduledAuditDayOfWeek
import com.pulumi.awsnative.iot.kotlin.enums.ScheduledAuditFrequency
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property dayOfMonth The day of the month on which the scheduled audit takes place. Can be 1 through 31 or LAST. This field is required if the frequency parameter is set to MONTHLY.
 * @property dayOfWeek The day of the week on which the scheduled audit takes place. Can be one of SUN, MON, TUE,WED, THU, FRI, or SAT. This field is required if the frequency parameter is set to WEEKLY or BIWEEKLY.
 * @property frequency How often the scheduled audit takes place. Can be one of DAILY, WEEKLY, BIWEEKLY, or MONTHLY.
 * @property scheduledAuditArn The ARN (Amazon resource name) of the scheduled audit.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property targetCheckNames Which checks are performed during the scheduled audit. Checks must be enabled for your account.
 */
public data class GetScheduledAuditResult(
    public val dayOfMonth: String? = null,
    public val dayOfWeek: ScheduledAuditDayOfWeek? = null,
    public val frequency: ScheduledAuditFrequency? = null,
    public val scheduledAuditArn: String? = null,
    public val tags: List? = null,
    public val targetCheckNames: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.GetScheduledAuditResult): GetScheduledAuditResult = GetScheduledAuditResult(
            dayOfMonth = javaType.dayOfMonth().map({ args0 -> args0 }).orElse(null),
            dayOfWeek = javaType.dayOfWeek().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iot.kotlin.enums.ScheduledAuditDayOfWeek.Companion.toKotlin(args0)
                })
            }).orElse(null),
            frequency = javaType.frequency().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iot.kotlin.enums.ScheduledAuditFrequency.Companion.toKotlin(args0)
                })
            }).orElse(null),
            scheduledAuditArn = javaType.scheduledAuditArn().map({ args0 -> args0 }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            targetCheckNames = javaType.targetCheckNames().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy