Examples of AliasTarget


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

                for (String value : lattice.getDimensionValues(dimension)) {
                    /* Create a zero weighted alias to this set */
                    String subTreePrefix = dimension.substring(0, Math.min(dimension.length(), 30)) + "-"
                            + value.substring(0, Math.min(value.length(), 30));
                    String subTreeName = subTreePrefix + "." + secondaryName;
                    AliasTarget target = new AliasTarget();
                    target.setDNSName(subTreeName);
                    target.setEvaluateTargetHealth(true);
                    target.setHostedZoneId(hostedZoneId);
                    ResourceRecordSet rr = new ResourceRecordSet();
                    rr.setName(secondaryName);
                    rr.setWeight(0L);
                    rr.setType(type);
                    rr.setAliasTarget(target);
                    rr.setSetIdentifier(subTreePrefix);

                    vulcanized.addAll(vulcanize(hostedZoneId, subTreeName, type, ttl,
                            lattice.simulateFailure(dimension, value).getAllEndpoints(), recordsPerRecordSet));
                    vulcanized.add(rr);
                }
            }

            /* Add an alias to the secondary level */
            AliasTarget target = new AliasTarget();
            target.setDNSName(secondaryName);
            target.setEvaluateTargetHealth(true);
            target.setHostedZoneId(hostedZoneId);
            ResourceRecordSet rr = new ResourceRecordSet();
            rr.setName(name);
            rr.setWeight(0L);
            rr.setType(type);
            rr.setAliasTarget(target);
View Full Code Here

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

         * health-check to form a logical AND of the health-checks.
         */
        ResourceRecordSet entryNode = leafNode;
        while (!healthchecksRemaining.isEmpty()) {
            ResourceRecordSet alias = new ResourceRecordSet();
            AliasTarget aliasTarget = new AliasTarget();

            String checksum = checksumResourceRecordSetData(entryNode);

            /* The alias will be the new entry node, inherit its properties */
            alias.setName(entryNode.getName());
            alias.setType(entryNode.getType());
            alias.setWeight(entryNode.getWeight());

            /* Consume a health-check */
            alias.setHealthCheckId(healthchecksRemaining.remove(0));

            /* Rename the previous entry node */
            String targetName = checksum + "." + entryNode.getName();
            entryNode.setName(targetName);
            aliasTarget.setDNSName(targetName);
            aliasTarget.setEvaluateTargetHealth(true);
            aliasTarget.setHostedZoneId(hostedZoneId);

            /* Associate the alias and the alias target */
            alias.setSetIdentifier("Alias to " + checksum);
            alias.setAliasTarget(aliasTarget);

View Full Code Here

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

    }

    /**
     * Then Add Ours
     */
    AliasTarget aliasTarget = new AliasTarget();

    aliasTarget.setHostedZoneId(ctx.elbHostedZoneId);
    aliasTarget.setDNSName(curEnv.getEndpointURL());

    ResourceRecordSet resourceRecordSet = new ResourceRecordSet();

    resourceRecordSet.setName(record);
    resourceRecordSet.setType(RRType.A);

    resourceRecordSet.setAliasTarget(aliasTarget);

    if (getLog().isInfoEnabled())
      getLog().info(format("Adding resourceRecordSet %s for domain %s mapped to %s", resourceRecordSet, record, aliasTarget.getDNSName()));

    changeBatch.getChanges().add(new Change(ChangeAction.CREATE, resourceRecordSet));

    ChangeResourceRecordSetsRequest req = new ChangeResourceRecordSetsRequest(
        zoneId, changeBatch);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.