Skip to content

Commit

Permalink
fix: remove defaults for iot (#1135)
Browse files Browse the repository at this point in the history
Co-authored-by: Matas Lauzadis <lauzmata@amazon.com>
  • Loading branch information
milesziemer and lauzadis authored Nov 26, 2023
1 parent 766ca34 commit b6f1880
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/1e91a1e6-0e91-4d86-bb41-1ed63b8a95bc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"id": "1e91a1e6-0e91-4d86-bb41-1ed63b8a95bc",
"type": "bugfix",
"description": "**Breaking**: Make some properties of IoT types optional. Previously they defaulted to false, which isn't what the service expects."
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ class RemoveDefaults : KotlinIntegration {
"com.amazonaws.s3control#PublicAccessBlockConfiguration\$BlockPublicPolicy",
"com.amazonaws.s3control#PublicAccessBlockConfiguration\$RestrictPublicBuckets",
),
"com.amazonaws.iot#AWSIotService" to setOf(
"com.amazonaws.iot#ThingConnectivity\$connected",
"com.amazonaws.iot#UpdateProvisioningTemplateRequest\$enabled",
"com.amazonaws.iot#CreateProvisioningTemplateRequest\$enabled",
"com.amazonaws.iot#DescribeProvisioningTemplateResponse\$enabled",
"com.amazonaws.iot#ProvisioningTemplateSummary\$enabled",
),
).map { (k, v) -> ShapeId.from(k) to v.map { ShapeId.from(it) }.toSet() }.toMap()

override val order: Byte = 0
Expand Down

0 comments on commit b6f1880

Please sign in to comment.