Java 类com.amazonaws.services.ec2.model.DeleteVpcRequest 实例源码

项目:cmn-project    文件:DeleteVPCTask.java   
@Override
public void execute(Context context) throws Exception {
    String vpcId = resource.remoteVPC.getVpcId();
    logger.info("delete vpc, vpcId={}", vpcId);
    AWS.vpc.ec2.deleteVpc(new DeleteVpcRequest(vpcId));
    context.output("vpc/" + resource.id, "deletedVPCId=" + vpcId);
}
项目:aws-mock    文件:BaseTest.java   
/**
 * delete VPC.
 *
 * @param vpcId the vpc id
 * @return true if delete.
 */
protected final boolean deleteVpc(final String vpcId) {
    DeleteVpcRequest req = new DeleteVpcRequest();
    req.setVpcId(vpcId);
    DeleteVpcResult result = amazonEC2Client.deleteVpc(req);

    if (result != null) {
        return true;
    }

    return false;
}
项目:elasticsearch_my    文件:AmazonEC2Mock.java   
@Override
public void deleteVpc(DeleteVpcRequest deleteVpcRequest) throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Not supported in mock");
}
项目:photon-model    文件:AWSNetworkClient.java   
/**
 * Delete the specified VPC
 */
public void deleteVPC(String vpcId) {
    DeleteVpcRequest req = new DeleteVpcRequest().withVpcId(vpcId);
    this.client.deleteVpc(req);
}
项目:photon-model    文件:TestAWSSetupUtils.java   
/**
 * Delete a VPC
 */
public static void deleteVPC(AmazonEC2AsyncClient client, String vpcId) {
    client.deleteVpc(new DeleteVpcRequest().withVpcId(vpcId));
}
项目:aws-sdk-java-resources    文件:VpcImpl.java   
@Override
public void delete(DeleteVpcRequest request) {
    delete(request, null);
}
项目:aws-sdk-java-resources    文件:VpcImpl.java   
@Override
public void delete(DeleteVpcRequest request, ResultCapture<Void> extractor)
        {

    resource.performAction("Delete", request, extractor);
}
项目:aws-sdk-java-resources    文件:VpcImpl.java   
@Override
public void delete(ResultCapture<Void> extractor) {
    DeleteVpcRequest request = new DeleteVpcRequest();
    delete(request, extractor);
}
项目:aws-sdk-java-resources    文件:Vpc.java   
/**
 * Performs the <code>Delete</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 DeleteVpcRequest
 */
void delete(DeleteVpcRequest request);
项目:aws-sdk-java-resources    文件:Vpc.java   
/**
 * Performs the <code>Delete</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 DeleteVpcRequest
 */
void delete(DeleteVpcRequest request, ResultCapture<Void> extractor);