aws-sdk 2.875.0 → 2.879.0

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +47 -1
  2. package/README.md +1 -1
  3. package/apis/batch-2016-08-10.min.json +74 -53
  4. package/apis/cloud9-2017-09-23.examples.json +1 -1
  5. package/apis/cloud9-2017-09-23.min.json +48 -14
  6. package/apis/cloudformation-2010-05-15.min.json +50 -48
  7. package/apis/cloudhsm-2014-05-30.min.json +18 -51
  8. package/apis/cognito-sync-2014-06-30.examples.json +5 -0
  9. package/apis/cognito-sync-2014-06-30.min.json +2 -3
  10. package/apis/cognito-sync-2014-06-30.paginators.json +4 -0
  11. package/apis/comprehend-2017-11-27.min.json +12 -6
  12. package/apis/config-2014-11-12.min.json +238 -128
  13. package/apis/databrew-2017-07-25.min.json +154 -60
  14. package/apis/datapipeline-2012-10-29.examples.json +5 -0
  15. package/apis/datapipeline-2012-10-29.min.json +1 -1
  16. package/apis/datapipeline-2012-10-29.paginators.json +10 -10
  17. package/apis/detective-2018-10-26.min.json +114 -18
  18. package/apis/directconnect-2012-10-25.min.json +151 -52
  19. package/apis/ec2-2016-11-15.min.json +831 -625
  20. package/apis/ec2-2016-11-15.paginators.json +6 -0
  21. package/apis/ec2-2016-11-15.waiters2.json +1 -1
  22. package/apis/ec2-instance-connect-2018-04-02.min.json +25 -0
  23. package/apis/fms-2018-01-01.min.json +41 -7
  24. package/apis/frauddetector-2019-11-15.min.json +158 -54
  25. package/apis/frauddetector-2019-11-15.paginators.json +5 -0
  26. package/apis/imagebuilder-2019-12-02.min.json +141 -111
  27. package/apis/iot-2015-05-28.min.json +20 -15
  28. package/apis/iotwireless-2020-11-22.min.json +43 -2
  29. package/apis/kendra-2019-02-03.min.json +38 -36
  30. package/apis/lightsail-2016-11-28.min.json +121 -114
  31. package/apis/machinelearning-2014-12-12.examples.json +5 -0
  32. package/apis/machinelearning-2014-12-12.min.json +3 -4
  33. package/apis/machinelearning-2014-12-12.paginators.json +5 -5
  34. package/apis/mediaconvert-2017-08-29.min.json +122 -83
  35. package/apis/mediapackage-2017-10-12.min.json +64 -48
  36. package/apis/monitoring-2010-08-01.min.json +208 -38
  37. package/apis/monitoring-2010-08-01.paginators.json +5 -0
  38. package/apis/pinpoint-2016-12-01.min.json +15 -2
  39. package/apis/pricing-2017-10-15.examples.json +1 -0
  40. package/apis/redshift-2012-12-01.min.json +398 -191
  41. package/apis/route53resolver-2018-04-01.min.json +791 -89
  42. package/apis/route53resolver-2018-04-01.paginators.json +36 -0
  43. package/apis/runtime.lex-2016-11-28.min.json +29 -3
  44. package/apis/sagemaker-2017-07-24.min.json +141 -112
  45. package/apis/wafv2-2019-07-29.min.json +196 -89
  46. package/apis/workmail-2017-10-01.min.json +247 -30
  47. package/clients/batch.d.ts +41 -3
  48. package/clients/cloud9.d.ts +22 -12
  49. package/clients/cloudformation.d.ts +4 -0
  50. package/clients/cloudwatch.d.ts +222 -3
  51. package/clients/cognitosync.d.ts +20 -20
  52. package/clients/cognitosync.js +1 -0
  53. package/clients/comprehend.d.ts +24 -0
  54. package/clients/configservice.d.ts +182 -10
  55. package/clients/databrew.d.ts +145 -25
  56. package/clients/detective.d.ts +74 -0
  57. package/clients/directconnect.d.ts +161 -2
  58. package/clients/ec2.d.ts +239 -14
  59. package/clients/ec2instanceconnect.d.ts +41 -8
  60. package/clients/fms.d.ts +63 -2
  61. package/clients/frauddetector.d.ts +174 -0
  62. package/clients/imagebuilder.d.ts +378 -340
  63. package/clients/iot.d.ts +5 -0
  64. package/clients/iotwireless.d.ts +75 -0
  65. package/clients/kendra.d.ts +27 -17
  66. package/clients/lexmodelbuildingservice.d.ts +1 -1
  67. package/clients/lexruntime.d.ts +17 -3
  68. package/clients/lightsail.d.ts +17 -2
  69. package/clients/machinelearning.d.ts +71 -71
  70. package/clients/mediaconvert.d.ts +70 -11
  71. package/clients/mediapackage.d.ts +13 -0
  72. package/clients/pinpoint.d.ts +23 -3
  73. package/clients/redshift.d.ts +275 -0
  74. package/clients/route53resolver.d.ts +1093 -57
  75. package/clients/sagemaker.d.ts +76 -44
  76. package/clients/transcribeservice.d.ts +1 -1
  77. package/clients/wafv2.d.ts +126 -3
  78. package/clients/workmail.d.ts +294 -0
  79. package/dist/aws-sdk-core-react-native.js +2 -2
  80. package/dist/aws-sdk-react-native.js +1868 -1835
  81. package/dist/aws-sdk.js +2415 -1583
  82. package/dist/aws-sdk.min.js +80 -80
  83. package/lib/core.js +1 -1
  84. package/lib/event_listeners.js +1 -1
  85. package/lib/http/node.js +1 -1
  86. package/lib/services/s3.js +31 -8
  87. package/lib/services/s3control.js +18 -15
  88. package/lib/services/s3util.js +10 -10
  89. package/package.json +1 -1
  90. package/scripts/region-checker/allowlist.js +12 -12
