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

main.io.cloudshiftdev.awscdklib.network.SubnetPredicates.kt Maven / Gradle / Ivy

There is a newer version: 10.1.0
Show newest version
@file:Suppress("PropertyName")

package io.cloudshiftdev.awscdklib.network

import io.cloudshiftdev.awscdk.services.ec2.SubnetSelection
import io.cloudshiftdev.awscdk.services.ec2.SubnetType

public object SubnetPredicates {

    public fun publicSubnets(): SubnetSelection = type(SubnetType.PUBLIC)

    public fun privateSubnets(): SubnetSelection = type(SubnetType.PRIVATE_WITH_EGRESS)

    public fun isolatedSubnets(): SubnetSelection = type(SubnetType.PRIVATE_ISOLATED)

    public fun groupNamed(name: String): SubnetSelection = SubnetSelection { subnetGroupName(name) }

    public fun type(subnetType: SubnetType): SubnetSelection = SubnetSelection {
        subnetType(subnetType)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy