Skip to content

Commit

Permalink
Merge pull request #1566 from aws/staging/84c53abd-3119-4856-9c90-c16…
Browse files Browse the repository at this point in the history
…1e1408a02

Pull request: release <- staging/84c53abd-3119-4856-9c90-c161e1408a02
  • Loading branch information
aws-sdk-java-automation authored Jul 26, 2021
2 parents 062a48c + 2b5102a commit 6fb90c2
Show file tree
Hide file tree
Showing 348 changed files with 1,466 additions and 391 deletions.
54 changes: 54 additions & 0 deletions .changes/2.17.5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version": "2.17.5",
"date": "2021-07-26",
"entries": [
{
"type": "feature",
"category": "AWS SDK for Java v2",
"contributor": "",
"description": "Annotate and document members that are modeled as deprecated"
},
{
"type": "feature",
"category": "AWS SSO Identity Store",
"contributor": "",
"description": "Documentation updates for SSO API Ref."
},
{
"type": "feature",
"category": "Amazon Textract",
"contributor": "",
"description": "Adds support for AnalyzeExpense, a new API to extract relevant data such as contact information, items purchased, and vendor name, from almost any invoice or receipt without the need for any templates or configuration."
},
{
"type": "feature",
"category": "AWS Proton",
"contributor": "",
"description": "Documentation-only update links"
},
{
"type": "documentation",
"category": "Amazon S3",
"contributor": "",
"description": "Deprecate S3 CopySource parameter for CopyObject & UploadPartCopy"
},
{
"type": "feature",
"category": "AWS S3 Control",
"contributor": "",
"description": "S3 Access Point aliases can be used anywhere you use S3 bucket names to access data in S3"
},
{
"type": "feature",
"category": "Synthetics",
"contributor": "",
"description": "CloudWatch Synthetics now supports visual testing in its canaries."
},
{
"type": "feature",
"category": "Amazon CloudWatch",
"contributor": "",
"description": "SDK update to support creation of Cross-Account Metric Alarms and update API documentation."
}
]
}
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# __2.17.5__ __2021-07-26__
## __AWS Proton__
- ### Features
- Documentation-only update links

## __AWS S3 Control__
- ### Features
- S3 Access Point aliases can be used anywhere you use S3 bucket names to access data in S3

## __AWS SDK for Java v2__
- ### Features
- Annotate and document members that are modeled as deprecated

## __AWS SSO Identity Store__
- ### Features
- Documentation updates for SSO API Ref.

## __Amazon CloudWatch__
- ### Features
- SDK update to support creation of Cross-Account Metric Alarms and update API documentation.

## __Amazon S3__
- ### Documentations
- Deprecate S3 CopySource parameter for CopyObject & UploadPartCopy

## __Amazon Textract__
- ### Features
- Adds support for AnalyzeExpense, a new API to extract relevant data such as contact information, items purchased, and vendor name, from almost any invoice or receipt without the need for any templates or configuration.

## __Synthetics__
- ### Features
- CloudWatch Synthetics now supports visual testing in its canaries.

# __2.17.4__ __2021-07-23__
## __AWS SecurityHub__
- ### Features
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ To automatically manage module versions (currently all modules have the same ver
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -86,12 +86,12 @@ Alternatively you can add dependencies for the specific services you use only:
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>ec2</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
</dependency>
```

Expand All @@ -103,7 +103,7 @@ You can import the whole SDK into your project (includes *ALL* services). Please
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion archetypes/archetype-app-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>archetypes</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.17.4</version>
<version>2.17.5</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion archetypes/archetype-lambda/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>archetypes</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.17.4</version>
<version>2.17.5</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archetype-lambda</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion archetypes/archetype-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>archetypes</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.17.4</version>
<version>2.17.5</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>aws-sdk-java-pom</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.17.4</version>
<version>2.17.5</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archetypes</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-sdk-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>aws-sdk-java</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bom-internal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>aws-sdk-java-pom</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.17.4</version>
<version>2.17.5</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>bom</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
</parent>
<artifactId>bundle</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion codegen-lite-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>codegen-lite-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codegen-lite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
</parent>
<artifactId>codegen-lite</artifactId>
<name>AWS Java SDK :: Code Generator Lite</name>
Expand Down
2 changes: 1 addition & 1 deletion codegen-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>codegen-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.17.4</version>
<version>2.17.5</version>
</parent>
<artifactId>codegen</artifactId>
<name>AWS Java SDK :: Code Generator</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ protected final ShapeModel generateShapeModel(String javaClassName, String shape
// contains the list of c2j member names that are required for this shape.
shapeModel.setRequired(shape.getRequired());
shapeModel.setDeprecated(shape.isDeprecated());
shapeModel.setDeprecatedMessage(shape.getDeprecatedMessage());
shapeModel.setWrapper(shape.isWrapper());
shapeModel.withIsEventStream(shape.isEventstream());
shapeModel.withIsEvent(shape.isEvent());
Expand Down Expand Up @@ -172,6 +173,7 @@ private MemberModel generateMemberModel(String c2jMemberName, Member c2jMemberDe
.withJsonValue(c2jMemberDefinition.getJsonvalue());
memberModel.setDocumentation(c2jMemberDefinition.getDocumentation());
memberModel.setDeprecated(c2jMemberDefinition.isDeprecated());
memberModel.setDeprecatedMessage(c2jMemberDefinition.getDeprecatedMessage());
memberModel.setSensitive(isSensitiveShapeOrContainer(c2jMemberDefinition, allC2jShapes));
memberModel
.withFluentGetterMethodName(namingStrategy.getFluentGetterMethodName(c2jMemberName, parentShape, shape))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,13 @@ private void preprocessModifyShapeMembers(ServiceModel serviceModel, Shape shape

private void doModifyShapeMembers(ServiceModel serviceModel, Shape shape, String memberToModify,
ModifyModelShapeModifier modifyModel) {

if (modifyModel.isDeprecated()) {
Member member = shape.getMembers().get(memberToModify);
member.setDeprecated(true);
if (modifyModel.getDeprecatedMessage() != null) {
member.setDeprecatedMessage(modifyModel.getDeprecatedMessage());
}
}
// Currently only supports emitPropertyName which is to rename the member
if (modifyModel.getEmitPropertyName() != null) {
Member member = shape.getMembers().remove(memberToModify);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@

public class ModifyModelShapeModifier {

/**
* Indicates whether a member should be annotated as {@link Deprecated}.
*/
private boolean deprecated;

/**
* The Javadoc message that will be included with the {@link Deprecated} annotation.
*/
private String deprecatedMessage;

/**
* Indicates whether a renamed member should create getters and setters under the existing name
*/
Expand Down Expand Up @@ -49,6 +59,22 @@ public class ModifyModelShapeModifier {

private String unmarshallLocationName;

public String getDeprecatedMessage() {
return deprecatedMessage;
}

public void setDeprecatedMessage(String deprecatedMessage) {
this.deprecatedMessage = deprecatedMessage;
}

public boolean isDeprecated() {
return deprecated;
}

public void setDeprecated(boolean deprecated) {
this.deprecated = deprecated;
}

public boolean isExistingNameDeprecated() {
return existingNameDeprecated;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public class MemberModel extends DocumentationModel {
private ParameterHttpMapping http;

private boolean deprecated;

private String deprecatedMessage;

private ListModel listModel;

Expand Down Expand Up @@ -301,6 +303,14 @@ public void setDeprecated(boolean deprecated) {
this.deprecated = deprecated;
}

public String getDeprecatedMessage() {
return deprecatedMessage;
}

public void setDeprecatedMessage(String deprecatedMessage) {
this.deprecatedMessage = deprecatedMessage;
}

public boolean isEventPayload() {
return eventPayload;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class ShapeModel extends DocumentationModel implements HasDeprecation {
private String shapeName;
// the local variable name inside marshaller/unmarshaller implementation
private boolean deprecated;
private String deprecatedMessage;
private String type;
private List<String> required;
private boolean hasPayloadMember;
Expand Down Expand Up @@ -94,6 +95,14 @@ public void setDeprecated(boolean deprecated) {
this.deprecated = deprecated;
}

public String getDeprecatedMessage() {
return deprecatedMessage;
}

public void setDeprecatedMessage(String deprecatedMessage) {
this.deprecatedMessage = deprecatedMessage;
}

public String getC2jName() {
return c2jName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public class Member {

private boolean deprecated;

private String deprecatedMessage;

private boolean jsonvalue;

private String timestampFormat;
Expand Down Expand Up @@ -153,6 +155,14 @@ public void setDeprecated(boolean deprecated) {
this.deprecated = deprecated;
}

public String getDeprecatedMessage() {
return deprecatedMessage;
}

public void setDeprecatedMessage(String deprecatedMessage) {
this.deprecatedMessage = deprecatedMessage;
}

public boolean getJsonvalue() {
return jsonvalue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public class Shape {
private boolean fault;

private boolean deprecated;

private String deprecatedMessage;

private boolean eventstream;

Expand Down Expand Up @@ -260,6 +262,14 @@ public void setDeprecated(boolean deprecated) {
this.deprecated = deprecated;
}

public String getDeprecatedMessage() {
return deprecatedMessage;
}

public void setDeprecatedMessage(String deprecatedMessage) {
this.deprecatedMessage = deprecatedMessage;
}

public boolean isEventstream() {
return eventstream;
}
Expand Down
Loading

0 comments on commit 6fb90c2

Please sign in to comment.