![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.azurestackhci.kotlin.outputs.GetSecurityRuleResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.azurestackhci.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Security Rule resource.
* @property access The network traffic is allowed or denied.
* @property description A description for this rule. Restricted to 140 chars.
* @property destinationAddressPrefixes The destination address prefixes. CIDR or destination IP ranges.
* @property destinationPortRanges The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
* @property direction The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
* @property extendedLocation The extendedLocation of the resource.
* @property id Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
* @property name The name of the resource
* @property priority The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
* @property protocol Network protocol this rule applies to.
* @property provisioningState Provisioning state of the SR
* @property sourceAddressPrefixes The CIDR or source IP ranges.
* @property sourcePortRanges The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
* @property systemData Azure Resource Manager metadata containing createdBy and modifiedBy information.
* @property type The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
public data class GetSecurityRuleResult(
public val access: String,
public val description: String? = null,
public val destinationAddressPrefixes: List? = null,
public val destinationPortRanges: List? = null,
public val direction: String,
public val extendedLocation: ExtendedLocationResponse? = null,
public val id: String,
public val name: String,
public val priority: Int,
public val protocol: String,
public val provisioningState: String,
public val sourceAddressPrefixes: List? = null,
public val sourcePortRanges: List? = null,
public val systemData: SystemDataResponse,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.azurestackhci.outputs.GetSecurityRuleResult): GetSecurityRuleResult = GetSecurityRuleResult(
access = javaType.access(),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
destinationAddressPrefixes = javaType.destinationAddressPrefixes().map({ args0 -> args0 }),
destinationPortRanges = javaType.destinationPortRanges().map({ args0 -> args0 }),
direction = javaType.direction(),
extendedLocation = javaType.extendedLocation().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.azurestackhci.kotlin.outputs.ExtendedLocationResponse.Companion.toKotlin(args0)
})
}).orElse(null),
id = javaType.id(),
name = javaType.name(),
priority = javaType.priority(),
protocol = javaType.protocol(),
provisioningState = javaType.provisioningState(),
sourceAddressPrefixes = javaType.sourceAddressPrefixes().map({ args0 -> args0 }),
sourcePortRanges = javaType.sourcePortRanges().map({ args0 -> args0 }),
systemData = javaType.systemData().let({ args0 ->
com.pulumi.azurenative.azurestackhci.kotlin.outputs.SystemDataResponse.Companion.toKotlin(args0)
}),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy