All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.ses.kotlin.MailManagerIngressPoint.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ses.kotlin

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerIngressPointIngressPointStatus
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerIngressPointIngressPointStatusToUpdate
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerIngressPointIngressPointType
import com.pulumi.awsnative.ses.kotlin.outputs.MailManagerIngressPointIngressPointConfiguration0Properties
import com.pulumi.awsnative.ses.kotlin.outputs.MailManagerIngressPointIngressPointConfiguration1Properties
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerIngressPointIngressPointStatus.Companion.toKotlin as mailManagerIngressPointIngressPointStatusToKotlin
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerIngressPointIngressPointStatusToUpdate.Companion.toKotlin as mailManagerIngressPointIngressPointStatusToUpdateToKotlin
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerIngressPointIngressPointType.Companion.toKotlin as mailManagerIngressPointIngressPointTypeToKotlin

/**
 * Builder for [MailManagerIngressPoint].
 */
@PulumiTagMarker
public class MailManagerIngressPointResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: MailManagerIngressPointArgs = MailManagerIngressPointArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend MailManagerIngressPointArgsBuilder.() -> Unit) {
        val builder = MailManagerIngressPointArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): MailManagerIngressPoint {
        val builtJavaResource =
            com.pulumi.awsnative.ses.MailManagerIngressPoint(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return MailManagerIngressPoint(builtJavaResource)
    }
}

/**
 * Definition of AWS::SES::MailManagerIngressPoint Resource Type
 */
public class MailManagerIngressPoint internal constructor(
    override val javaResource: com.pulumi.awsnative.ses.MailManagerIngressPoint,
) : KotlinCustomResource(javaResource, MailManagerIngressPointMapper) {
    /**
     * The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange (MX) record with this value to route emails to Mail Manager.
     */
    public val aRecord: Output
        get() = javaResource.aRecord().applyValue({ args0 -> args0 })

    /**
     * The Amazon Resource Name (ARN) of the ingress endpoint resource.
     */
    public val ingressPointArn: Output
        get() = javaResource.ingressPointArn().applyValue({ args0 -> args0 })

    /**
     * The configuration of the ingress endpoint resource.
     */
    public val ingressPointConfiguration:
        Output>?
        get() = javaResource.ingressPointConfiguration().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.transform(
                    { args0 ->
                        args0.let({ args0 ->
                            com.pulumi.awsnative.ses.kotlin.outputs.MailManagerIngressPointIngressPointConfiguration0Properties.Companion.toKotlin(args0)
                        })
                    },
                    { args0 ->
                        args0.let({ args0 ->
                            com.pulumi.awsnative.ses.kotlin.outputs.MailManagerIngressPointIngressPointConfiguration1Properties.Companion.toKotlin(args0)
                        })
                    },
                )
            }).orElse(null)
        })

    /**
     * The identifier of the ingress endpoint resource.
     */
    public val ingressPointId: Output
        get() = javaResource.ingressPointId().applyValue({ args0 -> args0 })

    /**
     * A user friendly name for an ingress endpoint resource.
     */
    public val ingressPointName: Output?
        get() = javaResource.ingressPointName().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The identifier of an existing rule set that you attach to an ingress endpoint resource.
     */
    public val ruleSetId: Output
        get() = javaResource.ruleSetId().applyValue({ args0 -> args0 })

    /**
     * The status of the ingress endpoint resource.
     */
    public val status: Output
        get() = javaResource.status().applyValue({ args0 ->
            args0.let({ args0 ->
                mailManagerIngressPointIngressPointStatusToKotlin(args0)
            })
        })

    /**
     * The update status of an ingress endpoint.
     */
    public val statusToUpdate: Output?
        get() = javaResource.statusToUpdate().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    mailManagerIngressPointIngressPointStatusToUpdateToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> tagToKotlin(args0) })
                })
            }).orElse(null)
        })

    /**
     * The identifier of an existing traffic policy that you attach to an ingress endpoint resource.
     */
    public val trafficPolicyId: Output
        get() = javaResource.trafficPolicyId().applyValue({ args0 -> args0 })

    /**
     * The type of the ingress endpoint to create.
     */
    public val type: Output
        get() = javaResource.type().applyValue({ args0 ->
            args0.let({ args0 ->
                mailManagerIngressPointIngressPointTypeToKotlin(args0)
            })
        })
}

public object MailManagerIngressPointMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.ses.MailManagerIngressPoint::class == javaResource::class

    override fun map(javaResource: Resource): MailManagerIngressPoint =
        MailManagerIngressPoint(javaResource as com.pulumi.awsnative.ses.MailManagerIngressPoint)
}

/**
 * @see [MailManagerIngressPoint].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [MailManagerIngressPoint].
 */
public suspend fun mailManagerIngressPoint(
    name: String,
    block: suspend MailManagerIngressPointResourceBuilder.() -> Unit,
): MailManagerIngressPoint {
    val builder = MailManagerIngressPointResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [MailManagerIngressPoint].
 * @param name The _unique_ name of the resulting resource.
 */
public fun mailManagerIngressPoint(name: String): MailManagerIngressPoint {
    val builder = MailManagerIngressPointResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy