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

com.pulumi.awsnative.events.kotlin.ArchiveArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.events.kotlin

import com.pulumi.awsnative.events.ArchiveArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Events::Archive
 * @property archiveName The name for the archive to create.
 * @property description A description for the archive.
 * @property eventPattern An event pattern to use to filter events sent to the archive.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Events::Archive` for more information about the expected schema for this property.
 * @property retentionDays The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely
 * @property sourceArn The ARN of the event bus that sends events to the archive.
 */
public data class ArchiveArgs(
    public val archiveName: Output? = null,
    public val description: Output? = null,
    public val eventPattern: Output? = null,
    public val retentionDays: Output? = null,
    public val sourceArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.events.ArchiveArgs =
        com.pulumi.awsnative.events.ArchiveArgs.builder()
            .archiveName(archiveName?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .eventPattern(eventPattern?.applyValue({ args0 -> args0 }))
            .retentionDays(retentionDays?.applyValue({ args0 -> args0 }))
            .sourceArn(sourceArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ArchiveArgs].
 */
@PulumiTagMarker
public class ArchiveArgsBuilder internal constructor() {
    private var archiveName: Output? = null

    private var description: Output? = null

    private var eventPattern: Output? = null

    private var retentionDays: Output? = null

    private var sourceArn: Output? = null

    /**
     * @param value The name for the archive to create.
     */
    @JvmName("lktnaigxgybinqgi")
    public suspend fun archiveName(`value`: Output) {
        this.archiveName = value
    }

    /**
     * @param value A description for the archive.
     */
    @JvmName("xvtqscylinwiifyb")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value An event pattern to use to filter events sent to the archive.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Events::Archive` for more information about the expected schema for this property.
     */
    @JvmName("lfurykgaocnekpgh")
    public suspend fun eventPattern(`value`: Output) {
        this.eventPattern = value
    }

    /**
     * @param value The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely
     */
    @JvmName("npfqgiuhcnwnhbkk")
    public suspend fun retentionDays(`value`: Output) {
        this.retentionDays = value
    }

    /**
     * @param value The ARN of the event bus that sends events to the archive.
     */
    @JvmName("svtibfnfnfilwdkt")
    public suspend fun sourceArn(`value`: Output) {
        this.sourceArn = value
    }

    /**
     * @param value The name for the archive to create.
     */
    @JvmName("psvedwqdcxipvkeg")
    public suspend fun archiveName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.archiveName = mapped
    }

    /**
     * @param value A description for the archive.
     */
    @JvmName("tgryckkhabvpnxwk")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value An event pattern to use to filter events sent to the archive.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Events::Archive` for more information about the expected schema for this property.
     */
    @JvmName("ogtnqxkvoyyamqve")
    public suspend fun eventPattern(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventPattern = mapped
    }

    /**
     * @param value The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely
     */
    @JvmName("pqkkaqbvqucsyrpi")
    public suspend fun retentionDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionDays = mapped
    }

    /**
     * @param value The ARN of the event bus that sends events to the archive.
     */
    @JvmName("dpvbgwdowmwshqtj")
    public suspend fun sourceArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceArn = mapped
    }

    internal fun build(): ArchiveArgs = ArchiveArgs(
        archiveName = archiveName,
        description = description,
        eventPattern = eventPattern,
        retentionDays = retentionDays,
        sourceArn = sourceArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy