com.pulumi.awsnative.events.kotlin.outputs.GetArchiveResult.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.events.kotlin.outputs
import kotlin.Any
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property arn The ARN of the archive created.
* @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
*/
public data class GetArchiveResult(
public val arn: String? = null,
public val description: String? = null,
public val eventPattern: Any? = null,
public val retentionDays: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.events.outputs.GetArchiveResult): GetArchiveResult = GetArchiveResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
eventPattern = javaType.eventPattern().map({ args0 -> args0 }).orElse(null),
retentionDays = javaType.retentionDays().map({ args0 -> args0 }).orElse(null),
)
}
}