Skip to content

Commit 6fb90c2

Browse files
Merge pull request #1566 from aws/staging/84c53abd-3119-4856-9c90-c161e1408a02
Pull request: release <- staging/84c53abd-3119-4856-9c90-c161e1408a02
2 parents 062a48c + 2b5102a commit 6fb90c2

File tree

348 files changed

+1466
-391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

348 files changed

+1466
-391
lines changed

.changes/2.17.5.json

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"version": "2.17.5",
3+
"date": "2021-07-26",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS SDK for Java v2",
8+
"contributor": "",
9+
"description": "Annotate and document members that are modeled as deprecated"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS SSO Identity Store",
14+
"contributor": "",
15+
"description": "Documentation updates for SSO API Ref."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "Amazon Textract",
20+
"contributor": "",
21+
"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."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "AWS Proton",
26+
"contributor": "",
27+
"description": "Documentation-only update links"
28+
},
29+
{
30+
"type": "documentation",
31+
"category": "Amazon S3",
32+
"contributor": "",
33+
"description": "Deprecate S3 CopySource parameter for CopyObject & UploadPartCopy"
34+
},
35+
{
36+
"type": "feature",
37+
"category": "AWS S3 Control",
38+
"contributor": "",
39+
"description": "S3 Access Point aliases can be used anywhere you use S3 bucket names to access data in S3"
40+
},
41+
{
42+
"type": "feature",
43+
"category": "Synthetics",
44+
"contributor": "",
45+
"description": "CloudWatch Synthetics now supports visual testing in its canaries."
46+
},
47+
{
48+
"type": "feature",
49+
"category": "Amazon CloudWatch",
50+
"contributor": "",
51+
"description": "SDK update to support creation of Cross-Account Metric Alarms and update API documentation."
52+
}
53+
]
54+
}

CHANGELOG.md

+33
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
# __2.17.5__ __2021-07-26__
2+
## __AWS Proton__
3+
- ### Features
4+
- Documentation-only update links
5+
6+
## __AWS S3 Control__
7+
- ### Features
8+
- S3 Access Point aliases can be used anywhere you use S3 bucket names to access data in S3
9+
10+
## __AWS SDK for Java v2__
11+
- ### Features
12+
- Annotate and document members that are modeled as deprecated
13+
14+
## __AWS SSO Identity Store__
15+
- ### Features
16+
- Documentation updates for SSO API Ref.
17+
18+
## __Amazon CloudWatch__
19+
- ### Features
20+
- SDK update to support creation of Cross-Account Metric Alarms and update API documentation.
21+
22+
## __Amazon S3__
23+
- ### Documentations
24+
- Deprecate S3 CopySource parameter for CopyObject & UploadPartCopy
25+
26+
## __Amazon Textract__
27+
- ### Features
28+
- 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.
29+
30+
## __Synthetics__
31+
- ### Features
32+
- CloudWatch Synthetics now supports visual testing in its canaries.
33+
134
# __2.17.4__ __2021-07-23__
235
## __AWS SecurityHub__
336
- ### Features

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ To automatically manage module versions (currently all modules have the same ver
5252
<dependency>
5353
<groupId>software.amazon.awssdk</groupId>
5454
<artifactId>bom</artifactId>
55-
<version>2.17.4</version>
55+
<version>2.17.5</version>
5656
<type>pom</type>
5757
<scope>import</scope>
5858
</dependency>
@@ -86,12 +86,12 @@ Alternatively you can add dependencies for the specific services you use only:
8686
<dependency>
8787
<groupId>software.amazon.awssdk</groupId>
8888
<artifactId>ec2</artifactId>
89-
<version>2.17.4</version>
89+
<version>2.17.5</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.17.4</version>
94+
<version>2.17.5</version>
9595
</dependency>
9696
```
9797

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

archetypes/archetype-app-quickstart/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>archetypes</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.17.4</version>
23+
<version>2.17.5</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

archetypes/archetype-lambda/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>archetypes</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.17.4</version>
23+
<version>2.17.5</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetype-lambda</artifactId>

archetypes/archetype-tools/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>archetypes</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.17.4</version>
23+
<version>2.17.5</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

archetypes/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>aws-sdk-java-pom</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.17.4</version>
23+
<version>2.17.5</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetypes</artifactId>

aws-sdk-java/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>software.amazon.awssdk</groupId>
1919
<artifactId>aws-sdk-java-pom</artifactId>
20-
<version>2.17.4</version>
20+
<version>2.17.5</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>aws-sdk-java</artifactId>

bom-internal/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>aws-sdk-java-pom</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.17.4</version>
23+
<version>2.17.5</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

bom/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>software.amazon.awssdk</groupId>
1919
<artifactId>aws-sdk-java-pom</artifactId>
20-
<version>2.17.4</version>
20+
<version>2.17.5</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>

bundle/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>aws-sdk-java-pom</artifactId>
24-
<version>2.17.4</version>
24+
<version>2.17.5</version>
2525
</parent>
2626
<artifactId>bundle</artifactId>
2727
<packaging>jar</packaging>

codegen-lite-maven-plugin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>aws-sdk-java-pom</artifactId>
25-
<version>2.17.4</version>
25+
<version>2.17.5</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<artifactId>codegen-lite-maven-plugin</artifactId>

codegen-lite/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>aws-sdk-java-pom</artifactId>
24-
<version>2.17.4</version>
24+
<version>2.17.5</version>
2525
</parent>
2626
<artifactId>codegen-lite</artifactId>
2727
<name>AWS Java SDK :: Code Generator Lite</name>

codegen-maven-plugin/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>aws-sdk-java-pom</artifactId>
25-
<version>2.17.4</version>
25+
<version>2.17.5</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<artifactId>codegen-maven-plugin</artifactId>

codegen/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>aws-sdk-java-pom</artifactId>
24-
<version>2.17.4</version>
24+
<version>2.17.5</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

codegen/src/main/java/software/amazon/awssdk/codegen/AddShapes.java

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ protected final ShapeModel generateShapeModel(String javaClassName, String shape
7979
// contains the list of c2j member names that are required for this shape.
8080
shapeModel.setRequired(shape.getRequired());
8181
shapeModel.setDeprecated(shape.isDeprecated());
82+
shapeModel.setDeprecatedMessage(shape.getDeprecatedMessage());
8283
shapeModel.setWrapper(shape.isWrapper());
8384
shapeModel.withIsEventStream(shape.isEventstream());
8485
shapeModel.withIsEvent(shape.isEvent());
@@ -172,6 +173,7 @@ private MemberModel generateMemberModel(String c2jMemberName, Member c2jMemberDe
172173
.withJsonValue(c2jMemberDefinition.getJsonvalue());
173174
memberModel.setDocumentation(c2jMemberDefinition.getDocumentation());
174175
memberModel.setDeprecated(c2jMemberDefinition.isDeprecated());
176+
memberModel.setDeprecatedMessage(c2jMemberDefinition.getDeprecatedMessage());
175177
memberModel.setSensitive(isSensitiveShapeOrContainer(c2jMemberDefinition, allC2jShapes));
176178
memberModel
177179
.withFluentGetterMethodName(namingStrategy.getFluentGetterMethodName(c2jMemberName, parentShape, shape))

codegen/src/main/java/software/amazon/awssdk/codegen/customization/processors/ShapeModifiersProcessor.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,13 @@ private void preprocessModifyShapeMembers(ServiceModel serviceModel, Shape shape
208208

209209
private void doModifyShapeMembers(ServiceModel serviceModel, Shape shape, String memberToModify,
210210
ModifyModelShapeModifier modifyModel) {
211-
211+
if (modifyModel.isDeprecated()) {
212+
Member member = shape.getMembers().get(memberToModify);
213+
member.setDeprecated(true);
214+
if (modifyModel.getDeprecatedMessage() != null) {
215+
member.setDeprecatedMessage(modifyModel.getDeprecatedMessage());
216+
}
217+
}
212218
// Currently only supports emitPropertyName which is to rename the member
213219
if (modifyModel.getEmitPropertyName() != null) {
214220
Member member = shape.getMembers().remove(memberToModify);

codegen/src/main/java/software/amazon/awssdk/codegen/model/config/customization/ModifyModelShapeModifier.java

+26
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717

1818
public class ModifyModelShapeModifier {
1919

20+
/**
21+
* Indicates whether a member should be annotated as {@link Deprecated}.
22+
*/
23+
private boolean deprecated;
24+
25+
/**
26+
* The Javadoc message that will be included with the {@link Deprecated} annotation.
27+
*/
28+
private String deprecatedMessage;
29+
2030
/**
2131
* Indicates whether a renamed member should create getters and setters under the existing name
2232
*/
@@ -49,6 +59,22 @@ public class ModifyModelShapeModifier {
4959

5060
private String unmarshallLocationName;
5161

62+
public String getDeprecatedMessage() {
63+
return deprecatedMessage;
64+
}
65+
66+
public void setDeprecatedMessage(String deprecatedMessage) {
67+
this.deprecatedMessage = deprecatedMessage;
68+
}
69+
70+
public boolean isDeprecated() {
71+
return deprecated;
72+
}
73+
74+
public void setDeprecated(boolean deprecated) {
75+
this.deprecated = deprecated;
76+
}
77+
5278
public boolean isExistingNameDeprecated() {
5379
return existingNameDeprecated;
5480
}

codegen/src/main/java/software/amazon/awssdk/codegen/model/intermediate/MemberModel.java

+10
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public class MemberModel extends DocumentationModel {
5555
private ParameterHttpMapping http;
5656

5757
private boolean deprecated;
58+
59+
private String deprecatedMessage;
5860

5961
private ListModel listModel;
6062

@@ -301,6 +303,14 @@ public void setDeprecated(boolean deprecated) {
301303
this.deprecated = deprecated;
302304
}
303305

306+
public String getDeprecatedMessage() {
307+
return deprecatedMessage;
308+
}
309+
310+
public void setDeprecatedMessage(String deprecatedMessage) {
311+
this.deprecatedMessage = deprecatedMessage;
312+
}
313+
304314
public boolean isEventPayload() {
305315
return eventPayload;
306316
}

codegen/src/main/java/software/amazon/awssdk/codegen/model/intermediate/ShapeModel.java

+9
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class ShapeModel extends DocumentationModel implements HasDeprecation {
3737
private String shapeName;
3838
// the local variable name inside marshaller/unmarshaller implementation
3939
private boolean deprecated;
40+
private String deprecatedMessage;
4041
private String type;
4142
private List<String> required;
4243
private boolean hasPayloadMember;
@@ -94,6 +95,14 @@ public void setDeprecated(boolean deprecated) {
9495
this.deprecated = deprecated;
9596
}
9697

98+
public String getDeprecatedMessage() {
99+
return deprecatedMessage;
100+
}
101+
102+
public void setDeprecatedMessage(String deprecatedMessage) {
103+
this.deprecatedMessage = deprecatedMessage;
104+
}
105+
97106
public String getC2jName() {
98107
return c2jName;
99108
}

codegen/src/main/java/software/amazon/awssdk/codegen/model/service/Member.java

+10
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public class Member {
4141

4242
private boolean deprecated;
4343

44+
private String deprecatedMessage;
45+
4446
private boolean jsonvalue;
4547

4648
private String timestampFormat;
@@ -153,6 +155,14 @@ public void setDeprecated(boolean deprecated) {
153155
this.deprecated = deprecated;
154156
}
155157

158+
public String getDeprecatedMessage() {
159+
return deprecatedMessage;
160+
}
161+
162+
public void setDeprecatedMessage(String deprecatedMessage) {
163+
this.deprecatedMessage = deprecatedMessage;
164+
}
165+
156166
public boolean getJsonvalue() {
157167
return jsonvalue;
158168
}

codegen/src/main/java/software/amazon/awssdk/codegen/model/service/Shape.java

+10
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public class Shape {
5959
private boolean fault;
6060

6161
private boolean deprecated;
62+
63+
private String deprecatedMessage;
6264

6365
private boolean eventstream;
6466

@@ -260,6 +262,14 @@ public void setDeprecated(boolean deprecated) {
260262
this.deprecated = deprecated;
261263
}
262264

265+
public String getDeprecatedMessage() {
266+
return deprecatedMessage;
267+
}
268+
269+
public void setDeprecatedMessage(String deprecatedMessage) {
270+
this.deprecatedMessage = deprecatedMessage;
271+
}
272+
263273
public boolean isEventstream() {
264274
return eventstream;
265275
}

0 commit comments

Comments
 (0)