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

com.pulumi.awsnative.groundstation.kotlin.MissionProfile.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.groundstation.kotlin

import com.pulumi.awsnative.groundstation.kotlin.outputs.MissionProfileDataflowEdge
import com.pulumi.awsnative.groundstation.kotlin.outputs.MissionProfileStreamsKmsKey
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.MissionProfileDataflowEdge.Companion.toKotlin as missionProfileDataflowEdgeToKotlin
import com.pulumi.awsnative.groundstation.kotlin.outputs.MissionProfileStreamsKmsKey.Companion.toKotlin as missionProfileStreamsKmsKeyToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin

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

    public var args: MissionProfileArgs = MissionProfileArgs()

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

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

    /**
     * The ID of the mission profile, such as `9940bf3b-d2ba-427e-9906-842b5e5d2296` .
     */
    public val awsId: Output
        get() = javaResource.awsId().applyValue({ args0 -> args0 })

    /**
     * Post-pass time needed after the contact.
     */
    public val contactPostPassDurationSeconds: Output?
        get() = javaResource.contactPostPassDurationSeconds().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Pre-pass time needed before the contact.
     */
    public val contactPrePassDurationSeconds: Output?
        get() = javaResource.contactPrePassDurationSeconds().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * A list containing lists of config ARNs. Each list of config ARNs is an edge, with a "from" config and a "to" config.
     */
    public val dataflowEdges: Output>
        get() = javaResource.dataflowEdges().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> missionProfileDataflowEdgeToKotlin(args0) })
            })
        })

    /**
     * Visibilities with shorter duration than the specified minimum viable contact duration will be ignored when searching for available contacts.
     */
    public val minimumViableContactDurationSeconds: Output
        get() = javaResource.minimumViableContactDurationSeconds().applyValue({ args0 -> args0 })

    /**
     * A name used to identify a mission profile.
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * The region of the mission profile.
     */
    public val region: Output
        get() = javaResource.region().applyValue({ args0 -> args0 })

    /**
     * The ARN of a KMS Key used for encrypting data during transmission from the source to destination locations.
     */
    public val streamsKmsKey: Output?
        get() = javaResource.streamsKmsKey().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> missionProfileStreamsKmsKeyToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * The ARN of the KMS Key or Alias Key role used to define permissions on KMS Key usage.
     */
    public val streamsKmsRole: Output?
        get() = javaResource.streamsKmsRole().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

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

    /**
     * The ARN of a tracking config objects that defines how to track the satellite through the sky during a contact.
     */
    public val trackingConfigArn: Output
        get() = javaResource.trackingConfigArn().applyValue({ args0 -> args0 })
}

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy