Skip to content

Commit

Permalink
Remove incorrect defaults for iot
Browse files Browse the repository at this point in the history
Removes the defaults of a few shapes for iot, which are meant to
be nullable. Can remove this when the model is fixed upstream.
  • Loading branch information
milesziemer committed Nov 25, 2023
1 parent 3d0cb5c commit f463ba6
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RemoveDefaultsDecorator : ClientCodegenDecorator {
"com.amazonaws.drs#Validity",
"com.amazonaws.drs#CostOptimizationConfiguration\$burstBalanceThreshold",
"com.amazonaws.drs#CostOptimizationConfiguration\$burstBalanceDeltaThreshold",
"com.amazonaws.drs#ListStagingAccountsRequest\$maxResults",
"com.amazonaws.drs.synthetic#ListStagingAccountsInput\$maxResults",
"com.amazonaws.drs#StrictlyPositiveInteger",
"com.amazonaws.drs#MaxResultsType",
"com.amazonaws.drs#MaxResultsReplicatingSourceServers",
Expand All @@ -45,8 +45,8 @@ class RemoveDefaultsDecorator : ClientCodegenDecorator {
"com.amazonaws.evidently#ResultsPeriod",
),
"com.amazonaws.location#LocationService" to setOf(
"com.amazonaws.location#ListPlaceIndexesRequest\$MaxResults",
"com.amazonaws.location#SearchPlaceIndexForSuggestionsRequest\$MaxResults",
"com.amazonaws.location.synthetic#ListPlaceIndexesInput\$MaxResults",
"com.amazonaws.location.synthetic#SearchPlaceIndexForSuggestionsInput\$MaxResults",
"com.amazonaws.location#PlaceIndexSearchResultLimit",
),
"com.amazonaws.paymentcryptographydata#PaymentCryptographyDataPlane" to setOf(
Expand All @@ -61,6 +61,14 @@ class RemoveDefaultsDecorator : ClientCodegenDecorator {
"com.amazonaws.s3control#PublicAccessBlockConfiguration\$BlockPublicPolicy",
"com.amazonaws.s3control#PublicAccessBlockConfiguration\$RestrictPublicBuckets",
),
"com.amazonaws.iot#AWSIotService" to setOf(
"com.amazonaws.iot#ThingConnectivity\$connected",
"com.amazonaws.iot.synthetic#UpdateProvisioningTemplateInput\$enabled",
"com.amazonaws.iot.synthetic#CreateProvisioningTemplateInput\$enabled",
"com.amazonaws.iot.synthetic#DescribeProvisioningTemplateOutput\$enabled",
"com.amazonaws.iot.synthetic#DescribeProvisioningTemplateOutput\$enabled",
"com.amazonaws.iot#ProvisioningTemplateSummary\$enabled",
),
).map { (k, v) -> k.shapeId() to v.map { it.shapeId() }.toSet() }.toMap()

private fun applies(service: ServiceShape) =
Expand Down

0 comments on commit f463ba6

Please sign in to comment.