Skip to content

Commit

Permalink
AWS SDK for Java 1.11.203
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS committed Sep 26, 2017
1 parent 2931563 commit bd40c95
Show file tree
Hide file tree
Showing 163 changed files with 3,410 additions and 570 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# __1.11.203__ __2017-09-26__
## __AWS Cloud Formation__
- ### Features
- You can now prevent a stack from being accidentally deleted by enabling termination protection on the stack. If you attempt to delete a stack with termination protection enabled, the deletion fails and the stack, including its status, remains unchanged. You can enable termination protection on a stack when you create it. Termination protection on stacks is disabled by default. After creation, you can set termination protection on a stack whose status is CREATE_COMPLETE, UPDATE_COMPLETE, or UPDATE_ROLLBACK_COMPLETE.

## __AWS SDK for Java__
- ### Bugfixes
- Fixing https://github.com/aws/aws-sdk-java/issues/1243 by adding full list of reserved keywords to code generator.
- Fixing issue https://github.com/aws/aws-sdk-java/issues/1262. When the SDK was being loaded by the bootstrap classloader, looking up global request handlers would throw an NPE.

# __1.11.202__ __2017-09-22__
## __AWS Config__
- ### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dependencies.
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-bom</artifactId>
<version>1.11.202</version>
<version>1.11.203</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-acm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-acm</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-api-gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-api-gateway</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-applicationautoscaling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-applicationautoscaling</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-appstream/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-appstream</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-athena/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-athena</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-autoscaling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-autoscaling</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-batch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-batch</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-bom</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-budgets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-budgets</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions aws-java-sdk-bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-bundle</artifactId>
Expand All @@ -24,7 +24,7 @@
<artifactId>aws-java-sdk</artifactId>
<groupId>com.amazonaws</groupId>
<optional>false</optional>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-clouddirectory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-clouddirectory</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-java-sdk-cloudformation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-pom</artifactId>
<version>1.11.203-SNAPSHOT</version>
<version>1.11.203</version>
</parent>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-cloudformation</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public enum CloudFormationActions implements Action {
UpdateStack("cloudformation:UpdateStack"),
/** Action for the UpdateStackSet operation. */
UpdateStackSet("cloudformation:UpdateStackSet"),
/** Action for the UpdateTerminationProtection operation. */
UpdateTerminationProtection("cloudformation:UpdateTerminationProtection"),
/** Action for the ValidateTemplate operation. */
ValidateTemplate("cloudformation:ValidateTemplate"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ public UpdateStackSetResult updateStackSet(UpdateStackSetRequest request) {
throw new java.lang.UnsupportedOperationException();
}

@Override
public UpdateTerminationProtectionResult updateTerminationProtection(UpdateTerminationProtectionRequest request) {
throw new java.lang.UnsupportedOperationException();
}

@Override
public ValidateTemplateResult validateTemplate(ValidateTemplateRequest request) {
throw new java.lang.UnsupportedOperationException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,19 @@ public java.util.concurrent.Future<UpdateStackSetResult> updateStackSetAsync(Upd
throw new java.lang.UnsupportedOperationException();
}

@Override
public java.util.concurrent.Future<UpdateTerminationProtectionResult> updateTerminationProtectionAsync(UpdateTerminationProtectionRequest request) {

return updateTerminationProtectionAsync(request, null);
}

@Override
public java.util.concurrent.Future<UpdateTerminationProtectionResult> updateTerminationProtectionAsync(UpdateTerminationProtectionRequest request,
com.amazonaws.handlers.AsyncHandler<UpdateTerminationProtectionRequest, UpdateTerminationProtectionResult> asyncHandler) {

throw new java.lang.UnsupportedOperationException();
}

@Override
public java.util.concurrent.Future<ValidateTemplateResult> validateTemplateAsync(ValidateTemplateRequest request) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,26 @@ public interface AmazonCloudFormation {
*/
UpdateStackSetResult updateStackSet(UpdateStackSetRequest updateStackSetRequest);

/**
* <p>
* Updates termination protection for the specified stack. If a user attempts to delete a stack with termination
* protection enabled, the operation fails and the stack remains unchanged. For more information, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting a
* Stack From Being Deleted</a> in the <i>AWS CloudFormation User Guide</i>.
* </p>
* <p>
* For <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested
* stacks</a>, termination protection is set on the root stack and cannot be changed directly on the nested stack.
* </p>
*
* @param updateTerminationProtectionRequest
* @return Result of the UpdateTerminationProtection operation returned by the service.
* @sample AmazonCloudFormation.UpdateTerminationProtection
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection"
* target="_top">AWS API Documentation</a>
*/
UpdateTerminationProtectionResult updateTerminationProtection(UpdateTerminationProtectionRequest updateTerminationProtectionRequest);

/**
* <p>
* Validates a specified template. AWS CloudFormation first checks if the template is valid JSON. If it isn't, AWS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,53 @@ java.util.concurrent.Future<UpdateStackResult> updateStackAsync(UpdateStackReque
java.util.concurrent.Future<UpdateStackSetResult> updateStackSetAsync(UpdateStackSetRequest updateStackSetRequest,
com.amazonaws.handlers.AsyncHandler<UpdateStackSetRequest, UpdateStackSetResult> asyncHandler);

/**
* <p>
* Updates termination protection for the specified stack. If a user attempts to delete a stack with termination
* protection enabled, the operation fails and the stack remains unchanged. For more information, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting a
* Stack From Being Deleted</a> in the <i>AWS CloudFormation User Guide</i>.
* </p>
* <p>
* For <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested
* stacks</a>, termination protection is set on the root stack and cannot be changed directly on the nested stack.
* </p>
*
* @param updateTerminationProtectionRequest
* @return A Java Future containing the result of the UpdateTerminationProtection operation returned by the service.
* @sample AmazonCloudFormationAsync.UpdateTerminationProtection
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection"
* target="_top">AWS API Documentation</a>
*/
java.util.concurrent.Future<UpdateTerminationProtectionResult> updateTerminationProtectionAsync(
UpdateTerminationProtectionRequest updateTerminationProtectionRequest);

/**
* <p>
* Updates termination protection for the specified stack. If a user attempts to delete a stack with termination
* protection enabled, the operation fails and the stack remains unchanged. For more information, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting a
* Stack From Being Deleted</a> in the <i>AWS CloudFormation User Guide</i>.
* </p>
* <p>
* For <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested
* stacks</a>, termination protection is set on the root stack and cannot be changed directly on the nested stack.
* </p>
*
* @param updateTerminationProtectionRequest
* @param asyncHandler
* Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
* implementation of the callback methods in this interface to receive notification of successful or
* unsuccessful completion of the operation.
* @return A Java Future containing the result of the UpdateTerminationProtection operation returned by the service.
* @sample AmazonCloudFormationAsyncHandler.UpdateTerminationProtection
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection"
* target="_top">AWS API Documentation</a>
*/
java.util.concurrent.Future<UpdateTerminationProtectionResult> updateTerminationProtectionAsync(
UpdateTerminationProtectionRequest updateTerminationProtectionRequest,
com.amazonaws.handlers.AsyncHandler<UpdateTerminationProtectionRequest, UpdateTerminationProtectionResult> asyncHandler);

/**
* <p>
* Validates a specified template. AWS CloudFormation first checks if the template is valid JSON. If it isn't, AWS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,39 @@ public UpdateStackSetResult call() throws Exception {
});
}

@Override
public java.util.concurrent.Future<UpdateTerminationProtectionResult> updateTerminationProtectionAsync(UpdateTerminationProtectionRequest request) {

return updateTerminationProtectionAsync(request, null);
}

@Override
public java.util.concurrent.Future<UpdateTerminationProtectionResult> updateTerminationProtectionAsync(final UpdateTerminationProtectionRequest request,
final com.amazonaws.handlers.AsyncHandler<UpdateTerminationProtectionRequest, UpdateTerminationProtectionResult> asyncHandler) {
final UpdateTerminationProtectionRequest finalRequest = beforeClientExecution(request);

return executorService.submit(new java.util.concurrent.Callable<UpdateTerminationProtectionResult>() {
@Override
public UpdateTerminationProtectionResult call() throws Exception {
UpdateTerminationProtectionResult result = null;

try {
result = executeUpdateTerminationProtection(finalRequest);
} catch (Exception ex) {
if (asyncHandler != null) {
asyncHandler.onError(ex);
}
throw ex;
}

if (asyncHandler != null) {
asyncHandler.onSuccess(finalRequest, result);
}
return result;
}
});
}

@Override
public java.util.concurrent.Future<ValidateTemplateResult> validateTemplateAsync(ValidateTemplateRequest request) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2448,6 +2448,61 @@ final UpdateStackSetResult executeUpdateStackSet(UpdateStackSetRequest updateSta
}
}

/**
* <p>
* Updates termination protection for the specified stack. If a user attempts to delete a stack with termination
* protection enabled, the operation fails and the stack remains unchanged. For more information, see <a
* href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html">Protecting a
* Stack From Being Deleted</a> in the <i>AWS CloudFormation User Guide</i>.
* </p>
* <p>
* For <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">nested
* stacks</a>, termination protection is set on the root stack and cannot be changed directly on the nested stack.
* </p>
*
* @param updateTerminationProtectionRequest
* @return Result of the UpdateTerminationProtection operation returned by the service.
* @sample AmazonCloudFormation.UpdateTerminationProtection
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection"
* target="_top">AWS API Documentation</a>
*/
@Override
public UpdateTerminationProtectionResult updateTerminationProtection(UpdateTerminationProtectionRequest request) {
request = beforeClientExecution(request);
return executeUpdateTerminationProtection(request);
}

@SdkInternalApi
final UpdateTerminationProtectionResult executeUpdateTerminationProtection(UpdateTerminationProtectionRequest updateTerminationProtectionRequest) {

ExecutionContext executionContext = createExecutionContext(updateTerminationProtectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request<UpdateTerminationProtectionRequest> request = null;
Response<UpdateTerminationProtectionResult> response = null;

try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateTerminationProtectionRequestMarshaller().marshall(super.beforeMarshalling(updateTerminationProtectionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}

StaxResponseHandler<UpdateTerminationProtectionResult> responseHandler = new StaxResponseHandler<UpdateTerminationProtectionResult>(
new UpdateTerminationProtectionResultStaxUnmarshaller());
response = invoke(request, responseHandler, executionContext);

return response.getAwsResponse();

} finally {

endClientExecution(awsRequestMetrics, request, response);
}
}

/**
* <p>
* Validates a specified template. AWS CloudFormation first checks if the template is valid JSON. If it isn't, AWS
Expand Down
Loading

0 comments on commit bd40c95

Please sign in to comment.