![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.network.kotlin.NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.network.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
/**
* Builder for [NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation].
*/
@PulumiTagMarker
public class NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationResourceBuilder internal constructor() {
public var name: String? = null
public var args: NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationArgs =
NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationArgs()
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 NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationArgsBuilder.() -> Unit) {
val builder = NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationArgsBuilder()
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(): NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation {
val builtJavaResource =
com.pulumi.azure.network.NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation(builtJavaResource)
}
}
/**
* Manages the association between a Network Interface and a Application Gateway's Backend Address Pool.
* ## Import
* Associations between Network Interfaces and Application Gateway Backend Address Pools can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:network/networkInterfaceApplicationGatewayBackendAddressPoolAssociation:NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation association1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/example|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/applicationGateways/gateway1/backendAddressPools/pool1
* ```
*/
public class NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation internal constructor(
override val javaResource: com.pulumi.azure.network.NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation,
) : KotlinCustomResource(
javaResource,
NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationMapper,
) {
/**
* The ID of the Application Gateway's Backend Address Pool which this Network Interface which should be connected to. Changing this forces a new resource to be created.
*/
public val backendAddressPoolId: Output
get() = javaResource.backendAddressPoolId().applyValue({ args0 -> args0 })
/**
* The Name of the IP Configuration within the Network Interface which should be connected to the Backend Address Pool. Changing this forces a new resource to be created.
*/
public val ipConfigurationName: Output
get() = javaResource.ipConfigurationName().applyValue({ args0 -> args0 })
/**
* The ID of the Network Interface. Changing this forces a new resource to be created.
*/
public val networkInterfaceId: Output
get() = javaResource.networkInterfaceId().applyValue({ args0 -> args0 })
}
public object NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationMapper :
ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.azure.network.NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation::class == javaResource::class
override fun map(javaResource: Resource): NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation =
NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation(
javaResource as
com.pulumi.azure.network.NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation,
)
}
/**
* @see [NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation].
*/
public suspend fun networkInterfaceApplicationGatewayBackendAddressPoolAssociation(
name: String,
block: suspend NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationResourceBuilder.() -> Unit,
): NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation {
val builder = NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation].
* @param name The _unique_ name of the resulting resource.
*/
public fun networkInterfaceApplicationGatewayBackendAddressPoolAssociation(name: String): NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation {
val builder = NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy