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

com.pulumi.awsnative.backup.kotlin.ReportPlanArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.backup.kotlin

import com.pulumi.awsnative.backup.ReportPlanArgs.builder
import com.pulumi.awsnative.backup.kotlin.inputs.ReportDeliveryChannelPropertiesArgs
import com.pulumi.awsnative.backup.kotlin.inputs.ReportDeliveryChannelPropertiesArgsBuilder
import com.pulumi.awsnative.backup.kotlin.inputs.ReportSettingPropertiesArgs
import com.pulumi.awsnative.backup.kotlin.inputs.ReportSettingPropertiesArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Contains detailed information about a report plan in AWS Backup Audit Manager.
 * @property reportDeliveryChannel A structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
 * @property reportPlanDescription An optional description of the report plan with a maximum of 1,024 characters.
 * @property reportPlanName The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
 * @property reportPlanTags Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
 * @property reportSetting Identifies the report template for the report. Reports are built using a report template.
 */
public data class ReportPlanArgs(
    public val reportDeliveryChannel: Output? = null,
    public val reportPlanDescription: Output? = null,
    public val reportPlanName: Output? = null,
    public val reportPlanTags: Output>? = null,
    public val reportSetting: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.backup.ReportPlanArgs =
        com.pulumi.awsnative.backup.ReportPlanArgs.builder()
            .reportDeliveryChannel(
                reportDeliveryChannel?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .reportPlanDescription(reportPlanDescription?.applyValue({ args0 -> args0 }))
            .reportPlanName(reportPlanName?.applyValue({ args0 -> args0 }))
            .reportPlanTags(
                reportPlanTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .reportSetting(reportSetting?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ReportPlanArgs].
 */
@PulumiTagMarker
public class ReportPlanArgsBuilder internal constructor() {
    private var reportDeliveryChannel: Output? = null

    private var reportPlanDescription: Output? = null

    private var reportPlanName: Output? = null

    private var reportPlanTags: Output>? = null

    private var reportSetting: Output? = null

    /**
     * @param value A structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
     */
    @JvmName("jvglpgiqntlxkytp")
    public suspend fun reportDeliveryChannel(`value`: Output) {
        this.reportDeliveryChannel = value
    }

    /**
     * @param value An optional description of the report plan with a maximum of 1,024 characters.
     */
    @JvmName("tegwikcwirsfnrdj")
    public suspend fun reportPlanDescription(`value`: Output) {
        this.reportPlanDescription = value
    }

    /**
     * @param value The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
     */
    @JvmName("ltkjomcihpsvrqod")
    public suspend fun reportPlanName(`value`: Output) {
        this.reportPlanName = value
    }

    /**
     * @param value Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
     */
    @JvmName("gmcwungfobmywnni")
    public suspend fun reportPlanTags(`value`: Output>) {
        this.reportPlanTags = value
    }

    @JvmName("lpdtrjvwuruvylid")
    public suspend fun reportPlanTags(vararg values: Output) {
        this.reportPlanTags = Output.all(values.asList())
    }

    /**
     * @param values Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
     */
    @JvmName("uutpfbrpbdvhhurb")
    public suspend fun reportPlanTags(values: List>) {
        this.reportPlanTags = Output.all(values)
    }

    /**
     * @param value Identifies the report template for the report. Reports are built using a report template.
     */
    @JvmName("qtxeadtbuuaafuxe")
    public suspend fun reportSetting(`value`: Output) {
        this.reportSetting = value
    }

    /**
     * @param value A structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
     */
    @JvmName("tddripewffvosaef")
    public suspend fun reportDeliveryChannel(`value`: ReportDeliveryChannelPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reportDeliveryChannel = mapped
    }

    /**
     * @param argument A structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
     */
    @JvmName("ixyirqlbuonicjxb")
    public suspend fun reportDeliveryChannel(argument: suspend ReportDeliveryChannelPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ReportDeliveryChannelPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.reportDeliveryChannel = mapped
    }

    /**
     * @param value An optional description of the report plan with a maximum of 1,024 characters.
     */
    @JvmName("trojjwucnngsxmyy")
    public suspend fun reportPlanDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reportPlanDescription = mapped
    }

    /**
     * @param value The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
     */
    @JvmName("gcfdhkjpbswbualy")
    public suspend fun reportPlanName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reportPlanName = mapped
    }

    /**
     * @param value Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
     */
    @JvmName("isrlbsmqrjcdgntc")
    public suspend fun reportPlanTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reportPlanTags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
     */
    @JvmName("inlhtyuetokraggs")
    public suspend fun reportPlanTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.reportPlanTags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
     */
    @JvmName("ywklqrhpmlvdvvty")
    public suspend fun reportPlanTags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.reportPlanTags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
     */
    @JvmName("gvtwlntlvthhjbrj")
    public suspend fun reportPlanTags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.reportPlanTags = mapped
    }

    /**
     * @param values Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
     */
    @JvmName("qycggqewtkfrttgk")
    public suspend fun reportPlanTags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.reportPlanTags = mapped
    }

    /**
     * @param value Identifies the report template for the report. Reports are built using a report template.
     */
    @JvmName("ttlnslkxsuhlljsa")
    public suspend fun reportSetting(`value`: ReportSettingPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reportSetting = mapped
    }

    /**
     * @param argument Identifies the report template for the report. Reports are built using a report template.
     */
    @JvmName("njitgfvcjxxdaenp")
    public suspend fun reportSetting(argument: suspend ReportSettingPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ReportSettingPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.reportSetting = mapped
    }

    internal fun build(): ReportPlanArgs = ReportPlanArgs(
        reportDeliveryChannel = reportDeliveryChannel,
        reportPlanDescription = reportPlanDescription,
        reportPlanName = reportPlanName,
        reportPlanTags = reportPlanTags,
        reportSetting = reportSetting,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy