awscli 1.36.9__py3-none-any.whl → 1.36.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of awscli might be problematic. Click here for more details.

Files changed (38) hide show
  1. awscli/__init__.py +1 -1
  2. awscli/examples/cloudwatch/delete-anomaly-detector.rst +12 -0
  3. awscli/examples/cloudwatch/delete-dashboards.rst +10 -0
  4. awscli/examples/cloudwatch/delete-insight-rules.rst +14 -0
  5. awscli/examples/cloudwatch/delete-metric-stream.rst +10 -0
  6. awscli/examples/cloudwatch/describe-anomaly-detectors.rst +59 -0
  7. awscli/examples/cloudwatch/describe-insight-rules.rst +28 -0
  8. awscli/examples/cloudwatch/disable-insight-rules.rst +14 -0
  9. awscli/examples/cloudwatch/enable-insight-rules.rst +14 -0
  10. awscli/examples/cloudwatch/get-dashboard.rst +16 -0
  11. awscli/examples/cloudwatch/get-insight-rule-report.rst +37 -0
  12. awscli/examples/cloudwatch/get-metric-data.rst +106 -0
  13. awscli/examples/cloudwatch/get-metric-stream.rst +22 -0
  14. awscli/examples/cloudwatch/get-metric-widget-image.rst +10 -0
  15. awscli/examples/cloudwatch/list-dashboards.rst +26 -0
  16. awscli/examples/cloudwatch/list-metric-streams.rst +23 -0
  17. awscli/examples/cloudwatch/list-tags-for-resource.rst +23 -0
  18. awscli/examples/cloudwatch/put-anomaly-detector.rst +12 -0
  19. awscli/examples/cloudwatch/put-composite-alarm.rst +13 -0
  20. awscli/examples/cloudwatch/put-dashboard.rst +15 -0
  21. awscli/examples/cloudwatch/put-insight-rule.rst +35 -0
  22. awscli/examples/cloudwatch/put-metric-stream.rst +18 -0
  23. awscli/examples/cloudwatch/start-metric-streams.rst +10 -0
  24. awscli/examples/cloudwatch/stop-metric-streams.rst +10 -0
  25. awscli/examples/cloudwatch/tag-resource.rst +11 -0
  26. awscli/examples/cloudwatch/untag-resource.rst +11 -0
  27. awscli/examples/cloudwatch/wait/alarm-exists.rst +8 -0
  28. awscli/examples/cloudwatch/wait/composite-alarm-exists.rst +9 -0
  29. {awscli-1.36.9.dist-info → awscli-1.36.11.dist-info}/METADATA +2 -2
  30. {awscli-1.36.9.dist-info → awscli-1.36.11.dist-info}/RECORD +38 -11
  31. {awscli-1.36.9.data → awscli-1.36.11.data}/scripts/aws +0 -0
  32. {awscli-1.36.9.data → awscli-1.36.11.data}/scripts/aws.cmd +0 -0
  33. {awscli-1.36.9.data → awscli-1.36.11.data}/scripts/aws_bash_completer +0 -0
  34. {awscli-1.36.9.data → awscli-1.36.11.data}/scripts/aws_completer +0 -0
  35. {awscli-1.36.9.data → awscli-1.36.11.data}/scripts/aws_zsh_completer.sh +0 -0
  36. {awscli-1.36.9.dist-info → awscli-1.36.11.dist-info}/LICENSE.txt +0 -0
  37. {awscli-1.36.9.dist-info → awscli-1.36.11.dist-info}/WHEEL +0 -0
  38. {awscli-1.36.9.dist-info → awscli-1.36.11.dist-info}/top_level.txt +0 -0
awscli/__init__.py CHANGED
@@ -18,7 +18,7 @@ A Universal Command Line Environment for Amazon Web Services.
18
18
 
19
19
  import os
20
20
 
21
- __version__ = '1.36.9'
21
+ __version__ = '1.36.11'
22
22
 
23
23
  #
24
24
  # Get our data path to be added to botocore's search path
@@ -0,0 +1,12 @@
1
+ **To delete a specified anomaly detection model**
2
+
3
+ The following ``delete-anomaly-detector`` example deletes an anomaly detector model in the specified account. ::
4
+
5
+ aws cloudwatch delete-anomaly-detector \
6
+ --namespace AWS/Logs \
7
+ --metric-name IncomingBytes \
8
+ --stat SampleCount
9
+
10
+ This command produces no output.
11
+
12
+ For more information, see `Deleting an anomaly detection model <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,10 @@
1
+ **To delete specified dashboards**
2
+
3
+ The following ``delete-dashboards`` example deletes two dashboards named ``Dashboard-A`` and ``Dashboard-B`` in the specified account. ::
4
+
5
+ aws cloudwatch delete-dashboards \
6
+ --dashboard-names Dashboard-A Dashboard-B
7
+
8
+ This command produces no output.
9
+
10
+ For more information, see `Amazon CloudWatch dashboards <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,14 @@
1
+ **To delete specified contributor insights rules**
2
+
3
+ The following ``delete-insight-rules`` example deletes two contributor insights rules named ``Rule-A`` and ``Rule-B`` in the specified account. ::
4
+
5
+ aws cloudwatch delete-insight-rules \
6
+ --rule-names Rule-A Rule-B
7
+
8
+ Output::
9
+
10
+ {
11
+ "Failures": []
12
+ }
13
+
14
+ For more information, see `Use Contributor Insights to analyze high-cardinality data <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,10 @@
1
+ **To delete a specified metric stream**
2
+
3
+ The following ``delete-metric-stream`` example deletes the metric stream named ``QuickPartial-gSCKvO`` in the specified account. ::
4
+
5
+ aws cloudwatch delete-metric-stream \
6
+ --name QuickPartial-gSCKvO
7
+
8
+ This command produces no output.
9
+
10
+ For more information, see `Use metric streams <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,59 @@
1
+ **To retrieve a list of anomaly detection models**
2
+
3
+ The following ``describe-anomaly-detectors`` example displays information about anomaly detector models that are associated with the ``AWS/Logs`` namespace in the specified account. ::
4
+
5
+ aws cloudwatch describe-anomaly-detectors \
6
+ --namespace AWS/Logs
7
+
8
+ Output::
9
+
10
+ {
11
+ "AnomalyDetectors": [
12
+ {
13
+ "Namespace": "AWS/Logs",
14
+ "MetricName": "IncomingBytes",
15
+ "Dimensions": [],
16
+ "Stat": "SampleCount",
17
+ "Configuration": {
18
+ "ExcludedTimeRanges": []
19
+ },
20
+ "StateValue": "TRAINED",
21
+ "SingleMetricAnomalyDetector": {
22
+ "AccountId": "123456789012",
23
+ "Namespace": "AWS/Logs",
24
+ "MetricName": "IncomingBytes",
25
+ "Dimensions": [],
26
+ "Stat": "SampleCount"
27
+ }
28
+ },
29
+ {
30
+ "Namespace": "AWS/Logs",
31
+ "MetricName": "IncomingBytes",
32
+ "Dimensions": [
33
+ {
34
+ "Name": "LogGroupName",
35
+ "Value": "demo"
36
+ }
37
+ ],
38
+ "Stat": "Average",
39
+ "Configuration": {
40
+ "ExcludedTimeRanges": []
41
+ },
42
+ "StateValue": "PENDING_TRAINING",
43
+ "SingleMetricAnomalyDetector": {
44
+ "AccountId": "123456789012",
45
+ "Namespace": "AWS/Logs",
46
+ "MetricName": "IncomingBytes",
47
+ "Dimensions": [
48
+ {
49
+ "Name": "LogGroupName",
50
+ "Value": "demo"
51
+ }
52
+ ],
53
+ "Stat": "Average"
54
+ }
55
+ }
56
+ ]
57
+ }
58
+
59
+ For more information, see `Using CloudWatch anomaly detection <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,28 @@
1
+ **To retrieve a list of Contributor Insights rules**
2
+
3
+ The following ``describe-insight-rules`` example shows all the Contributor Insight rules in the specified account. ::
4
+
5
+ aws cloudwatch describe-insight-rules
6
+
7
+ Output::
8
+
9
+ {
10
+ "InsightRules": [
11
+ {
12
+ "Name": "Rule-A",
13
+ "State": "ENABLED",
14
+ "Schema": "CloudWatchLogRule/1",
15
+ "Definition": "{\n\t\"AggregateOn\": \"Count\",\n\t\"Contribution\": {\n\t\t\"Filters\": [],\n\t\t\"Keys\": [\n\t\t\t\"$.requestId\"\n\t\t]\n\t},\n\t\"LogFormat\": \"JSON\",\n\t\"Schema\": {\n\t\t\"Name\": \"CloudWatchLogRule\",\n\t\t\"Version\": 1\n\t},\n\t\"LogGroupARNs\": [\n\t\t\"arn:aws:logs:us-east-1:123456789012:log-group:demo\"\n\t]\n}",
16
+ "ManagedRule": false
17
+ },
18
+ {
19
+ "Name": "Rule-B",
20
+ "State": "ENABLED",
21
+ "Schema": "CloudWatchLogRule/1",
22
+ "Definition": "{\n\t\"AggregateOn\": \"Count\",\n\t\"Contribution\": {\n\t\t\"Filters\": [],\n\t\t\"Keys\": [\n\t\t\t\"$.requestId\"\n\t\t]\n\t},\n\t\"LogFormat\": \"JSON\",\n\t\"Schema\": {\n\t\t\"Name\": \"CloudWatchLogRule\",\n\t\t\"Version\": 1\n\t},\n\t\"LogGroupARNs\": [\n\t\t\"arn:aws:logs:us-east-1:123456789012:log-group:demo-1\"\n\t]\n}",
23
+ "ManagedRule": false
24
+ }
25
+ ]
26
+ }
27
+
28
+ For more information, see `Use Contributor Insights to analyze high-cardinality data <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,14 @@
1
+ **To disable specified contributor insight rules**
2
+
3
+ The following ``disable-insight-rules`` example disables two contributor insights rules named ``Rule-A`` and ``Rule-B`` in the specified account. ::
4
+
5
+ aws cloudwatch disable-insight-rules \
6
+ --rule-names Rule-A Rule-B
7
+
8
+ Output::
9
+
10
+ {
11
+ "Failures": []
12
+ }
13
+
14
+ For more information, see `Use Contributor Insights to analyze high-cardinality data <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,14 @@
1
+ **To enable specified contributor insight rules**
2
+
3
+ The following ``enable-insight-rules`` example enables two contributor insights rules named ``Rule-A`` and ``Rule-B`` in the specified account. ::
4
+
5
+ aws cloudwatch enable-insight-rules \
6
+ --rule-names Rule-A Rule-B
7
+
8
+ Output::
9
+
10
+ {
11
+ "Failures": []
12
+ }
13
+
14
+ For more information, see `Use Contributor Insights to analyze high-cardinality data <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,16 @@
1
+ **To retrieve information about a Dashboard**
2
+
3
+ The following ``get-dashboard`` example displays information about the dashboard named ``Dashboard-A`` in the specified account. ::
4
+
5
+ aws cloudwatch get-dashboard \
6
+ --dashboard-name Dashboard-A
7
+
8
+ Output::
9
+
10
+ {
11
+ "DashboardArn": "arn:aws:cloudwatch::123456789012:dashboard/Dashboard-A",
12
+ "DashboardBody": "{\"widgets\":[{\"type\":\"metric\",\"x\":0,\"y\":0,\"width\":6,\"height\":6,\"properties\":{\"view\":\"timeSeries\",\"stacked\":false,\"metrics\":[[\"AWS/EC2\",\"NetworkIn\",\"InstanceId\",\"i-0131f062232ade043\"],[\".\",\"NetworkOut\",\".\",\".\"]],\"region\":\"us-east-1\"}}]}",
13
+ "DashboardName": "Dashboard-A"
14
+ }
15
+
16
+ For more information, see `Amazon CloudWatch dashboards <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,37 @@
1
+ **To retrieve the time series data collected by a Contributor Insights rule**
2
+
3
+ The following ``get-insight-rule-report`` example returns the time series data collected by a Contributor Insights rule. ::
4
+
5
+ aws cloudwatch get-insight-rule-report \
6
+ --rule-name Rule-A \
7
+ --start-time 2024-10-13T20:15:00Z \
8
+ --end-time 2024-10-13T20:30:00Z \
9
+ --period 300
10
+
11
+ Output::
12
+
13
+ {
14
+ "KeyLabels": [
15
+ "PartitionKey"
16
+ ],
17
+ "AggregationStatistic": "Sum",
18
+ "AggregateValue": 0.5,
19
+ "ApproximateUniqueCount": 1,
20
+ "Contributors": [
21
+ {
22
+ "Keys": [
23
+ "RequestID"
24
+ ],
25
+ "ApproximateAggregateValue": 0.5,
26
+ "Datapoints": [
27
+ {
28
+ "Timestamp": "2024-10-13T21:00:00+00:00",
29
+ "ApproximateValue": 0.5
30
+ }
31
+ ]
32
+ }
33
+ ],
34
+ "RuleAttributes": []
35
+ }
36
+
37
+ For more information, see `Use Contributor Insights to analyze high-cardinality data <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,106 @@
1
+ **Example 1: To get the Average Total IOPS for the specified EC2 using math expression**
2
+
3
+ The following ``get-metric-data`` example retrieves CloudWatch metric values for the EC2 instance with InstanceID ``i-abcdef`` using metric math exprssion that combines ``EBSReadOps`` and ``EBSWriteOps`` metrics. ::
4
+
5
+ aws cloudwatch get-metric-data \
6
+ --metric-data-queries file://file.json \
7
+ --start-time 2024-09-29T22:10:00Z \
8
+ --end-time 2024-09-29T22:15:00Z
9
+
10
+ Contents of ``file.json``::
11
+
12
+ [
13
+ {
14
+ "Id": "m3",
15
+ "Expression": "(m1+m2)/300",
16
+ "Label": "Avg Total IOPS"
17
+ },
18
+ {
19
+ "Id": "m1",
20
+ "MetricStat": {
21
+ "Metric": {
22
+ "Namespace": "AWS/EC2",
23
+ "MetricName": "EBSReadOps",
24
+ "Dimensions": [
25
+ {
26
+ "Name": "InstanceId",
27
+ "Value": "i-abcdef"
28
+ }
29
+ ]
30
+ },
31
+ "Period": 300,
32
+ "Stat": "Sum",
33
+ "Unit": "Count"
34
+ },
35
+ "ReturnData": false
36
+ },
37
+ {
38
+ "Id": "m2",
39
+ "MetricStat": {
40
+ "Metric": {
41
+ "Namespace": "AWS/EC2",
42
+ "MetricName": "EBSWriteOps",
43
+ "Dimensions": [
44
+ {
45
+ "Name": "InstanceId",
46
+ "Value": "i-abcdef"
47
+ }
48
+ ]
49
+ },
50
+ "Period": 300,
51
+ "Stat": "Sum",
52
+ "Unit": "Count"
53
+ },
54
+ "ReturnData": false
55
+ }
56
+ ]
57
+
58
+ Output::
59
+
60
+ {
61
+ "MetricDataResults": [
62
+ {
63
+ "Id": "m3",
64
+ "Label": "Avg Total IOPS",
65
+ "Timestamps": [
66
+ "2024-09-29T22:10:00+00:00"
67
+ ],
68
+ "Values": [
69
+ 96.85
70
+ ],
71
+ "StatusCode": "Complete"
72
+ }
73
+ ],
74
+ "Messages": []
75
+ }
76
+
77
+ **Example 2: To monitor the estimated AWS charges using CloudWatch billing metrics**
78
+
79
+ The following ``get-metric-data`` example retrieves ``EstimatedCharges`` CloudWatch metric from AWS/Billing namespace. ::
80
+
81
+ aws cloudwatch get-metric-data \
82
+ --metric-data-queries '[{"Id":"m1","MetricStat":{"Metric":{"Namespace":"AWS/Billing","MetricName":"EstimatedCharges","Dimensions":[{"Name":"Currency","Value":"USD"}]},"Period":21600,"Stat":"Maximum"}}]' \
83
+ --start-time 2024-09-26T12:00:00Z \
84
+ --end-time 2024-09-26T18:00:00Z \
85
+ --region us-east-1
86
+
87
+ Output::
88
+
89
+ {
90
+ "MetricDataResults": [
91
+ {
92
+ "Id": "m1",
93
+ "Label": "EstimatedCharges",
94
+ "Timestamps": [
95
+ "2024-09-26T12:00:00+00:00"
96
+ ],
97
+ "Values": [
98
+ 542.38
99
+ ],
100
+ "StatusCode": "Complete"
101
+ }
102
+ ],
103
+ "Messages": []
104
+ }
105
+
106
+ For more information, see `Using math expressions with CloudWatch metrics <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,22 @@
1
+ **To retrieve information about a metric stream**
2
+
3
+ The following ``get-metric-stream`` example displays information about the metric stream named ``QuickFull-GuaFbs`` in the specified account. ::
4
+
5
+ aws cloudwatch get-metric-stream \
6
+ --name QuickFull-GuaFbs
7
+
8
+ Output::
9
+
10
+ {
11
+ "Arn": "arn:aws:cloudwatch:us-east-1:123456789012:metric-stream/QuickFull-GuaFbs",
12
+ "Name": "QuickFull-GuaFbs",
13
+ "FirehoseArn": "arn:aws:firehose:us-east-1:123456789012:deliverystream/MetricStreams-QuickFull-GuaFbs-WnySbECG",
14
+ "RoleArn": "arn:aws:iam::123456789012:role/service-role/MetricStreams-FirehosePutRecords-JN10W9B3",
15
+ "State": "running",
16
+ "CreationDate": "2024-10-11T18:48:59.187000+00:00",
17
+ "LastUpdateDate": "2024-10-11T18:48:59.187000+00:00",
18
+ "OutputFormat": "json",
19
+ "IncludeLinkedAccountsMetrics": false
20
+ }
21
+
22
+ For more information, see `Use metric streams <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,10 @@
1
+ **To retrieve a snapshot graph of CPUUtilization**
2
+
3
+ The following ``get-metric-widget-image`` example retrieves snapshot graph for the metric ``CPUUtilization`` of the EC2 instance with the ID ``i-abcde`` and saves the retrieved image as a file named "image.png" on your local machine. ::
4
+
5
+ aws cloudwatch get-metric-widget-image \
6
+ --metric-widget '{"metrics":[["AWS/EC2","CPUUtilization","InstanceId","i-abcde"]]}' \
7
+ --output-format png \
8
+ --output text | base64 --decode > image.png
9
+
10
+ This command produces no output.
@@ -0,0 +1,26 @@
1
+ **To retrieve a list of Dashboards**
2
+
3
+ The following ``list-dashboards`` example lists all the Dashboards in the specified account. ::
4
+
5
+ aws cloudwatch list-dashboards
6
+
7
+ Output::
8
+
9
+ {
10
+ "DashboardEntries": [
11
+ {
12
+ "DashboardName": "Dashboard-A",
13
+ "DashboardArn": "arn:aws:cloudwatch::123456789012:dashboard/Dashboard-A",
14
+ "LastModified": "2024-10-11T18:40:11+00:00",
15
+ "Size": 271
16
+ },
17
+ {
18
+ "DashboardName": "Dashboard-B",
19
+ "DashboardArn": "arn:aws:cloudwatch::123456789012:dashboard/Dashboard-B",
20
+ "LastModified": "2024-10-11T18:44:41+00:00",
21
+ "Size": 522
22
+ }
23
+ ]
24
+ }
25
+
26
+ For more information, see `Amazon CloudWatch dashboards <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,23 @@
1
+ **To retrieve a list of metric streams**
2
+
3
+ The following ``list-metric-streams`` example lists all the metric streams in the specified account. ::
4
+
5
+ aws cloudwatch list-metric-streams
6
+
7
+ Output::
8
+
9
+ {
10
+ "Entries": [
11
+ {
12
+ "Arn": "arn:aws:cloudwatch:us-east-1:123456789012:metric-stream/QuickFull-GuaFbs",
13
+ "CreationDate": "2024-10-11T18:48:59.187000+00:00",
14
+ "LastUpdateDate": "2024-10-11T18:48:59.187000+00:00",
15
+ "Name": "QuickFull-GuaFbs",
16
+ "FirehoseArn": "arn:aws:firehose:us-east-1:123456789012:deliverystream/MetricStreams-QuickFull-GuaFbs-WnySbECG",
17
+ "State": "running",
18
+ "OutputFormat": "json"
19
+ }
20
+ ]
21
+ }
22
+
23
+ For more information, see `Use metric streams <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,23 @@
1
+ **To list the tags associated with an existing alarm***
2
+
3
+ The following ``list-tags-for-resource`` example lists all the tags associated with an alarm named ``demo`` in the specified account. ::
4
+
5
+ aws cloudwatch list-tags-for-resource \
6
+ --resource-arn arn:aws:cloudwatch:us-east-1:123456789012:alarm:demo
7
+
8
+ Output::
9
+
10
+ {
11
+ "Tags": [
12
+ {
13
+ "Key": "stack",
14
+ "Value": "Production"
15
+ },
16
+ {
17
+ "Key": "team",
18
+ "Value": "Devops"
19
+ }
20
+ ]
21
+ }
22
+
23
+ For more information, see `Alarms and tagging <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_alarms_and_tagging.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,12 @@
1
+ **To create an anomaly detection model**
2
+
3
+ The following ``put-anomaly-detector`` example creates an anomaly detection model for a CloudWatch metric. ::
4
+
5
+ aws cloudwatch put-anomaly-detector \
6
+ --namespace AWS/Logs \
7
+ --metric-name IncomingBytes \
8
+ --stat SampleCount
9
+
10
+ This command produces no output.
11
+
12
+ For more information, see `Using CloudWatch anomaly detection <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,13 @@
1
+ **To create a composite cloudwatch alarm**
2
+
3
+ The following ``put-composite-alarm`` example creates a composite alarm named ``ProdAlarm`` in the specified account. ::
4
+
5
+ aws cloudwatch put-composite-alarm \
6
+ --alarm-name ProdAlarm \
7
+ --alarm-rule "ALARM(CPUUtilizationTooHigh) AND ALARM(MemUsageTooHigh)" \
8
+ --alarm-actions arn:aws:sns:us-east-1:123456789012:demo \
9
+ --actions-enabled
10
+
11
+ This command produces no output.
12
+
13
+ For more information, see `Create a composite alarm <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Composite_Alarm_How_To.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,15 @@
1
+ **To create a dashboard**
2
+
3
+ The following ``put-dashboard`` example creates a dashboard named ``Dashboard-A`` in the specified account. ::
4
+
5
+ aws cloudwatch put-dashboard \
6
+ --dashboard-name Dashboard-A \
7
+ --dashboard-body '{"widgets":[{"height":6,"width":6,"y":0,"x":0,"type":"metric","properties":{"view":"timeSeries","stacked":false,"metrics":[["Namespace","CPUUtilization","Environment","Prod","Type","App"]],"region":"us-east-1"}}]}'
8
+
9
+ Output::
10
+
11
+ {
12
+ "DashboardValidationMessages": []
13
+ }
14
+
15
+ For more information, see `Creating a CloudWatch dashboard <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/create_dashboard.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,35 @@
1
+ **To create a contributor insights rule**
2
+
3
+ The following ``put-insight-rule`` example creates a Contributor Insights rule named ``VPCFlowLogsContributorInsights`` in the specified account. ::
4
+
5
+ aws cloudwatch put-insight-rule \
6
+ --rule-name VPCFlowLogsContributorInsights \
7
+ --rule-definition file://insight-rule.json \
8
+ --rule-state ENABLED
9
+
10
+ Contents of ``insight-rule.json``::
11
+
12
+ {
13
+ "Schema": {
14
+ "Name": "CloudWatchLogRule",
15
+ "Version": 1
16
+ },
17
+ "AggregateOn": "Count",
18
+ "Contribution": {
19
+ "Filters": [],
20
+ "Keys": [
21
+ "tcp-flag"
22
+ ]
23
+ },
24
+ "LogFormat": "CLF",
25
+ "LogGroupNames": [
26
+ "/vpc/flowlogs/*"
27
+ ],
28
+ "Fields": {
29
+ "23": "tcp-flag"
30
+ }
31
+ }
32
+
33
+ This command produces no output.
34
+
35
+ For more information, see `Create a Contributor Insights rule in CloudWatch <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-CreateRule.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,18 @@
1
+ **To create a metric stream**
2
+
3
+ The following ``put-metric-stream`` example creates a metric stream named ``QuickFull-GuaFb`` in the specified account. ::
4
+
5
+ aws cloudwatch put-metric-stream \
6
+ --name QuickFull-GuaFbs \
7
+ --firehose-arn arn:aws:firehose:us-east-1:123456789012:deliverystream/MetricStreams-QuickFull-GuaFbs-WnySbECG \
8
+ --role-arn arn:aws:iam::123456789012:role/service-role/MetricStreams-FirehosePutRecords-JN10W9B3 \
9
+ --output-format json \
10
+ --no-include-linked-accounts-metrics
11
+
12
+ Output::
13
+
14
+ {
15
+ "Arn": "arn:aws:cloudwatch:us-east-1:123456789012:metric-stream/QuickFull-GuaFbs"
16
+ }
17
+
18
+ For more information, see `Set up a metric stream <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-setup.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,10 @@
1
+ **To start a specified metric stream**
2
+
3
+ The following ``start-metric-streams`` example starts the metric stream named ``QuickFull-GuaFbs`` in the specified account. ::
4
+
5
+ aws cloudwatch start-metric-streams \
6
+ --names QuickFull-GuaFbs
7
+
8
+ This command produces no output.
9
+
10
+ For more information, see `Use metric streams <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,10 @@
1
+ **To stop a specified metric stream**
2
+
3
+ The following ``stop-metric-streams`` example stops the metric stream named ``QuickFull-GuaFbs`` in the specified account. ::
4
+
5
+ aws cloudwatch stop-metric-streams \
6
+ --names QuickFull-GuaFbs
7
+
8
+ This command produces no output.
9
+
10
+ For more information, see `Use metric streams <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,11 @@
1
+ **To add one or more tags to the specified resource**
2
+
3
+ The following ``tag-resource`` example adds 2 tags to the cloudwatch alarm named ``demo`` in the specified account. ::
4
+
5
+ aws cloudwatch tag-resource \
6
+ --resource-arn arn:aws:cloudwatch:us-east-1:123456789012:alarm:demo \
7
+ --tags Key=stack,Value=Production Key=team,Value=Devops
8
+
9
+ This command produces no output.
10
+
11
+ For more information, see `Tagging your Amazon CloudWatch resources <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,11 @@
1
+ **To remove one or more tags from the specified resource**
2
+
3
+ The following ``untag-resource`` example removes 2 tags from the cloudwatch alarm named ``demo`` in the specified account. ::
4
+
5
+ aws cloudwatch untag-resource \
6
+ --resource-arn arn:aws:cloudwatch:us-east-1:123456789012:alarm:demo \
7
+ --tag-keys stack team
8
+
9
+ This command produces no output.
10
+
11
+ For more information, see `Tagging your Amazon CloudWatch resources <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html>`__ in the *Amazon CloudWatch User Guide*.
@@ -0,0 +1,8 @@
1
+ **To wait until an alarm exists**
2
+
3
+ The following ``wait alarm-exists`` example pauses and resumes running only after it confirms that the specified CloudWatch alarm exists. ::
4
+
5
+ aws cloudwatch wait alarm-exists \
6
+ --alarm-names demo
7
+
8
+ This command produces no output.
@@ -0,0 +1,9 @@
1
+ **To wait until a composite alarm exists**
2
+
3
+ The following ``wait composite-alarm-exists`` example pauses and resumes running only after it confirms that the specified CloudWatch alarm exists. ::
4
+
5
+ aws cloudwatch wait composite-alarm-exists \
6
+ --alarm-names demo \
7
+ --alarm-types CompositeAlarm
8
+
9
+ This command produces no output.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: awscli
3
- Version: 1.36.9
3
+ Version: 1.36.11
4
4
  Summary: Universal Command Line Environment for AWS.
5
5
  Home-page: http://aws.amazon.com/cli/
6
6
  Author: Amazon Web Services
@@ -23,7 +23,7 @@ Classifier: Programming Language :: Python :: 3.11
23
23
  Classifier: Programming Language :: Python :: 3.12
24
24
  Requires-Python: >= 3.8
25
25
  License-File: LICENSE.txt
26
- Requires-Dist: botocore (==1.35.68)
26
+ Requires-Dist: botocore (==1.35.70)
27
27
  Requires-Dist: docutils (<0.17,>=0.10)
28
28
  Requires-Dist: s3transfer (<0.11.0,>=0.10.0)
29
29
  Requires-Dist: PyYAML (<6.1,>=3.10)
@@ -1,4 +1,4 @@
1
- awscli/__init__.py,sha256=n8bRltEsjo0Lc4pdkladTyVrHVwCHp7WN-yK7N6cuSE,1533
1
+ awscli/__init__.py,sha256=gMMT23MPYN8aw0IeuZWsZboPmhStp99te4NL5_ltUas,1534
2
2
  awscli/__main__.py,sha256=iBjOg0tBxNlhzTi_tyc1G0SMGBvHMVvBJzX3JqYaooY,662
3
3
  awscli/alias.py,sha256=Us9pvP8Zplbr1W4N3rE5gxicWLqlRG3l_9VPskxafgs,11313
4
4
  awscli/argparser.py,sha256=3Pxx-vWytdV985Y6MIl9DeutUXyehIvACIs_PDby8GI,7650
@@ -900,16 +900,43 @@ awscli/examples/cloudtrail/update-subscription.rst,sha256=p2kF6eLCfGjqlrWGz9ZvUR
900
900
  awscli/examples/cloudtrail/update-trail.rst,sha256=szhXEmHstQfrZFoN_lnWj13M-_aJ2wyG46dHyBjrnDk,472
901
901
  awscli/examples/cloudtrail/validate-logs.rst,sha256=s-FpQPivasuD8oXopgbDcMXErMBoT6VVaqYTRBBPVQw,583
902
902
  awscli/examples/cloudwatch/delete-alarms.rst,sha256=BKs1LQkjwJ5NsXMvyKqLSwmewY4PPu8XkEWHxOgAskY,254
903
+ awscli/examples/cloudwatch/delete-anomaly-detector.rst,sha256=WlTXIEpQdhKJFkA3HyDT9kP9eM0WOw7SycACDQvHaOw,578
904
+ awscli/examples/cloudwatch/delete-dashboards.rst,sha256=DDw207V0PODPBp-I3DdoGhE2HEpHu4xYg7-MAb7Bz60,488
905
+ awscli/examples/cloudwatch/delete-insight-rules.rst,sha256=7G1GekO4s0ZuC7J6uWVR5wMw8rnXjrBJ2g2X5FEp5kM,541
906
+ awscli/examples/cloudwatch/delete-metric-stream.rst,sha256=0Ip3Re-Ize3iH1oy4ML15NOB4t3OWqjmvGO6CGgl71k,470
903
907
  awscli/examples/cloudwatch/describe-alarm-history.rst,sha256=nDAXGrqpi628a9-qkeNejUARZzP5hQWY60hCt1pHpds,1898
904
908
  awscli/examples/cloudwatch/describe-alarms-for-metric.rst,sha256=p-2dFjgRRhI2UaxuL5jyPM5tmq186SWRPRm3DvaHT8I,3562
905
909
  awscli/examples/cloudwatch/describe-alarms.rst,sha256=Xx62GZDNqLCWMqmwpfcoyFN384sD9D_TVxGtoD9s0u8,1751
910
+ awscli/examples/cloudwatch/describe-anomaly-detectors.rst,sha256=Mb7qInil-SxlxqyKrzchaw52XOgBgn6A0yq29oNqWjk,2143
911
+ awscli/examples/cloudwatch/describe-insight-rules.rst,sha256=-Ek0n68WWSBeQqX4irGx26B8xCMcp4XqYCngKaC3Qww,1591
906
912
  awscli/examples/cloudwatch/disable-alarm-actions.rst,sha256=zKpiELbmWk7HBvpusZYj1Hltzrl3N-0U0DhPWnS3eVE,270
913
+ awscli/examples/cloudwatch/disable-insight-rules.rst,sha256=6f-NLto_A5-MX9sieCJLdyPyebgGPALAtsCy-w0uOCo,543
907
914
  awscli/examples/cloudwatch/enable-alarm-actions.rst,sha256=xcyA_t0kcw-eVVkLpdZiuicKwqW84sw4NTrN5sJIl8M,270
915
+ awscli/examples/cloudwatch/enable-insight-rules.rst,sha256=CSgO6kZ18Q1LEaMmunfNHLPZ-g0UWEEAsf6psUAp-dQ,539
916
+ awscli/examples/cloudwatch/get-dashboard.rst,sha256=UOdhUB0-39Y5bb90PuqGNTQifqjZLFsx7dTLD-CRlYw,894
917
+ awscli/examples/cloudwatch/get-insight-rule-report.rst,sha256=JIFp8P5fQeSFwaBI-JJ_g5zHUxNkUcIr9Dy4X_LFdmk,1222
918
+ awscli/examples/cloudwatch/get-metric-data.rst,sha256=VNu4aMEQ_HB6PF5EubzOCD8phN3xtNiSFD_PVywQpPE,3349
908
919
  awscli/examples/cloudwatch/get-metric-statistics.rst,sha256=2eW5dmXky_oYy7bgJKFyjfZ0_wDhvOsAmA3D1igPteg,4916
920
+ awscli/examples/cloudwatch/get-metric-stream.rst,sha256=si8zJ0jnNcnu3xl8oaxbsVEeBOZC5-uWTvJGJ1ixIII,1059
921
+ awscli/examples/cloudwatch/get-metric-widget-image.rst,sha256=PEC0-bkqlir2L8ilPLrTExKOklsv9NVtLWrBAGB9Tjc,545
922
+ awscli/examples/cloudwatch/list-dashboards.rst,sha256=3GsC1-KNyZQkGgPP9y7JAznidHMj8p3v3XBblCb0T9w,939
923
+ awscli/examples/cloudwatch/list-metric-streams.rst,sha256=oX4-OwQ8Gy5b_35DUPMGW3kaLKnYSBE-GkiUONuVWrA,938
909
924
  awscli/examples/cloudwatch/list-metrics.rst,sha256=OEtHygb7cFJKBa9B73FKLTM6Bwi7VSzt9tmJIdIJOds,2692
925
+ awscli/examples/cloudwatch/list-tags-for-resource.rst,sha256=oIoy7Nq7Bu0NsVrwldhANOpNQkT1P1LT0ZBNYnopIYk,750
926
+ awscli/examples/cloudwatch/put-anomaly-detector.rst,sha256=-1yQn3VKximNkbIwpp5A6oPn1h0LsT7e8tBF8FI1bts,528
927
+ awscli/examples/cloudwatch/put-composite-alarm.rst,sha256=bfwlpImHP_SS1gCIeaW-GN2xJ6JEnwX9GLI0WPXo9jM,642
928
+ awscli/examples/cloudwatch/put-dashboard.rst,sha256=SQHxZQiRb_2UjoLa1fKTKFWox1uXAqoyTMxlEebgK1o,711
929
+ awscli/examples/cloudwatch/put-insight-rule.rst,sha256=eYjGZ9NH3gkkPUow_w-BqI2nA43YaxQTfVeN-ug0mDc,1080
910
930
  awscli/examples/cloudwatch/put-metric-alarm.rst,sha256=6VnpT0S0xIxdEO59HB4kPqXYUmmheOkWjWrrzQktjPQ,1412
911
931
  awscli/examples/cloudwatch/put-metric-data.rst,sha256=bLFC5gwHvntIXiGv0LFhRaEd7jC27sHqeWzl3cVtMgA,1126
932
+ awscli/examples/cloudwatch/put-metric-stream.rst,sha256=DLQNw04DyuQxAwIcsYwP0O6QlHq1xGorGmXKZWlBxYw,842
912
933
  awscli/examples/cloudwatch/set-alarm-state.rst,sha256=rDkHfPCup5cx4j37z-Y2dF4xSl8jsbS07EYo0WdP5mY,401
934
+ awscli/examples/cloudwatch/start-metric-streams.rst,sha256=F9ViY2cx46Y0KDSTO84q-LrL3A4uakis3b0IxICCPw8,462
935
+ awscli/examples/cloudwatch/stop-metric-streams.rst,sha256=No0y7QeLnuKv9fT976kDgL-aLE01mNAevVxi2wjOwXE,458
936
+ awscli/examples/cloudwatch/tag-resource.rst,sha256=Zwv6LHMNEcoU1c3cs-mw1aJzWvm8yNDiejr6r8sM7rI,584
937
+ awscli/examples/cloudwatch/untag-resource.rst,sha256=m6mYf5jiqnnZSnmx5Ak3Mb0nTgzcO0fhpuw9baeC2A4,564
938
+ awscli/examples/cloudwatch/wait/alarm-exists.rst,sha256=LaDbfk6p3-Dt-ZR1RXC1liMmHOiPD8Q77au_4OBsJfY,277
939
+ awscli/examples/cloudwatch/wait/composite-alarm-exists.rst,sha256=_u-DynBA2deK8AA7yUMxex1Qvpik1BPSBLfy_wfVBDM,345
913
940
  awscli/examples/codeartifact/associate-external-connection.rst,sha256=X3ZzxvsXOBiBOF3ltcu730BCU3o7TplaAf8NZriuEbg,1107
914
941
  awscli/examples/codeartifact/copy-package-versions.rst,sha256=FJJIGEg8BsrtZTvofwzC_xVVcsIh_4YITw449mDsBq0,1053
915
942
  awscli/examples/codeartifact/create-domain.rst,sha256=9WQbaFrHUF-W4900jdgDZ3slNDZsSQkTe4H4FKuodsI,805
@@ -5956,13 +5983,13 @@ awscli/topics/return-codes.rst,sha256=d9lpNFZwD75IiYcDEADQzu-4QiR8P28UPHkrNwPV5J
5956
5983
  awscli/topics/s3-config.rst,sha256=FwwCczTylrSLwELuDQ-VA8sCI7ruwV9PEJJrqxjUeG0,11502
5957
5984
  awscli/topics/s3-faq.rst,sha256=sS5jKHF_7X5eiGwpUg7aTqQt2zCRN-m_xXOcE0Bme0Q,1899
5958
5985
  awscli/topics/topic-tags.json,sha256=6lUSrs3FKCZNRSQMnjcXNgWyRNGjZIeur1988a4IO5o,1577
5959
- awscli-1.36.9.data/scripts/aws,sha256=r24FExgs0-JjILTQ3XZAqXBYE4SV6UMTtALkLGAj86g,805
5960
- awscli-1.36.9.data/scripts/aws.cmd,sha256=s46DkC6LNgX63CIkzxxbPnFMJ6DRDBkvc88GnWa8Pvg,1432
5961
- awscli-1.36.9.data/scripts/aws_bash_completer,sha256=RRpoEGJRagRzyHZKZZOwpltuVYv2EoiZsdXhmyWPZ54,204
5962
- awscli-1.36.9.data/scripts/aws_completer,sha256=oC9kuMDlWE47dWk_4xjPde2PQvN-M0vND0J4YSLabVQ,1126
5963
- awscli-1.36.9.data/scripts/aws_zsh_completer.sh,sha256=Qm6Z8ejNAMzpJjaT0pzqxbSDT2zxdmzVe5haRA7qLoc,1808
5964
- awscli-1.36.9.dist-info/LICENSE.txt,sha256=o5XhFlwu0OK_BBrijlKCRa7dQAm36UrUB3gCV_cEr8E,549
5965
- awscli-1.36.9.dist-info/METADATA,sha256=ThCrmaHPsUUWy9f2huD090gJCqcIfU_JvEDaYqgJVMw,11330
5966
- awscli-1.36.9.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
5967
- awscli-1.36.9.dist-info/top_level.txt,sha256=vt9wXFr1_nGYK6abhJgt6zY3fULe4JSZedm_5XOM9S0,7
5968
- awscli-1.36.9.dist-info/RECORD,,
5986
+ awscli-1.36.11.data/scripts/aws,sha256=r24FExgs0-JjILTQ3XZAqXBYE4SV6UMTtALkLGAj86g,805
5987
+ awscli-1.36.11.data/scripts/aws.cmd,sha256=s46DkC6LNgX63CIkzxxbPnFMJ6DRDBkvc88GnWa8Pvg,1432
5988
+ awscli-1.36.11.data/scripts/aws_bash_completer,sha256=RRpoEGJRagRzyHZKZZOwpltuVYv2EoiZsdXhmyWPZ54,204
5989
+ awscli-1.36.11.data/scripts/aws_completer,sha256=oC9kuMDlWE47dWk_4xjPde2PQvN-M0vND0J4YSLabVQ,1126
5990
+ awscli-1.36.11.data/scripts/aws_zsh_completer.sh,sha256=Qm6Z8ejNAMzpJjaT0pzqxbSDT2zxdmzVe5haRA7qLoc,1808
5991
+ awscli-1.36.11.dist-info/LICENSE.txt,sha256=o5XhFlwu0OK_BBrijlKCRa7dQAm36UrUB3gCV_cEr8E,549
5992
+ awscli-1.36.11.dist-info/METADATA,sha256=Ts54jrMOuf3qqwvarALxCCHy2YtINdcFQjLS7tAj0JQ,11331
5993
+ awscli-1.36.11.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
5994
+ awscli-1.36.11.dist-info/top_level.txt,sha256=vt9wXFr1_nGYK6abhJgt6zY3fULe4JSZedm_5XOM9S0,7
5995
+ awscli-1.36.11.dist-info/RECORD,,
File without changes