Skip to content

Commit f93d8de

Browse files
Merge pull request #3519 from aws/staging/4dd720f1-8e2c-4099-82bd-de105e4d3d67
Pull request: release <- staging/4dd720f1-8e2c-4099-82bd-de105e4d3d67
2 parents d6f2fa1 + b982d70 commit f93d8de

File tree

554 files changed

+4905
-3914
lines changed

Some content is hidden

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

554 files changed

+4905
-3914
lines changed

.changes/2.29.33.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2.29.33",
3+
"date": "2024-12-12",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS Database Migration Service",
8+
"contributor": "",
9+
"description": "Add parameters to support for kerberos authentication. Add parameter for disabling the Unicode source filter with PostgreSQL settings. Add parameter to use large integer value with Kinesis/Kafka settings."
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS Glue",
14+
"contributor": "",
15+
"description": "To support customer-managed encryption in Data Quality to allow customers encrypt data with their own KMS key, we will add a DataQualityEncryption field to the SecurityConfiguration API where customers can provide their KMS keys."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "Amazon Connect Service",
20+
"contributor": "",
21+
"description": "Configure holidays and other overrides to hours of operation in advance. During contact handling, Amazon Connect automatically checks for overrides and provides customers with an appropriate flow path. After an override period passes call center automatically reverts to standard hours of operation."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Amazon GuardDuty",
26+
"contributor": "",
27+
"description": "Improved descriptions for certain APIs."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "Amazon Route 53 Domains",
32+
"contributor": "",
33+
"description": "This release includes the following API updates: added the enumeration type RESTORE_DOMAIN to the OperationType; constrained the Price attribute to non-negative values; updated the LangCode to allow 2 or 3 alphabetical characters."
34+
},
35+
{
36+
"type": "feature",
37+
"category": "AWS SDK for Java v2",
38+
"contributor": "",
39+
"description": "Updated endpoint and partition metadata."
40+
}
41+
]
42+
}

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
2+
# __2.29.33__ __2024-12-12__
3+
## __AWS Database Migration Service__
4+
- ### Features
5+
- Add parameters to support for kerberos authentication. Add parameter for disabling the Unicode source filter with PostgreSQL settings. Add parameter to use large integer value with Kinesis/Kafka settings.
6+
7+
## __AWS Glue__
8+
- ### Features
9+
- To support customer-managed encryption in Data Quality to allow customers encrypt data with their own KMS key, we will add a DataQualityEncryption field to the SecurityConfiguration API where customers can provide their KMS keys.
10+
11+
## __AWS SDK for Java v2__
12+
- ### Features
13+
- Updated endpoint and partition metadata.
14+
15+
## __Amazon Connect Service__
16+
- ### Features
17+
- Configure holidays and other overrides to hours of operation in advance. During contact handling, Amazon Connect automatically checks for overrides and provides customers with an appropriate flow path. After an override period passes call center automatically reverts to standard hours of operation.
18+
19+
## __Amazon GuardDuty__
20+
- ### Features
21+
- Improved descriptions for certain APIs.
22+
23+
## __Amazon Route 53 Domains__
24+
- ### Features
25+
- This release includes the following API updates: added the enumeration type RESTORE_DOMAIN to the OperationType; constrained the Price attribute to non-negative values; updated the LangCode to allow 2 or 3 alphabetical characters.
26+
227
# __2.29.32__ __2024-12-11__
328
## __AWS Artifact__
429
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To automatically manage module versions (currently all modules have the same ver
5151
<dependency>
5252
<groupId>software.amazon.awssdk</groupId>
5353
<artifactId>bom</artifactId>
54-
<version>2.29.32</version>
54+
<version>2.29.33</version>
5555
<type>pom</type>
5656
<scope>import</scope>
5757
</dependency>
@@ -85,12 +85,12 @@ Alternatively you can add dependencies for the specific services you use only:
8585
<dependency>
8686
<groupId>software.amazon.awssdk</groupId>
8787
<artifactId>ec2</artifactId>
88-
<version>2.29.32</version>
88+
<version>2.29.33</version>
8989
</dependency>
9090
<dependency>
9191
<groupId>software.amazon.awssdk</groupId>
9292
<artifactId>s3</artifactId>
93-
<version>2.29.32</version>
93+
<version>2.29.33</version>
9494
</dependency>
9595
```
9696

@@ -102,7 +102,7 @@ You can import the whole SDK into your project (includes *ALL* services). Please
102102
<dependency>
103103
<groupId>software.amazon.awssdk</groupId>
104104
<artifactId>aws-sdk-java</artifactId>
105-
<version>2.29.32</version>
105+
<version>2.29.33</version>
106106
</dependency>
107107
```
108108

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.29.32</version>
23+
<version>2.29.33</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.29.32</version>
23+
<version>2.29.33</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.29.32</version>
23+
<version>2.29.33</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.29.32</version>
23+
<version>2.29.33</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.29.32</version>
20+
<version>2.29.33</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.29.32</version>
23+
<version>2.29.33</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.29.32</version>
20+
<version>2.29.33</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>

bundle-logging-bridge/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.29.32</version>
24+
<version>2.29.33</version>
2525
</parent>
2626
<artifactId>bundle-logging-bridge</artifactId>
2727
<packaging>jar</packaging>

bundle-sdk/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.29.32</version>
24+
<version>2.29.33</version>
2525
</parent>
2626
<artifactId>bundle-sdk</artifactId>
2727
<packaging>jar</packaging>

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

codegen/src/main/java/software/amazon/awssdk/codegen/poet/model/AwsServiceModel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ public TypeSpec poetSpec() {
113113
.addMethod(addModifier(sdkFieldNameToFieldMethod(), FINAL))
114114
.addTypes(nestedModelClassTypes());
115115

116+
shapeModelSpec.additionalMethods().forEach(specBuilder::addMethod);
117+
116118
if (shapeModel.isUnion()) {
117119
specBuilder.addField(unionTypeField());
118120
}

codegen/src/main/java/software/amazon/awssdk/codegen/poet/model/ShapeModelSpec.java

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import com.squareup.javapoet.ClassName;
1919
import com.squareup.javapoet.CodeBlock;
2020
import com.squareup.javapoet.FieldSpec;
21+
import com.squareup.javapoet.MethodSpec;
2122
import com.squareup.javapoet.ParameterizedTypeName;
2223
import com.squareup.javapoet.WildcardTypeName;
2324
import java.util.ArrayList;
@@ -128,7 +129,7 @@ public Iterable<FieldSpec> staticFields(Modifier... modifiers) {
128129
sdkFieldType),
129130
"SDK_NAME_TO_FIELD",
130131
Modifier.PRIVATE, Modifier.STATIC, Modifier.FINAL)
131-
.initializer(memberNameToFieldInitializer(nameToField))
132+
.initializer(memberNameToFieldInitializer())
132133
.build());
133134
return fields;
134135
}
@@ -150,6 +151,22 @@ private CodeBlock sdkFieldInitializer(MemberModel m) {
150151
.build();
151152
}
152153

154+
public List<MethodSpec> additionalMethods() {
155+
return Collections.singletonList(memberNameToFieldInitializerMethod(nameToField()));
156+
}
157+
158+
public Map<String, String> nameToField() {
159+
Map<String, String> nameToField = new LinkedHashMap<>();
160+
shapeModel.getNonStreamingMembers().stream()
161+
.filter(m -> m.getShape() == null || m.getShape().getShapeType() != ShapeType.Exception)
162+
.filter(m -> !m.isSynthetic())
163+
.forEach(m -> {
164+
String name = m.getHttp().getMarshallLocationName();
165+
nameToField.put(name, namingStrategy.getSdkFieldFieldName(m));
166+
});
167+
return nameToField;
168+
}
169+
153170
private CodeBlock containerSdkFieldInitializer(MemberModel m) {
154171
ClassName sdkFieldType = ClassName.get(SdkField.class);
155172
return CodeBlock.builder()
@@ -392,18 +409,29 @@ private CodeBlock sdkFieldsInitializer(List<FieldSpec> fields) {
392409
return builder.build();
393410
}
394411

395-
private CodeBlock memberNameToFieldInitializer(Map<String, String> nameToField) {
396-
CodeBlock.Builder builder = CodeBlock.builder();
412+
private CodeBlock memberNameToFieldInitializer() {
413+
return CodeBlock.builder()
414+
.add("memberNameToFieldInitializer()")
415+
.build();
416+
}
417+
418+
private MethodSpec memberNameToFieldInitializerMethod(Map<String, String> nameToField) {
419+
ParameterizedTypeName sdkFieldT = ParameterizedTypeName.get(ClassName.get(SdkField.class),
420+
WildcardTypeName.subtypeOf(Object.class));
421+
ParameterizedTypeName mapT = ParameterizedTypeName.get(ClassName.get(Map.class), ClassName.get(String.class),
422+
sdkFieldT);
423+
MethodSpec.Builder builder = MethodSpec.methodBuilder("memberNameToFieldInitializer")
424+
.addModifiers(Modifier.PRIVATE, Modifier.STATIC)
425+
.returns(mapT);
426+
397427
if (nameToField.isEmpty()) {
398-
builder.add("$T.emptyMap()", Collections.class);
399-
return builder.build();
428+
builder.addStatement("return $T.emptyMap()", Collections.class);
429+
} else {
430+
builder.addStatement("$T map = new $T<>()", mapT, HashMap.class);
431+
nameToField.forEach((name, field) -> builder.addStatement("map.put($S, $L)", name, field));
432+
builder.addStatement("return $T.unmodifiableMap(map)", Collections.class);
400433
}
401-
builder.add("$T.unmodifiableMap(", Collections.class);
402-
builder.add("new $T<$T, $T<?>>() {{\n", HashMap.class, String.class, SdkField.class);
403-
nameToField.forEach((name, field) -> builder.add("put($S, $L);\n", name, field));
404-
builder.add("}}");
405-
builder.add(")");
434+
406435
return builder.build();
407436
}
408-
409437
}

0 commit comments

Comments
 (0)