List of usage examples for com.amazonaws.services.route53.model GetHostedZoneRequest GetHostedZoneRequest
public GetHostedZoneRequest(String id)
From source file:fr.xebia.workshop.bigdata.CreateHadoopServers.java
License:Apache License
protected CreateHadoopServers(AmazonEC2 ec2, AmazonRoute53 route53, WorkshopInfrastructure workshopInfrastructure) { this.ec2 = ec2; this.route53 = route53; this.workshopInfrastructure = workshopInfrastructure; this.hostedZoneId = route53.getHostedZone(new GetHostedZoneRequest(XEBIA_TECH_EVENT_INFO_DOMAIN_NAME)) .getHostedZone();//from w w w .ja va2 s. c o m }
From source file:fr.xebia.workshop.bigdata.CreateTomcatServers.java
License:Apache License
protected CreateTomcatServers(AmazonEC2 ec2, AmazonRoute53 route53, WorkshopInfrastructure workshopInfrastructure) { this.ec2 = ec2; this.route53 = route53; this.workshopInfrastructure = workshopInfrastructure; this.hostedZoneId = route53.getHostedZone(new GetHostedZoneRequest(XEBIA_TECH_EVENT_INFO_DOMAIN_NAME)) .getHostedZone();//www . java 2s . c o m }
From source file:fr.xebia.workshop.caching.CreateCachingProxyServers.java
License:Apache License
public CreateCachingProxyServers(AmazonEC2 ec2, AmazonRoute53 route53, WorkshopInfrastructure workshopInfrastructure) { this.ec2 = ec2; this.route53 = route53; this.workshopInfrastructure = workshopInfrastructure; this.hostedZone = route53.getHostedZone(new GetHostedZoneRequest("Z28O5PDK1WPCSR")).getHostedZone(); }
From source file:fr.xebia.workshop.nginx.CreateNginxProxyServers.java
License:Apache License
public CreateNginxProxyServers(AmazonEC2 ec2, AmazonRoute53 route53, WorkshopInfrastructure workshopInfrastructure) { this.ec2 = ec2; this.route53 = route53; this.workshopInfrastructure = workshopInfrastructure; this.hostedZone = route53.getHostedZone(new GetHostedZoneRequest("Z28O5PDK1WPCSR")).getHostedZone(); }
From source file:fr.xebia.workshop.nginx.CreateTomcatServers.java
License:Apache License
public CreateTomcatServers(AmazonEC2 ec2, AmazonRoute53 route53, WorkshopInfrastructure workshopInfrastructure) { this.ec2 = ec2; this.route53 = route53; this.workshopInfrastructure = workshopInfrastructure; this.hostedZone = route53.getHostedZone(new GetHostedZoneRequest("Z28O5PDK1WPCSR")).getHostedZone(); }
From source file:org.ofbiz.tenant.amazonaws.AwsServices.java
License:Apache License
/** * get Amazon Rout53 hosted zone//w ww .java 2 s .c o m * @param ctx * @param context * @return */ public static Map<String, Object> getAmazonRoute53HostedZone(DispatchContext ctx, Map<String, Object> context) { String hostedZoneId = (String) context.get("hostedZoneId"); AmazonRoute53 route53 = AwsFactory.getAmazonRoute53(); GetHostedZoneRequest request = new GetHostedZoneRequest(hostedZoneId); GetHostedZoneResult hostedZoneResult = route53.getHostedZone(request); HostedZone hostedZone = hostedZoneResult.getHostedZone(); if (UtilValidate.isEmpty(hostedZone)) { return ServiceUtil.returnError("Could not find hosted zone: " + hostedZoneId); } DelegationSet delegationSet = hostedZoneResult.getDelegationSet(); Map<String, Object> results = ServiceUtil.returnSuccess(); results.put("hostedZone", hostedZone); results.put("delegationSet", delegationSet); return results; }