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

com.pulumi.awsnative.s3outposts.kotlin.EndpointArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.s3outposts.kotlin

import com.pulumi.awsnative.s3outposts.EndpointArgs.builder
import com.pulumi.awsnative.s3outposts.kotlin.enums.EndpointAccessType
import com.pulumi.awsnative.s3outposts.kotlin.inputs.EndpointFailedReasonArgs
import com.pulumi.awsnative.s3outposts.kotlin.inputs.EndpointFailedReasonArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Resource Type Definition for AWS::S3Outposts::Endpoint
 * @property accessType The type of access for the on-premise network connectivity for the Outpost endpoint. To access endpoint from an on-premises network, you must specify the access type and provide the customer owned Ipv4 pool.
 * @property customerOwnedIpv4Pool The ID of the customer-owned IPv4 pool for the Endpoint. IP addresses will be allocated from this pool for the endpoint.
 * @property failedReason The failure reason, if any, for a create or delete endpoint operation.
 * @property outpostId The id of the customer outpost on which the bucket resides.
 * @property securityGroupId The ID of the security group to use with the endpoint.
 * @property subnetId The ID of the subnet in the selected VPC. The subnet must belong to the Outpost.
 */
public data class EndpointArgs(
    public val accessType: Output? = null,
    public val customerOwnedIpv4Pool: Output? = null,
    public val failedReason: Output? = null,
    public val outpostId: Output? = null,
    public val securityGroupId: Output? = null,
    public val subnetId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3outposts.EndpointArgs =
        com.pulumi.awsnative.s3outposts.EndpointArgs.builder()
            .accessType(accessType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .customerOwnedIpv4Pool(customerOwnedIpv4Pool?.applyValue({ args0 -> args0 }))
            .failedReason(failedReason?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .outpostId(outpostId?.applyValue({ args0 -> args0 }))
            .securityGroupId(securityGroupId?.applyValue({ args0 -> args0 }))
            .subnetId(subnetId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointArgs].
 */
@PulumiTagMarker
public class EndpointArgsBuilder internal constructor() {
    private var accessType: Output? = null

    private var customerOwnedIpv4Pool: Output? = null

    private var failedReason: Output? = null

    private var outpostId: Output? = null

    private var securityGroupId: Output? = null

    private var subnetId: Output? = null

    /**
     * @param value The type of access for the on-premise network connectivity for the Outpost endpoint. To access endpoint from an on-premises network, you must specify the access type and provide the customer owned Ipv4 pool.
     */
    @JvmName("xdynsgbuxayblchb")
    public suspend fun accessType(`value`: Output) {
        this.accessType = value
    }

    /**
     * @param value The ID of the customer-owned IPv4 pool for the Endpoint. IP addresses will be allocated from this pool for the endpoint.
     */
    @JvmName("wrfvsuaoxvmbtjrw")
    public suspend fun customerOwnedIpv4Pool(`value`: Output) {
        this.customerOwnedIpv4Pool = value
    }

    /**
     * @param value The failure reason, if any, for a create or delete endpoint operation.
     */
    @JvmName("addahpovijecjhoj")
    public suspend fun failedReason(`value`: Output) {
        this.failedReason = value
    }

    /**
     * @param value The id of the customer outpost on which the bucket resides.
     */
    @JvmName("dvtycvlgndlegfmx")
    public suspend fun outpostId(`value`: Output) {
        this.outpostId = value
    }

    /**
     * @param value The ID of the security group to use with the endpoint.
     */
    @JvmName("uwqjfjiecirserli")
    public suspend fun securityGroupId(`value`: Output) {
        this.securityGroupId = value
    }

    /**
     * @param value The ID of the subnet in the selected VPC. The subnet must belong to the Outpost.
     */
    @JvmName("reucpyauxfnewxgv")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value The type of access for the on-premise network connectivity for the Outpost endpoint. To access endpoint from an on-premises network, you must specify the access type and provide the customer owned Ipv4 pool.
     */
    @JvmName("nhrnknpxxbxtajii")
    public suspend fun accessType(`value`: EndpointAccessType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessType = mapped
    }

    /**
     * @param value The ID of the customer-owned IPv4 pool for the Endpoint. IP addresses will be allocated from this pool for the endpoint.
     */
    @JvmName("hrvkosyercwettbb")
    public suspend fun customerOwnedIpv4Pool(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customerOwnedIpv4Pool = mapped
    }

    /**
     * @param value The failure reason, if any, for a create or delete endpoint operation.
     */
    @JvmName("yhsvshcqyvdtgoha")
    public suspend fun failedReason(`value`: EndpointFailedReasonArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failedReason = mapped
    }

    /**
     * @param argument The failure reason, if any, for a create or delete endpoint operation.
     */
    @JvmName("fxnrgbodiktomyia")
    public suspend fun failedReason(argument: suspend EndpointFailedReasonArgsBuilder.() -> Unit) {
        val toBeMapped = EndpointFailedReasonArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.failedReason = mapped
    }

    /**
     * @param value The id of the customer outpost on which the bucket resides.
     */
    @JvmName("uelkctjixhxqgvbv")
    public suspend fun outpostId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outpostId = mapped
    }

    /**
     * @param value The ID of the security group to use with the endpoint.
     */
    @JvmName("uecvhouqdqybeucf")
    public suspend fun securityGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupId = mapped
    }

    /**
     * @param value The ID of the subnet in the selected VPC. The subnet must belong to the Outpost.
     */
    @JvmName("lbjajkruefakpsqh")
    public suspend fun subnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    internal fun build(): EndpointArgs = EndpointArgs(
        accessType = accessType,
        customerOwnedIpv4Pool = customerOwnedIpv4Pool,
        failedReason = failedReason,
        outpostId = outpostId,
        securityGroupId = securityGroupId,
        subnetId = subnetId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy