com.pulumi.awsnative.devicefarm.kotlin.VpceConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.devicefarm.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [VpceConfiguration].
*/
@PulumiTagMarker
public class VpceConfigurationResourceBuilder internal constructor() {
public var name: String? = null
public var args: VpceConfigurationArgs = VpceConfigurationArgs()
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 VpceConfigurationArgsBuilder.() -> Unit) {
val builder = VpceConfigurationArgsBuilder()
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(): VpceConfiguration {
val builtJavaResource =
com.pulumi.awsnative.devicefarm.VpceConfiguration(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return VpceConfiguration(builtJavaResource)
}
}
/**
* AWS::DeviceFarm::VPCEConfiguration creates a new Device Farm VPCE Configuration
*/
public class VpceConfiguration internal constructor(
override val javaResource: com.pulumi.awsnative.devicefarm.VpceConfiguration,
) : KotlinCustomResource(javaResource, VpceConfigurationMapper) {
/**
* The Amazon Resource Name (ARN) of the VPC endpoint. See [Amazon resource names](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *General Reference guide* .
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The DNS name that Device Farm will use to map to the private service you want to access.
*/
public val serviceDnsName: Output
get() = javaResource.serviceDnsName().applyValue({ args0 -> args0 })
/**
* An array of key-value pairs to apply to this resource.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *guide* .
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
})
}).orElse(null)
})
/**
* An optional description that provides details about your VPC endpoint configuration.
*/
public val vpceConfigurationDescription: Output?
get() = javaResource.vpceConfigurationDescription().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The friendly name you give to your VPC endpoint configuration to manage your configurations more easily.
*/
public val vpceConfigurationName: Output
get() = javaResource.vpceConfigurationName().applyValue({ args0 -> args0 })
/**
* The name of the VPC endpoint service that you want to access from Device Farm.
* The name follows the format `com.amazonaws.vpce.us-west-2.vpce-svc-id` .
*/
public val vpceServiceName: Output
get() = javaResource.vpceServiceName().applyValue({ args0 -> args0 })
}
public object VpceConfigurationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.devicefarm.VpceConfiguration::class == javaResource::class
override fun map(javaResource: Resource): VpceConfiguration = VpceConfiguration(
javaResource as
com.pulumi.awsnative.devicefarm.VpceConfiguration,
)
}
/**
* @see [VpceConfiguration].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [VpceConfiguration].
*/
public suspend fun vpceConfiguration(
name: String,
block: suspend VpceConfigurationResourceBuilder.() -> Unit,
): VpceConfiguration {
val builder = VpceConfigurationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [VpceConfiguration].
* @param name The _unique_ name of the resulting resource.
*/
public fun vpceConfiguration(name: String): VpceConfiguration {
val builder = VpceConfigurationResourceBuilder()
builder.name(name)
return builder.build()
}