Skip to content

Commit 4af6117

Browse files
Merge pull request #881 from aws/staging/abbfeb43-717f-4a4c-a09f-33e2e3344cf2
Pull request: release <- staging/abbfeb43-717f-4a4c-a09f-33e2e3344cf2
2 parents d695d40 + e82963c commit 4af6117

File tree

280 files changed

+742
-305
lines changed

Some content is hidden

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

280 files changed

+742
-305
lines changed

.changes/2.13.38.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": "2.13.38",
3+
"date": "2020-06-16",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "Auto Scaling",
8+
"description": "Introducing instance refresh, a feature that helps you update all instances in an Auto Scaling group in a rolling fashion (for example, to apply a new AMI or instance type). You can control the pace of the refresh by defining the percentage of the group that must remain running/healthy during the replacement process and the time for new instances to warm up between replacements."
9+
},
10+
{
11+
"type": "feature",
12+
"category": "AWS Data Exchange",
13+
"description": "This release fixes a bug in the AWS Data Exchange Python and NodeJS SDKs. The 'KmsKeyArn' field in the create-job API was configured to be required instead of optional. We updated this field to be optional in this release."
14+
},
15+
{
16+
"type": "feature",
17+
"category": "Amazon CloudFront",
18+
"description": "Documentation updates for CloudFront"
19+
},
20+
{
21+
"type": "feature",
22+
"category": "Amazon Polly",
23+
"description": "Amazon Polly adds new US English child voice - Kevin. Kevin is available as Neural voice only."
24+
},
25+
{
26+
"type": "feature",
27+
"category": "AWS Lambda",
28+
"description": "Adds support for using Amazon Elastic File System (persistent storage) with AWS Lambda. This enables customers to share data across function invocations, read large reference data files, and write function output to a persistent and shared store."
29+
},
30+
{
31+
"type": "feature",
32+
"category": "Amazon QLDB",
33+
"description": "Documentation updates for Amazon QLDB"
34+
},
35+
{
36+
"type": "bugfix",
37+
"category": "Amazon DynamoDB Enhanced Client",
38+
"description": "Fix an NPE in `OptionalAttributeConverter` that can happen the if the `nul()` property of the `AttributeValue` is `null`."
39+
}
40+
]
41+
}

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# __2.13.38__ __2020-06-16__
2+
## __AWS Data Exchange__
3+
- ### Features
4+
- This release fixes a bug in the AWS Data Exchange Python and NodeJS SDKs. The 'KmsKeyArn' field in the create-job API was configured to be required instead of optional. We updated this field to be optional in this release.
5+
6+
## __AWS Lambda__
7+
- ### Features
8+
- Adds support for using Amazon Elastic File System (persistent storage) with AWS Lambda. This enables customers to share data across function invocations, read large reference data files, and write function output to a persistent and shared store.
9+
10+
## __Amazon CloudFront__
11+
- ### Features
12+
- Documentation updates for CloudFront
13+
14+
## __Amazon DynamoDB Enhanced Client__
15+
- ### Bugfixes
16+
- Fix an NPE in `OptionalAttributeConverter` that can happen the if the `nul()` property of the `AttributeValue` is `null`.
17+
18+
## __Amazon Polly__
19+
- ### Features
20+
- Amazon Polly adds new US English child voice - Kevin. Kevin is available as Neural voice only.
21+
22+
## __Amazon QLDB__
23+
- ### Features
24+
- Documentation updates for Amazon QLDB
25+
26+
## __Auto Scaling__
27+
- ### Features
28+
- Introducing instance refresh, a feature that helps you update all instances in an Auto Scaling group in a rolling fashion (for example, to apply a new AMI or instance type). You can control the pace of the refresh by defining the percentage of the group that must remain running/healthy during the replacement process and the time for new instances to warm up between replacements.
29+
130
# __2.13.37__ __2020-06-15__
231
## __AWS IoT__
332
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ To automatically manage module versions (currently all modules have the same ver
4949
<dependency>
5050
<groupId>software.amazon.awssdk</groupId>
5151
<artifactId>bom</artifactId>
52-
<version>2.13.37</version>
52+
<version>2.13.38</version>
5353
<type>pom</type>
5454
<scope>import</scope>
5555
</dependency>
@@ -83,12 +83,12 @@ Alternatively you can add dependencies for the specific services you use only:
8383
<dependency>
8484
<groupId>software.amazon.awssdk</groupId>
8585
<artifactId>ec2</artifactId>
86-
<version>2.13.37</version>
86+
<version>2.13.38</version>
8787
</dependency>
8888
<dependency>
8989
<groupId>software.amazon.awssdk</groupId>
9090
<artifactId>s3</artifactId>
91-
<version>2.13.37</version>
91+
<version>2.13.38</version>
9292
</dependency>
9393
```
9494

@@ -100,7 +100,7 @@ You can import the whole SDK into your project (includes *ALL* services). Please
100100
<dependency>
101101
<groupId>software.amazon.awssdk</groupId>
102102
<artifactId>aws-sdk-java</artifactId>
103-
<version>2.13.37</version>
103+
<version>2.13.38</version>
104104
</dependency>
105105
```
106106

archetypes/archetype-lambda/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetype-lambda</artifactId>

archetypes/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetypes</artifactId>

aws-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
20+
<version>2.13.38</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>aws-sdk-java</artifactId>

bom-internal/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

bom/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
20+
<version>2.13.38</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>

bundle/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
24+
<version>2.13.38</version>
2525
</parent>
2626
<artifactId>bundle</artifactId>
2727
<packaging>jar</packaging>

codegen-lite-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
25+
<version>2.13.38</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<artifactId>codegen-lite-maven-plugin</artifactId>

codegen-lite/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
24+
<version>2.13.38</version>
2525
</parent>
2626
<artifactId>codegen-lite</artifactId>
2727
<name>AWS Java SDK :: Code Generator Lite</name>

codegen-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
25+
<version>2.13.38</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<artifactId>codegen-maven-plugin</artifactId>

codegen/pom.xml

Lines changed: 1 addition & 1 deletion
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.13.37</version>
24+
<version>2.13.38</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

core/annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>core</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/arns/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>core</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/auth/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>core</artifactId>
25-
<version>2.13.37</version>
25+
<version>2.13.38</version>
2626
</parent>
2727

2828
<artifactId>auth</artifactId>

core/aws-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>core</artifactId>
25-
<version>2.13.37</version>
25+
<version>2.13.38</version>
2626
</parent>
2727

2828
<artifactId>aws-core</artifactId>

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<artifactId>aws-sdk-java-pom</artifactId>
2323
<groupId>software.amazon.awssdk</groupId>
24-
<version>2.13.37</version>
24+
<version>2.13.38</version>
2525
</parent>
2626

2727
<artifactId>core</artifactId>

core/profiles/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>core</artifactId>
25-
<version>2.13.37</version>
25+
<version>2.13.38</version>
2626
</parent>
2727

2828
<artifactId>profiles</artifactId>

core/protocols/aws-cbor-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>protocols</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/protocols/aws-ion-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>protocols</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/protocols/aws-json-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>protocols</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/protocols/aws-query-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>protocols</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/protocols/aws-xml-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>protocols</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/protocols/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>core</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/protocols/protocol-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>protocols</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.13.37</version>
23+
<version>2.13.38</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/regions/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>core</artifactId>
25-
<version>2.13.37</version>
25+
<version>2.13.38</version>
2626
</parent>
2727

2828
<artifactId>regions</artifactId>

core/sdk-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>core</artifactId>
24-
<version>2.13.37</version>
24+
<version>2.13.38</version>
2525
</parent>
2626
<artifactId>sdk-core</artifactId>
2727
<name>AWS Java SDK :: SDK Core</name>

core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/util/Mimetype.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ public static Mimetype getInstance() {
116116
* to find the corresponding mime type. If the file has no extension, or the extension is not
117117
* available in the listing contained in this class, the default mimetype
118118
* <code>application/octet-stream</code> is returned.
119-
* <p>
120-
* A file extension is one or more characters that occur after the last period (.) in the file's name.
121-
* If a file has no extension,
122-
* Guesses the mimetype of file data based on the file's extension.
123119
*
124120
* @param path the file whose extension may match a known mimetype.
125121
* @return the file's mimetype based on its extension, or a default value of
@@ -132,18 +128,14 @@ public String getMimetype(Path path) {
132128
if (file != null) {
133129
return getMimetype(file.toString());
134130
}
135-
return null;
131+
return MIMETYPE_OCTET_STREAM;
136132
}
137133

138134
/**
139135
* Determines the mimetype of a file by looking up the file's extension in an internal listing
140136
* to find the corresponding mime type. If the file has no extension, or the extension is not
141137
* available in the listing contained in this class, the default mimetype
142138
* <code>application/octet-stream</code> is returned.
143-
* <p>
144-
* A file extension is one or more characters that occur after the last period (.) in the file's name.
145-
* If a file has no extension,
146-
* Guesses the mimetype of file data based on the file's extension.
147139
*
148140
* @param file the file whose extension may match a known mimetype.
149141
* @return the file's mimetype based on its extension, or a default value of
@@ -159,10 +151,6 @@ public String getMimetype(File file) {
159151
* no extension, or the extension is not available in the listing contained
160152
* in this class, the default mimetype <code>application/octet-stream</code>
161153
* is returned.
162-
* <p>
163-
* A file extension is one or more characters that occur after the last
164-
* period (.) in the file's name. If a file has no extension, Guesses the
165-
* mimetype of file data based on the file's extension.
166154
*
167155
* @param fileName The name of the file whose extension may match a known
168156
* mimetype.

core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/util/MimetypeTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
package software.amazon.awssdk.core.internal.util;
1717

1818
import static org.assertj.core.api.Assertions.assertThat;
19+
import static org.mockito.Mockito.mock;
20+
import static org.mockito.Mockito.when;
1921

22+
import java.nio.file.Path;
2023
import org.junit.BeforeClass;
2124
import org.junit.Test;
2225

@@ -48,4 +51,11 @@ public void unknownExtensions_defaulttoBeStream() throws Exception {
4851
public void noExtensions_defaulttoBeStream() throws Exception {
4952
assertThat(mimetype.getMimetype("test")).isEqualTo(Mimetype.MIMETYPE_OCTET_STREAM);
5053
}
54+
55+
@Test
56+
public void pathWithoutFileName_defaulttoBeStream() throws Exception {
57+
Path mockPath = mock(Path.class);
58+
when(mockPath.getFileName()).thenReturn(null);
59+
assertThat(mimetype.getMimetype(mockPath)).isEqualTo(Mimetype.MIMETYPE_OCTET_STREAM);
60+
}
5161
}

0 commit comments

Comments
 (0)