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

com.pulumi.awsnative.datasync.kotlin.AgentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.datasync.kotlin

import com.pulumi.awsnative.datasync.AgentArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::DataSync::Agent.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property activationKey Activation key of the Agent.
 * @property agentName The name configured for the agent. Text reference used to identify the agent in the console.
 * @property securityGroupArns The ARNs of the security group used to protect your data transfer task subnets.
 * @property subnetArns The ARNs of the subnets in which DataSync will create elastic network interfaces for each data transfer task.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property vpcEndpointId The ID of the VPC endpoint that the agent has access to.
 */
public data class AgentArgs(
    public val activationKey: Output? = null,
    public val agentName: Output? = null,
    public val securityGroupArns: Output>? = null,
    public val subnetArns: Output>? = null,
    public val tags: Output>? = null,
    public val vpcEndpointId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.AgentArgs =
        com.pulumi.awsnative.datasync.AgentArgs.builder()
            .activationKey(activationKey?.applyValue({ args0 -> args0 }))
            .agentName(agentName?.applyValue({ args0 -> args0 }))
            .securityGroupArns(securityGroupArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetArns(subnetArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .vpcEndpointId(vpcEndpointId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AgentArgs].
 */
@PulumiTagMarker
public class AgentArgsBuilder internal constructor() {
    private var activationKey: Output? = null

    private var agentName: Output? = null

    private var securityGroupArns: Output>? = null

    private var subnetArns: Output>? = null

    private var tags: Output>? = null

    private var vpcEndpointId: Output? = null

    /**
     * @param value Activation key of the Agent.
     */
    @JvmName("svkqbppqhbdxojns")
    public suspend fun activationKey(`value`: Output) {
        this.activationKey = value
    }

    /**
     * @param value The name configured for the agent. Text reference used to identify the agent in the console.
     */
    @JvmName("nqrqtopnfsajklqn")
    public suspend fun agentName(`value`: Output) {
        this.agentName = value
    }

    /**
     * @param value The ARNs of the security group used to protect your data transfer task subnets.
     */
    @JvmName("gxrthxmoedgagepf")
    public suspend fun securityGroupArns(`value`: Output>) {
        this.securityGroupArns = value
    }

    @JvmName("peivaopwilhmcblr")
    public suspend fun securityGroupArns(vararg values: Output) {
        this.securityGroupArns = Output.all(values.asList())
    }

    /**
     * @param values The ARNs of the security group used to protect your data transfer task subnets.
     */
    @JvmName("ljomcbbjchyfxpfd")
    public suspend fun securityGroupArns(values: List>) {
        this.securityGroupArns = Output.all(values)
    }

    /**
     * @param value The ARNs of the subnets in which DataSync will create elastic network interfaces for each data transfer task.
     */
    @JvmName("kmcfmqjkrnsfphba")
    public suspend fun subnetArns(`value`: Output>) {
        this.subnetArns = value
    }

    @JvmName("jyjeulnyrhlfgegs")
    public suspend fun subnetArns(vararg values: Output) {
        this.subnetArns = Output.all(values.asList())
    }

    /**
     * @param values The ARNs of the subnets in which DataSync will create elastic network interfaces for each data transfer task.
     */
    @JvmName("knvebckfhinwboqg")
    public suspend fun subnetArns(values: List>) {
        this.subnetArns = Output.all(values)
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("fipbvvahukvuydus")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("lofpafrmqwcyjfns")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("kajrfruvfkjwjjeo")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ID of the VPC endpoint that the agent has access to.
     */
    @JvmName("acfyhrkgkxohwiyr")
    public suspend fun vpcEndpointId(`value`: Output) {
        this.vpcEndpointId = value
    }

    /**
     * @param value Activation key of the Agent.
     */
    @JvmName("iwanvsaorsyvllxf")
    public suspend fun activationKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.activationKey = mapped
    }

    /**
     * @param value The name configured for the agent. Text reference used to identify the agent in the console.
     */
    @JvmName("ypllrpxisjnqxpjy")
    public suspend fun agentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.agentName = mapped
    }

    /**
     * @param value The ARNs of the security group used to protect your data transfer task subnets.
     */
    @JvmName("pnynqigfdtkgcdsr")
    public suspend fun securityGroupArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupArns = mapped
    }

    /**
     * @param values The ARNs of the security group used to protect your data transfer task subnets.
     */
    @JvmName("agvaikfpegwaumpm")
    public suspend fun securityGroupArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupArns = mapped
    }

    /**
     * @param value The ARNs of the subnets in which DataSync will create elastic network interfaces for each data transfer task.
     */
    @JvmName("vqqhbypejuqipoex")
    public suspend fun subnetArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetArns = mapped
    }

    /**
     * @param values The ARNs of the subnets in which DataSync will create elastic network interfaces for each data transfer task.
     */
    @JvmName("sdxxcvhguacjhoqx")
    public suspend fun subnetArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetArns = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("jtgxhsuthtadwrlt")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("tlifskaycbaftdhu")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("jlsfighenxigicrs")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("jqilfbtustkwbpxh")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("pnbamdijqtneriyl")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The ID of the VPC endpoint that the agent has access to.
     */
    @JvmName("mhxpjuiwbksqkmbe")
    public suspend fun vpcEndpointId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcEndpointId = mapped
    }

    internal fun build(): AgentArgs = AgentArgs(
        activationKey = activationKey,
        agentName = agentName,
        securityGroupArns = securityGroupArns,
        subnetArns = subnetArns,
        tags = tags,
        vpcEndpointId = vpcEndpointId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy