com.pulumi.awsnative.ses.kotlin.outputs.GetMailManagerTrafficPolicyResult.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.ses.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerTrafficPolicyAcceptAction
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property defaultAction Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
* @property maxMessageSizeBytes The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
* @property policyStatements Conditional statements for filtering email traffic.
* @property tags The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
* @property trafficPolicyArn The Amazon Resource Name (ARN) of the traffic policy resource.
* @property trafficPolicyId The identifier of the traffic policy resource.
* @property trafficPolicyName The name of the policy.
* The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
*/
public data class GetMailManagerTrafficPolicyResult(
public val defaultAction: MailManagerTrafficPolicyAcceptAction? = null,
public val maxMessageSizeBytes: Double? = null,
public val policyStatements: List? = null,
public val tags: List? = null,
public val trafficPolicyArn: String? = null,
public val trafficPolicyId: String? = null,
public val trafficPolicyName: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ses.outputs.GetMailManagerTrafficPolicyResult): GetMailManagerTrafficPolicyResult = GetMailManagerTrafficPolicyResult(
defaultAction = javaType.defaultAction().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ses.kotlin.enums.MailManagerTrafficPolicyAcceptAction.Companion.toKotlin(args0)
})
}).orElse(null),
maxMessageSizeBytes = javaType.maxMessageSizeBytes().map({ args0 -> args0 }).orElse(null),
policyStatements = javaType.policyStatements().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ses.kotlin.outputs.MailManagerTrafficPolicyPolicyStatement.Companion.toKotlin(args0)
})
}),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
trafficPolicyArn = javaType.trafficPolicyArn().map({ args0 -> args0 }).orElse(null),
trafficPolicyId = javaType.trafficPolicyId().map({ args0 -> args0 }).orElse(null),
trafficPolicyName = javaType.trafficPolicyName().map({ args0 -> args0 }).orElse(null),
)
}
}