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

cfdsl.fn.AvailabilityZones Maven / Gradle / Ivy

The newest version!
package cfdsl.fn;

import cfdsl.ec2.property.Region;
import com.google.common.collect.ImmutableMap;

public final class AvailabilityZones implements StringLike {

    private static final AvailabilityZones FOR_CURRENT_REGION = new AvailabilityZones("");

    private final String region;

    private AvailabilityZones(String region) {
        this.region = region;
    }

    public static AvailabilityZones forRegion(Region region) {
        return new AvailabilityZones(region.toString());
    }

    public static AvailabilityZones forCurrentRegion() {
        return FOR_CURRENT_REGION;
    }

    @Override
    public ImmutableMap getMap() {
        return ImmutableMap.of("Fn::GetAZs", region);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy