Package com.amazonaws.services.route53.model

Examples of com.amazonaws.services.route53.model.HostedZone


            removePrefix(result.getChangeInfo());
        } else if (obj instanceof GetChangeResult) {
            GetChangeResult result = (GetChangeResult)obj;
            removePrefix(result.getChangeInfo());
        } else if (obj instanceof GetHostedZoneResult) {
            GetHostedZoneResult result = (GetHostedZoneResult)obj;
            removePrefix(result.getHostedZone());
        } else if (obj instanceof ListHostedZonesResult) {
            ListHostedZonesResult result = (ListHostedZonesResult)obj;
            for (HostedZone zone : result.getHostedZones()) removePrefix(zone);
        } else if (obj instanceof ListResourceRecordSetsResult) {
            ListResourceRecordSetsResult result = (ListResourceRecordSetsResult)obj;
            for (ResourceRecordSet rrset : result.getResourceRecordSets()) removePrefix(rrset);
        }
    }
View Full Code Here


        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("HealthCheckAlreadyExists"))
            return null;

        HealthCheckAlreadyExistsException e = (HealthCheckAlreadyExistsException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("HealthCheckInUse"))
            return null;

        HealthCheckInUseException e = (HealthCheckInUseException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("HealthCheckInUse"))
            return null;

        HealthCheckInUseException e = (HealthCheckInUseException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("HealthCheckVersionMismatch"))
            return null;

        HealthCheckVersionMismatchException e = (HealthCheckVersionMismatchException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

    public String createZone(Project project, String zone, String topZone, DnsSuffixData suffixData) {
        if (suffixData.getSharedDomain()) {
            log.info("Request to create {} under shared AWS Route 53 domain {}; will reuse", zone, suffixData.getKey());
            return null;
        } else {
            HostedZone hostedZone = client.createHostedZone(topZone);
            return hostedZone.getId();
        }
    }
View Full Code Here

        public Void call() throws CloudException, IOException {
            log.debug("Updating domain: {}", zone.getName());

            List<Recordset> requested = readFromDatabase(false);

            HostedZone hostedZone = getHostedZone();

            List<Recordset> aws = readFromAws(hostedZone);

            Changes changes = computeChanges(aws, requested);

            List<ResourceRecordSet> create = mapToAws(hostedZone.getName(), changes.create);
            List<ResourceRecordSet> remove = mapToAws(hostedZone.getName(), changes.remove);
            client.changeRecords(hostedZone.getId(), create, remove);

            return null;
        }
View Full Code Here

            if (!zoneName.endsWith(".")) {
                zoneName += ".";
            }

            String awsZoneName = client.getAwsZoneName(zoneName);
            HostedZone hostedZone = hostedZones.get(awsZoneName);
            if (hostedZone == null) {
                hostedZone = client.createHostedZone(awsZoneName);
            }
            return hostedZone;
        }
View Full Code Here

        }
        return hostedZones;
    }

    public HostedZone createHostedZone(String zoneName) {
        HostedZone zone = getHostedZones().get(zoneName);
        if (zone != null) {
            return zone;
        }

        log.info("Creating Route 53 zone: {}", zoneName);
View Full Code Here

  public List<String> listZone(final String source) {

    final List<String> nameList = new LinkedList<String>();

    final HostedZone zone = findZone(source);

    if (zone == null) {
      return nameList;
    }

    final ListResourceRecordSetsRequest request = new ListResourceRecordSetsRequest();

    request.setHostedZoneId(zone.getId());

    while (true) {

      final ListResourceRecordSetsResult result = amazonClient
          .listResourceRecordSets(request);
View Full Code Here

TOP

Related Classes of com.amazonaws.services.route53.model.HostedZone

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.