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

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

package com.pulumi.awsnative.groundstation.kotlin

import com.pulumi.awsnative.groundstation.kotlin.outputs.DataflowEndpointGroupEndpointDetails
import com.pulumi.awsnative.kotlin.outputs.Tag
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.groundstation.kotlin.outputs.DataflowEndpointGroupEndpointDetails.Companion.toKotlin as dataflowEndpointGroupEndpointDetailsToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin

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

    public var args: DataflowEndpointGroupArgs = DataflowEndpointGroupArgs()

    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 DataflowEndpointGroupArgsBuilder.() -> Unit) {
        val builder = DataflowEndpointGroupArgsBuilder()
        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(): DataflowEndpointGroup {
        val builtJavaResource =
            com.pulumi.awsnative.groundstation.DataflowEndpointGroup(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return DataflowEndpointGroup(builtJavaResource)
    }
}

/**
 * AWS Ground Station DataflowEndpointGroup schema for CloudFormation
 * ## Example Usage
 * ### Example
 * No Java example available.
 */
public class DataflowEndpointGroup internal constructor(
    override val javaResource: com.pulumi.awsnative.groundstation.DataflowEndpointGroup,
) : KotlinCustomResource(javaResource, DataflowEndpointGroupMapper) {
    /**
     * The ARN of the dataflow endpoint group, such as `arn:aws:groundstation:us-east-2:1234567890:dataflow-endpoint-group/9940bf3b-d2ba-427e-9906-842b5e5d2296` .
     */
    public val arn: Output
        get() = javaResource.arn().applyValue({ args0 -> args0 })

    /**
     * UUID of a dataflow endpoint group.
     */
    public val awsId: Output
        get() = javaResource.awsId().applyValue({ args0 -> args0 })

    /**
     * Amount of time, in seconds, after a contact ends that the Ground Station Dataflow Endpoint Group will be in a POSTPASS state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the Dataflow Endpoint Group enters and exits the POSTPASS state.
     */
    public val contactPostPassDurationSeconds: Output?
        get() = javaResource.contactPostPassDurationSeconds().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Amount of time, in seconds, before a contact starts that the Ground Station Dataflow Endpoint Group will be in a PREPASS state. A Ground Station Dataflow Endpoint Group State Change event will be emitted when the Dataflow Endpoint Group enters and exits the PREPASS state.
     */
    public val contactPrePassDurationSeconds: Output?
        get() = javaResource.contactPrePassDurationSeconds().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * List of Endpoint Details, containing address and port for each endpoint.
     */
    public val endpointDetails: Output>
        get() = javaResource.endpointDetails().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> dataflowEndpointGroupEndpointDetailsToKotlin(args0) })
            })
        })

    /**
     * Tags assigned to a resource.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> tagToKotlin(args0) })
                })
            }).orElse(null)
        })
}

public object DataflowEndpointGroupMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.groundstation.DataflowEndpointGroup::class == javaResource::class

    override fun map(javaResource: Resource): DataflowEndpointGroup =
        DataflowEndpointGroup(
            javaResource as
                com.pulumi.awsnative.groundstation.DataflowEndpointGroup,
        )
}

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy