![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ec2.kotlin.VpcEndpointService.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin
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 [VpcEndpointService].
*/
@PulumiTagMarker
public class VpcEndpointServiceResourceBuilder internal constructor() {
public var name: String? = null
public var args: VpcEndpointServiceArgs = VpcEndpointServiceArgs()
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 VpcEndpointServiceArgsBuilder.() -> Unit) {
val builder = VpcEndpointServiceArgsBuilder()
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(): VpcEndpointService {
val builtJavaResource = com.pulumi.awsnative.ec2.VpcEndpointService(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return VpcEndpointService(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::EC2::VPCEndpointService
*/
public class VpcEndpointService internal constructor(
override val javaResource: com.pulumi.awsnative.ec2.VpcEndpointService,
) : KotlinCustomResource(javaResource, VpcEndpointServiceMapper) {
/**
* Indicates whether requests from service consumers to create an endpoint to your service must be accepted.
*/
public val acceptanceRequired: Output?
get() = javaResource.acceptanceRequired().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink .
*/
public val contributorInsightsEnabled: Output?
get() = javaResource.contributorInsightsEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The Amazon Resource Names (ARNs) of the Gateway Load Balancers.
*/
public val gatewayLoadBalancerArns: Output>?
get() = javaResource.gatewayLoadBalancerArns().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* The Amazon Resource Names (ARNs) of the Network Load Balancers.
*/
public val networkLoadBalancerArns: Output>?
get() = javaResource.networkLoadBalancerArns().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* The entity that is responsible for the endpoint costs. The default is the endpoint owner. If you set the payer responsibility to the service owner, you cannot set it back to the endpoint owner.
*/
public val payerResponsibility: Output?
get() = javaResource.payerResponsibility().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The ID of the endpoint service.
*/
public val serviceId: Output
get() = javaResource.serviceId().applyValue({ args0 -> args0 })
}
public object VpcEndpointServiceMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.ec2.VpcEndpointService::class == javaResource::class
override fun map(javaResource: Resource): VpcEndpointService = VpcEndpointService(
javaResource as
com.pulumi.awsnative.ec2.VpcEndpointService,
)
}
/**
* @see [VpcEndpointService].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [VpcEndpointService].
*/
public suspend fun vpcEndpointService(
name: String,
block: suspend VpcEndpointServiceResourceBuilder.() -> Unit,
): VpcEndpointService {
val builder = VpcEndpointServiceResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [VpcEndpointService].
* @param name The _unique_ name of the resulting resource.
*/
public fun vpcEndpointService(name: String): VpcEndpointService {
val builder = VpcEndpointServiceResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy