@Override public void modifyVpcAttribute(ModifyVpcAttributeRequest modifyVpcAttributeRequest) throws AmazonServiceException, AmazonClientException { throw new UnsupportedOperationException("Not supported in mock"); }
private void enableVPCDNS(String vpcId) { logger.info("enable VPC DNS support, vpcId={}", vpcId); ec2.modifyVpcAttribute(new ModifyVpcAttributeRequest().withVpcId(vpcId) .withEnableDnsHostnames(true)); }
@Override public void modifyAttribute(ModifyVpcAttributeRequest request) { modifyAttribute(request, null); }
@Override public void modifyAttribute(ModifyVpcAttributeRequest request, ResultCapture<Void> extractor) { resource.performAction("ModifyAttribute", request, extractor); }
/** * Performs the <code>ModifyAttribute</code> action. * * <p> * The following request parameters will be populated from the data of this * <code>Vpc</code> resource, and any conflicting parameter value set in the * request will be overridden: * <ul> * <li> * <b><code>VpcId</code></b> * - mapped from the <code>Id</code> identifier. * </li> * </ul> * * <p> * * @see ModifyVpcAttributeRequest */ void modifyAttribute(ModifyVpcAttributeRequest request);
/** * Performs the <code>ModifyAttribute</code> action and use a ResultCapture * to retrieve the low-level client response. * * <p> * The following request parameters will be populated from the data of this * <code>Vpc</code> resource, and any conflicting parameter value set in the * request will be overridden: * <ul> * <li> * <b><code>VpcId</code></b> * - mapped from the <code>Id</code> identifier. * </li> * </ul> * * <p> * * @see ModifyVpcAttributeRequest */ void modifyAttribute(ModifyVpcAttributeRequest request, ResultCapture<Void> extractor);