All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.wafv2.kotlin.outputs.GetIpSetResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.wafv2.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.wafv2.kotlin.enums.IpSetIpAddressVersion
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property addresses List of IPAddresses.
 * @property arn The Amazon Resource Name (ARN) of the IP set.
 * @property description A description of the IP set that helps with identification.
 * @property id The ID of the IP set.
 * @property ipAddressVersion The version of the IP addresses, either `IPV4` or `IPV6` .
 * @property tags Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
 * > To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.
 */
public data class GetIpSetResult(
    public val addresses: List? = null,
    public val arn: String? = null,
    public val description: String? = null,
    public val id: String? = null,
    public val ipAddressVersion: IpSetIpAddressVersion? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.GetIpSetResult): GetIpSetResult = GetIpSetResult(
            addresses = javaType.addresses().map({ args0 -> args0 }),
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            ipAddressVersion = javaType.ipAddressVersion().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.wafv2.kotlin.enums.IpSetIpAddressVersion.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy