Skip to content

Commit b6f1880

Browse files
fix: remove defaults for iot (#1135)
Co-authored-by: Matas Lauzadis <[email protected]>
1 parent 766ca34 commit b6f1880

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "1e91a1e6-0e91-4d86-bb41-1ed63b8a95bc",
3+
"type": "bugfix",
4+
"description": "**Breaking**: Make some properties of IoT types optional. Previously they defaulted to false, which isn't what the service expects."
5+
}

codegen/smithy-aws-kotlin-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/customization/RemoveDefaults.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ class RemoveDefaults : KotlinIntegration {
6161
"com.amazonaws.s3control#PublicAccessBlockConfiguration\$BlockPublicPolicy",
6262
"com.amazonaws.s3control#PublicAccessBlockConfiguration\$RestrictPublicBuckets",
6363
),
64+
"com.amazonaws.iot#AWSIotService" to setOf(
65+
"com.amazonaws.iot#ThingConnectivity\$connected",
66+
"com.amazonaws.iot#UpdateProvisioningTemplateRequest\$enabled",
67+
"com.amazonaws.iot#CreateProvisioningTemplateRequest\$enabled",
68+
"com.amazonaws.iot#DescribeProvisioningTemplateResponse\$enabled",
69+
"com.amazonaws.iot#ProvisioningTemplateSummary\$enabled",
70+
),
6471
).map { (k, v) -> ShapeId.from(k) to v.map { ShapeId.from(it) }.toSet() }.toMap()
6572

6673
override val order: Byte = 0

0 commit comments

Comments
 (0)