aws-lightsail-instance/src/main/java/software/amazon/lightsail/instance/helpers/resource/Instance.java [200:211]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public String getFirstAvailabilityZone() {
        return proxyClient
                .injectCredentialsAndInvokeV2(GetRegionsRequest.builder().includeAvailabilityZones(true).build(),
                        proxyClient.client()::getRegions)
                .regions().stream()
                .filter(region -> resourceModelRequest.getRegion().equalsIgnoreCase(region.name().toString()))
                .filter(region -> !region.availabilityZones().isEmpty()).findFirst()
                .orElseThrow(() -> new IllegalStateException("Something wrong with fetching current region"))
                .availabilityZones().stream().map(AvailabilityZone::zoneName).sorted().findFirst()
                .orElseThrow(() -> new IllegalStateException(
                        "Something wrong with " + "fetching availability zone for current region"));
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-lightsail-disk/src/main/java/software/amazon/lightsail/disk/helpers/resource/Disk.java [156:167]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public String getFirstAvailabilityZone() {
        return proxyClient
                .injectCredentialsAndInvokeV2(GetRegionsRequest.builder().includeAvailabilityZones(true).build(),
                        proxyClient.client()::getRegions)
                .regions().stream()
                .filter(region -> resourceModelRequest.getRegion().equalsIgnoreCase(region.name().toString()))
                .filter(region -> !region.availabilityZones().isEmpty()).findFirst()
                .orElseThrow(() -> new IllegalStateException("Something wrong with fetching current region"))
                .availabilityZones().stream().map(AvailabilityZone::zoneName).sorted().findFirst()
                .orElseThrow(() -> new IllegalStateException(
                        "Something wrong with " + "fetching availability zone for current region"));
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-lightsail-database/src/main/java/software/amazon/lightsail/database/helpers/resource/Database.java [173:184]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public String getFirstAvailabilityZone() {
        return proxyClient
                .injectCredentialsAndInvokeV2(GetRegionsRequest.builder().includeAvailabilityZones(true).build(),
                        proxyClient.client()::getRegions)
                .regions().stream()
                .filter(region -> resourceModelRequest.getRegion().equalsIgnoreCase(region.name().toString()))
                .filter(region -> !region.availabilityZones().isEmpty()).findFirst()
                .orElseThrow(() -> new IllegalStateException("Something wrong with fetching current region"))
                .availabilityZones().stream().map(AvailabilityZone::zoneName).sorted().findFirst()
                .orElseThrow(() -> new IllegalStateException(
                        "Something wrong with " + "fetching availability zone for current region"));
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



