com.pulumi.awsnative.events.kotlin.ArchiveArgs.kt Maven / Gradle / Ivy
@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("dhfsqhdpgdibocqf")
public suspend fun archiveName(`value`: Output) {
this.archiveName = value
}
/**
* @param value A description for the archive.
*/
@JvmName("mvmnvnotrlgbjhnk")
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("casmluytscaqudsp")
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("hdurlvooqlrgxieh")
public suspend fun retentionDays(`value`: Output) {
this.retentionDays = value
}
/**
* @param value The ARN of the event bus that sends events to the archive.
*/
@JvmName("utwkhokiabkbusnh")
public suspend fun sourceArn(`value`: Output) {
this.sourceArn = value
}
/**
* @param value The name for the archive to create.
*/
@JvmName("kbcvibwotpmeyxlx")
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("jlggvgngrqvhhxmm")
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("lxfgsgrrjufbsxol")
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("fvhccmjnyfivakxp")
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("xydpnpdigmobrntg")
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,
)
}