com.pulumi.awsnative.connect.kotlin.outputs.GetRuleResult.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.connect.kotlin.outputs
import com.pulumi.awsnative.connect.kotlin.enums.RulePublishStatus
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property actions The list of actions that will be executed when a rule is triggered.
* @property function The conditions of a rule.
* @property name The name of the rule.
* @property publishStatus The publish status of a rule, either draft or published.
* @property ruleArn The Amazon Resource Name (ARN) of the rule.
* @property tags One or more tags.
*/
public data class GetRuleResult(
public val actions: RuleActions? = null,
public val function: String? = null,
public val name: String? = null,
public val publishStatus: RulePublishStatus? = null,
public val ruleArn: String? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.connect.outputs.GetRuleResult): GetRuleResult = GetRuleResult(
actions = javaType.actions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.connect.kotlin.outputs.RuleActions.Companion.toKotlin(args0)
})
}).orElse(null),
function = javaType.function().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
publishStatus = javaType.publishStatus().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.connect.kotlin.enums.RulePublishStatus.Companion.toKotlin(args0)
})
}).orElse(null),
ruleArn = javaType.ruleArn().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}