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

com.pulumi.awsnative.vpclattice.kotlin.outputs.GetServiceNetworkVpcAssociationResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.vpclattice.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.vpclattice.kotlin.enums.ServiceNetworkVpcAssociationStatus
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property arn The Amazon Resource Name (ARN) of the association between the service network and the VPC.
 * @property createdAt The date and time that the association was created, specified in ISO-8601 format.
 * @property id The ID of the specified association between the service network and the VPC.
 * @property securityGroupIds The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see [Control traffic to resources using security groups](https://docs.aws.amazon.com//vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon VPC User Guide* .
 * @property serviceNetworkArn The Amazon Resource Name (ARN) of the service network.
 * @property serviceNetworkId The ID of the service network.
 * @property serviceNetworkName The name of the service network.
 * @property status The status of the association.
 * @property tags The tags for the association.
 * @property vpcId The ID of the VPC.
 */
public data class GetServiceNetworkVpcAssociationResult(
    public val arn: String? = null,
    public val createdAt: String? = null,
    public val id: String? = null,
    public val securityGroupIds: List? = null,
    public val serviceNetworkArn: String? = null,
    public val serviceNetworkId: String? = null,
    public val serviceNetworkName: String? = null,
    public val status: ServiceNetworkVpcAssociationStatus? = null,
    public val tags: List? = null,
    public val vpcId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.vpclattice.outputs.GetServiceNetworkVpcAssociationResult): GetServiceNetworkVpcAssociationResult = GetServiceNetworkVpcAssociationResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            securityGroupIds = javaType.securityGroupIds().map({ args0 -> args0 }),
            serviceNetworkArn = javaType.serviceNetworkArn().map({ args0 -> args0 }).orElse(null),
            serviceNetworkId = javaType.serviceNetworkId().map({ args0 -> args0 }).orElse(null),
            serviceNetworkName = javaType.serviceNetworkName().map({ args0 -> args0 }).orElse(null),
            status = javaType.status().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.vpclattice.kotlin.enums.ServiceNetworkVpcAssociationStatus.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            vpcId = javaType.vpcId().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy