Skip to content

Commit 64a2536

Browse files
Merge pull request #1343 from aws/staging/ab818737-a9a2-4d6f-932e-5c70362e09e0
Pull request: release <- staging/ab818737-a9a2-4d6f-932e-5c70362e09e0
2 parents 4a6a4d9 + cbcae41 commit 64a2536

File tree

344 files changed

+7845
-330
lines changed

Some content is hidden

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

344 files changed

+7845
-330
lines changed

.changes/2.16.50.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": "2.16.50",
3+
"date": "2021-04-28",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS IoT SiteWise",
8+
"contributor": "",
9+
"description": "AWS IoT SiteWise interpolation API will get interpolated values for an asset property per specified time interval during a period of time."
10+
},
11+
{
12+
"type": "feature",
13+
"category": "Amazon Connect Service",
14+
"contributor": "",
15+
"description": "Updated max number of tags that can be attached from 200 to 50. MaxContacts is now an optional parameter for the UpdateQueueMaxContact API."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "AmazonNimbleStudio",
20+
"contributor": "",
21+
"description": "Amazon Nimble Studio is a virtual studio service that empowers visual effects, animation, and interactive content teams to create content securely within a scalable, private cloud service."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "AWS Elemental MediaPackage VOD",
26+
"contributor": "",
27+
"description": "MediaPackage now offers the option to place your Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) encoder metadata in every video segment instead of in the init fragment for DASH and CMAF endpoints."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "AWS CloudFormation",
32+
"contributor": "",
33+
"description": "Add CallAs parameter to GetTemplateSummary to enable use with StackSets delegated administrator integration"
34+
}
35+
]
36+
}

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# __2.16.50__ __2021-04-28__
2+
## __AWS CloudFormation__
3+
- ### Features
4+
- Add CallAs parameter to GetTemplateSummary to enable use with StackSets delegated administrator integration
5+
6+
## __AWS Elemental MediaPackage VOD__
7+
- ### Features
8+
- MediaPackage now offers the option to place your Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) encoder metadata in every video segment instead of in the init fragment for DASH and CMAF endpoints.
9+
10+
## __AWS IoT SiteWise__
11+
- ### Features
12+
- AWS IoT SiteWise interpolation API will get interpolated values for an asset property per specified time interval during a period of time.
13+
14+
## __Amazon Connect Service__
15+
- ### Features
16+
- Updated max number of tags that can be attached from 200 to 50. MaxContacts is now an optional parameter for the UpdateQueueMaxContact API.
17+
18+
## __AmazonNimbleStudio__
19+
- ### Features
20+
- Amazon Nimble Studio is a virtual studio service that empowers visual effects, animation, and interactive content teams to create content securely within a scalable, private cloud service.
21+
122
# __2.16.49__ __2021-04-27__
223
## __AWS Audit Manager__
324
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
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.16.49</version>
55+
<version>2.16.50</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.16.49</version>
89+
<version>2.16.50</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.16.49</version>
94+
<version>2.16.50</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.16.49</version>
106+
<version>2.16.50</version>
107107
</dependency>
108108
```
109109

archetypes/archetype-app-quickstart/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.16.49</version>
23+
<version>2.16.50</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

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.16.49</version>
23+
<version>2.16.50</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetype-lambda</artifactId>

archetypes/archetype-tools/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.16.49</version>
23+
<version>2.16.50</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

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.16.49</version>
23+
<version>2.16.50</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetypes</artifactId>

aws-sdk-java/pom.xml

Lines changed: 6 additions & 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.16.49</version>
20+
<version>2.16.50</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>aws-sdk-java</artifactId>
@@ -1323,6 +1323,11 @@ Amazon AutoScaling, etc).</description>
13231323
<artifactId>lookoutequipment</artifactId>
13241324
<version>${awsjavasdk.version}</version>
13251325
</dependency>
1326+
<dependency>
1327+
<groupId>software.amazon.awssdk</groupId>
1328+
<artifactId>nimble</artifactId>
1329+
<version>${awsjavasdk.version}</version>
1330+
</dependency>
13261331
</dependencies>
13271332
<build>
13281333
<finalName>${project.artifactId}-${project.version}</finalName>

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.16.49</version>
23+
<version>2.16.50</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

bom/pom.xml

Lines changed: 6 additions & 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.16.49</version>
20+
<version>2.16.50</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>
@@ -1453,6 +1453,11 @@
14531453
<artifactId>lookoutequipment</artifactId>
14541454
<version>${awsjavasdk.version}</version>
14551455
</dependency>
1456+
<dependency>
1457+
<groupId>software.amazon.awssdk</groupId>
1458+
<artifactId>nimble</artifactId>
1459+
<version>${awsjavasdk.version}</version>
1460+
</dependency>
14561461
</dependencies>
14571462
</dependencyManagement>
14581463
</project>

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.16.49</version>
24+
<version>2.16.50</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.16.49</version>
25+
<version>2.16.50</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.16.49</version>
24+
<version>2.16.50</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.16.49</version>
25+
<version>2.16.50</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.16.49</version>
24+
<version>2.16.50</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ public class CustomizationConfig {
187187
*/
188188
private UnderscoresInNameBehavior underscoresInNameBehavior;
189189

190+
private String userAgent;
191+
190192
private CustomizationConfig() {
191193
}
192194

@@ -470,4 +472,17 @@ public CustomizationConfig withUnderscoresInShapeNameBehavior(UnderscoresInNameB
470472
this.underscoresInNameBehavior = behavior;
471473
return this;
472474
}
475+
476+
public String getUserAgent() {
477+
return userAgent;
478+
}
479+
480+
public void setUserAgent(String userAgent) {
481+
this.userAgent = userAgent;
482+
}
483+
484+
public CustomizationConfig withUserAgent(String userAgent) {
485+
this.userAgent = userAgent;
486+
return this;
487+
}
473488
}

codegen/src/main/java/software/amazon/awssdk/codegen/poet/builder/BaseClientBuilderClass.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ public TypeSpec poetSpec() {
9191
builder.addMethod(serviceEndpointPrefixMethod());
9292
builder.addMethod(serviceNameMethod());
9393
builder.addMethod(mergeServiceDefaultsMethod());
94+
95+
if (model.getCustomizationConfig().getUserAgent() != null) {
96+
builder.addMethod(mergeInternalDefaultsMethod());
97+
}
98+
9499
builder.addMethod(finalizeServiceConfigurationMethod());
95100
builder.addMethod(defaultSignerMethod());
96101
builder.addMethod(signingNameMethod());
@@ -170,6 +175,21 @@ private MethodSpec mergeServiceDefaultsMethod() {
170175
return builder.build();
171176
}
172177

178+
private MethodSpec mergeInternalDefaultsMethod() {
179+
String userAgent = model.getCustomizationConfig().getUserAgent();
180+
181+
MethodSpec.Builder builder = MethodSpec.methodBuilder("mergeInternalDefaults")
182+
.addAnnotation(Override.class)
183+
.addModifiers(PROTECTED, FINAL)
184+
.returns(SdkClientConfiguration.class)
185+
.addParameter(SdkClientConfiguration.class, "config")
186+
.addCode("return config.merge(c -> c.option($T.INTERNAL_USER_AGENT, $S)\n",
187+
SdkClientOption.class, userAgent);
188+
189+
builder.addCode(");");
190+
return builder.build();
191+
}
192+
173193
private MethodSpec finalizeServiceConfigurationMethod() {
174194
String requestHandlerDirectory = Utils.packageToDirectory(model.getMetadata().getFullClientPackageName());
175195
String requestHandlerPath = String.format("%s/execution.interceptors", requestHandlerDirectory);

codegen/src/main/java/software/amazon/awssdk/codegen/poet/client/AsyncClientInterface.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
import java.util.stream.Stream;
3333
import javax.lang.model.element.Modifier;
3434
import org.reactivestreams.Publisher;
35+
import software.amazon.awssdk.annotations.SdkPublicApi;
36+
import software.amazon.awssdk.annotations.ThreadSafe;
3537
import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider;
3638
import software.amazon.awssdk.codegen.docs.ClientType;
3739
import software.amazon.awssdk.codegen.docs.DocConfiguration;
@@ -76,6 +78,8 @@ public TypeSpec poetSpec() {
7678
TypeSpec.Builder result = PoetUtils.createInterfaceBuilder(className);
7779

7880
result.addSuperinterface(SdkClient.class)
81+
.addAnnotation(SdkPublicApi.class)
82+
.addAnnotation(ThreadSafe.class)
7983
.addField(FieldSpec.builder(String.class, "SERVICE_NAME")
8084
.addModifiers(Modifier.PUBLIC, Modifier.STATIC, Modifier.FINAL)
8185
.initializer("$S", model.getMetadata().getSigningName())

codegen/src/main/java/software/amazon/awssdk/codegen/poet/client/SyncClientInterface.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
import java.util.List;
3535
import java.util.function.Consumer;
3636
import javax.lang.model.element.Modifier;
37+
import software.amazon.awssdk.annotations.SdkPublicApi;
38+
import software.amazon.awssdk.annotations.ThreadSafe;
3739
import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider;
3840
import software.amazon.awssdk.awscore.exception.AwsServiceException;
3941
import software.amazon.awssdk.codegen.docs.ClientType;
@@ -75,7 +77,10 @@ public SyncClientInterface(IntermediateModel model) {
7577
public TypeSpec poetSpec() {
7678
TypeSpec.Builder result = PoetUtils.createInterfaceBuilder(className);
7779

80+
7881
result.addSuperinterface(SdkClient.class)
82+
.addAnnotation(SdkPublicApi.class)
83+
.addAnnotation(ThreadSafe.class)
7984
.addField(FieldSpec.builder(String.class, "SERVICE_NAME")
8085
.addModifiers(Modifier.PUBLIC, Modifier.STATIC, Modifier.FINAL)
8186
.initializer("$S", model.getMetadata().getSigningName())

codegen/src/test/java/software/amazon/awssdk/codegen/poet/ClientTestModels.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public class ClientTestModels {
3232
private ClientTestModels() {}
3333

3434
public static IntermediateModel jsonServiceModels() {
35-
File serviceModel = new File(ClientTestModels.class.getResource("client/c2j/json/service-2.json").getFile());
36-
File customizationModel = new File(ClientTestModels.class.getResource("client/c2j/json/customization.config").getFile());
37-
File paginatorsModel = new File(ClientTestModels.class.getResource("client/c2j/json/paginators.json").getFile());
35+
File serviceModel = new File(ClientTestModels.class.getResource("client/c2j/rest-json/service-2.json").getFile());
36+
File customizationModel = new File(ClientTestModels.class.getResource("client/c2j/rest-json/customization.config").getFile());
37+
File paginatorsModel = new File(ClientTestModels.class.getResource("client/c2j/rest-json/paginators.json").getFile());
3838
C2jModels models = C2jModels.builder()
3939
.serviceModel(getServiceModel(serviceModel))
4040
.customizationConfig(getCustomizationConfig(customizationModel))
@@ -85,6 +85,18 @@ public static IntermediateModel endpointDiscoveryModels() {
8585
return new IntermediateModelBuilder(models).build();
8686
}
8787

88+
public static IntermediateModel internalConfigModels() {
89+
File serviceModel = new File(ClientTestModels.class.getResource("client/c2j/internalconfig/service-2.json").getFile());
90+
File customizationModel = new File(ClientTestModels.class.getResource("client/c2j/internalconfig/customization.config").getFile());
91+
92+
C2jModels models = C2jModels.builder()
93+
.serviceModel(getServiceModel(serviceModel))
94+
.customizationConfig(getCustomizationConfig(customizationModel))
95+
.build();
96+
97+
return new IntermediateModelBuilder(models).build();
98+
}
99+
88100
private static ServiceModel getServiceModel(File file) {
89101
return ModelLoaderUtils.loadModel(ServiceModel.class, file);
90102
}

codegen/src/test/java/software/amazon/awssdk/codegen/poet/builder/BuilderClassTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public void baseClientBuilderClass() throws Exception {
3838
validateGeneration(BaseClientBuilderClass::new, "test-client-builder-class.java");
3939
}
4040

41+
@Test
42+
public void baseClientBuilderClassWithInternalUserAgent() throws Exception {
43+
assertThat(new BaseClientBuilderClass(ClientTestModels.internalConfigModels()), generatesTo("test-client-builder-internal-user-agent-class.java"));
44+
}
45+
4146
@Test
4247
public void baseQueryClientBuilderClass() throws Exception {
4348
validateQueryGeneration(BaseClientBuilderClass::new, "test-query-client-builder-class.java");

0 commit comments

Comments
 (0)