@@ -44,6 +44,14 @@ declare class CloudWatch extends Service {
44
44
  * Permanently deletes the specified Contributor Insights rules. 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.
45
45
  */
46
46
  deleteInsightRules(callback?: (err: AWSError, data: CloudWatch.Types.DeleteInsightRulesOutput) => void): Request<CloudWatch.Types.DeleteInsightRulesOutput, AWSError>;
47
+ /**
48
+ * Permanently deletes the metric stream that you specify.
49
+ */
50
+ deleteMetricStream(params: CloudWatch.Types.DeleteMetricStreamInput, callback?: (err: AWSError, data: CloudWatch.Types.DeleteMetricStreamOutput) => void): Request<CloudWatch.Types.DeleteMetricStreamOutput, AWSError>;
51
+ /**
52
+ * Permanently deletes the metric stream that you specify.
53
+ */
54
+ deleteMetricStream(callback?: (err: AWSError, data: CloudWatch.Types.DeleteMetricStreamOutput) => void): Request<CloudWatch.Types.DeleteMetricStreamOutput, AWSError>;
47
55
  /**
48
56
  * Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for either all metric alarms or all composite alarms are returned. CloudWatch retains the history of an alarm even if you delete the alarm.
49
57
  */
@@ -148,6 +156,14 @@ declare class CloudWatch extends Service {
148
156
  * 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: The SampleCount value of the statistic set is 1. The Min and the Max values of the statistic set are equal. 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 with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution metrics and are available only for custom metrics that have been defined with a StorageResolution of 1. Data points with a period of 60 seconds (1-minute) are available for 15 days. Data points with a period of 300 seconds (5-minute) are available for 63 days. Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months). 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 AWS services, see the Amazon CloudWatch Metrics and Dimensions Reference in the Amazon CloudWatch User Guide.
149
157
  */
150
158
  getMetricStatistics(callback?: (err: AWSError, data: CloudWatch.Types.GetMetricStatisticsOutput) => void): Request<CloudWatch.Types.GetMetricStatisticsOutput, AWSError>;
159
+ /**
160
+ * Returns information about the metric stream that you specify.
161
+ */
162
+ getMetricStream(params: CloudWatch.Types.GetMetricStreamInput, callback?: (err: AWSError, data: CloudWatch.Types.GetMetricStreamOutput) => void): Request<CloudWatch.Types.GetMetricStreamOutput, AWSError>;
163
+ /**
164
+ * Returns information about the metric stream that you specify.
165
+ */
166
+ getMetricStream(callback?: (err: AWSError, data: CloudWatch.Types.GetMetricStreamOutput) => void): Request<CloudWatch.Types.GetMetricStreamOutput, AWSError>;
151
167
  /**
152
168
  * 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: As many as 100 metrics in the graph. Up to 100 KB uncompressed payload.
153
169
  */
@@ -164,6 +180,14 @@ declare class CloudWatch extends Service {
164
180
  * Returns a list of the dashboards for your account. If you include DashboardNamePrefix, only those dashboards with names starting with the prefix are listed. Otherwise, all dashboards in your account are listed. ListDashboards returns up to 1000 results on one page. If there are more than 1000 dashboards, you can call ListDashboards again and include the value you received for NextToken in the first call, to receive the next 1000 results.
165
181
  */
166
182
  listDashboards(callback?: (err: AWSError, data: CloudWatch.Types.ListDashboardsOutput) => void): Request<CloudWatch.Types.ListDashboardsOutput, AWSError>;
183
+ /**
184
+ * Returns a list of metric streams in this account.
185
+ */
186
+ listMetricStreams(params: CloudWatch.Types.ListMetricStreamsInput, callback?: (err: AWSError, data: CloudWatch.Types.ListMetricStreamsOutput) => void): Request<CloudWatch.Types.ListMetricStreamsOutput, AWSError>;
187
+ /**
188
+ * Returns a list of metric streams in this account.
189
+ */
190
+ listMetricStreams(callback?: (err: AWSError, data: CloudWatch.Types.ListMetricStreamsOutput) => void): Request<CloudWatch.Types.ListMetricStreamsOutput, AWSError>;
167
191
  /**
168
192
  * 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.
169
193
  */
@@ -213,11 +237,11 @@ declare class CloudWatch extends Service {
213
237
  */
214
238
  putInsightRule(callback?: (err: AWSError, data: CloudWatch.Types.PutInsightRuleOutput) => void): Request<CloudWatch.Types.PutInsightRuleOutput, AWSError>;
215
239
  /**
216
- * 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 iam:CreateServiceLinkedRole for all alarms with EC2 actions The iam:CreateServiceLinkedRole to create an alarm with Systems Manager OpsItem actions. The first time you create an alarm in the AWS Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked rolea for you. The service-linked roles are called AWSServiceRoleForCloudWatchEvents and AWSServiceRoleForCloudWatchAlarms_ActionSSM. For more information, see AWS service-linked role.
240
+ * 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 iam:CreateServiceLinkedRole for all alarms with EC2 actions The iam:CreateServiceLinkedRole to create an alarm with Systems Manager OpsItem actions. The first time you create an alarm in the AWS 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 AWS service-linked role.
217
241
  */
218
242
  putMetricAlarm(params: CloudWatch.Types.PutMetricAlarmInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
219
243
  /**
220
- * 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 iam:CreateServiceLinkedRole for all alarms with EC2 actions The iam:CreateServiceLinkedRole to create an alarm with Systems Manager OpsItem actions. The first time you create an alarm in the AWS Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked rolea for you. The service-linked roles are called AWSServiceRoleForCloudWatchEvents and AWSServiceRoleForCloudWatchAlarms_ActionSSM. For more information, see AWS service-linked role.
244
+ * 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 iam:CreateServiceLinkedRole for all alarms with EC2 actions The iam:CreateServiceLinkedRole to create an alarm with Systems Manager OpsItem actions. The first time you create an alarm in the AWS 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 AWS service-linked role.
221
245
  */
222
246
  putMetricAlarm(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
223
247
  /**
@@ -228,6 +252,14 @@ declare class CloudWatch extends Service {
228
252
  * 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: The SampleCount value of the statistic set is 1 and Min, Max, and Sum are all equal. The Min and Max are equal, and Sum is equal to Min multiplied by SampleCount.
229
253
  */
230
254
  putMetricData(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
255
+ /**
256
+ * Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics to AWS 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: Stream metrics from all metric namespaces in the account. Stream metrics from all metric namespaces in the account, except for the namespaces that you list in ExcludeFilters. Stream metrics from only the metric namespaces that you list in IncludeFilters. 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.
257
+ */
258
+ putMetricStream(params: CloudWatch.Types.PutMetricStreamInput, callback?: (err: AWSError, data: CloudWatch.Types.PutMetricStreamOutput) => void): Request<CloudWatch.Types.PutMetricStreamOutput, AWSError>;
259
+ /**
260
+ * Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics to AWS 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: Stream metrics from all metric namespaces in the account. Stream metrics from all metric namespaces in the account, except for the namespaces that you list in ExcludeFilters. Stream metrics from only the metric namespaces that you list in IncludeFilters. 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.
261
+ */
262
+ putMetricStream(callback?: (err: AWSError, data: CloudWatch.Types.PutMetricStreamOutput) => void): Request<CloudWatch.Types.PutMetricStreamOutput, AWSError>;
231
263
  /**
232
264
  * 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.
233
265
  */
@@ -236,6 +268,22 @@ declare class CloudWatch extends Service {
236
268
  * 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.
237
269
  */
238
270
  setAlarmState(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
271
+ /**
272
+ * Starts the streaming of metrics for one or more of your metric streams.
273
+ */
274
+ startMetricStreams(params: CloudWatch.Types.StartMetricStreamsInput, callback?: (err: AWSError, data: CloudWatch.Types.StartMetricStreamsOutput) => void): Request<CloudWatch.Types.StartMetricStreamsOutput, AWSError>;
275
+ /**
276
+ * Starts the streaming of metrics for one or more of your metric streams.
277
+ */
278
+ startMetricStreams(callback?: (err: AWSError, data: CloudWatch.Types.StartMetricStreamsOutput) => void): Request<CloudWatch.Types.StartMetricStreamsOutput, AWSError>;
279
+ /**
280
+ * Stops the streaming of metrics for one or more of your metric streams.
281
+ */
282
+ stopMetricStreams(params: CloudWatch.Types.StopMetricStreamsInput, callback?: (err: AWSError, data: CloudWatch.Types.StopMetricStreamsOutput) => void): Request<CloudWatch.Types.StopMetricStreamsOutput, AWSError>;
283
+ /**
284
+ * Stops the streaming of metrics for one or more of your metric streams.
285
+ */
286
+ stopMetricStreams(callback?: (err: AWSError, data: CloudWatch.Types.StopMetricStreamsOutput) => void): Request<CloudWatch.Types.StopMetricStreamsOutput, AWSError>;
239
287
  /**
240
288
  * Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that can be tagged are alarms and Contributor Insights rules. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters. You can use the TagResource action with an alarm that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag. You can associate as many as 50 tags with a CloudWatch resource.
241
289
  */
@@ -528,6 +576,14 @@ declare namespace CloudWatch {
528
576
  */
529
577
  Failures?: BatchFailures;
530
578
  }
579
+ export interface DeleteMetricStreamInput {
580
+ /**
581
+ * The name of the metric stream to delete.
582
+ */
583
+ Name: MetricStreamName;
584
+ }
585
+ export interface DeleteMetricStreamOutput {
586
+ }
531
587
  export interface DescribeAlarmHistoryInput {
532
588
  /**
533
589
  * The name of the alarm.
@@ -950,6 +1006,54 @@ declare namespace CloudWatch {
950
1006
  */
951
1007
  Datapoints?: Datapoints;
952
1008
  }
1009
+ export interface GetMetricStreamInput {
1010
+ /**
1011
+ * The name of the metric stream to retrieve information about.
1012
+ */
1013
+ Name: MetricStreamName;
1014
+ }
1015
+ export interface GetMetricStreamOutput {
1016
+ /**
1017
+ * The ARN of the metric stream.
1018
+ */
1019
+ Arn?: AmazonResourceName;
1020
+ /**
1021
+ * The name of the metric stream.
1022
+ */
1023
+ Name?: MetricStreamName;
1024
+ /**
1025
+ * If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.
1026
+ */
1027
+ IncludeFilters?: MetricStreamFilters;
1028
+ /**
1029
+ * If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in the account are streamed by this metric stream.
1030
+ */
1031
+ ExcludeFilters?: MetricStreamFilters;
1032
+ /**
1033
+ * The ARN of the Amazon Kinesis Firehose delivery stream that is used by this metric stream.
1034
+ */
1035
+ FirehoseArn?: AmazonResourceName;
1036
+ /**
1037
+ * The ARN of the IAM role that is used by this metric stream.
1038
+ */
1039
+ RoleArn?: AmazonResourceName;
1040
+ /**
1041
+ * The state of the metric stream. The possible values are running and stopped.
1042
+ */
1043
+ State?: MetricStreamState;
1044
+ /**
1045
+ * The date that the metric stream was created.
1046
+ */
1047
+ CreationDate?: Timestamp;
1048
+ /**
1049
+ * The date of the most recent update to the metric stream's configuration.
1050
+ */
1051
+ LastUpdateDate?: Timestamp;
1052
+ /**
1053
+ *
1054
+ */
1055
+ OutputFormat?: MetricStreamOutputFormat;
1056
+ }
953
1057
  export interface GetMetricWidgetImageInput {
954
1058
  /**
955
1059
  * A JSON string that defines the bitmap graph to be retrieved. The string includes the metrics to include in the graph, statistics, annotations, title, axis limits, and so on. You can include only one MetricWidget parameter in each GetMetricWidgetImage call. For more information about the syntax of MetricWidget see GetMetricWidgetImage: Metric Widget Structure and Syntax. If any metric on the graph could not load all the requested data points, an orange triangle with an exclamation point appears next to the graph legend.
@@ -1093,6 +1197,27 @@ declare namespace CloudWatch {
1093
1197
  */
1094
1198
  NextToken?: NextToken;
1095
1199
  }
1200
+ export interface ListMetricStreamsInput {
1201
+ /**
1202
+ * Include this value, if it was returned by the previous call, to get the next set of metric streams.
1203
+ */
1204
+ NextToken?: NextToken;
1205
+ /**
1206
+ * The maximum number of results to return in one operation.
1207
+ */
1208
+ MaxResults?: ListMetricStreamsMaxResults;
1209
+ }
1210
+ export type ListMetricStreamsMaxResults = number;
1211
+ export interface ListMetricStreamsOutput {
1212
+ /**
1213
+ * The token that marks the start of the next batch of returned results. You can use this token in a subsequent operation to get the next batch of results.
1214
+ */
1215
+ NextToken?: NextToken;
1216
+ /**
1217
+ * The array of metric stream information.
1218
+ */
1219
+ Entries?: MetricStreamEntries;
1220
+ }
1096
1221
  export interface ListMetricsInput {
1097
1222
  /**
1098
1223
  * The metric namespace to filter against. Only the namespace that matches exactly will be returned.
@@ -1393,6 +1518,48 @@ declare namespace CloudWatch {
1393
1518
  */
1394
1519
  Unit?: StandardUnit;
1395
1520
  }
1521
+ export type MetricStreamEntries = MetricStreamEntry[];
1522
+ export interface MetricStreamEntry {
1523
+ /**
1524
+ * The ARN of the metric stream.
1525
+ */
1526
+ Arn?: AmazonResourceName;
1527
+ /**
1528
+ * The date that the metric stream was originally created.
1529
+ */
1530
+ CreationDate?: Timestamp;
1531
+ /**
1532
+ * The date that the configuration of this metric stream was most recently updated.
1533
+ */
1534
+ LastUpdateDate?: Timestamp;
1535
+ /**
1536
+ * The name of the metric stream.
1537
+ */
1538
+ Name?: MetricStreamName;
1539
+ /**
1540
+ * The ARN of the Kinesis Firehose devlivery stream that is used for this metric stream.
1541
+ */
1542
+ FirehoseArn?: AmazonResourceName;
1543
+ /**
1544
+ * The current state of this stream. Valid values are running and stopped.
1545
+ */
1546
+ State?: MetricStreamState;
1547
+ /**
1548
+ * The output format of this metric stream. Valid values are json and opentelemetry0.7.
1549
+ */
1550
+ OutputFormat?: MetricStreamOutputFormat;
1551
+ }
1552
+ export interface MetricStreamFilter {
1553
+ /**
1554
+ * The name of the metric namespace in the filter.
1555
+ */
1556
+ Namespace?: Namespace;
1557
+ }
1558
+ export type MetricStreamFilters = MetricStreamFilter[];
1559
+ export type MetricStreamName = string;
1560
+ export type MetricStreamNames = MetricStreamName[];
1561
+ export type MetricStreamOutputFormat = "json"|"opentelemetry0.7"|string;
1562
+ export type MetricStreamState = string;
1396
1563
  export type MetricWidget = string;
1397
1564
  export type MetricWidgetImage = Buffer|Uint8Array|Blob|string;
1398
1565
  export type Metrics = Metric[];
@@ -1526,7 +1693,7 @@ declare namespace CloudWatch {
1526
1693
  */
1527
1694
  ActionsEnabled?: ActionsEnabled;
1528
1695
  /**
1529
- * The actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN). Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate | arn:aws:automate:region:ec2:recover | arn:aws:automate:region:ec2:reboot | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name Valid Values (for use with IAM roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0
1696
+ * The actions to execute when this alarm transitions to an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN). Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate | arn:aws:automate:region:ec2:recover | arn:aws:automate:region:ec2:reboot | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name Valid Values (for use with IAM roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0
1530
1697
  */
1531
1698
  OKActions?: ResourceList;
1532
1699
  /**
@@ -1612,6 +1779,42 @@ declare namespace CloudWatch {
1612
1779
  */
1613
1780
  MetricData: MetricData;
1614
1781
  }
1782
+ export interface PutMetricStreamInput {
1783
+ /**
1784
+ * If you are creating a new metric stream, this is the name for the new stream. The name must be different than the names of other metric streams in this account and Region. If you are updating a metric stream, specify the name of that stream here. Valid characters are A-Z, a-z, 0-9, "-" and "_".
1785
+ */
1786
+ Name: MetricStreamName;
1787
+ /**
1788
+ * If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here. You cannot include IncludeFilters and ExcludeFilters in the same operation.
1789
+ */
1790
+ IncludeFilters?: MetricStreamFilters;
1791
+ /**
1792
+ * If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here. You cannot include ExcludeFilters and IncludeFilters in the same operation.
1793
+ */
1794
+ ExcludeFilters?: MetricStreamFilters;
1795
+ /**
1796
+ * The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. This Amazon Kinesis Firehose delivery stream must already exist and must be in the same account as the metric stream.
1797
+ */
1798
+ FirehoseArn: AmazonResourceName;
1799
+ /**
1800
+ * The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. This IAM role must already exist and must be in the same account as the metric stream. This IAM role must include the following permissions: firehose:PutRecord firehose:PutRecordBatch
1801
+ */
1802
+ RoleArn: AmazonResourceName;
1803
+ /**
1804
+ * 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.
1805
+ */
1806
+ OutputFormat: MetricStreamOutputFormat;
1807
+ /**
1808
+ * A list of key-value pairs to associate with the metric stream. You can associate as many as 50 tags with a metric stream. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
1809
+ */
1810
+ Tags?: TagList;
1811
+ }
1812
+ export interface PutMetricStreamOutput {
1813
+ /**
1814
+ * The ARN of the metric stream.
1815
+ */
1816
+ Arn?: AmazonResourceName;
1817
+ }
1615
1818
  export interface Range {
1616
1819
  /**
1617
1820
  * The start time of the range to exclude. The format is yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59.
@@ -1647,6 +1850,14 @@ declare namespace CloudWatch {
1647
1850
  }
1648
1851
  export type Size = number;
1649
1852
  export type StandardUnit = "Seconds"|"Microseconds"|"Milliseconds"|"Bytes"|"Kilobytes"|"Megabytes"|"Gigabytes"|"Terabytes"|"Bits"|"Kilobits"|"Megabits"|"Gigabits"|"Terabits"|"Percent"|"Count"|"Bytes/Second"|"Kilobytes/Second"|"Megabytes/Second"|"Gigabytes/Second"|"Terabytes/Second"|"Bits/Second"|"Kilobits/Second"|"Megabits/Second"|"Gigabits/Second"|"Terabits/Second"|"Count/Second"|"None"|string;
1853
+ export interface StartMetricStreamsInput {
1854
+ /**
1855
+ * The array of the names of metric streams to start streaming. This is an "all or nothing" operation. If you do not have permission to access all of the metric streams that you list here, then none of the streams that you list in the operation will start streaming.
1856
+ */
1857
+ Names: MetricStreamNames;
1858
+ }
1859
+ export interface StartMetricStreamsOutput {
1860
+ }
1650
1861
  export type Stat = string;
1651
1862
  export type StateReason = string;
1652
1863
  export type StateReasonData = string;
@@ -1672,6 +1883,14 @@ declare namespace CloudWatch {
1672
1883
  }
1673
1884
  export type Statistics = Statistic[];
1674
1885
  export type StatusCode = "Complete"|"InternalError"|"PartialData"|string;
1886
+ export interface StopMetricStreamsInput {
1887
+ /**
1888
+ * The array of the names of metric streams to stop streaming. This is an "all or nothing" operation. If you do not have permission to access all of the metric streams that you list here, then none of the streams that you list in the operation will stop streaming.
1889
+ */
1890
+ Names: MetricStreamNames;
1891
+ }
1892
+ export interface StopMetricStreamsOutput {
1893
+ }
1675
1894
  export type StorageResolution = number;
1676
1895
  export interface Tag {
1677
1896
  /**
@@ -12,11 +12,11 @@ declare class CognitoSync extends Service {
12
12
  constructor(options?: CognitoSync.Types.ClientConfiguration)
13
13
  config: Config & CognitoSync.Types.ClientConfiguration;
14
14
  /**
15
- * Initiates a bulk publish of all existing datasets for an Identity Pool to the configured stream. Customers are limited to one successful bulk publish per 24 hours. Bulk publish is an asynchronous request, customers can see the status of the request via the GetBulkPublishDetails operation. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
15
+ * Initiates a bulk publish of all existing datasets for an Identity Pool to the configured stream. Customers are limited to one successful bulk publish per 24 hours. Bulk publish is an asynchronous request, customers can see the status of the request via the GetBulkPublishDetails operation.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
16
16
  */
17
17
  bulkPublish(params: CognitoSync.Types.BulkPublishRequest, callback?: (err: AWSError, data: CognitoSync.Types.BulkPublishResponse) => void): Request<CognitoSync.Types.BulkPublishResponse, AWSError>;
18
18
  /**
19
- * Initiates a bulk publish of all existing datasets for an Identity Pool to the configured stream. Customers are limited to one successful bulk publish per 24 hours. Bulk publish is an asynchronous request, customers can see the status of the request via the GetBulkPublishDetails operation. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
19
+ * Initiates a bulk publish of all existing datasets for an Identity Pool to the configured stream. Customers are limited to one successful bulk publish per 24 hours. Bulk publish is an asynchronous request, customers can see the status of the request via the GetBulkPublishDetails operation.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
20
20
  */
21
21
  bulkPublish(callback?: (err: AWSError, data: CognitoSync.Types.BulkPublishResponse) => void): Request<CognitoSync.Types.BulkPublishResponse, AWSError>;
22
22
  /**
@@ -52,27 +52,27 @@ declare class CognitoSync extends Service {
52
52
  */
53
53
  describeIdentityUsage(callback?: (err: AWSError, data: CognitoSync.Types.DescribeIdentityUsageResponse) => void): Request<CognitoSync.Types.DescribeIdentityUsageResponse, AWSError>;
54
54
  /**
55
- * Get the status of the last BulkPublish operation for an identity pool. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
55
+ * Get the status of the last BulkPublish operation for an identity pool.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
56
56
  */
57
57
  getBulkPublishDetails(params: CognitoSync.Types.GetBulkPublishDetailsRequest, callback?: (err: AWSError, data: CognitoSync.Types.GetBulkPublishDetailsResponse) => void): Request<CognitoSync.Types.GetBulkPublishDetailsResponse, AWSError>;
58
58
  /**
59
- * Get the status of the last BulkPublish operation for an identity pool. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
59
+ * Get the status of the last BulkPublish operation for an identity pool.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
60
60
  */
61
61
  getBulkPublishDetails(callback?: (err: AWSError, data: CognitoSync.Types.GetBulkPublishDetailsResponse) => void): Request<CognitoSync.Types.GetBulkPublishDetailsResponse, AWSError>;
62
62
  /**
63
- * Gets the events and the corresponding Lambda functions associated with an identity pool. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
63
+ * Gets the events and the corresponding Lambda functions associated with an identity pool.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
64
64
  */
65
65
  getCognitoEvents(params: CognitoSync.Types.GetCognitoEventsRequest, callback?: (err: AWSError, data: CognitoSync.Types.GetCognitoEventsResponse) => void): Request<CognitoSync.Types.GetCognitoEventsResponse, AWSError>;
66
66
  /**
67
- * Gets the events and the corresponding Lambda functions associated with an identity pool. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
67
+ * Gets the events and the corresponding Lambda functions associated with an identity pool.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
68
68
  */
69
69
  getCognitoEvents(callback?: (err: AWSError, data: CognitoSync.Types.GetCognitoEventsResponse) => void): Request<CognitoSync.Types.GetCognitoEventsResponse, AWSError>;
70
70
  /**
71
- * Gets the configuration settings of an identity pool. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
71
+ * Gets the configuration settings of an identity pool.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
72
72
  */
73
73
  getIdentityPoolConfiguration(params: CognitoSync.Types.GetIdentityPoolConfigurationRequest, callback?: (err: AWSError, data: CognitoSync.Types.GetIdentityPoolConfigurationResponse) => void): Request<CognitoSync.Types.GetIdentityPoolConfigurationResponse, AWSError>;
74
74
  /**
75
- * Gets the configuration settings of an identity pool. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
75
+ * Gets the configuration settings of an identity pool.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
76
76
  */
77
77
  getIdentityPoolConfiguration(callback?: (err: AWSError, data: CognitoSync.Types.GetIdentityPoolConfigurationResponse) => void): Request<CognitoSync.Types.GetIdentityPoolConfigurationResponse, AWSError>;
78
78
  /**
@@ -100,51 +100,51 @@ declare class CognitoSync extends Service {
100
100
  */
101
101
  listRecords(callback?: (err: AWSError, data: CognitoSync.Types.ListRecordsResponse) => void): Request<CognitoSync.Types.ListRecordsResponse, AWSError>;
102
102
  /**
103
- * Registers a device to receive push sync notifications. This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
103
+ * Registers a device to receive push sync notifications.This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
104
104
  */
105
105
  registerDevice(params: CognitoSync.Types.RegisterDeviceRequest, callback?: (err: AWSError, data: CognitoSync.Types.RegisterDeviceResponse) => void): Request<CognitoSync.Types.RegisterDeviceResponse, AWSError>;
106
106
  /**
107
- * Registers a device to receive push sync notifications. This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
107
+ * Registers a device to receive push sync notifications.This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
108
108
  */
109
109
  registerDevice(callback?: (err: AWSError, data: CognitoSync.Types.RegisterDeviceResponse) => void): Request<CognitoSync.Types.RegisterDeviceResponse, AWSError>;
110
110
  /**
111
- * Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
111
+ * Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
112
112
  */
113
113
  setCognitoEvents(params: CognitoSync.Types.SetCognitoEventsRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
114
114
  /**
115
- * Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
115
+ * Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
116
116
  */
117
117
  setCognitoEvents(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
118
118
  /**
119
- * Sets the necessary configuration for push sync. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
119
+ * Sets the necessary configuration for push sync.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
120
120
  */
121
121
  setIdentityPoolConfiguration(params: CognitoSync.Types.SetIdentityPoolConfigurationRequest, callback?: (err: AWSError, data: CognitoSync.Types.SetIdentityPoolConfigurationResponse) => void): Request<CognitoSync.Types.SetIdentityPoolConfigurationResponse, AWSError>;
122
122
  /**
123
- * Sets the necessary configuration for push sync. This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
123
+ * Sets the necessary configuration for push sync.This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.
124
124
  */
125
125
  setIdentityPoolConfiguration(callback?: (err: AWSError, data: CognitoSync.Types.SetIdentityPoolConfigurationResponse) => void): Request<CognitoSync.Types.SetIdentityPoolConfigurationResponse, AWSError>;
126
126
  /**
127
- * Subscribes to receive notifications when a dataset is modified by another device. This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
127
+ * Subscribes to receive notifications when a dataset is modified by another device.This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
128
128
  */
129
129
  subscribeToDataset(params: CognitoSync.Types.SubscribeToDatasetRequest, callback?: (err: AWSError, data: CognitoSync.Types.SubscribeToDatasetResponse) => void): Request<CognitoSync.Types.SubscribeToDatasetResponse, AWSError>;
130
130
  /**
131
- * Subscribes to receive notifications when a dataset is modified by another device. This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
131
+ * Subscribes to receive notifications when a dataset is modified by another device.This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
132
132
  */
133
133
  subscribeToDataset(callback?: (err: AWSError, data: CognitoSync.Types.SubscribeToDatasetResponse) => void): Request<CognitoSync.Types.SubscribeToDatasetResponse, AWSError>;
134
134
  /**
135
- * Unsubscribes from receiving notifications when a dataset is modified by another device. This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
135
+ * Unsubscribes from receiving notifications when a dataset is modified by another device.This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
136
136
  */
137
137
  unsubscribeFromDataset(params: CognitoSync.Types.UnsubscribeFromDatasetRequest, callback?: (err: AWSError, data: CognitoSync.Types.UnsubscribeFromDatasetResponse) => void): Request<CognitoSync.Types.UnsubscribeFromDatasetResponse, AWSError>;
138
138
  /**
139
- * Unsubscribes from receiving notifications when a dataset is modified by another device. This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
139
+ * Unsubscribes from receiving notifications when a dataset is modified by another device.This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
140
140
  */
141
141
  unsubscribeFromDataset(callback?: (err: AWSError, data: CognitoSync.Types.UnsubscribeFromDatasetResponse) => void): Request<CognitoSync.Types.UnsubscribeFromDatasetResponse, AWSError>;
142
142
  /**
143
- * Posts updates to records and adds and deletes records for a dataset and user. The sync count in the record patch is your last known sync count for that record. The server will reject an UpdateRecords request with a ResourceConflictException if you try to patch a record with a new value but a stale sync count. For example, if the sync count on the server is 5 for a key called highScore and you try and submit a new highScore with sync count of 4, the request will be rejected. To obtain the current sync count for a record, call ListRecords. On a successful update of the record, the response returns the new sync count for that record. You should present that sync count the next time you try to update that same record. When the record does not exist, specify the sync count as 0. This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.
143
+ * Posts updates to records and adds and deletes records for a dataset and user. The sync count in the record patch is your last known sync count for that record. The server will reject an UpdateRecords request with a ResourceConflictException if you try to patch a record with a new value but a stale sync count.For example, if the sync count on the server is 5 for a key called highScore and you try and submit a new highScore with sync count of 4, the request will be rejected. To obtain the current sync count for a record, call ListRecords. On a successful update of the record, the response returns the new sync count for that record. You should present that sync count the next time you try to update that same record. When the record does not exist, specify the sync count as 0. This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.
144
144
  */
145
145
  updateRecords(params: CognitoSync.Types.UpdateRecordsRequest, callback?: (err: AWSError, data: CognitoSync.Types.UpdateRecordsResponse) => void): Request<CognitoSync.Types.UpdateRecordsResponse, AWSError>;
146
146
  /**
147
- * Posts updates to records and adds and deletes records for a dataset and user. The sync count in the record patch is your last known sync count for that record. The server will reject an UpdateRecords request with a ResourceConflictException if you try to patch a record with a new value but a stale sync count. For example, if the sync count on the server is 5 for a key called highScore and you try and submit a new highScore with sync count of 4, the request will be rejected. To obtain the current sync count for a record, call ListRecords. On a successful update of the record, the response returns the new sync count for that record. You should present that sync count the next time you try to update that same record. When the record does not exist, specify the sync count as 0. This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.
147
+ * Posts updates to records and adds and deletes records for a dataset and user. The sync count in the record patch is your last known sync count for that record. The server will reject an UpdateRecords request with a ResourceConflictException if you try to patch a record with a new value but a stale sync count.For example, if the sync count on the server is 5 for a key called highScore and you try and submit a new highScore with sync count of 4, the request will be rejected. To obtain the current sync count for a record, call ListRecords. On a successful update of the record, the response returns the new sync count for that record. You should present that sync count the next time you try to update that same record. When the record does not exist, specify the sync count as 0. This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.
148
148
  */
149
149
  updateRecords(callback?: (err: AWSError, data: CognitoSync.Types.UpdateRecordsResponse) => void): Request<CognitoSync.Types.UpdateRecordsResponse, AWSError>;
150
150
  }
@@ -8,6 +8,7 @@ AWS.CognitoSync = Service.defineService('cognitosync', ['2014-06-30']);
8
8
  Object.defineProperty(apiLoader.services['cognitosync'], '2014-06-30', {
9
9
  get: function get() {
10
10
  var model = require('../apis/cognito-sync-2014-06-30.min.json');
11
+ model.paginators = require('../apis/cognito-sync-2014-06-30.paginators.json').pagination;
11
12
  return model;
12
13
  },
13
14
  enumerable: true,
@@ -814,6 +814,10 @@ declare namespace Comprehend {
814
814
  * Indicates the mode in which the classifier will be trained. The classifier can be trained in multi-class mode, which identifies one and only one class for each document, or multi-label mode, which identifies one or more labels for each document. In multi-label mode, multiple labels for an individual document are separated by a delimiter. The default delimiter between labels is a pipe (|).
815
815
  */
816
816
  Mode?: DocumentClassifierMode;
817
+ /**
818
+ * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
819
+ */
820
+ ModelKmsKeyId?: KmsKeyId;
817
821
  }
818
822
  export interface CreateDocumentClassifierResponse {
819
823
  /**
@@ -842,6 +846,10 @@ declare namespace Comprehend {
842
846
  * Tags associated with the endpoint being created. A tag is a key-value pair that adds metadata to the endpoint. For example, a tag with "Sales" as the key might be added to an endpoint to indicate its use by the sales department.
843
847
  */
844
848
  Tags?: TagList;
849
+ /**
850
+ * The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
851
+ */
852
+ DataAccessRoleArn?: IamRoleArn;
845
853
  }
846
854
  export interface CreateEndpointResponse {
847
855
  /**
@@ -882,6 +890,10 @@ declare namespace Comprehend {
882
890
  * Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your custom entity recognizer. For more information, see Amazon VPC.
883
891
  */
884
892
  VpcConfig?: VpcConfig;
893
+ /**
894
+ * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
895
+ */
896
+ ModelKmsKeyId?: KmsKeyId;
885
897
  }
886
898
  export interface CreateEntityRecognizerResponse {
887
899
  /**
@@ -1331,6 +1343,10 @@ declare namespace Comprehend {
1331
1343
  * Indicates the mode in which the specific classifier was trained. This also indicates the format of input documents and the format of the confusion matrix. Each classifier can only be trained in one mode and this cannot be changed once the classifier is trained.
1332
1344
  */
1333
1345
  Mode?: DocumentClassifierMode;
1346
+ /**
1347
+ * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1348
+ */
1349
+ ModelKmsKeyId?: KmsKeyId;
1334
1350
  }
1335
1351
  export type DocumentClassifierPropertiesList = DocumentClassifierProperties[];
1336
1352
  export interface DocumentLabel {
@@ -1470,6 +1486,10 @@ declare namespace Comprehend {
1470
1486
  * The date and time that the endpoint was last modified.
1471
1487
  */
1472
1488
  LastModifiedTime?: Timestamp;
1489
+ /**
1490
+ * The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to trained custom models encrypted with a customer managed key (ModelKmsKeyId).
1491
+ */
1492
+ DataAccessRoleArn?: IamRoleArn;
1473
1493
  }
1474
1494
  export type EndpointPropertiesList = EndpointProperties[];
1475
1495
  export type EndpointStatus = "CREATING"|"DELETING"|"FAILED"|"IN_SERVICE"|"UPDATING"|string;
@@ -1740,6 +1760,10 @@ declare namespace Comprehend {
1740
1760
  * Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom entity recognizer. For more information, see Amazon VPC.
1741
1761
  */
1742
1762
  VpcConfig?: VpcConfig;
1763
+ /**
1764
+ * ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats: KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab" Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
1765
+ */
1766
+ ModelKmsKeyId?: KmsKeyId;
1743
1767
  }
1744
1768
  export type EntityRecognizerPropertiesList = EntityRecognizerProperties[];
1745
1769
  export type EntityType = "PERSON"|"LOCATION"|"ORGANIZATION"|"COMMERCIAL_ITEM"|"EVENT"|"DATE"|"QUANTITY"|"TITLE"|"OTHER"|string;