From 97103fcdbc3c70d5fe01058057bbb29e8d4aebad Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Wed, 13 Apr 2022 11:13:57 -0700 Subject: [PATCH] Release v1.43.39 (2022-04-13) (#4361) Release v1.43.39 (2022-04-13) === ### Service Client Updates * `service/fsx`: Updates service API, documentation, and paginators * `service/monitoring`: Updates service API and documentation * Adds support for additional statistics in CloudWatch Metric Streams. --- CHANGELOG.md | 8 + aws/version.go | 2 +- models/apis/fsx/2018-03-01/api-2.json | 5 +- models/apis/fsx/2018-03-01/docs-2.json | 12 +- models/apis/fsx/2018-03-01/paginators-1.json | 6 +- models/apis/monitoring/2010-08-01/api-2.json | 41 ++- models/apis/monitoring/2010-08-01/docs-2.json | 59 +++- service/cloudwatch/api.go | 293 ++++++++++++++++-- service/fsx/api.go | 46 ++- 9 files changed, 414 insertions(+), 58 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be3aa4d9e89..4919030d7eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +Release v1.43.39 (2022-04-13) +=== + +### Service Client Updates +* `service/fsx`: Updates service API, documentation, and paginators +* `service/monitoring`: Updates service API and documentation + * Adds support for additional statistics in CloudWatch Metric Streams. + Release v1.43.38 (2022-04-12) === diff --git a/aws/version.go b/aws/version.go index 66dce8fe217..57d88449861 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.43.38" +const SDKVersion = "1.43.39" diff --git a/models/apis/fsx/2018-03-01/api-2.json b/models/apis/fsx/2018-03-01/api-2.json index 25e87eaf1fc..0092933183d 100644 --- a/models/apis/fsx/2018-03-01/api-2.json +++ b/models/apis/fsx/2018-03-01/api-2.json @@ -2392,7 +2392,10 @@ }, "OntapDeploymentType":{ "type":"string", - "enum":["MULTI_AZ_1"] + "enum":[ + "MULTI_AZ_1", + "SINGLE_AZ_1" + ] }, "OntapEndpointIpAddresses":{ "type":"list", diff --git a/models/apis/fsx/2018-03-01/docs-2.json b/models/apis/fsx/2018-03-01/docs-2.json index b715b81c2c0..c5e16e46dd6 100644 --- a/models/apis/fsx/2018-03-01/docs-2.json +++ b/models/apis/fsx/2018-03-01/docs-2.json @@ -1342,8 +1342,8 @@ "IpAddressRange": { "base": null, "refs": { - "CreateFileSystemOntapConfiguration$EndpointIpAddressRange": "

Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range.

The Endpoint IP address range you select for your file system must exist outside the VPC's CIDR range and must be at least /30 or larger.

", - "OntapFileSystemConfiguration$EndpointIpAddressRange": "

The IP address range in which the endpoints to access your file system are created.

The Endpoint IP address range you select for your file system must exist outside the VPC's CIDR range and must be at least /30 or larger. If you do not specify this optional parameter, Amazon FSx will automatically select a CIDR block for you.

" + "CreateFileSystemOntapConfiguration$EndpointIpAddressRange": "

(Multi-AZ only) Specifies the IP address range in which the endpoints to access your file system will be created. By default, Amazon FSx selects an unused IP address range for you from the 198.19.* range.

The Endpoint IP address range you select for your file system must exist outside the VPC's CIDR range and must be at least /30 or larger.

", + "OntapFileSystemConfiguration$EndpointIpAddressRange": "

(Multi-AZ only) The IP address range in which the endpoints to access your file system are created.

The Endpoint IP address range you select for your file system must exist outside the VPC's CIDR range and must be at least /30 or larger. If you do not specify this optional parameter, Amazon FSx will automatically select a CIDR block for you.

" } }, "JunctionPath": { @@ -1537,8 +1537,8 @@ "OntapDeploymentType": { "base": null, "refs": { - "CreateFileSystemOntapConfiguration$DeploymentType": "

Specifies the FSx for ONTAP file system deployment type to use in creating the file system. MULTI_AZ_1 is the supported ONTAP deployment type.

", - "OntapFileSystemConfiguration$DeploymentType": "

The ONTAP file system deployment type.

" + "CreateFileSystemOntapConfiguration$DeploymentType": "

Specifies the FSx for ONTAP file system deployment type to use in creating the file system.

For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing Multi-AZ or Single-AZ file system deployment.

", + "OntapFileSystemConfiguration$DeploymentType": "

Specifies the FSx for ONTAP file system deployment type in use in the file system.

For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing Multi-AZ or Single-AZ file system deployment.

" } }, "OntapEndpointIpAddresses": { @@ -1819,8 +1819,8 @@ "RouteTableIds": { "base": null, "refs": { - "CreateFileSystemOntapConfiguration$RouteTableIds": "

Specifies the virtual private cloud (VPC) route tables in which your file system's endpoints will be created. You should specify all VPC route tables associated with the subnets in which your clients are located. By default, Amazon FSx selects your VPC's default route table.

", - "OntapFileSystemConfiguration$RouteTableIds": "

The VPC route tables in which your file system's endpoints are created.

" + "CreateFileSystemOntapConfiguration$RouteTableIds": "

(Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in which your file system's endpoints will be created. You should specify all VPC route tables associated with the subnets in which your clients are located. By default, Amazon FSx selects your VPC's default route table.

", + "OntapFileSystemConfiguration$RouteTableIds": "

(Multi-AZ only) The VPC route tables in which your file system's endpoints are created.

" } }, "S3DataRepositoryConfiguration": { diff --git a/models/apis/fsx/2018-03-01/paginators-1.json b/models/apis/fsx/2018-03-01/paginators-1.json index a1d7aab00e9..e2d6ecfb0bc 100644 --- a/models/apis/fsx/2018-03-01/paginators-1.json +++ b/models/apis/fsx/2018-03-01/paginators-1.json @@ -33,12 +33,14 @@ "DescribeStorageVirtualMachines": { "input_token": "NextToken", "output_token": "NextToken", - "limit_key": "MaxResults" + "limit_key": "MaxResults", + "result_key": "StorageVirtualMachines" }, "DescribeVolumes": { "input_token": "NextToken", "output_token": "NextToken", - "limit_key": "MaxResults" + "limit_key": "MaxResults", + "result_key": "Volumes" }, "ListTagsForResource": { "input_token": "NextToken", diff --git a/models/apis/monitoring/2010-08-01/api-2.json b/models/apis/monitoring/2010-08-01/api-2.json index 2d58079b9d7..7da31990144 100644 --- a/models/apis/monitoring/2010-08-01/api-2.json +++ b/models/apis/monitoring/2010-08-01/api-2.json @@ -1289,7 +1289,8 @@ "State":{"shape":"MetricStreamState"}, "CreationDate":{"shape":"Timestamp"}, "LastUpdateDate":{"shape":"Timestamp"}, - "OutputFormat":{"shape":"MetricStreamOutputFormat"} + "OutputFormat":{"shape":"MetricStreamOutputFormat"}, + "StatisticsConfigurations":{"shape":"MetricStreamStatisticsConfigurations"} } }, "GetMetricWidgetImageInput":{ @@ -1843,6 +1844,41 @@ "min":1 }, "MetricStreamState":{"type":"string"}, + "MetricStreamStatistic":{"type":"string"}, + "MetricStreamStatisticsAdditionalStatistics":{ + "type":"list", + "member":{"shape":"MetricStreamStatistic"} + }, + "MetricStreamStatisticsConfiguration":{ + "type":"structure", + "required":[ + "IncludeMetrics", + "AdditionalStatistics" + ], + "members":{ + "IncludeMetrics":{"shape":"MetricStreamStatisticsIncludeMetrics"}, + "AdditionalStatistics":{"shape":"MetricStreamStatisticsAdditionalStatistics"} + } + }, + "MetricStreamStatisticsConfigurations":{ + "type":"list", + "member":{"shape":"MetricStreamStatisticsConfiguration"} + }, + "MetricStreamStatisticsIncludeMetrics":{ + "type":"list", + "member":{"shape":"MetricStreamStatisticsMetric"} + }, + "MetricStreamStatisticsMetric":{ + "type":"structure", + "required":[ + "Namespace", + "MetricName" + ], + "members":{ + "Namespace":{"shape":"Namespace"}, + "MetricName":{"shape":"MetricName"} + } + }, "MetricWidget":{"type":"string"}, "MetricWidgetImage":{"type":"blob"}, "Metrics":{ @@ -2026,7 +2062,8 @@ "FirehoseArn":{"shape":"AmazonResourceName"}, "RoleArn":{"shape":"AmazonResourceName"}, "OutputFormat":{"shape":"MetricStreamOutputFormat"}, - "Tags":{"shape":"TagList"} + "Tags":{"shape":"TagList"}, + "StatisticsConfigurations":{"shape":"MetricStreamStatisticsConfigurations"} } }, "PutMetricStreamOutput":{ diff --git a/models/apis/monitoring/2010-08-01/docs-2.json b/models/apis/monitoring/2010-08-01/docs-2.json index bf23a10cfec..fcb7c61ff09 100644 --- a/models/apis/monitoring/2010-08-01/docs-2.json +++ b/models/apis/monitoring/2010-08-01/docs-2.json @@ -18,7 +18,7 @@ "EnableInsightRules": "

Enables the specified Contributor Insights rules. When rules are enabled, they immediately begin analyzing log data.

", "GetDashboard": "

Displays the details of the dashboard that you specify.

To copy an existing dashboard, use GetDashboard, and then use the data returned within DashboardBody as the template for the new dashboard when you call PutDashboard to create the copy.

", "GetInsightRuleReport": "

This operation returns the time series data collected by a Contributor Insights rule. The data includes the identity and number of contributors to the log group.

You can also optionally return one or more statistics about each data point in the time series. These statistics can include the following:

", - "GetMetricData": "

You can use the GetMetricData API to retrieve as many as 500 different metrics in a single request, with a total of as many as 100,800 data points. You can also optionally perform math expressions on the values of the returned statistics, to create new time series that represent new insights into your data. For example, using Lambda metrics, you could divide the Errors metric by the Invocations metric to get an error rate time series. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Calls to the GetMetricData API have a different pricing structure than calls to GetMetricStatistics. For more information about pricing, see Amazon CloudWatch Pricing.

Amazon CloudWatch retains metric data as follows:

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with a resolution of 1 hour.

If you omit Unit in your request, all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

", + "GetMetricData": "

You can use the GetMetricData API to retrieve CloudWatch metric values. The operation can also include a CloudWatch Metrics Insights query, and one or more metric math functions.

A GetMetricData operation that does not include a query can retrieve as many as 500 different metrics in a single request, with a total of as many as 100,800 data points. You can also optionally perform metric math expressions on the values of the returned statistics, to create new time series that represent new insights into your data. For example, using Lambda metrics, you could divide the Errors metric by the Invocations metric to get an error rate time series. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

If you include a Metrics Insights query, each GetMetricData operation can include only one query. But the same GetMetricData operation can also retrieve other metrics. Metrics Insights queries can query only the most recent three hours of metric data. For more information about Metrics Insights, see Query your metrics with CloudWatch Metrics Insights.

Calls to the GetMetricData API have a different pricing structure than calls to GetMetricStatistics. For more information about pricing, see Amazon CloudWatch Pricing.

Amazon CloudWatch retains metric data as follows:

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with a resolution of 1 hour.

If you omit Unit in your request, all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.

Using Metrics Insights queries with metric math

You can't mix a Metric Insights query and metric math syntax in the same expression, but you can reference results from a Metrics Insights query within other Metric math expressions. A Metrics Insights query without a GROUP BY clause returns a single time-series (TS), and can be used as input for a metric math expression that expects a single time series. A Metrics Insights query with a GROUP BY clause returns an array of time-series (TS[]), and can be used as input for a metric math expression that expects an array of time series.

", "GetMetricStatistics": "

Gets statistics for the specified metric.

The maximum number of data points returned from a single call is 1,440. If you request more than 1,440 data points, CloudWatch returns an error. To reduce the number of data points, you can narrow the specified time range and make multiple requests across adjacent time ranges, or you can increase the specified period. Data points are not returned in chronological order.

CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-hour period, CloudWatch aggregates all data points with time stamps that fall within each one-hour period. Therefore, the number of values aggregated by CloudWatch is larger than the number of data points returned.

CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:

Percentile statistics are not available for metrics when any of the metric values are negative numbers.

Amazon CloudWatch retains metric data as follows:

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with a resolution of 1 hour.

CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.

For information about metrics and dimensions supported by Amazon Web Services services, see the Amazon CloudWatch Metrics and Dimensions Reference in the Amazon CloudWatch User Guide.

", "GetMetricStream": "

Returns information about the metric stream that you specify.

", "GetMetricWidgetImage": "

You can use the GetMetricWidgetImage API to retrieve a snapshot graph of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this image into your services and products, such as wiki pages, reports, and documents. You could also retrieve images regularly, such as every minute, and create your own custom live dashboard.

The graph you retrieve can include all CloudWatch metric graph features, including metric math and horizontal and vertical annotations.

There is a limit of 20 transactions per second for this API. Each GetMetricWidgetImage action has the following limits:

", @@ -27,12 +27,12 @@ "ListMetrics": "

List the specified metrics. You can use the returned metrics with GetMetricData or GetMetricStatistics to obtain statistical data.

Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.

After you create a metric, allow up to 15 minutes before the metric appears. You can see statistics about the metric sooner by using GetMetricData or GetMetricStatistics.

ListMetrics doesn't return information about metrics if those metrics haven't reported data in the past two weeks. To retrieve those metrics, use GetMetricData or GetMetricStatistics.

", "ListTagsForResource": "

Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor Insights rules support tagging.

", "PutAnomalyDetector": "

Creates an anomaly detection model for a CloudWatch metric. You can use the model to display a band of expected normal values when the metric is graphed.

For more information, see CloudWatch Anomaly Detection.

", - "PutCompositeAlarm": "

Creates or updates a composite alarm. When you create a composite alarm, you specify a rule expression for the alarm that takes into account the alarm states of other alarms that you have created. The composite alarm goes into ALARM state only if all conditions of the rule are met.

The alarms specified in a composite alarm's rule expression can include metric alarms and other composite alarms.

Using composite alarms can reduce alarm noise. You can create multiple metric alarms, and also create a composite alarm and set up alerts only for the composite alarm. For example, you could create a composite alarm that goes into ALARM state only when more than one of the underlying metric alarms are in ALARM state.

Currently, the only alarm actions that can be taken by composite alarms are notifying SNS topics.

It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle because there is always still a composite alarm that depends on that alarm that you want to delete.

To get out of such a situation, you must break the cycle by changing the rule of one of the composite alarms in the cycle to remove a dependency that creates the cycle. The simplest change to make to break a cycle is to change the AlarmRule of one of the alarms to False.

Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is then evaluated and its state is set appropriately. Any actions associated with the new state are then executed. For a composite alarm, this initial time after creation is the only time that the alarm can be in INSUFFICIENT_DATA state.

When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.

To use this operation, you must be signed on with the cloudwatch:PutCompositeAlarm permission that is scoped to *. You can't create a composite alarms if your cloudwatch:PutCompositeAlarm permission has a narrower scope.

If you are an IAM user, you must have iam:CreateServiceLinkedRole to create a composite alarm that has Systems Manager OpsItem actions.

", + "PutCompositeAlarm": "

Creates or updates a composite alarm. When you create a composite alarm, you specify a rule expression for the alarm that takes into account the alarm states of other alarms that you have created. The composite alarm goes into ALARM state only if all conditions of the rule are met.

The alarms specified in a composite alarm's rule expression can include metric alarms and other composite alarms. The rule expression of a composite alarm can include as many as 100 underlying alarms. Any single alarm can be included in the rule expressions of as many as 150 composite alarms.

Using composite alarms can reduce alarm noise. You can create multiple metric alarms, and also create a composite alarm and set up alerts only for the composite alarm. For example, you could create a composite alarm that goes into ALARM state only when more than one of the underlying metric alarms are in ALARM state.

Currently, the only alarm actions that can be taken by composite alarms are notifying SNS topics.

It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle because there is always still a composite alarm that depends on that alarm that you want to delete.

To get out of such a situation, you must break the cycle by changing the rule of one of the composite alarms in the cycle to remove a dependency that creates the cycle. The simplest change to make to break a cycle is to change the AlarmRule of one of the alarms to False.

Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is then evaluated and its state is set appropriately. Any actions associated with the new state are then executed. For a composite alarm, this initial time after creation is the only time that the alarm can be in INSUFFICIENT_DATA state.

When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.

To use this operation, you must be signed on with the cloudwatch:PutCompositeAlarm permission that is scoped to *. You can't create a composite alarms if your cloudwatch:PutCompositeAlarm permission has a narrower scope.

If you are an IAM user, you must have iam:CreateServiceLinkedRole to create a composite alarm that has Systems Manager OpsItem actions.

", "PutDashboard": "

Creates a dashboard if it does not already exist, or updates an existing dashboard. If you update a dashboard, the entire contents are replaced with what you specify here.

All dashboards in your account are global, not region-specific.

A simple way to create a dashboard using PutDashboard is to copy an existing dashboard. To copy an existing dashboard using the console, you can load the dashboard and then use the View/edit source command in the Actions menu to display the JSON block for that dashboard. Another way to copy a dashboard is to use GetDashboard, and then use the data returned within DashboardBody as the template for the new dashboard when you call PutDashboard.

When you create a dashboard with PutDashboard, a good practice is to add a text widget at the top of the dashboard with a message that the dashboard was created by script and should not be changed in the console. This message could also point console users to the location of the DashboardBody script or the CloudFormation template used to create the dashboard.

", "PutInsightRule": "

Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs log group, enabling you to find contributor data for the log events in that log group. For more information, see Using Contributor Insights to Analyze High-Cardinality Data.

If you create a rule, delete it, and then re-create it with the same name, historical data from the first time the rule was created might not be available.

", "PutMetricAlarm": "

Creates or updates an alarm and associates it with the specified metric, metric math expression, or anomaly detection model.

Alarms based on anomaly detection models cannot have Auto Scaling actions.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is then evaluated and its state is set appropriately. Any actions associated with the new state are then executed.

When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.

If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations:

The first time you create an alarm in the Amazon Web Services Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked role for you. The service-linked roles are called AWSServiceRoleForCloudWatchEvents and AWSServiceRoleForCloudWatchAlarms_ActionSSM. For more information, see Amazon Web Services service-linked role.

Cross-account alarms

You can set an alarm on metrics in the current account, or in another account. To create a cross-account alarm that watches a metric in a different account, you must have completed the following pre-requisites:

", "PutMetricData": "

Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data points with the specified metric. If the specified metric does not exist, CloudWatch creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to ListMetrics.

You can publish either individual data points in the Value field, or arrays of values and the number of times each value occurred during the period by using the Values and Counts fields in the MetricDatum structure. Using the Values and Counts method enables you to publish up to 150 values per metric with one PutMetricData request, and supports retrieving percentile statistics on this data.

Each PutMetricData request is limited to 40 KB in size for HTTP POST requests. You can send a payload compressed by gzip. Each request is also limited to no more than 20 different metrics.

Although the Value parameter accepts numbers of type Double, CloudWatch rejects values that are either too small or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, -Infinity) are not supported.

You can use up to 10 dimensions per metric to further clarify what data the metric collects. Each dimension consists of a Name and Value pair. For more information about specifying dimensions, see Publishing Metrics in the Amazon CloudWatch User Guide.

You specify the time stamp to be associated with each data point. You can specify time stamps that are as much as two weeks before the current date, and as much as 2 hours after the current day and time.

Data points with time stamps from 24 hours ago or longer can take at least 48 hours to become available for GetMetricData or GetMetricStatistics from the time they are submitted. Data points with time stamps between 3 and 24 hours ago can take as much as 2 hours to become available for for GetMetricData or GetMetricStatistics.

CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:

", - "PutMetricStream": "

Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics to Amazon Web Services destinations including Amazon S3 and to many third-party solutions.

For more information, see Using Metric Streams.

To create a metric stream, you must be logged on to an account that has the iam:PassRole permission and either the CloudWatchFullAccess policy or the cloudwatch:PutMetricStream permission.

When you create or update a metric stream, you choose one of the following:

When you use PutMetricStream to create a new metric stream, the stream is created in the running state. If you use it to update an existing stream, the state of the stream is not changed.

", + "PutMetricStream": "

Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics to Amazon Web Services destinations including Amazon S3 and to many third-party solutions.

For more information, see Using Metric Streams.

To create a metric stream, you must be logged on to an account that has the iam:PassRole permission and either the CloudWatchFullAccess policy or the cloudwatch:PutMetricStream permission.

When you create or update a metric stream, you choose one of the following:

By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed. You can use the StatisticsConfigurations parameter to have the metric stream also send extended statistics in the stream. Streaming extended statistics incurs additional costs. For more information, see Amazon CloudWatch Pricing.

When you use PutMetricStream to create a new metric stream, the stream is created in the running state. If you use it to update an existing stream, the state of the stream is not changed.

", "SetAlarmState": "

Temporarily sets the state of an alarm for testing purposes. When the updated state differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm state to ALARM sends an SNS message.

Metric alarms returns to their actual state quickly, often within seconds. Because the metric alarm state change happens quickly, it is typically only visible in the alarm's History tab in the Amazon CloudWatch console or through DescribeAlarmHistory.

If you use SetAlarmState on a composite alarm, the composite alarm is not guaranteed to return to its actual state. It returns to its actual state only once any of its children alarms change state. It is also reevaluated if you update its configuration.

If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, you must include information in the StateReasonData parameter to enable the policy to take the correct action.

", "StartMetricStreams": "

Starts the streaming of metrics for one or more of your metric streams.

", "StopMetricStreams": "

Stops the streaming of metrics for one or more of your metric streams.

", @@ -490,7 +490,7 @@ } }, "Dimension": { - "base": "

A dimension is a name/value pair that is part of the identity of a metric. You can assign up to 10 dimensions to a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric.

", + "base": "

A dimension is a name/value pair that is part of the identity of a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric. For example, many Amazon EC2 metrics publish InstanceId as a dimension name, and the actual instance ID as the value for that dimension.

You can assign up to 10 dimensions to a metric.

", "refs": { "Dimensions$member": null } @@ -510,7 +510,7 @@ "DimensionName": { "base": null, "refs": { - "Dimension$Name": "

The name of the dimension. Dimension names must contain only ASCII characters and must include at least one non-whitespace character.

", + "Dimension$Name": "

The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:).

", "DimensionFilter$Name": "

The dimension name to be matched.

" } }, @@ -1052,14 +1052,14 @@ "MetricDataQueries": { "base": null, "refs": { - "GetMetricDataInput$MetricDataQueries": "

The metric queries to be returned. A single GetMetricData call can include as many as 500 MetricDataQuery structures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.

", + "GetMetricDataInput$MetricDataQueries": "

The metric queries to be returned. A single GetMetricData call can include as many as 500 MetricDataQuery structures. Each of these structures can specify either a metric to retrieve, a Metrics Insights query, or a math expression to perform on retrieved data.

", "MetricAlarm$Metrics": "

An array of MetricDataQuery structures, used in an alarm based on a metric math expression. Each structure either retrieves a metric or performs a math expression. One item in the Metrics array is the math expression that the alarm watches. This expression by designated by having ReturnData set to true.

", "MetricMathAnomalyDetector$MetricDataQueries": "

An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item in MetricDataQueries gets a metric or performs a math expression. One item in MetricDataQueries is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by setting ReturnData to True for this object in the array. For all other expressions and metrics, set ReturnData to False. The designated expression must return a single time series.

", "PutMetricAlarmInput$Metrics": "

An array of MetricDataQuery structures that enable you to create an alarm based on the result of a metric math expression. For each PutMetricAlarm operation, you must specify either MetricName or a Metrics array.

Each item in the Metrics array either retrieves a metric or performs a math expression.

One item in the Metrics array is the expression that the alarm watches. You designate this expression by setting ReturnData to true for this object in the array. For more information, see MetricDataQuery.

If you use the Metrics parameter, you cannot include the MetricName, Dimensions, Period, Namespace, Statistic, or ExtendedStatistic parameters of PutMetricAlarm in the same operation. Instead, you retrieve the metrics you are using in your math expression as part of the Metrics array.

" } }, "MetricDataQuery": { - "base": "

This structure is used in both GetMetricData and PutMetricAlarm. The supported use of this structure is different for those two operations.

When used in GetMetricData, it indicates the metric data to return, and whether this call is just retrieving a batch set of data for one metric, or is performing a math expression on metric data. A single GetMetricData call can include up to 500 MetricDataQuery structures.

When used in PutMetricAlarm, it enables you to create an alarm based on a metric math expression. Each MetricDataQuery in the array specifies either a metric to retrieve, or a math expression to be performed on retrieved metrics. A single PutMetricAlarm call can include up to 20 MetricDataQuery structures in the array. The 20 structures can include as many as 10 structures that contain a MetricStat parameter to retrieve a metric, and as many as 10 structures that contain the Expression parameter to perform a math expression. Of those Expression structures, one must have True as the value for ReturnData. The result of this expression is the value the alarm watches.

Any expression used in a PutMetricAlarm operation must return a single time series. For more information, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Some of the parameters of this structure also have different uses whether you are using this structure in a GetMetricData operation or a PutMetricAlarm operation. These differences are explained in the following parameter list.

", + "base": "

This structure is used in both GetMetricData and PutMetricAlarm. The supported use of this structure is different for those two operations.

When used in GetMetricData, it indicates the metric data to return, and whether this call is just retrieving a batch set of data for one metric, or is performing a Metrics Insights query or a math expression. A single GetMetricData call can include up to 500 MetricDataQuery structures.

When used in PutMetricAlarm, it enables you to create an alarm based on a metric math expression. Each MetricDataQuery in the array specifies either a metric to retrieve, or a math expression to be performed on retrieved metrics. A single PutMetricAlarm call can include up to 20 MetricDataQuery structures in the array. The 20 structures can include as many as 10 structures that contain a MetricStat parameter to retrieve a metric, and as many as 10 structures that contain the Expression parameter to perform a math expression. Of those Expression structures, one must have True as the value for ReturnData. The result of this expression is the value the alarm watches.

Any expression used in a PutMetricAlarm operation must return a single time series. For more information, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Some of the parameters of this structure also have different uses whether you are using this structure in a GetMetricData operation or a PutMetricAlarm operation. These differences are explained in the following parameter list.

", "refs": { "MetricDataQueries$member": null } @@ -1092,7 +1092,7 @@ "MetricExpression": { "base": null, "refs": { - "MetricDataQuery$Expression": "

The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the Id of the other metrics to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Within each MetricDataQuery object, you must specify either Expression or MetricStat but not both.

" + "MetricDataQuery$Expression": "

This field can contain either a Metrics Insights query, or a metric math expression to be performed on the returned data. For more information about Metrics Insights queries, see Metrics Insights query components and syntax in the Amazon CloudWatch User Guide.

A math expression can use the Id of the other metrics or queries to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Within each MetricDataQuery object, you must specify either Expression or MetricStat but not both.

" } }, "MetricId": { @@ -1132,6 +1132,7 @@ "Metric$MetricName": "

The name of the metric. This is a required field.

", "MetricAlarm$MetricName": "

The name of the metric associated with the alarm, if this is an alarm based on a single metric.

", "MetricDatum$MetricName": "

The name of the metric.

", + "MetricStreamStatisticsMetric$MetricName": "

The name of the metric.

", "PutAnomalyDetectorInput$MetricName": "

The name of the metric to create the anomaly detection model for.

", "PutMetricAlarmInput$MetricName": "

The name for the metric associated with the alarm. For each PutMetricAlarm operation, you must specify either MetricName or a Metrics array.

If you are creating an alarm based on a math expression, you cannot specify this parameter, or any of the Dimensions, Period, Namespace, Statistic, or ExtendedStatistic parameters. Instead, you specify all this information in the Metrics array.

", "SingleMetricAnomalyDetector$MetricName": "

The name of the metric to create the anomaly detection model for.

" @@ -1191,7 +1192,7 @@ "MetricStreamOutputFormat": { "base": null, "refs": { - "GetMetricStreamOutput$OutputFormat": "

", + "GetMetricStreamOutput$OutputFormat": "

The output format for the stream. Valid values are json and opentelemetry0.7. For more information about metric stream output formats, see Metric streams output formats.

", "MetricStreamEntry$OutputFormat": "

The output format of this metric stream. Valid values are json and opentelemetry0.7.

", "PutMetricStreamInput$OutputFormat": "

The output format for the stream. Valid values are json and opentelemetry0.7. For more information about metric stream output formats, see Metric streams output formats.

" } @@ -1203,6 +1204,43 @@ "MetricStreamEntry$State": "

The current state of this stream. Valid values are running and stopped.

" } }, + "MetricStreamStatistic": { + "base": null, + "refs": { + "MetricStreamStatisticsAdditionalStatistics$member": null + } + }, + "MetricStreamStatisticsAdditionalStatistics": { + "base": null, + "refs": { + "MetricStreamStatisticsConfiguration$AdditionalStatistics": "

The list of extended statistics that are to be streamed for the metrics listed in the IncludeMetrics array in this structure. This list can include as many as 20 statistics.

If the OutputFormat for the stream is opentelemetry0.7, the only valid values are p?? percentile statistics such as p90, p99 and so on.

If the OutputFormat for the stream is json, the valid values are include the abbreviations for all of the extended statistics listed in CloudWatch statistics definitions. For example, this includes tm98, wm90, PR(:300), and so on.

" + } + }, + "MetricStreamStatisticsConfiguration": { + "base": "

By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed. This structure contains information for one metric that includes extended statistics in the stream. For more information about extended statistics, see CloudWatch, listed in CloudWatch statistics definitions.

", + "refs": { + "MetricStreamStatisticsConfigurations$member": null + } + }, + "MetricStreamStatisticsConfigurations": { + "base": null, + "refs": { + "GetMetricStreamOutput$StatisticsConfigurations": "

Each entry in this array displays information about one or more metrics that include extended statistics in the metric stream. For more information about extended statistics, see CloudWatch statistics definitions.

", + "PutMetricStreamInput$StatisticsConfigurations": "

By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed. You can use this parameter to have the metric stream also send extended statistics in the stream. This array can have up to 100 members.

For each entry in this array, you specify one or more metrics and the list of extended statistics to stream for those metrics. The extended statistics that you can stream depend on the stream's OutputFormat. If the OutputFormat is json, you can stream any extended statistic that is supported by CloudWatch, listed in CloudWatch statistics definitions. If the OutputFormat is opentelemetry0.7, you can stream percentile statistics (p??).

" + } + }, + "MetricStreamStatisticsIncludeMetrics": { + "base": null, + "refs": { + "MetricStreamStatisticsConfiguration$IncludeMetrics": "

An array of metric name and namespace pairs that stream the extended statistics listed in the value of the AdditionalStatistics parameter. There can be as many as 100 pairs in the array.

All metrics that match the combination of metric name and namespace will be streamed with the extended statistics, no matter their dimensions.

" + } + }, + "MetricStreamStatisticsMetric": { + "base": "

This object contains the information for one metric that is to streamed with extended statistics.

", + "refs": { + "MetricStreamStatisticsIncludeMetrics$member": null + } + }, "MetricWidget": { "base": null, "refs": { @@ -1238,6 +1276,7 @@ "Metric$Namespace": "

The namespace of the metric.

", "MetricAlarm$Namespace": "

The namespace of the metric associated with the alarm.

", "MetricStreamFilter$Namespace": "

The name of the metric namespace in the filter.

", + "MetricStreamStatisticsMetric$Namespace": "

The metric namespace for the metric.

", "PutAnomalyDetectorInput$Namespace": "

The namespace of the metric to create the anomaly detection model for.

", "PutMetricAlarmInput$Namespace": "

The namespace for the metric associated specified in MetricName.

", "PutMetricDataInput$Namespace": "

The namespace for the metric data.

To avoid conflicts with Amazon Web Services service namespaces, you should not specify a namespace that begins with AWS/

", @@ -1620,7 +1659,7 @@ "TreatMissingData": { "base": null, "refs": { - "MetricAlarm$TreatMissingData": "

Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of missing is used.

", + "MetricAlarm$TreatMissingData": "

Sets how this alarm is to handle missing data points. The valid values are breaching, notBreaching, ignore, and missing. For more information, see Configuring how CloudWatch alarms treat missing data.

If this parameter is omitted, the default behavior of missing is used.

", "PutMetricAlarmInput$TreatMissingData": "

Sets how this alarm is to handle missing data points. If TreatMissingData is omitted, the default behavior of missing is used. For more information, see Configuring How CloudWatch Alarms Treats Missing Data.

Valid Values: breaching | notBreaching | ignore | missing

" } }, diff --git a/service/cloudwatch/api.go b/service/cloudwatch/api.go index 150cb1b3230..b0aebc74244 100644 --- a/service/cloudwatch/api.go +++ b/service/cloudwatch/api.go @@ -1637,15 +1637,26 @@ func (c *CloudWatch) GetMetricDataRequest(input *GetMetricDataInput) (req *reque // GetMetricData API operation for Amazon CloudWatch. // -// You can use the GetMetricData API to retrieve as many as 500 different metrics -// in a single request, with a total of as many as 100,800 data points. You -// can also optionally perform math expressions on the values of the returned -// statistics, to create new time series that represent new insights into your -// data. For example, using Lambda metrics, you could divide the Errors metric -// by the Invocations metric to get an error rate time series. For more information -// about metric math expressions, see Metric Math Syntax and Functions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) +// You can use the GetMetricData API to retrieve CloudWatch metric values. The +// operation can also include a CloudWatch Metrics Insights query, and one or +// more metric math functions. +// +// A GetMetricData operation that does not include a query can retrieve as many +// as 500 different metrics in a single request, with a total of as many as +// 100,800 data points. You can also optionally perform metric math expressions +// on the values of the returned statistics, to create new time series that +// represent new insights into your data. For example, using Lambda metrics, +// you could divide the Errors metric by the Invocations metric to get an error +// rate time series. For more information about metric math expressions, see +// Metric Math Syntax and Functions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) // in the Amazon CloudWatch User Guide. // +// If you include a Metrics Insights query, each GetMetricData operation can +// include only one query. But the same GetMetricData operation can also retrieve +// other metrics. Metrics Insights queries can query only the most recent three +// hours of metric data. For more information about Metrics Insights, see Query +// your metrics with CloudWatch Metrics Insights (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html). +// // Calls to the GetMetricData API have a different pricing structure than calls // to GetMetricStatistics. For more information about pricing, see Amazon CloudWatch // Pricing (https://aws.amazon.com/cloudwatch/pricing/). @@ -1680,6 +1691,17 @@ func (c *CloudWatch) GetMetricDataRequest(input *GetMetricDataInput) (req *reque // a unit that does not match the data collected, the results of the operation // are null. CloudWatch does not perform unit conversions. // +// Using Metrics Insights queries with metric math +// +// You can't mix a Metric Insights query and metric math syntax in the same +// expression, but you can reference results from a Metrics Insights query within +// other Metric math expressions. A Metrics Insights query without a GROUP BY +// clause returns a single time-series (TS), and can be used as input for a +// metric math expression that expects a single time series. A Metrics Insights +// query with a GROUP BY clause returns an array of time-series (TS[]), and +// can be used as input for a metric math expression that expects an array of +// time series. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -2764,7 +2786,9 @@ func (c *CloudWatch) PutCompositeAlarmRequest(input *PutCompositeAlarmInput) (re // ALARM state only if all conditions of the rule are met. // // The alarms specified in a composite alarm's rule expression can include metric -// alarms and other composite alarms. +// alarms and other composite alarms. The rule expression of a composite alarm +// can include as many as 100 underlying alarms. Any single alarm can be included +// in the rule expressions of as many as 150 composite alarms. // // Using composite alarms can reduce alarm noise. You can create multiple metric // alarms, and also create a composite alarm and set up alerts only for the @@ -3352,6 +3376,12 @@ func (c *CloudWatch) PutMetricStreamRequest(input *PutMetricStreamInput) (req *r // // * Stream metrics from only the metric namespaces that you list in IncludeFilters. // +// By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT +// statistics for each metric that is streamed. You can use the StatisticsConfigurations +// parameter to have the metric stream also send extended statistics in the +// stream. Streaming extended statistics incurs additional costs. For more information, +// see Amazon CloudWatch Pricing (https://aws.amazon.com/cloudwatch/pricing/). +// // When you use PutMetricStream to create a new metric stream, the stream is // created in the running state. If you use it to update an existing stream, // the state of the stream is not changed. @@ -5709,14 +5739,19 @@ func (s *DescribeInsightRulesOutput) SetNextToken(v string) *DescribeInsightRule } // A dimension is a name/value pair that is part of the identity of a metric. -// You can assign up to 10 dimensions to a metric. Because dimensions are part -// of the unique identifier for a metric, whenever you add a unique name/value -// pair to one of your metrics, you are creating a new variation of that metric. +// Because dimensions are part of the unique identifier for a metric, whenever +// you add a unique name/value pair to one of your metrics, you are creating +// a new variation of that metric. For example, many Amazon EC2 metrics publish +// InstanceId as a dimension name, and the actual instance ID as the value for +// that dimension. +// +// You can assign up to 10 dimensions to a metric. type Dimension struct { _ struct{} `type:"structure"` - // The name of the dimension. Dimension names must contain only ASCII characters - // and must include at least one non-whitespace character. + // The name of the dimension. Dimension names must contain only ASCII characters, + // must include at least one non-whitespace character, and cannot start with + // a colon (:). // // Name is a required field Name *string `min:"1" type:"string" required:"true"` @@ -6499,8 +6534,8 @@ type GetMetricDataInput struct { // The metric queries to be returned. A single GetMetricData call can include // as many as 500 MetricDataQuery structures. Each of these structures can specify - // either a metric to retrieve, or a math expression to perform on retrieved - // data. + // either a metric to retrieve, a Metrics Insights query, or a math expression + // to perform on retrieved data. // // MetricDataQueries is a required field MetricDataQueries []*MetricDataQuery `type:"list" required:"true"` @@ -7040,6 +7075,9 @@ type GetMetricStreamOutput struct { // The name of the metric stream. Name *string `min:"1" type:"string"` + // The output format for the stream. Valid values are json and opentelemetry0.7. + // For more information about metric stream output formats, see Metric streams + // output formats (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html). OutputFormat *string `min:"1" type:"string" enum:"MetricStreamOutputFormat"` // The ARN of the IAM role that is used by this metric stream. @@ -7047,6 +7085,11 @@ type GetMetricStreamOutput struct { // The state of the metric stream. The possible values are running and stopped. State *string `type:"string"` + + // Each entry in this array displays information about one or more metrics that + // include extended statistics in the metric stream. For more information about + // extended statistics, see CloudWatch statistics definitions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html). + StatisticsConfigurations []*MetricStreamStatisticsConfiguration `type:"list"` } // String returns the string representation. @@ -7127,6 +7170,12 @@ func (s *GetMetricStreamOutput) SetState(v string) *GetMetricStreamOutput { return s } +// SetStatisticsConfigurations sets the StatisticsConfigurations field's value. +func (s *GetMetricStreamOutput) SetStatisticsConfigurations(v []*MetricStreamStatisticsConfiguration) *GetMetricStreamOutput { + s.StatisticsConfigurations = v + return s +} + type GetMetricWidgetImageInput struct { _ struct{} `type:"structure"` @@ -8235,8 +8284,11 @@ type MetricAlarm struct { // function used as the threshold for the alarm. ThresholdMetricId *string `min:"1" type:"string"` - // Sets how this alarm is to handle missing data points. If this parameter is - // omitted, the default behavior of missing is used. + // Sets how this alarm is to handle missing data points. The valid values are + // breaching, notBreaching, ignore, and missing. For more information, see Configuring + // how CloudWatch alarms treat missing data (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data). + // + // If this parameter is omitted, the default behavior of missing is used. TreatMissingData *string `min:"1" type:"string"` // The unit of the metric associated with the alarm. @@ -8428,8 +8480,8 @@ func (s *MetricAlarm) SetUnit(v string) *MetricAlarm { // // When used in GetMetricData, it indicates the metric data to return, and whether // this call is just retrieving a batch set of data for one metric, or is performing -// a math expression on metric data. A single GetMetricData call can include -// up to 500 MetricDataQuery structures. +// a Metrics Insights query or a math expression. A single GetMetricData call +// can include up to 500 MetricDataQuery structures. // // When used in PutMetricAlarm, it enables you to create an alarm based on a // metric math expression. Each MetricDataQuery in the array specifies either @@ -8458,11 +8510,16 @@ type MetricDataQuery struct { // operations. AccountId *string `min:"1" type:"string"` - // The math expression to be performed on the returned data, if this object - // is performing a math expression. This expression can use the Id of the other - // metrics to refer to those metrics, and can also use the Id of other expressions - // to use the result of those expressions. For more information about metric - // math expressions, see Metric Math Syntax and Functions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) + // This field can contain either a Metrics Insights query, or a metric math + // expression to be performed on the returned data. For more information about + // Metrics Insights queries, see Metrics Insights query components and syntax + // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage) + // in the Amazon CloudWatch User Guide. + // + // A math expression can use the Id of the other metrics or queries to refer + // to those metrics, and can also use the Id of other expressions to use the + // result of those expressions. For more information about metric math expressions, + // see Metric Math Syntax and Functions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) // in the Amazon CloudWatch User Guide. // // Within each MetricDataQuery object, you must specify either Expression or @@ -9179,6 +9236,164 @@ func (s *MetricStreamFilter) SetNamespace(v string) *MetricStreamFilter { return s } +// By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT +// statistics for each metric that is streamed. This structure contains information +// for one metric that includes extended statistics in the stream. For more +// information about extended statistics, see CloudWatch, listed in CloudWatch +// statistics definitions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html). +type MetricStreamStatisticsConfiguration struct { + _ struct{} `type:"structure"` + + // The list of extended statistics that are to be streamed for the metrics listed + // in the IncludeMetrics array in this structure. This list can include as many + // as 20 statistics. + // + // If the OutputFormat for the stream is opentelemetry0.7, the only valid values + // are p?? percentile statistics such as p90, p99 and so on. + // + // If the OutputFormat for the stream is json, the valid values are include + // the abbreviations for all of the extended statistics listed in CloudWatch + // statistics definitions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html). + // For example, this includes tm98, wm90, PR(:300), and so on. + // + // AdditionalStatistics is a required field + AdditionalStatistics []*string `type:"list" required:"true"` + + // An array of metric name and namespace pairs that stream the extended statistics + // listed in the value of the AdditionalStatistics parameter. There can be as + // many as 100 pairs in the array. + // + // All metrics that match the combination of metric name and namespace will + // be streamed with the extended statistics, no matter their dimensions. + // + // IncludeMetrics is a required field + IncludeMetrics []*MetricStreamStatisticsMetric `type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MetricStreamStatisticsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MetricStreamStatisticsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MetricStreamStatisticsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MetricStreamStatisticsConfiguration"} + if s.AdditionalStatistics == nil { + invalidParams.Add(request.NewErrParamRequired("AdditionalStatistics")) + } + if s.IncludeMetrics == nil { + invalidParams.Add(request.NewErrParamRequired("IncludeMetrics")) + } + if s.IncludeMetrics != nil { + for i, v := range s.IncludeMetrics { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "IncludeMetrics", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalStatistics sets the AdditionalStatistics field's value. +func (s *MetricStreamStatisticsConfiguration) SetAdditionalStatistics(v []*string) *MetricStreamStatisticsConfiguration { + s.AdditionalStatistics = v + return s +} + +// SetIncludeMetrics sets the IncludeMetrics field's value. +func (s *MetricStreamStatisticsConfiguration) SetIncludeMetrics(v []*MetricStreamStatisticsMetric) *MetricStreamStatisticsConfiguration { + s.IncludeMetrics = v + return s +} + +// This object contains the information for one metric that is to streamed with +// extended statistics. +type MetricStreamStatisticsMetric struct { + _ struct{} `type:"structure"` + + // The name of the metric. + // + // MetricName is a required field + MetricName *string `min:"1" type:"string" required:"true"` + + // The metric namespace for the metric. + // + // Namespace is a required field + Namespace *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MetricStreamStatisticsMetric) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MetricStreamStatisticsMetric) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MetricStreamStatisticsMetric) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MetricStreamStatisticsMetric"} + if s.MetricName == nil { + invalidParams.Add(request.NewErrParamRequired("MetricName")) + } + if s.MetricName != nil && len(*s.MetricName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMetricName sets the MetricName field's value. +func (s *MetricStreamStatisticsMetric) SetMetricName(v string) *MetricStreamStatisticsMetric { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *MetricStreamStatisticsMetric) SetNamespace(v string) *MetricStreamStatisticsMetric { + s.Namespace = &v + return s +} + // This array is empty if the API operation was successful for all the rules // specified in the request. If the operation could not process one of the rules, // the following data is returned for each of those rules. @@ -10501,6 +10716,20 @@ type PutMetricStreamInput struct { // RoleArn is a required field RoleArn *string `min:"1" type:"string" required:"true"` + // By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT + // statistics for each metric that is streamed. You can use this parameter to + // have the metric stream also send extended statistics in the stream. This + // array can have up to 100 members. + // + // For each entry in this array, you specify one or more metrics and the list + // of extended statistics to stream for those metrics. The extended statistics + // that you can stream depend on the stream's OutputFormat. If the OutputFormat + // is json, you can stream any extended statistic that is supported by CloudWatch, + // listed in CloudWatch statistics definitions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html). + // If the OutputFormat is opentelemetry0.7, you can stream percentile statistics + // (p??). + StatisticsConfigurations []*MetricStreamStatisticsConfiguration `type:"list"` + // A list of key-value pairs to associate with the metric stream. You can associate // as many as 50 tags with a metric stream. // @@ -10581,6 +10810,16 @@ func (s *PutMetricStreamInput) Validate() error { } } } + if s.StatisticsConfigurations != nil { + for i, v := range s.StatisticsConfigurations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StatisticsConfigurations", i), err.(request.ErrInvalidParams)) + } + } + } if s.Tags != nil { for i, v := range s.Tags { if v == nil { @@ -10634,6 +10873,12 @@ func (s *PutMetricStreamInput) SetRoleArn(v string) *PutMetricStreamInput { return s } +// SetStatisticsConfigurations sets the StatisticsConfigurations field's value. +func (s *PutMetricStreamInput) SetStatisticsConfigurations(v []*MetricStreamStatisticsConfiguration) *PutMetricStreamInput { + s.StatisticsConfigurations = v + return s +} + // SetTags sets the Tags field's value. func (s *PutMetricStreamInput) SetTags(v []*Tag) *PutMetricStreamInput { s.Tags = v diff --git a/service/fsx/api.go b/service/fsx/api.go index 70bf9ae23dc..b68ac25bbfb 100644 --- a/service/fsx/api.go +++ b/service/fsx/api.go @@ -7458,7 +7458,15 @@ type CreateFileSystemOntapConfiguration struct { DailyAutomaticBackupStartTime *string `min:"5" type:"string"` // Specifies the FSx for ONTAP file system deployment type to use in creating - // the file system. MULTI_AZ_1 is the supported ONTAP deployment type. + // the file system. + // + // * MULTI_AZ_1 - (Default) A high availability file system configured for + // Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability. + // + // * SINGLE_AZ_1 - A file system configured for Single-AZ redundancy. + // + // For information about the use cases for Multi-AZ and Single-AZ deployments, + // refer to Choosing Multi-AZ or Single-AZ file system deployment (https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/high-availability-multiAZ.html). // // DeploymentType is a required field DeploymentType *string `type:"string" required:"true" enum:"OntapDeploymentType"` @@ -7466,9 +7474,9 @@ type CreateFileSystemOntapConfiguration struct { // The SSD IOPS configuration for the FSx for ONTAP file system. DiskIopsConfiguration *DiskIopsConfiguration `type:"structure"` - // Specifies the IP address range in which the endpoints to access your file - // system will be created. By default, Amazon FSx selects an unused IP address - // range for you from the 198.19.* range. + // (Multi-AZ only) Specifies the IP address range in which the endpoints to + // access your file system will be created. By default, Amazon FSx selects an + // unused IP address range for you from the 198.19.* range. // // The Endpoint IP address range you select for your file system must exist // outside the VPC's CIDR range and must be at least /30 or larger. @@ -7486,10 +7494,10 @@ type CreateFileSystemOntapConfiguration struct { // in which you want the preferred file server to be located. PreferredSubnetId *string `min:"15" type:"string"` - // Specifies the virtual private cloud (VPC) route tables in which your file - // system's endpoints will be created. You should specify all VPC route tables - // associated with the subnets in which your clients are located. By default, - // Amazon FSx selects your VPC's default route table. + // (Multi-AZ only) Specifies the virtual private cloud (VPC) route tables in + // which your file system's endpoints will be created. You should specify all + // VPC route tables associated with the subnets in which your clients are located. + // By default, Amazon FSx selects your VPC's default route table. RouteTableIds []*string `type:"list"` // Sets the throughput capacity for the file system that you're creating. Valid @@ -14491,15 +14499,24 @@ type OntapFileSystemConfiguration struct { // 05:00 specifies 5 AM daily. DailyAutomaticBackupStartTime *string `min:"5" type:"string"` - // The ONTAP file system deployment type. + // Specifies the FSx for ONTAP file system deployment type in use in the file + // system. + // + // * MULTI_AZ_1 - (Default) A high availability file system configured for + // Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability. + // + // * SINGLE_AZ_1 - A file system configured for Single-AZ redundancy. + // + // For information about the use cases for Multi-AZ and Single-AZ deployments, + // refer to Choosing Multi-AZ or Single-AZ file system deployment (https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/high-availability-multiAZ.html). DeploymentType *string `type:"string" enum:"OntapDeploymentType"` // The SSD IOPS configuration for the ONTAP file system, specifying the number // of provisioned IOPS and the provision mode. DiskIopsConfiguration *DiskIopsConfiguration `type:"structure"` - // The IP address range in which the endpoints to access your file system are - // created. + // (Multi-AZ only) The IP address range in which the endpoints to access your + // file system are created. // // The Endpoint IP address range you select for your file system must exist // outside the VPC's CIDR range and must be at least /30 or larger. If you do @@ -14517,7 +14534,8 @@ type OntapFileSystemConfiguration struct { // in the Amazon VPC User Guide. PreferredSubnetId *string `min:"15" type:"string"` - // The VPC route tables in which your file system's endpoints are created. + // (Multi-AZ only) The VPC route tables in which your file system's endpoints + // are created. RouteTableIds []*string `type:"list"` // The sustained throughput of an Amazon FSx file system in Megabytes per second @@ -20147,12 +20165,16 @@ func LustreDeploymentType_Values() []string { const ( // OntapDeploymentTypeMultiAz1 is a OntapDeploymentType enum value OntapDeploymentTypeMultiAz1 = "MULTI_AZ_1" + + // OntapDeploymentTypeSingleAz1 is a OntapDeploymentType enum value + OntapDeploymentTypeSingleAz1 = "SINGLE_AZ_1" ) // OntapDeploymentType_Values returns all elements of the OntapDeploymentType enum func OntapDeploymentType_Values() []string { return []string{ OntapDeploymentTypeMultiAz1, + OntapDeploymentTypeSingleAz1, } }