
com.pulumi.azure.network.kotlin.outputs.GetSubnetResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin.outputs
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getSubnet.
* @property addressPrefix
* @property addressPrefixes The address prefixes for the subnet.
* @property enforcePrivateLinkEndpointNetworkPolicies
* @property enforcePrivateLinkServiceNetworkPolicies
* @property id The provider-assigned unique ID for this managed resource.
* @property name
* @property networkSecurityGroupId The ID of the Network Security Group associated with the subnet.
* @property privateEndpointNetworkPolicies Enable or Disable network policies for the private endpoint on the subnet.
* @property privateEndpointNetworkPoliciesEnabled
* @property privateLinkServiceNetworkPoliciesEnabled Enable or Disable network policies for the private link service on the subnet.
* @property resourceGroupName
* @property routeTableId The ID of the Route Table associated with this subnet.
* @property serviceEndpoints A list of Service Endpoints within this subnet.
* @property virtualNetworkName
*/
public data class GetSubnetResult(
public val addressPrefix: String,
public val addressPrefixes: List,
public val enforcePrivateLinkEndpointNetworkPolicies: Boolean,
public val enforcePrivateLinkServiceNetworkPolicies: Boolean,
public val id: String,
public val name: String,
public val networkSecurityGroupId: String,
public val privateEndpointNetworkPolicies: String,
@Deprecated(
message = """
This property has been superseded by `private_endpoint_network_policies` and will be removed in
v4.0 of the AzureRM Provider.
""",
)
public val privateEndpointNetworkPoliciesEnabled: Boolean,
public val privateLinkServiceNetworkPoliciesEnabled: Boolean,
public val resourceGroupName: String,
public val routeTableId: String,
public val serviceEndpoints: List,
public val virtualNetworkName: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.network.outputs.GetSubnetResult): GetSubnetResult =
GetSubnetResult(
addressPrefix = javaType.addressPrefix(),
addressPrefixes = javaType.addressPrefixes().map({ args0 -> args0 }),
enforcePrivateLinkEndpointNetworkPolicies = javaType.enforcePrivateLinkEndpointNetworkPolicies(),
enforcePrivateLinkServiceNetworkPolicies = javaType.enforcePrivateLinkServiceNetworkPolicies(),
id = javaType.id(),
name = javaType.name(),
networkSecurityGroupId = javaType.networkSecurityGroupId(),
privateEndpointNetworkPolicies = javaType.privateEndpointNetworkPolicies(),
privateEndpointNetworkPoliciesEnabled = javaType.privateEndpointNetworkPoliciesEnabled(),
privateLinkServiceNetworkPoliciesEnabled = javaType.privateLinkServiceNetworkPoliciesEnabled(),
resourceGroupName = javaType.resourceGroupName(),
routeTableId = javaType.routeTableId(),
serviceEndpoints = javaType.serviceEndpoints().map({ args0 -> args0 }),
virtualNetworkName = javaType.virtualNetworkName(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy