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