Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Mar 28, 2024
1 parent 5a6b2c0 commit 0480396
Show file tree
Hide file tree
Showing 8 changed files with 398 additions and 59 deletions.
152 changes: 150 additions & 2 deletions codegen/sdk-codegen/aws-models/codecatalyst.json

Large diffs are not rendered by default.

26 changes: 19 additions & 7 deletions codegen/sdk-codegen/aws-models/compute-optimizer.json
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,12 @@
"smithy.api#enumValue": "PERCENT_20"
}
},
"PERCENT_10": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "PERCENT_10"
}
},
"PERCENT_0": {
"target": "smithy.api#Unit",
"traits": {
Expand All @@ -1496,6 +1502,12 @@
"traits": {
"smithy.api#enumValue": "CpuUtilization"
}
},
"MEMORY_UTILIZATION": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "MemoryUtilization"
}
}
}
},
Expand All @@ -1505,13 +1517,13 @@
"threshold": {
"target": "com.amazonaws.computeoptimizer#CustomizableMetricThreshold",
"traits": {
"smithy.api#documentation": "<p>\n The threshold value used for the specified metric parameter.\n </p>"
"smithy.api#documentation": "<p>\n The threshold value used for the specified metric parameter.\n </p>\n <note>\n <p>You can only specify the threshold value for CPU utilization.</p>\n </note>"
}
},
"headroom": {
"target": "com.amazonaws.computeoptimizer#CustomizableMetricHeadroom",
"traits": {
"smithy.api#documentation": "<p>\n The headroom threshold value in percentage used for the specified metric parameter.\n </p>"
"smithy.api#documentation": "<p>\n The headroom value in percentage used for the specified metric parameter.\n </p>\n <p>The following lists the valid values for CPU and memory utilization.</p>\n <ul>\n <li>\n <p>CPU utilization: <code>PERCENT_30 | PERCENT_20 | PERCENT_0</code>\n </p>\n </li>\n <li>\n <p>Memory utilization: <code>PERCENT_30 | PERCENT_20 | PERCENT_10</code>\n </p>\n </li>\n </ul>"
}
}
},
Expand Down Expand Up @@ -2539,7 +2551,7 @@
"utilizationPreferences": {
"target": "com.amazonaws.computeoptimizer#UtilizationPreferences",
"traits": {
"smithy.api#documentation": "<p>\n The resource’s CPU utilization threshold preferences, such as threshold and headroom, that \n are used to generate rightsizing recommendations. \n </p>\n <note>\n <p>This preference is only available for the Amazon EC2 instance resource type.</p>\n </note>"
"smithy.api#documentation": "<p>\n The resource’s CPU and memory utilization preferences, such as threshold and headroom, that \n are used to generate rightsizing recommendations. \n </p>\n <note>\n <p>This preference is only available for the Amazon EC2 instance resource type.</p>\n </note>"
}
},
"preferredResources": {
Expand Down Expand Up @@ -5811,7 +5823,7 @@
"utilizationPreferences": {
"target": "com.amazonaws.computeoptimizer#UtilizationPreferences",
"traits": {
"smithy.api#documentation": "<p>\n The resource’s CPU utilization threshold preferences, such as threshold and headroom, \n that were used to generate rightsizing recommendations. It considers all applicable preferences \n that you set at the resource, account, and organization level.\n </p>\n <p>To validate that the preference is applied to your last generated set of recommendations, review the \n <code>effectiveRecommendationPreferences</code> value in the response of the \n GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.</p>"
"smithy.api#documentation": "<p>\n The resource’s CPU and memory utilization preferences, such as threshold and headroom, \n that were used to generate rightsizing recommendations. It considers all applicable preferences \n that you set at the resource, account, and organization level.\n </p>\n <p>To validate that the preference is applied to your last generated set of recommendations, review the \n <code>effectiveRecommendationPreferences</code> value in the response of the \n GetAutoScalingGroupRecommendations or GetEC2InstanceRecommendations actions.</p>"
}
},
"preferredResources": {
Expand Down Expand Up @@ -8591,7 +8603,7 @@
"utilizationPreferences": {
"target": "com.amazonaws.computeoptimizer#UtilizationPreferences",
"traits": {
"smithy.api#documentation": "<p>\n The preference to control the resource’s CPU utilization thresholds - threshold and headroom. When this \n preference isn't specified, we use the following default values:\n </p>\n <ul>\n <li>\n <p>\n <code>P99_5</code> for threshold</p>\n </li>\n <li>\n <p>\n <code>PERCENT_17</code> for headroom</p>\n </li>\n </ul>\n <note>\n <p>You can only set this preference for the Amazon EC2 instance resource type.</p>\n </note>"
"smithy.api#documentation": "<p>\n The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom. When this \n preference isn't specified, we use the following default values.\n </p>\n <p>CPU utilization:</p>\n <ul>\n <li>\n <p>\n <code>P99_5</code> for threshold</p>\n </li>\n <li>\n <p>\n <code>PERCENT_20</code> for headroom</p>\n </li>\n </ul>\n <p>Memory utilization:</p>\n <ul>\n <li>\n <p>\n <code>PERCENT_20</code> for headroom</p>\n </li>\n </ul>\n <note>\n <ul>\n <li>\n <p>You can only set CPU and memory utilization preferences for the Amazon EC2 instance resource type.</p>\n </li>\n <li>\n <p>The threshold setting isn’t available for memory utilization.</p>\n </li>\n </ul>\n </note>"
}
},
"preferredResources": {
Expand Down Expand Up @@ -8816,7 +8828,7 @@
"utilizationPreferences": {
"target": "com.amazonaws.computeoptimizer#UtilizationPreferences",
"traits": {
"smithy.api#documentation": "<p>\n The preference to control the resource’s CPU utilization thresholds - threshold and headroom. \n If the preference isn’t set, this object is null. \n </p>\n <note>\n <p>This preference is only available for the Amazon EC2 instance resource type.</p>\n </note>"
"smithy.api#documentation": "<p>\n The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom. \n If the preference isn’t set, this object is null. \n </p>\n <note>\n <p>This preference is only available for the Amazon EC2 instance resource type.</p>\n </note>"
}
},
"preferredResources": {
Expand Down Expand Up @@ -9516,7 +9528,7 @@
"metricName": {
"target": "com.amazonaws.computeoptimizer#CustomizableMetricName",
"traits": {
"smithy.api#documentation": "<p>\n The name of the resource utilization metric name to customize. \n </p>\n <note>\n <p>Compute Optimizer only supports <code>CpuUtilization</code>.</p>\n </note>"
"smithy.api#documentation": "<p>\n The name of the resource utilization metric name to customize. \n </p>"
}
},
"metricParameters": {
Expand Down
18 changes: 18 additions & 0 deletions codegen/sdk-codegen/aws-models/ec2.json
Original file line number Diff line number Diff line change
Expand Up @@ -65635,6 +65635,24 @@
"traits": {
"smithy.api#enumValue": "r7iz.metal-32xl"
}
},
"c7gd_metal": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "c7gd.metal"
}
},
"m7gd_metal": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "m7gd.metal"
}
},
"r7gd_metal": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "r7gd.metal"
}
}
}
},
Expand Down
12 changes: 12 additions & 0 deletions codegen/sdk-codegen/aws-models/eks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8406,6 +8406,18 @@
"traits": {
"smithy.api#enumValue": "AutoScalingGroupInstanceRefreshActive"
}
},
"KUBERNETES_LABEL_INVALID": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "KubernetesLabelInvalid"
}
},
"EC2_LAUNCH_TEMPLATE_VERSION_MAX_LIMIT_EXCEEDED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "Ec2LaunchTemplateVersionMaxLimitExceeded"
}
}
}
},
Expand Down
Loading

0 comments on commit 0480396

Please sign in to comment.