Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.ses.MailManagerTrafficPolicyArgs.builder
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerTrafficPolicyAcceptAction
import com.pulumi.awsnative.ses.kotlin.inputs.MailManagerTrafficPolicyPolicyStatementArgs
import com.pulumi.awsnative.ses.kotlin.inputs.MailManagerTrafficPolicyPolicyStatementArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Definition of AWS::SES::MailManagerTrafficPolicy Resource Type
* @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 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 MailManagerTrafficPolicyArgs(
public val defaultAction: Output? = null,
public val maxMessageSizeBytes: Output? = null,
public val policyStatements: Output>? = null,
public val tags: Output>? = null,
public val trafficPolicyName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ses.MailManagerTrafficPolicyArgs =
com.pulumi.awsnative.ses.MailManagerTrafficPolicyArgs.builder()
.defaultAction(defaultAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maxMessageSizeBytes(maxMessageSizeBytes?.applyValue({ args0 -> args0 }))
.policyStatements(
policyStatements?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.trafficPolicyName(trafficPolicyName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MailManagerTrafficPolicyArgs].
*/
@PulumiTagMarker
public class MailManagerTrafficPolicyArgsBuilder internal constructor() {
private var defaultAction: Output? = null
private var maxMessageSizeBytes: Output? = null
private var policyStatements: Output>? = null
private var tags: Output>? = null
private var trafficPolicyName: Output? = null
/**
* @param value 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
*/
@JvmName("xrwugrkyvflvkukt")
public suspend fun defaultAction(`value`: Output) {
this.defaultAction = value
}
/**
* @param value The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
*/
@JvmName("sojpmdhljtbhyxha")
public suspend fun maxMessageSizeBytes(`value`: Output) {
this.maxMessageSizeBytes = value
}
/**
* @param value Conditional statements for filtering email traffic.
*/
@JvmName("atyligtaqoqysjvn")
public suspend fun policyStatements(`value`: Output>) {
this.policyStatements = value
}
@JvmName("hugctpuhhtnlewcn")
public suspend fun policyStatements(vararg values: Output) {
this.policyStatements = Output.all(values.asList())
}
/**
* @param values Conditional statements for filtering email traffic.
*/
@JvmName("kmbxqyqpbjuafmob")
public suspend fun policyStatements(values: List