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 Dec 8, 2023
1 parent c7357bb commit cbd9216
Show file tree
Hide file tree
Showing 3 changed files with 3,196 additions and 307 deletions.
22 changes: 14 additions & 8 deletions codegen/sdk-codegen/aws-models/cloudwatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2396,7 +2396,7 @@
"OutputFormat": {
"target": "com.amazonaws.cloudwatch#MetricStreamOutputFormat",
"traits": {
"smithy.api#documentation": "<p>The output format for the stream. \n\t\t\tValid values are <code>json</code> and <code>opentelemetry0.7</code>. \n\t\t\tFor more information about metric stream output formats, \n\t\t\tsee <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html\">Metric streams output formats</a>.</p>"
"smithy.api#documentation": "<p>The output format for the stream. \n\t\t\tValid values are <code>json</code>, <code>opentelemetry1.0</code>, and <code>opentelemetry0.7</code>. \n\t\t\tFor more information about metric stream output formats, \n\t\t\tsee <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html\">Metric streams output formats</a>.</p>"
}
},
"StatisticsConfigurations": {
Expand Down Expand Up @@ -5152,7 +5152,7 @@
"OutputFormat": {
"target": "com.amazonaws.cloudwatch#MetricStreamOutputFormat",
"traits": {
"smithy.api#documentation": "<p>The output format of this metric stream. Valid values are \n\t\t\t<code>json</code>\n\t\t\tand <code>opentelemetry0.7</code>.</p>"
"smithy.api#documentation": "<p>The output format of this metric stream. Valid values are \n\t\t\t<code>json</code>, <code>opentelemetry1.0</code>, \n\t\t\tand <code>opentelemetry0.7</code>.</p>"
}
}
},
Expand Down Expand Up @@ -5221,6 +5221,12 @@
"traits": {
"smithy.api#enumValue": "opentelemetry0.7"
}
},
"OPEN_TELEMETRY_1_0": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "opentelemetry1.0"
}
}
},
"traits": {
Expand Down Expand Up @@ -5257,7 +5263,7 @@
"target": "com.amazonaws.cloudwatch#MetricStreamStatisticsAdditionalStatistics",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The list of additional statistics that are to be streamed for the metrics listed\n\t\t\tin the <code>IncludeMetrics</code> array in this structure. This list can include as many as 20 statistics.</p>\n <p>If the <code>OutputFormat</code> for the stream is <code>opentelemetry0.7</code>, the only \n\t\t\tvalid values are <code>p<i>??</i>\n </code> percentile statistics such as <code>p90</code>, <code>p99</code> and so on.</p>\n <p>If the <code>OutputFormat</code> for the stream is <code>json</code>, \n\t\t\tthe valid values include the abbreviations for all of the statistics listed in \n\t\t\t<a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html\">\n\t\t\t\tCloudWatch statistics definitions</a>. For example, this includes\n\t\t\t<code>tm98, </code>\n <code>wm90</code>, <code>PR(:300)</code>, and so on.</p>",
"smithy.api#documentation": "<p>The list of additional statistics that are to be streamed for the metrics listed\n\t\t\tin the <code>IncludeMetrics</code> array in this structure. This list can include as many as 20 statistics.</p>\n <p>If the <code>OutputFormat</code> for the stream is <code>opentelemetry1.0</code> or <code>opentelemetry0.7</code>, the only \n\t\t\tvalid values are <code>p<i>??</i>\n </code> percentile statistics such as <code>p90</code>, <code>p99</code> and so on.</p>\n <p>If the <code>OutputFormat</code> for the stream is <code>json</code>, \n\t\t\tthe valid values include the abbreviations for all of the statistics listed in \n\t\t\t<a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html\">\n\t\t\t\tCloudWatch statistics definitions</a>. For example, this includes\n\t\t\t<code>tm98, </code>\n <code>wm90</code>, <code>PR(:300)</code>, and so on.</p>",
"smithy.api#required": {}
}
}
Expand Down Expand Up @@ -5824,7 +5830,7 @@
"MetricName": {
"target": "com.amazonaws.cloudwatch#MetricName",
"traits": {
"smithy.api#documentation": "<p>The name for the metric associated with the alarm. For each <code>PutMetricAlarm</code>\n\t\toperation, you must specify either <code>MetricName</code> or a <code>Metrics</code> array.</p>\n <p>If you are creating an alarm based on a math expression, you cannot specify this parameter, or any of the \n\t\t\t<code>Dimensions</code>, <code>Period</code>,\n\t\t\t<code>Namespace</code>, <code>Statistic</code>, or <code>ExtendedStatistic</code> parameters. Instead, you specify \n\t\tall this information in the <code>Metrics</code> array.</p>"
"smithy.api#documentation": "<p>The name for the metric associated with the alarm. For each <code>PutMetricAlarm</code>\n\t\toperation, you must specify either <code>MetricName</code> or a <code>Metrics</code> array.</p>\n <p>If you are creating an alarm based on a math expression, you cannot specify this parameter, or any of the \n\t\t\t<code>Namespace</code>, <code>Dimensions</code>, <code>Period</code>,\n\t\t\t<code>Unit</code>, <code>Statistic</code>, or <code>ExtendedStatistic</code> parameters. Instead, you specify \n\t\tall this information in the <code>Metrics</code> array.</p>"
}
},
"Namespace": {
Expand Down Expand Up @@ -5860,7 +5866,7 @@
"Unit": {
"target": "com.amazonaws.cloudwatch#StandardUnit",
"traits": {
"smithy.api#documentation": "<p>The unit of measure for the statistic. For example, the units for the Amazon EC2\n\t\t\tNetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance\n\t\t\treceives on all network interfaces. You can also specify a unit when you create a custom\n\t\t\tmetric. Units help provide conceptual meaning to your data. Metric data points that\n\t\t\tspecify a unit of measure, such as Percent, are aggregated separately.</p>\n <p>If you don't specify <code>Unit</code>, CloudWatch retrieves all unit types that have been published for the\n\t\t\tmetric and attempts to evaluate the alarm.\n\t\t\tUsually, metrics are\n\t\t\tpublished with only one unit, so the alarm\n\t\t\tworks as intended.</p>\n <p>However, if the metric is published with multiple types of units and you don't specify a unit, the alarm's\n\t\t\tbehavior is not defined and\n\t\t\tit behaves unpredictably.</p>\n <p>We recommend omitting <code>Unit</code> so that you don't inadvertently\n\t\t\tspecify an incorrect unit that is not published for this metric. Doing so \n\t\t\tcauses the alarm to be stuck in the <code>INSUFFICIENT DATA</code> state.</p>"
"smithy.api#documentation": "<p>The unit of measure for the statistic. For example, the units for the Amazon EC2\n\t\t\tNetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance\n\t\t\treceives on all network interfaces. You can also specify a unit when you create a custom\n\t\t\tmetric. Units help provide conceptual meaning to your data. Metric data points that\n\t\t\tspecify a unit of measure, such as Percent, are aggregated separately.\n\t\t\tIf you are creating an alarm based on a metric math expression, you can specify the unit for each \n\t\t\tmetric (if needed) within the objects in the <code>Metrics</code> array.</p>\n <p>If you don't specify <code>Unit</code>, CloudWatch retrieves all unit types that have been published for the\n\t\t\tmetric and attempts to evaluate the alarm.\n\t\t\tUsually, metrics are\n\t\t\tpublished with only one unit, so the alarm\n\t\t\tworks as intended.</p>\n <p>However, if the metric is published with multiple types of units and you don't specify a unit, the alarm's\n\t\t\tbehavior is not defined and\n\t\t\tit behaves unpredictably.</p>\n <p>We recommend omitting <code>Unit</code> so that you don't inadvertently\n\t\t\tspecify an incorrect unit that is not published for this metric. Doing so \n\t\t\tcauses the alarm to be stuck in the <code>INSUFFICIENT DATA</code> state.</p>"
}
},
"EvaluationPeriods": {
Expand Down Expand Up @@ -5906,7 +5912,7 @@
"Metrics": {
"target": "com.amazonaws.cloudwatch#MetricDataQueries",
"traits": {
"smithy.api#documentation": "<p>An array of <code>MetricDataQuery</code> structures that enable you to create an alarm based on the result of a \n\t\t\tmetric math expression. For each <code>PutMetricAlarm</code>\n\t\t\toperation, you must specify either <code>MetricName</code> or a <code>Metrics</code> array.</p>\n <p>Each item in the <code>Metrics</code> array either retrieves a metric or performs a math expression.</p>\n <p>One item in the <code>Metrics</code> array is the expression that the alarm watches. You designate this expression \n\t\t\tby setting <code>ReturnData</code> to true for this object in the array. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDataQuery.html\">MetricDataQuery</a>.</p>\n <p>If you use the <code>Metrics</code> parameter, you cannot include the <code>MetricName</code>, <code>Dimensions</code>, <code>Period</code>,\n\t\t\t<code>Namespace</code>, <code>Statistic</code>, or <code>ExtendedStatistic</code> parameters of <code>PutMetricAlarm</code> in the same operation. \n\t\t\tInstead, you retrieve\n\t\tthe metrics you are using in your math expression as part of the <code>Metrics</code> array.</p>"
"smithy.api#documentation": "<p>An array of <code>MetricDataQuery</code> structures that enable you to create an alarm based on the result of a \n\t\t\tmetric math expression. For each <code>PutMetricAlarm</code>\n\t\t\toperation, you must specify either <code>MetricName</code> or a <code>Metrics</code> array.</p>\n <p>Each item in the <code>Metrics</code> array either retrieves a metric or performs a math expression.</p>\n <p>One item in the <code>Metrics</code> array is the expression that the alarm watches. You designate this expression \n\t\t\tby setting <code>ReturnData</code> to true for this object in the array. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDataQuery.html\">MetricDataQuery</a>.</p>\n <p>If you use the <code>Metrics</code> parameter, you cannot include the \n\t\t\t<code>Namespace</code>, <code>MetricName</code>, <code>Dimensions</code>, <code>Period</code>,\n\t\t\t<code>Unit</code>, <code>Statistic</code>, or <code>ExtendedStatistic</code> parameters of <code>PutMetricAlarm</code> in the same operation. \n\t\t\tInstead, you retrieve\n\t\tthe metrics you are using in your math expression as part of the <code>Metrics</code> array.</p>"
}
},
"Tags": {
Expand Down Expand Up @@ -6048,7 +6054,7 @@
"target": "com.amazonaws.cloudwatch#MetricStreamOutputFormat",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The output format for the stream. Valid values are <code>json</code>\n\t\tand <code>opentelemetry0.7</code>. For more information about metric stream\n\t\toutput formats, see \n\t\t\t<a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html\">\n\t\t\t\tMetric streams output formats</a>.</p>",
"smithy.api#documentation": "<p>The output format for the stream. Valid values are <code>json</code>, <code>opentelemetry1.0</code>, \n\t\t\tand <code>opentelemetry0.7</code>. For more information about metric stream\n\t\toutput formats, see \n\t\t\t<a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html\">\n\t\t\t\tMetric streams output formats</a>.</p>",
"smithy.api#required": {}
}
},
Expand All @@ -6061,7 +6067,7 @@
"StatisticsConfigurations": {
"target": "com.amazonaws.cloudwatch#MetricStreamStatisticsConfigurations",
"traits": {
"smithy.api#documentation": "<p>By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, \n\t\t\tand <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can use this parameter to have \n\t\t\tthe metric stream also send additional statistics in the stream. This \n\t\t\tarray can have up to 100 members.</p>\n <p>For each entry in this array, you specify one or more metrics and the list of additional\n\t\t\tstatistics to stream for those metrics. The additional statistics that you can stream\n\t\t\tdepend on the stream's <code>OutputFormat</code>. If the <code>OutputFormat</code> is\n\t\t\t\t<code>json</code>, you can stream any additional statistic that is supported by\n\t\t\t\tCloudWatch, listed in <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html\">\n\t\t\t\tCloudWatch statistics definitions</a>. If the <code>OutputFormat</code>\n\t\t\tis <code>opentelemetry0.7</code>, you can stream percentile statistics such as p95,\n\t\t\tp99.9, and so on.</p>"
"smithy.api#documentation": "<p>By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, \n\t\t\tand <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can use this parameter to have \n\t\t\tthe metric stream also send additional statistics in the stream. This \n\t\t\tarray can have up to 100 members.</p>\n <p>For each entry in this array, you specify one or more metrics and the list of additional\n\t\t\tstatistics to stream for those metrics. The additional statistics that you can stream\n\t\t\tdepend on the stream's <code>OutputFormat</code>. If the <code>OutputFormat</code> is\n\t\t\t\t<code>json</code>, you can stream any additional statistic that is supported by\n\t\t\t\tCloudWatch, listed in <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html\">\n\t\t\t\tCloudWatch statistics definitions</a>. If the <code>OutputFormat</code>\n\t\t\tis <code>opentelemetry1.0</code> or <code>opentelemetry0.7</code>, you can stream percentile statistics such as p95,\n\t\t\tp99.9, and so on.</p>"
}
},
"IncludeLinkedAccountsMetrics": {
Expand Down
54 changes: 54 additions & 0 deletions codegen/sdk-codegen/aws-models/ec2.json
Original file line number Diff line number Diff line change
Expand Up @@ -64832,6 +64832,60 @@
"traits": {
"smithy.api#enumValue": "dl2q.24xlarge"
}
},
"mac2_m2_metal": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "mac2-m2.metal"
}
},
"i4i_12xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "i4i.12xlarge"
}
},
"i4i_24xlarge": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "i4i.24xlarge"
}
},
"c7i_metal_24xl": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "c7i.metal-24xl"
}
},
"c7i_metal_48xl": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "c7i.metal-48xl"
}
},
"m7i_metal_24xl": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "m7i.metal-24xl"
}
},
"m7i_metal_48xl": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "m7i.metal-48xl"
}
},
"r7i_metal_24xl": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "r7i.metal-24xl"
}
},
"r7i_metal_48xl": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "r7i.metal-48xl"
}
}
}
},
Expand Down
Loading

0 comments on commit cbd9216

Please sign in to comment.