From d05e5e043952e3ad4887ecae2c2ab36e41c6cb46 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Tue, 19 Jul 2022 11:19:16 -0700 Subject: [PATCH] Release v1.44.58 (2022-07-19) (#4485) Release v1.44.58 (2022-07-19) === ### Service Client Updates * `service/devops-guru`: Updates service API, documentation, and paginators * `service/glue`: Updates service documentation * Documentation updates for AWS Glue Job Timeout and Autoscaling * `service/sagemaker`: Updates service API * Fixed an issue with cross account QueryLineage * `service/sagemaker-edge`: Updates service API and documentation * `service/workspaces`: Updates service API * Increased the character limit of the login message from 850 to 2000 characters. --- CHANGELOG.md | 13 + aws/version.go | 2 +- models/apis/devops-guru/2020-12-01/api-2.json | 228 +++- .../apis/devops-guru/2020-12-01/docs-2.json | 189 ++- .../devops-guru/2020-12-01/paginators-1.json | 17 + models/apis/glue/2017-03-31/docs-2.json | 6 +- .../apis/sagemaker-edge/2020-09-23/api-2.json | 140 +- .../sagemaker-edge/2020-09-23/docs-2.json | 129 +- models/apis/sagemaker/2017-07-24/api-2.json | 3 +- models/apis/workspaces/2015-04-08/api-2.json | 3 +- service/devopsguru/api.go | 1166 ++++++++++++++++- .../devopsguru/devopsguruiface/interface.go | 14 + service/glue/api.go | 26 +- service/sagemaker/api.go | 20 +- service/sagemakeredgemanager/api.go | 647 ++++++++- service/sagemakeredgemanager/errors.go | 2 +- .../sagemakeredgemanageriface/interface.go | 8 +- service/workspaces/api.go | 3 + 18 files changed, 2495 insertions(+), 121 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0556f23282b..5504ac832ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +Release v1.44.58 (2022-07-19) +=== + +### Service Client Updates +* `service/devops-guru`: Updates service API, documentation, and paginators +* `service/glue`: Updates service documentation + * Documentation updates for AWS Glue Job Timeout and Autoscaling +* `service/sagemaker`: Updates service API + * Fixed an issue with cross account QueryLineage +* `service/sagemaker-edge`: Updates service API and documentation +* `service/workspaces`: Updates service API + * Increased the character limit of the login message from 850 to 2000 characters. + Release v1.44.57 (2022-07-18) === diff --git a/aws/version.go b/aws/version.go index deb7af408b9..65a2e2ae914 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.57" +const SDKVersion = "1.44.58" diff --git a/models/apis/devops-guru/2020-12-01/api-2.json b/models/apis/devops-guru/2020-12-01/api-2.json index 64d3b9af1c3..ae0dcaadf5c 100644 --- a/models/apis/devops-guru/2020-12-01/api-2.json +++ b/models/apis/devops-guru/2020-12-01/api-2.json @@ -224,6 +224,7 @@ "errors":[ {"shape":"AccessDeniedException"}, {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, {"shape":"ThrottlingException"}, {"shape":"ValidationException"} ] @@ -279,6 +280,23 @@ {"shape":"ValidationException"} ] }, + "ListAnomalousLogGroups":{ + "name":"ListAnomalousLogGroups", + "http":{ + "method":"POST", + "requestUri":"/list-log-anomalies", + "responseCode":200 + }, + "input":{"shape":"ListAnomalousLogGroupsRequest"}, + "output":{"shape":"ListAnomalousLogGroupsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ] + }, "ListEvents":{ "name":"ListEvents", "http":{ @@ -312,6 +330,22 @@ {"shape":"ValidationException"} ] }, + "ListMonitoredResources":{ + "name":"ListMonitoredResources", + "http":{ + "method":"POST", + "requestUri":"/monitoredResources", + "responseCode":200 + }, + "input":{"shape":"ListMonitoredResourcesRequest"}, + "output":{"shape":"ListMonitoredResourcesResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ] + }, "ListNotificationChannels":{ "name":"ListNotificationChannels", "http":{ @@ -552,6 +586,20 @@ "Status":{"shape":"EventSourceOptInStatus"} } }, + "AnomalousLogGroup":{ + "type":"structure", + "members":{ + "LogGroupName":{"shape":"LogGroupName"}, + "ImpactStartTime":{"shape":"Timestamp"}, + "ImpactEndTime":{"shape":"Timestamp"}, + "NumberOfLogLinesScanned":{"shape":"NumberOfLogLinesScanned"}, + "LogAnomalyShowcases":{"shape":"LogAnomalyShowcases"} + } + }, + "AnomalousLogGroups":{ + "type":"list", + "member":{"shape":"AnomalousLogGroup"} + }, "AnomalyDescription":{"type":"string"}, "AnomalyId":{ "type":"string", @@ -1139,6 +1187,11 @@ "type":"list", "member":{"shape":"Event"} }, + "Explanation":{ + "type":"string", + "max":2048, + "min":1 + }, "GetCostEstimationRequest":{ "type":"structure", "members":{ @@ -1306,6 +1359,32 @@ "NextToken":{"shape":"UuidNextToken"} } }, + "ListAnomalousLogGroupsMaxResults":{ + "type":"integer", + "max":200, + "min":1 + }, + "ListAnomalousLogGroupsRequest":{ + "type":"structure", + "required":["InsightId"], + "members":{ + "InsightId":{"shape":"InsightId"}, + "MaxResults":{"shape":"ListAnomalousLogGroupsMaxResults"}, + "NextToken":{"shape":"UuidNextToken"} + } + }, + "ListAnomalousLogGroupsResponse":{ + "type":"structure", + "required":[ + "InsightId", + "AnomalousLogGroups" + ], + "members":{ + "InsightId":{"shape":"InsightId"}, + "AnomalousLogGroups":{"shape":"AnomalousLogGroups"}, + "NextToken":{"shape":"UuidNextToken"} + } + }, "ListEventsFilters":{ "type":"structure", "members":{ @@ -1411,6 +1490,39 @@ "Any":{"shape":"ListInsightsAnyStatusFilter"} } }, + "ListMonitoredResourcesFilters":{ + "type":"structure", + "required":[ + "ResourcePermission", + "ResourceTypeFilters" + ], + "members":{ + "ResourcePermission":{"shape":"ResourcePermission"}, + "ResourceTypeFilters":{"shape":"ResourceTypeFilters"} + } + }, + "ListMonitoredResourcesMaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "ListMonitoredResourcesRequest":{ + "type":"structure", + "required":["Filters"], + "members":{ + "Filters":{"shape":"ListMonitoredResourcesFilters"}, + "MaxResults":{"shape":"ListMonitoredResourcesMaxResults"}, + "NextToken":{"shape":"UuidNextToken"} + } + }, + "ListMonitoredResourcesResponse":{ + "type":"structure", + "required":["MonitoredResourceIdentifiers"], + "members":{ + "MonitoredResourceIdentifiers":{"shape":"MonitoredResourceIdentifiers"}, + "NextToken":{"shape":"UuidNextToken"} + } + }, "ListNotificationChannelsRequest":{ "type":"structure", "members":{ @@ -1476,8 +1588,101 @@ "ZH_TW" ] }, + "LogAnomalyClass":{ + "type":"structure", + "members":{ + "LogStreamName":{"shape":"LogStreamName"}, + "LogAnomalyType":{"shape":"LogAnomalyType"}, + "LogAnomalyToken":{"shape":"LogAnomalyToken"}, + "LogEventId":{"shape":"LogEventId"}, + "Explanation":{"shape":"Explanation"}, + "NumberOfLogLinesOccurrences":{"shape":"NumberOfLogLinesOccurrences"}, + "LogEventTimestamp":{"shape":"Timestamp"} + } + }, + "LogAnomalyClasses":{ + "type":"list", + "member":{"shape":"LogAnomalyClass"}, + "max":10, + "min":0 + }, + "LogAnomalyShowcase":{ + "type":"structure", + "members":{ + "LogAnomalyClasses":{"shape":"LogAnomalyClasses"} + } + }, + "LogAnomalyShowcases":{ + "type":"list", + "member":{"shape":"LogAnomalyShowcase"}, + "max":20, + "min":0 + }, + "LogAnomalyToken":{ + "type":"string", + "max":2048, + "min":1 + }, + "LogAnomalyType":{ + "type":"string", + "enum":[ + "KEYWORD", + "KEYWORD_TOKEN", + "FORMAT", + "HTTP_CODE", + "BLOCK_FORMAT", + "NUMERICAL_POINT", + "NUMERICAL_NAN", + "NEW_FIELD_NAME" + ] + }, + "LogEventId":{ + "type":"string", + "max":512, + "min":1 + }, + "LogGroupName":{ + "type":"string", + "max":512, + "min":1 + }, + "LogStreamName":{ + "type":"string", + "max":512, + "min":1 + }, + "LogsAnomalyDetectionIntegration":{ + "type":"structure", + "members":{ + "OptInStatus":{"shape":"OptInStatus"} + } + }, + "LogsAnomalyDetectionIntegrationConfig":{ + "type":"structure", + "members":{ + "OptInStatus":{"shape":"OptInStatus"} + } + }, "MeanTimeToRecoverInMilliseconds":{"type":"long"}, "MetricValue":{"type":"double"}, + "MonitoredResourceIdentifier":{ + "type":"structure", + "members":{ + "MonitoredResourceName":{"shape":"MonitoredResourceName"}, + "Type":{"shape":"ResourceType"}, + "ResourcePermission":{"shape":"ResourcePermission"} + } + }, + "MonitoredResourceIdentifiers":{ + "type":"list", + "member":{"shape":"MonitoredResourceIdentifier"} + }, + "MonitoredResourceName":{ + "type":"string", + "max":512, + "min":1, + "pattern":"[\\.\\-_\\/#A-Za-z0-9]+" + }, "NotificationChannel":{ "type":"structure", "members":{ @@ -1503,6 +1708,8 @@ "NumOpenReactiveInsights":{"type":"integer"}, "NumProactiveInsights":{"type":"integer"}, "NumReactiveInsights":{"type":"integer"}, + "NumberOfLogLinesOccurrences":{"type":"integer"}, + "NumberOfLogLinesScanned":{"type":"integer"}, "OpsCenterIntegration":{ "type":"structure", "members":{ @@ -2003,12 +2210,27 @@ "error":{"httpStatusCode":404}, "exception":true }, + "ResourcePermission":{ + "type":"string", + "enum":[ + "FULL_PERMISSION", + "MISSING_PERMISSION" + ] + }, "ResourceType":{ "type":"string", "max":256, "min":1, "pattern":"^[a-zA-Z]+[a-zA-Z0-9-_:]*$" }, + "ResourceTypeFilter":{ + "type":"string", + "enum":["LOG_GROUPS"] + }, + "ResourceTypeFilters":{ + "type":"list", + "member":{"shape":"ResourceTypeFilter"} + }, "RetryAfterSeconds":{"type":"integer"}, "SearchInsightsAccountIdList":{ "type":"list", @@ -2117,7 +2339,8 @@ "ServiceIntegrationConfig":{ "type":"structure", "members":{ - "OpsCenter":{"shape":"OpsCenterIntegration"} + "OpsCenter":{"shape":"OpsCenterIntegration"}, + "LogsAnomalyDetection":{"shape":"LogsAnomalyDetectionIntegration"} } }, "ServiceName":{ @@ -2372,7 +2595,8 @@ "UpdateServiceIntegrationConfig":{ "type":"structure", "members":{ - "OpsCenter":{"shape":"OpsCenterIntegrationConfig"} + "OpsCenter":{"shape":"OpsCenterIntegrationConfig"}, + "LogsAnomalyDetection":{"shape":"LogsAnomalyDetectionIntegrationConfig"} } }, "UpdateServiceIntegrationRequest":{ diff --git a/models/apis/devops-guru/2020-12-01/docs-2.json b/models/apis/devops-guru/2020-12-01/docs-2.json index 81b4512e583..39a9fd0d05a 100644 --- a/models/apis/devops-guru/2020-12-01/docs-2.json +++ b/models/apis/devops-guru/2020-12-01/docs-2.json @@ -18,8 +18,10 @@ "GetCostEstimation": "
Returns an estimate of the monthly cost for DevOps Guru to analyze your Amazon Web Services resources. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.
", "GetResourceCollection": "Returns lists Amazon Web Services resources that are of the specified resource collection type. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
", "ListAnomaliesForInsight": "Returns a list of the anomalies that belong to an insight that you specify using its ID.
", + "ListAnomalousLogGroups": "Returns the list of log groups that contain log anomalies.
", "ListEvents": "Returns a list of the events emitted by the resources that are evaluated by DevOps Guru. You can use filters to specify which events are returned.
", "ListInsights": " Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time and status (ONGOING
, CLOSED
, or ANY
).
Returns the list of all log groups that are being monitored and tagged by DevOps Guru.
", "ListNotificationChannels": "Returns a list of notification channels configured for DevOps Guru. Each notification channel is used to notify you when DevOps Guru generates an insight that contains information about how to improve your operations. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).
", "ListOrganizationInsights": "Returns a list of insights associated with the account or OU Id.
", "ListRecommendations": "Returns a list of a specified insight's recommendations. Each recommendation includes a list of related metrics and a list of related events.
", @@ -80,6 +82,18 @@ "EventSourcesConfig$AmazonCodeGuruProfiler": "Information about whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler.
" } }, + "AnomalousLogGroup": { + "base": "An Amazon CloudWatch log group that contains log anomalies and is used to generate an insight.
", + "refs": { + "AnomalousLogGroups$member": null + } + }, + "AnomalousLogGroups": { + "base": null, + "refs": { + "ListAnomalousLogGroupsResponse$AnomalousLogGroups": "The list of Amazon CloudWatch log groups that are related to an insight.
" + } + }, "AnomalyDescription": { "base": null, "refs": { @@ -295,7 +309,7 @@ } }, "CloudWatchMetricsDimension": { - "base": "The dimension of am Amazon CloudWatch metric that is used when DevOps Guru analyzes the resources in your account for operational problems and anomalous behavior. A dimension is a name/value pair that is part of the identity of a metric. A metric can have up to 10 dimensions. For more information, see Dimensions in the Amazon CloudWatch User Guide.
", + "base": "The dimension of an Amazon CloudWatch metric that is used when DevOps Guru analyzes the resources in your account for operational problems and anomalous behavior. A dimension is a name/value pair that is part of the identity of a metric. A metric can have up to 10 dimensions. For more information, see Dimensions in the Amazon CloudWatch User Guide.
", "refs": { "CloudWatchMetricsDimensions$member": null } @@ -655,6 +669,12 @@ "ListEventsResponse$Events": "A list of the requested events.
" } }, + "Explanation": { + "base": null, + "refs": { + "LogAnomalyClass$Explanation": "The explanation for why the log event is considered an anomaly.
" + } + }, "GetCostEstimationRequest": { "base": null, "refs": { @@ -710,6 +730,8 @@ "DescribeInsightRequest$Id": "The ID of the insight.
", "InsightFeedback$Id": "The insight feedback ID.
", "ListAnomaliesForInsightRequest$InsightId": "The ID of the insight. The returned anomalies belong to this insight.
", + "ListAnomalousLogGroupsRequest$InsightId": "The ID of the insight containing the log groups.
", + "ListAnomalousLogGroupsResponse$InsightId": "The ID of the insight containing the log groups.
", "ListEventsFilters$InsightId": "An ID of an insight that is related to the events you want to filter for.
", "ListRecommendationsRequest$InsightId": "The ID of the requested insight.
", "ProactiveAnomaly$AssociatedInsightId": "The ID of the insight that contains this anomaly. An insight is composed of related anomalies.
", @@ -815,6 +837,22 @@ "refs": { } }, + "ListAnomalousLogGroupsMaxResults": { + "base": null, + "refs": { + "ListAnomalousLogGroupsRequest$MaxResults": "The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken
value.
Filters you can use to specify which events are returned when ListEvents
is called.
Filters to determine which monitored resources you want to retrieve. You can filter by resource type or resource permission status.
", + "refs": { + "ListMonitoredResourcesRequest$Filters": "Filters to determine which monitored resources you want to retrieve. You can filter by resource type or resource permission status.
" + } + }, + "ListMonitoredResourcesMaxResults": { + "base": null, + "refs": { + "ListMonitoredResourcesRequest$MaxResults": "The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken
value.
A locale that specifies the language to use for recommendations.
" } }, + "LogAnomalyClass": { + "base": "Information about an anomalous log event found within a log group.
", + "refs": { + "LogAnomalyClasses$member": null + } + }, + "LogAnomalyClasses": { + "base": null, + "refs": { + "LogAnomalyShowcase$LogAnomalyClasses": "A list of anomalous log events that may be related.
" + } + }, + "LogAnomalyShowcase": { + "base": "A cluster of similar anomalous log events found within a log group.
", + "refs": { + "LogAnomalyShowcases$member": null + } + }, + "LogAnomalyShowcases": { + "base": null, + "refs": { + "AnomalousLogGroup$LogAnomalyShowcases": "The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous log events.
" + } + }, + "LogAnomalyToken": { + "base": null, + "refs": { + "LogAnomalyClass$LogAnomalyToken": "The token where the anomaly was detected. This may refer to an exception or another location, or it may be blank for log anomalies such as format anomalies.
" + } + }, + "LogAnomalyType": { + "base": null, + "refs": { + "LogAnomalyClass$LogAnomalyType": "The type of log anomaly that has been detected.
" + } + }, + "LogEventId": { + "base": null, + "refs": { + "LogAnomalyClass$LogEventId": "The ID of the log event.
" + } + }, + "LogGroupName": { + "base": null, + "refs": { + "AnomalousLogGroup$LogGroupName": "The name of the CloudWatch log group.
" + } + }, + "LogStreamName": { + "base": null, + "refs": { + "LogAnomalyClass$LogStreamName": "The name of the Amazon CloudWatch log stream that the anomalous log event belongs to. A log stream is a sequence of log events that share the same source.
" + } + }, + "LogsAnomalyDetectionIntegration": { + "base": "Information about the integration of DevOps Guru with CloudWatch log groups for log anomaly detection.
", + "refs": { + "ServiceIntegrationConfig$LogsAnomalyDetection": "Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log groups.
" + } + }, + "LogsAnomalyDetectionIntegrationConfig": { + "base": "Information about the integration of DevOps Guru with CloudWatch log groups for log anomaly detection. You can use this to update the configuration.
", + "refs": { + "UpdateServiceIntegrationConfig$LogsAnomalyDetection": "Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log groups.
" + } + }, "MeanTimeToRecoverInMilliseconds": { "base": null, "refs": { @@ -940,6 +1066,24 @@ "TimestampMetricValuePair$MetricValue": "Value of the anomalous metric data point at respective Timestamp.
" } }, + "MonitoredResourceIdentifier": { + "base": "Information about the resource that is being monitored, including the name of the resource, the type of resource, and whether or not permission is given to DevOps Guru to access that resource.
", + "refs": { + "MonitoredResourceIdentifiers$member": null + } + }, + "MonitoredResourceIdentifiers": { + "base": null, + "refs": { + "ListMonitoredResourcesResponse$MonitoredResourceIdentifiers": "Information about the resource that is being monitored, including the name of the resource, the type of resource, and whether or not permission is given to DevOps Guru to access that resource.
" + } + }, + "MonitoredResourceName": { + "base": null, + "refs": { + "MonitoredResourceIdentifier$MonitoredResourceName": "The name of the resource being monitored.
" + } + }, "NotificationChannel": { "base": "Information about a notification channel. A notification channel is used to notify you when DevOps Guru creates an insight. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see Permissions for cross account Amazon SNS topics.
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. For more information, see Permissions for cross account Amazon SNS topics.
If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for Amazon Web Services KMS–encrypted Amazon SNS topics.
", "refs": { @@ -1002,6 +1146,18 @@ "DescribeOrganizationOverviewResponse$ReactiveInsights": "An integer that specifies the number of open reactive insights in your Amazon Web Services account.
" } }, + "NumberOfLogLinesOccurrences": { + "base": null, + "refs": { + "LogAnomalyClass$NumberOfLogLinesOccurrences": "The number of log lines where this anomalous log event occurs.
" + } + }, + "NumberOfLogLinesScanned": { + "base": null, + "refs": { + "AnomalousLogGroup$NumberOfLogLinesScanned": "The number of log lines that were scanned for anomalous log events.
" + } + }, "OpsCenterIntegration": { "base": "Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager OpsCenter for each created insight.
", "refs": { @@ -1009,7 +1165,7 @@ } }, "OpsCenterIntegrationConfig": { - "base": "Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager OpsCenter for each created insight.
", + "base": "Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager OpsCenter for each created insight. You can use this to update the configuration.
", "refs": { "UpdateServiceIntegrationConfig$OpsCenter": null } @@ -1017,6 +1173,8 @@ "OptInStatus": { "base": "Specifies if DevOps Guru is enabled to create an Amazon Web Services Systems Manager OpsItem for each created insight.
", "refs": { + "LogsAnomalyDetectionIntegration$OptInStatus": "Specifies if DevOps Guru is configured to perform log anomaly detection on CloudWatch log groups.
", + "LogsAnomalyDetectionIntegrationConfig$OptInStatus": "Specifies if DevOps Guru is configured to perform log anomaly detection on CloudWatch log groups.
", "OpsCenterIntegration$OptInStatus": "Specifies if DevOps Guru is enabled to create an Amazon Web Services Systems Manager OpsItem for each created insight.
", "OpsCenterIntegrationConfig$OptInStatus": "Specifies if DevOps Guru is enabled to create an Amazon Web Services Systems Manager OpsItem for each created insight.
" } @@ -1554,14 +1712,34 @@ "refs": { } }, + "ResourcePermission": { + "base": null, + "refs": { + "ListMonitoredResourcesFilters$ResourcePermission": "The permission status of a resource.
", + "MonitoredResourceIdentifier$ResourcePermission": "The permission status of a resource.
" + } + }, "ResourceType": { "base": null, "refs": { "AnomalyResource$Type": "The type of the Amazon Web Services resource.
", "AnomalySourceMetadata$SourceResourceType": "The anomaly's resource type.
", + "MonitoredResourceIdentifier$Type": "The type of resource being monitored.
", "ServiceResourceCost$Type": "The type of the Amazon Web Services resource.
" } }, + "ResourceTypeFilter": { + "base": null, + "refs": { + "ResourceTypeFilters$member": null + } + }, + "ResourceTypeFilters": { + "base": null, + "refs": { + "ListMonitoredResourcesFilters$ResourceTypeFilters": "The type of resource that you wish to retrieve, such as log groups.
" + } + }, "RetryAfterSeconds": { "base": null, "refs": { @@ -1806,6 +1984,8 @@ "Timestamp": { "base": null, "refs": { + "AnomalousLogGroup$ImpactStartTime": "The time the anomalous log events began. The impact start time indicates the time of the first log anomaly event that occurs.
", + "AnomalousLogGroup$ImpactEndTime": "The time the anomalous log events stopped.
", "AnomalyReportedTimeRange$OpenTime": "The time when an anomaly is opened.
", "AnomalyReportedTimeRange$CloseTime": "The time when an anomaly is closed.
", "AnomalyTimeRange$StartTime": "The time when the anomalous behavior started.
", @@ -1823,6 +2003,7 @@ "EventTimeRange$ToTime": "The time when the event ended.
", "InsightTimeRange$StartTime": "The time when the behavior described in an insight started.
", "InsightTimeRange$EndTime": "The time when the behavior described in an insight ended.
", + "LogAnomalyClass$LogEventTimestamp": "The time of the first occurrence of the anomalous log event.
", "PredictionTimeRange$StartTime": "The time range during which a metric limit is expected to be exceeded. This applies to proactive insights only.
", "PredictionTimeRange$EndTime": "The time when the behavior in a proactive insight is expected to end.
", "ProactiveAnomaly$UpdateTime": "The time of the anomaly's most recent update.
", @@ -1941,10 +2122,14 @@ "GetResourceCollectionResponse$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
", "ListAnomaliesForInsightRequest$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
", "ListAnomaliesForInsightResponse$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
", + "ListAnomalousLogGroupsRequest$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
", + "ListAnomalousLogGroupsResponse$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
", "ListEventsRequest$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
", "ListEventsResponse$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
", "ListInsightsRequest$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
", "ListInsightsResponse$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
", + "ListMonitoredResourcesRequest$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
", + "ListMonitoredResourcesResponse$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
", "ListNotificationChannelsRequest$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
", "ListNotificationChannelsResponse$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
", "ListOrganizationInsightsRequest$NextToken": "The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
", diff --git a/models/apis/devops-guru/2020-12-01/paginators-1.json b/models/apis/devops-guru/2020-12-01/paginators-1.json index e3241ed94db..bf3b700e7ae 100644 --- a/models/apis/devops-guru/2020-12-01/paginators-1.json +++ b/models/apis/devops-guru/2020-12-01/paginators-1.json @@ -52,6 +52,15 @@ "ProactiveAnomalies" ] }, + "ListAnomalousLogGroups": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": [ + "InsightId", + "AnomalousLogGroups" + ] + }, "ListEvents": { "input_token": "NextToken", "limit_key": "MaxResults", @@ -67,6 +76,14 @@ "ReactiveInsights" ] }, + "ListMonitoredResources": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": [ + "MonitoredResourceIdentifiers" + ] + }, "ListNotificationChannels": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/glue/2017-03-31/docs-2.json b/models/apis/glue/2017-03-31/docs-2.json index e073d3b5738..1c4e17266a4 100644 --- a/models/apis/glue/2017-03-31/docs-2.json +++ b/models/apis/glue/2017-03-31/docs-2.json @@ -5067,7 +5067,7 @@ "GetMLTransformResponse$MaxCapacity": "The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
When the WorkerType
field is set to a value other than Standard
, the MaxCapacity
field is set automatically and becomes read-only.
For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
Do not set Max Capacity
if using WorkerType
and NumberOfWorkers
.
The value that can be allocated for MaxCapacity
depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:
When you specify a Python shell job (JobCommand.Name
=\"pythonshell\"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.
When you specify an Apache Spark ETL job (JobCommand.Name
=\"glueetl\") or Apache Spark streaming ETL job (JobCommand.Name
=\"gluestreaming\"), you can allocate a minimum of 2 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.
For Glue version 2.0 jobs, you cannot instead specify a Maximum capacity
. Instead, you should specify a Worker type
and the Number of workers
.
The number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
Do not set Max Capacity
if using WorkerType
and NumberOfWorkers
.
The value that can be allocated for MaxCapacity
depends on whether you are running a Python shell job or an Apache Spark ETL job:
When you specify a Python shell job (JobCommand.Name
=\"pythonshell\"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.
When you specify an Apache Spark ETL job (JobCommand.Name
=\"glueetl\"), you can allocate a minimum of 2 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.
This field populates only when an Auto Scaling job run completes, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X
and 2 for G.2X
workers). This value may be different than the executionEngineRuntime
* MaxCapacity
as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity
. Therefore, it is possible that the value of DPUSeconds
is less than executionEngineRuntime
* MaxCapacity
.
This field populates only for Auto Scaling job runs, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X
, 2 for G.2X
, or 0.25 for G.025X
workers). This value may be different than the executionEngineRuntime
* MaxCapacity
as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity
. Therefore, it is possible that the value of DPUSeconds
is less than executionEngineRuntime
* MaxCapacity
.
For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
Do not set Max Capacity
if using WorkerType
and NumberOfWorkers
.
The value that can be allocated for MaxCapacity
depends on whether you are running a Python shell job or an Apache Spark ETL job:
When you specify a Python shell job (JobCommand.Name
=\"pythonshell\"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.
When you specify an Apache Spark ETL job (JobCommand.Name
=\"glueetl\") or Apache Spark streaming ETL job (JobCommand.Name
=\"gluestreaming\"), you can allocate a minimum of 2 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.
For Glue version 2.0 jobs, you cannot instead specify a Maximum capacity
. Instead, you should specify a Worker type
and the Number of workers
.
The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
MaxCapacity
is a mutually exclusive option with NumberOfWorkers
and WorkerType
.
If either NumberOfWorkers
or WorkerType
is set, then MaxCapacity
cannot be set.
If MaxCapacity
is set then neither NumberOfWorkers
or WorkerType
can be set.
If WorkerType
is set, then NumberOfWorkers
is required (and vice versa).
MaxCapacity
and NumberOfWorkers
must both be at least 1.
When the WorkerType
field is set to a value other than Standard
, the MaxCapacity
field is set automatically and becomes read-only.
The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
", @@ -6818,10 +6818,10 @@ "CreateSessionRequest$IdleTimeout": "The number of seconds when idle before request times out.
", "GetMLTransformResponse$Timeout": "The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
The JobRun
timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours). This overrides the timeout value set in the parent job.
The JobRun
timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT
status. This value overrides the timeout value set in the parent job.
Streaming jobs do not have a timeout. The default for non-streaming jobs is 2,880 minutes (48 hours).
", "JobUpdate$Timeout": "The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
The timeout in minutes of the machine learning transform.
", - "StartJobRunRequest$Timeout": "The JobRun
timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours). This overrides the timeout value set in the parent job.
The JobRun
timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT
status. This value overrides the timeout value set in the parent job.
Streaming jobs do not have a timeout. The default for non-streaming jobs is 2,880 minutes (48 hours).
", "UpdateMLTransformRequest$Timeout": "The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT
status. The default is 2,880 minutes (48 hours).
SageMaker Edge Manager dataplane service for communicating with active agents.
", "operations": { + "GetDeployments": "Use to get the active deployments from a device.
", "GetDeviceRegistration": "Use to check if a device is registered with SageMaker Edge Manager.
", "SendHeartbeat": "Use to get the current status of devices registered on SageMaker Edge Manager.
" }, @@ -12,9 +13,70 @@ "GetDeviceRegistrationResult$CacheTTL": "The amount of time, in seconds, that the registration status is stored on the device’s cache before it is refreshed.
" } }, + "Checksum": { + "base": "Information about the checksum of a model deployed on a device.
", + "refs": { + "Definition$Checksum": "The checksum information of the model.
" + } + }, + "ChecksumString": { + "base": null, + "refs": { + "Checksum$Sum": "The checksum of the model.
" + } + }, + "ChecksumType": { + "base": null, + "refs": { + "Checksum$Type": "The type of the checksum.
" + } + }, + "Definition": { + "base": "", + "refs": { + "Definitions$member": null + } + }, + "Definitions": { + "base": null, + "refs": { + "EdgeDeployment$Definitions": "Returns a list of Definition objects.
" + } + }, + "DeploymentModel": { + "base": "", + "refs": { + "DeploymentModels$member": null + } + }, + "DeploymentModels": { + "base": null, + "refs": { + "DeploymentResult$DeploymentModels": "Returns a list of models deployed on the agent.
" + } + }, + "DeploymentResult": { + "base": "Information about the result of a deployment on an edge device that is registered with SageMaker Edge Manager.
", + "refs": { + "SendHeartbeatRequest$DeploymentResult": "Returns the result of a deployment on the device.
" + } + }, + "DeploymentStatus": { + "base": null, + "refs": { + "DeploymentModel$Status": "Returns the deployment status of the model.
" + } + }, + "DeploymentType": { + "base": null, + "refs": { + "EdgeDeployment$Type": "The type of the deployment.
" + } + }, "DeviceFleetName": { "base": null, "refs": { + "GetDeploymentsRequest$DeviceFleetName": "The name of the fleet that the device belongs to.
", "GetDeviceRegistrationRequest$DeviceFleetName": "The name of the fleet that the device belongs to.
", "SendHeartbeatRequest$DeviceFleetName": "The name of the fleet that the device belongs to.
" } @@ -22,6 +84,7 @@ "DeviceName": { "base": null, "refs": { + "GetDeploymentsRequest$DeviceName": "The unique name of the device you want to get the configuration of active deployments from.
", "GetDeviceRegistrationRequest$DeviceName": "The unique name of the device you want to get the registration status from.
", "SendHeartbeatRequest$DeviceName": "The unique name of the device.
" } @@ -38,6 +101,18 @@ "EdgeMetric$Dimension": "The dimension of metrics published.
" } }, + "EdgeDeployment": { + "base": "Information about a deployment on an edge device that is registered with SageMaker Edge Manager.
", + "refs": { + "EdgeDeployments$member": null + } + }, + "EdgeDeployments": { + "base": null, + "refs": { + "GetDeploymentsResult$Deployments": "Returns a list of the configurations of the active deployments on the device.
" + } + }, "EdgeMetric": { "base": "Information required for edge device metrics.
", "refs": { @@ -51,12 +126,38 @@ "SendHeartbeatRequest$AgentMetrics": "For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.
" } }, + "EntityName": { + "base": null, + "refs": { + "Definition$ModelHandle": "The unique model handle.
", + "DeploymentModel$ModelHandle": "The unique handle of the model.
", + "DeploymentResult$DeploymentName": "The name and unique ID of the deployment.
", + "DeploymentResult$DeploymentStatus": "Returns the bucket error code.
", + "EdgeDeployment$DeploymentName": "The name and unique ID of the deployment.
" + } + }, "ErrorMessage": { "base": null, "refs": { "InternalServiceException$Message": null } }, + "FailureHandlingPolicy": { + "base": null, + "refs": { + "EdgeDeployment$FailureHandlingPolicy": "Determines whether to rollback to previous configuration if deployment fails.
" + } + }, + "GetDeploymentsRequest": { + "base": null, + "refs": { + } + }, + "GetDeploymentsResult": { + "base": null, + "refs": { + } + }, "GetDeviceRegistrationRequest": { "base": null, "refs": { @@ -68,7 +169,7 @@ } }, "InternalServiceException": { - "base": "An internal failure occurred. Try your request again. If the problem persists, contact AWS customer support.
", + "base": "An internal failure occurred. Try your request again. If the problem persists, contact Amazon Web Services customer support.
", "refs": { } }, @@ -87,23 +188,48 @@ "ModelName": { "base": null, "refs": { + "DeploymentModel$ModelName": "The name of the model.
", "Model$ModelName": "The name of the model.
" } }, + "ModelState": { + "base": null, + "refs": { + "Definition$State": "The desired state of the model.
", + "DeploymentModel$DesiredState": "The desired state of the model.
", + "DeploymentModel$State": "Returns the current state of the model.
" + } + }, "Models": { "base": null, "refs": { "SendHeartbeatRequest$Models": "Returns a list of models deployed on the the device.
" } }, + "S3Uri": { + "base": null, + "refs": { + "Definition$S3Url": "The absolute S3 location of the model.
" + } + }, "SendHeartbeatRequest": { "base": null, "refs": { } }, + "String": { + "base": null, + "refs": { + "DeploymentModel$StatusReason": "Returns the error message for the deployment status result.
", + "DeploymentModel$RollbackFailureReason": "Returns the error message if there is a rollback.
", + "DeploymentResult$DeploymentStatusMessage": "Returns the detailed error message.
" + } + }, "Timestamp": { "base": null, "refs": { + "DeploymentResult$DeploymentStartTime": "The timestamp of when the deployment was started on the agent.
", + "DeploymentResult$DeploymentEndTime": "The timestamp of when the deployment was ended, and the agent got the deployment results.
", "EdgeMetric$Timestamp": "Timestamp of when the metric was requested.
", "Model$LatestSampleTime": "The timestamp of the last data sample taken.
", "Model$LatestInference": "The timestamp of the last inference that was made.
" @@ -118,6 +244,7 @@ "Version": { "base": null, "refs": { + "DeploymentModel$ModelVersion": "The version of the model.
", "Model$ModelVersion": "The version of the model.
", "SendHeartbeatRequest$AgentVersion": "Returns the version of the agent.
" } diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json index c8553a41d2f..d0d9487546c 100644 --- a/models/apis/sagemaker/2017-07-24/api-2.json +++ b/models/apis/sagemaker/2017-07-24/api-2.json @@ -14504,7 +14504,6 @@ }, "QueryLineageRequest":{ "type":"structure", - "required":["StartArns"], "members":{ "StartArns":{"shape":"QueryLineageStartArns"}, "Direction":{"shape":"Direction"}, @@ -14527,7 +14526,7 @@ "type":"list", "member":{"shape":"AssociationEntityArn"}, "max":1, - "min":1 + "min":0 }, "QueryLineageTypes":{ "type":"list", diff --git a/models/apis/workspaces/2015-04-08/api-2.json b/models/apis/workspaces/2015-04-08/api-2.json index bd7123ae984..3e6ed939dc8 100644 --- a/models/apis/workspaces/2015-04-08/api-2.json +++ b/models/apis/workspaces/2015-04-08/api-2.json @@ -560,6 +560,7 @@ "errors":[ {"shape":"InvalidParameterValuesException"}, {"shape":"ResourceLimitExceededException"}, + {"shape":"ResourceNotFoundException"}, {"shape":"AccessDeniedException"} ] }, @@ -1063,7 +1064,7 @@ }, "ClientLoginMessage":{ "type":"string", - "max":850, + "max":2000, "min":0, "pattern":"^.*$" }, diff --git a/service/devopsguru/api.go b/service/devopsguru/api.go index 1f3e1109b5f..35e23e60f1a 100644 --- a/service/devopsguru/api.go +++ b/service/devopsguru/api.go @@ -1377,6 +1377,9 @@ func (c *DevOpsGuru) DescribeServiceIntegrationRequest(input *DescribeServiceInt // * InternalServerException // An internal failure in an Amazon service occurred. // +// * ResourceNotFoundException +// A requested resource could not be found +// // * ThrottlingException // The request was denied due to a request throttling. // @@ -1878,6 +1881,160 @@ func (c *DevOpsGuru) ListAnomaliesForInsightPagesWithContext(ctx aws.Context, in return p.Err() } +const opListAnomalousLogGroups = "ListAnomalousLogGroups" + +// ListAnomalousLogGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListAnomalousLogGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAnomalousLogGroups for more information on using the ListAnomalousLogGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListAnomalousLogGroupsRequest method. +// req, resp := client.ListAnomalousLogGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ListAnomalousLogGroups +func (c *DevOpsGuru) ListAnomalousLogGroupsRequest(input *ListAnomalousLogGroupsInput) (req *request.Request, output *ListAnomalousLogGroupsOutput) { + op := &request.Operation{ + Name: opListAnomalousLogGroups, + HTTPMethod: "POST", + HTTPPath: "/list-log-anomalies", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAnomalousLogGroupsInput{} + } + + output = &ListAnomalousLogGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAnomalousLogGroups API operation for Amazon DevOps Guru. +// +// Returns the list of log groups that contain log anomalies. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DevOps Guru's +// API operation ListAnomalousLogGroups for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +// +// * InternalServerException +// An internal failure in an Amazon service occurred. +// +// * ResourceNotFoundException +// A requested resource could not be found +// +// * ThrottlingException +// The request was denied due to a request throttling. +// +// * ValidationException +// Contains information about data passed in to a field during a request that +// is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ListAnomalousLogGroups +func (c *DevOpsGuru) ListAnomalousLogGroups(input *ListAnomalousLogGroupsInput) (*ListAnomalousLogGroupsOutput, error) { + req, out := c.ListAnomalousLogGroupsRequest(input) + return out, req.Send() +} + +// ListAnomalousLogGroupsWithContext is the same as ListAnomalousLogGroups with the addition of +// the ability to pass a context and additional request options. +// +// See ListAnomalousLogGroups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DevOpsGuru) ListAnomalousLogGroupsWithContext(ctx aws.Context, input *ListAnomalousLogGroupsInput, opts ...request.Option) (*ListAnomalousLogGroupsOutput, error) { + req, out := c.ListAnomalousLogGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAnomalousLogGroupsPages iterates over the pages of a ListAnomalousLogGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAnomalousLogGroups method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListAnomalousLogGroups operation. +// pageNum := 0 +// err := client.ListAnomalousLogGroupsPages(params, +// func(page *devopsguru.ListAnomalousLogGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DevOpsGuru) ListAnomalousLogGroupsPages(input *ListAnomalousLogGroupsInput, fn func(*ListAnomalousLogGroupsOutput, bool) bool) error { + return c.ListAnomalousLogGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAnomalousLogGroupsPagesWithContext same as ListAnomalousLogGroupsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DevOpsGuru) ListAnomalousLogGroupsPagesWithContext(ctx aws.Context, input *ListAnomalousLogGroupsInput, fn func(*ListAnomalousLogGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAnomalousLogGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAnomalousLogGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAnomalousLogGroupsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListEvents = "ListEvents" // ListEventsRequest generates a "aws/request.Request" representing the @@ -2186,6 +2343,154 @@ func (c *DevOpsGuru) ListInsightsPagesWithContext(ctx aws.Context, input *ListIn return p.Err() } +const opListMonitoredResources = "ListMonitoredResources" + +// ListMonitoredResourcesRequest generates a "aws/request.Request" representing the +// client's request for the ListMonitoredResources operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListMonitoredResources for more information on using the ListMonitoredResources +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListMonitoredResourcesRequest method. +// req, resp := client.ListMonitoredResourcesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ListMonitoredResources +func (c *DevOpsGuru) ListMonitoredResourcesRequest(input *ListMonitoredResourcesInput) (req *request.Request, output *ListMonitoredResourcesOutput) { + op := &request.Operation{ + Name: opListMonitoredResources, + HTTPMethod: "POST", + HTTPPath: "/monitoredResources", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListMonitoredResourcesInput{} + } + + output = &ListMonitoredResourcesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListMonitoredResources API operation for Amazon DevOps Guru. +// +// Returns the list of all log groups that are being monitored and tagged by +// DevOps Guru. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DevOps Guru's +// API operation ListMonitoredResources for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// A requested resource could not be found +// +// * InternalServerException +// An internal failure in an Amazon service occurred. +// +// * ThrottlingException +// The request was denied due to a request throttling. +// +// * ValidationException +// Contains information about data passed in to a field during a request that +// is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ListMonitoredResources +func (c *DevOpsGuru) ListMonitoredResources(input *ListMonitoredResourcesInput) (*ListMonitoredResourcesOutput, error) { + req, out := c.ListMonitoredResourcesRequest(input) + return out, req.Send() +} + +// ListMonitoredResourcesWithContext is the same as ListMonitoredResources with the addition of +// the ability to pass a context and additional request options. +// +// See ListMonitoredResources for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DevOpsGuru) ListMonitoredResourcesWithContext(ctx aws.Context, input *ListMonitoredResourcesInput, opts ...request.Option) (*ListMonitoredResourcesOutput, error) { + req, out := c.ListMonitoredResourcesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListMonitoredResourcesPages iterates over the pages of a ListMonitoredResources operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListMonitoredResources method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListMonitoredResources operation. +// pageNum := 0 +// err := client.ListMonitoredResourcesPages(params, +// func(page *devopsguru.ListMonitoredResourcesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DevOpsGuru) ListMonitoredResourcesPages(input *ListMonitoredResourcesInput, fn func(*ListMonitoredResourcesOutput, bool) bool) error { + return c.ListMonitoredResourcesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListMonitoredResourcesPagesWithContext same as ListMonitoredResourcesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DevOpsGuru) ListMonitoredResourcesPagesWithContext(ctx aws.Context, input *ListMonitoredResourcesInput, fn func(*ListMonitoredResourcesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListMonitoredResourcesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListMonitoredResourcesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListMonitoredResourcesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListNotificationChannels = "ListNotificationChannels" // ListNotificationChannelsRequest generates a "aws/request.Request" representing the @@ -3845,19 +4150,27 @@ func (s *AmazonCodeGuruProfilerIntegration) SetStatus(v string) *AmazonCodeGuruP return s } -// A time range that specifies when DevOps Guru opens and then closes an anomaly. -// This is different from AnomalyTimeRange, which specifies the time range when -// DevOps Guru actually observes the anomalous behavior. -type AnomalyReportedTimeRange struct { +// An Amazon CloudWatch log group that contains log anomalies and is used to +// generate an insight. +type AnomalousLogGroup struct { _ struct{} `type:"structure"` - // The time when an anomaly is closed. - CloseTime *time.Time `type:"timestamp"` + // The time the anomalous log events stopped. + ImpactEndTime *time.Time `type:"timestamp"` - // The time when an anomaly is opened. - // - // OpenTime is a required field - OpenTime *time.Time `type:"timestamp" required:"true"` + // The time the anomalous log events began. The impact start time indicates + // the time of the first log anomaly event that occurs. + ImpactStartTime *time.Time `type:"timestamp"` + + // The log anomalies in the log group. Each log anomaly displayed represents + // a cluster of similar anomalous log events. + LogAnomalyShowcases []*LogAnomalyShowcase `type:"list"` + + // The name of the CloudWatch log group. + LogGroupName *string `min:"1" type:"string"` + + // The number of log lines that were scanned for anomalous log events. + NumberOfLogLinesScanned *int64 `type:"integer"` } // String returns the string representation. @@ -3865,7 +4178,7 @@ type AnomalyReportedTimeRange struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AnomalyReportedTimeRange) String() string { +func (s AnomalousLogGroup) String() string { return awsutil.Prettify(s) } @@ -3874,18 +4187,81 @@ func (s AnomalyReportedTimeRange) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AnomalyReportedTimeRange) GoString() string { +func (s AnomalousLogGroup) GoString() string { return s.String() } -// SetCloseTime sets the CloseTime field's value. -func (s *AnomalyReportedTimeRange) SetCloseTime(v time.Time) *AnomalyReportedTimeRange { - s.CloseTime = &v +// SetImpactEndTime sets the ImpactEndTime field's value. +func (s *AnomalousLogGroup) SetImpactEndTime(v time.Time) *AnomalousLogGroup { + s.ImpactEndTime = &v return s } -// SetOpenTime sets the OpenTime field's value. -func (s *AnomalyReportedTimeRange) SetOpenTime(v time.Time) *AnomalyReportedTimeRange { +// SetImpactStartTime sets the ImpactStartTime field's value. +func (s *AnomalousLogGroup) SetImpactStartTime(v time.Time) *AnomalousLogGroup { + s.ImpactStartTime = &v + return s +} + +// SetLogAnomalyShowcases sets the LogAnomalyShowcases field's value. +func (s *AnomalousLogGroup) SetLogAnomalyShowcases(v []*LogAnomalyShowcase) *AnomalousLogGroup { + s.LogAnomalyShowcases = v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *AnomalousLogGroup) SetLogGroupName(v string) *AnomalousLogGroup { + s.LogGroupName = &v + return s +} + +// SetNumberOfLogLinesScanned sets the NumberOfLogLinesScanned field's value. +func (s *AnomalousLogGroup) SetNumberOfLogLinesScanned(v int64) *AnomalousLogGroup { + s.NumberOfLogLinesScanned = &v + return s +} + +// A time range that specifies when DevOps Guru opens and then closes an anomaly. +// This is different from AnomalyTimeRange, which specifies the time range when +// DevOps Guru actually observes the anomalous behavior. +type AnomalyReportedTimeRange struct { + _ struct{} `type:"structure"` + + // The time when an anomaly is closed. + CloseTime *time.Time `type:"timestamp"` + + // The time when an anomaly is opened. + // + // OpenTime is a required field + OpenTime *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnomalyReportedTimeRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnomalyReportedTimeRange) GoString() string { + return s.String() +} + +// SetCloseTime sets the CloseTime field's value. +func (s *AnomalyReportedTimeRange) SetCloseTime(v time.Time) *AnomalyReportedTimeRange { + s.CloseTime = &v + return s +} + +// SetOpenTime sets the OpenTime field's value. +func (s *AnomalyReportedTimeRange) SetOpenTime(v time.Time) *AnomalyReportedTimeRange { s.OpenTime = &v return s } @@ -4372,7 +4748,7 @@ func (s *CloudWatchMetricsDetail) SetUnit(v string) *CloudWatchMetricsDetail { return s } -// The dimension of am Amazon CloudWatch metric that is used when DevOps Guru +// The dimension of an Amazon CloudWatch metric that is used when DevOps Guru // analyzes the resources in your account for operational problems and anomalous // behavior. A dimension is a name/value pair that is part of the identity of // a metric. A metric can have up to 10 dimensions. For more information, see @@ -6775,6 +7151,135 @@ func (s *ListAnomaliesForInsightOutput) SetReactiveAnomalies(v []*ReactiveAnomal return s } +type ListAnomalousLogGroupsInput struct { + _ struct{} `type:"structure"` + + // The ID of the insight containing the log groups. + // + // InsightId is a required field + InsightId *string `min:"1" type:"string" required:"true"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If this value is null, it retrieves the first page. + NextToken *string `min:"36" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAnomalousLogGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAnomalousLogGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAnomalousLogGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAnomalousLogGroupsInput"} + if s.InsightId == nil { + invalidParams.Add(request.NewErrParamRequired("InsightId")) + } + if s.InsightId != nil && len(*s.InsightId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 36 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInsightId sets the InsightId field's value. +func (s *ListAnomalousLogGroupsInput) SetInsightId(v string) *ListAnomalousLogGroupsInput { + s.InsightId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAnomalousLogGroupsInput) SetMaxResults(v int64) *ListAnomalousLogGroupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAnomalousLogGroupsInput) SetNextToken(v string) *ListAnomalousLogGroupsInput { + s.NextToken = &v + return s +} + +type ListAnomalousLogGroupsOutput struct { + _ struct{} `type:"structure"` + + // The list of Amazon CloudWatch log groups that are related to an insight. + // + // AnomalousLogGroups is a required field + AnomalousLogGroups []*AnomalousLogGroup `type:"list" required:"true"` + + // The ID of the insight containing the log groups. + // + // InsightId is a required field + InsightId *string `min:"1" type:"string" required:"true"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If there are no more pages, this value is null. + NextToken *string `min:"36" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAnomalousLogGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAnomalousLogGroupsOutput) GoString() string { + return s.String() +} + +// SetAnomalousLogGroups sets the AnomalousLogGroups field's value. +func (s *ListAnomalousLogGroupsOutput) SetAnomalousLogGroups(v []*AnomalousLogGroup) *ListAnomalousLogGroupsOutput { + s.AnomalousLogGroups = v + return s +} + +// SetInsightId sets the InsightId field's value. +func (s *ListAnomalousLogGroupsOutput) SetInsightId(v string) *ListAnomalousLogGroupsOutput { + s.InsightId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAnomalousLogGroupsOutput) SetNextToken(v string) *ListAnomalousLogGroupsOutput { + s.NextToken = &v + return s +} + // Filters you can use to specify which events are returned when ListEvents // is called. type ListEventsFilters struct { @@ -7310,27 +7815,243 @@ func (s *ListInsightsOutput) SetProactiveInsights(v []*ProactiveInsightSummary) return s } -// SetReactiveInsights sets the ReactiveInsights field's value. -func (s *ListInsightsOutput) SetReactiveInsights(v []*ReactiveInsightSummary) *ListInsightsOutput { - s.ReactiveInsights = v +// SetReactiveInsights sets the ReactiveInsights field's value. +func (s *ListInsightsOutput) SetReactiveInsights(v []*ReactiveInsightSummary) *ListInsightsOutput { + s.ReactiveInsights = v + return s +} + +// A filter used by ListInsights to specify which insights to return. +type ListInsightsStatusFilter struct { + _ struct{} `type:"structure"` + + // A ListInsightsAnyStatusFilter that specifies insights of any status that + // are either REACTIVE or PROACTIVE. + Any *ListInsightsAnyStatusFilter `type:"structure"` + + // A ListInsightsClosedStatusFilter that specifies closed insights that are + // either REACTIVE or PROACTIVE. + Closed *ListInsightsClosedStatusFilter `type:"structure"` + + // A ListInsightsAnyStatusFilter that specifies ongoing insights that are either + // REACTIVE or PROACTIVE. + Ongoing *ListInsightsOngoingStatusFilter `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListInsightsStatusFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListInsightsStatusFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListInsightsStatusFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListInsightsStatusFilter"} + if s.Any != nil { + if err := s.Any.Validate(); err != nil { + invalidParams.AddNested("Any", err.(request.ErrInvalidParams)) + } + } + if s.Closed != nil { + if err := s.Closed.Validate(); err != nil { + invalidParams.AddNested("Closed", err.(request.ErrInvalidParams)) + } + } + if s.Ongoing != nil { + if err := s.Ongoing.Validate(); err != nil { + invalidParams.AddNested("Ongoing", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAny sets the Any field's value. +func (s *ListInsightsStatusFilter) SetAny(v *ListInsightsAnyStatusFilter) *ListInsightsStatusFilter { + s.Any = v + return s +} + +// SetClosed sets the Closed field's value. +func (s *ListInsightsStatusFilter) SetClosed(v *ListInsightsClosedStatusFilter) *ListInsightsStatusFilter { + s.Closed = v + return s +} + +// SetOngoing sets the Ongoing field's value. +func (s *ListInsightsStatusFilter) SetOngoing(v *ListInsightsOngoingStatusFilter) *ListInsightsStatusFilter { + s.Ongoing = v + return s +} + +// Filters to determine which monitored resources you want to retrieve. You +// can filter by resource type or resource permission status. +type ListMonitoredResourcesFilters struct { + _ struct{} `type:"structure"` + + // The permission status of a resource. + // + // ResourcePermission is a required field + ResourcePermission *string `type:"string" required:"true" enum:"ResourcePermission"` + + // The type of resource that you wish to retrieve, such as log groups. + // + // ResourceTypeFilters is a required field + ResourceTypeFilters []*string `type:"list" required:"true" enum:"ResourceTypeFilter"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMonitoredResourcesFilters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMonitoredResourcesFilters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListMonitoredResourcesFilters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMonitoredResourcesFilters"} + if s.ResourcePermission == nil { + invalidParams.Add(request.NewErrParamRequired("ResourcePermission")) + } + if s.ResourceTypeFilters == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceTypeFilters")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourcePermission sets the ResourcePermission field's value. +func (s *ListMonitoredResourcesFilters) SetResourcePermission(v string) *ListMonitoredResourcesFilters { + s.ResourcePermission = &v + return s +} + +// SetResourceTypeFilters sets the ResourceTypeFilters field's value. +func (s *ListMonitoredResourcesFilters) SetResourceTypeFilters(v []*string) *ListMonitoredResourcesFilters { + s.ResourceTypeFilters = v + return s +} + +type ListMonitoredResourcesInput struct { + _ struct{} `type:"structure"` + + // Filters to determine which monitored resources you want to retrieve. You + // can filter by resource type or resource permission status. + // + // Filters is a required field + Filters *ListMonitoredResourcesFilters `type:"structure" required:"true"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token to use to retrieve the next page of results for this + // operation. If this value is null, it retrieves the first page. + NextToken *string `min:"36" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMonitoredResourcesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMonitoredResourcesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListMonitoredResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMonitoredResourcesInput"} + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 36 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 36)) + } + if s.Filters != nil { + if err := s.Filters.Validate(); err != nil { + invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *ListMonitoredResourcesInput) SetFilters(v *ListMonitoredResourcesFilters) *ListMonitoredResourcesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListMonitoredResourcesInput) SetMaxResults(v int64) *ListMonitoredResourcesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMonitoredResourcesInput) SetNextToken(v string) *ListMonitoredResourcesInput { + s.NextToken = &v return s } -// A filter used by ListInsights to specify which insights to return. -type ListInsightsStatusFilter struct { +type ListMonitoredResourcesOutput struct { _ struct{} `type:"structure"` - // A ListInsightsAnyStatusFilter that specifies insights of any status that - // are either REACTIVE or PROACTIVE. - Any *ListInsightsAnyStatusFilter `type:"structure"` - - // A ListInsightsClosedStatusFilter that specifies closed insights that are - // either REACTIVE or PROACTIVE. - Closed *ListInsightsClosedStatusFilter `type:"structure"` + // Information about the resource that is being monitored, including the name + // of the resource, the type of resource, and whether or not permission is given + // to DevOps Guru to access that resource. + // + // MonitoredResourceIdentifiers is a required field + MonitoredResourceIdentifiers []*MonitoredResourceIdentifier `type:"list" required:"true"` - // A ListInsightsAnyStatusFilter that specifies ongoing insights that are either - // REACTIVE or PROACTIVE. - Ongoing *ListInsightsOngoingStatusFilter `type:"structure"` + // The pagination token to use to retrieve the next page of results for this + // operation. If there are no more pages, this value is null. + NextToken *string `min:"36" type:"string"` } // String returns the string representation. @@ -7338,7 +8059,7 @@ type ListInsightsStatusFilter struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListInsightsStatusFilter) String() string { +func (s ListMonitoredResourcesOutput) String() string { return awsutil.Prettify(s) } @@ -7347,50 +8068,19 @@ func (s ListInsightsStatusFilter) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListInsightsStatusFilter) GoString() string { +func (s ListMonitoredResourcesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListInsightsStatusFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListInsightsStatusFilter"} - if s.Any != nil { - if err := s.Any.Validate(); err != nil { - invalidParams.AddNested("Any", err.(request.ErrInvalidParams)) - } - } - if s.Closed != nil { - if err := s.Closed.Validate(); err != nil { - invalidParams.AddNested("Closed", err.(request.ErrInvalidParams)) - } - } - if s.Ongoing != nil { - if err := s.Ongoing.Validate(); err != nil { - invalidParams.AddNested("Ongoing", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAny sets the Any field's value. -func (s *ListInsightsStatusFilter) SetAny(v *ListInsightsAnyStatusFilter) *ListInsightsStatusFilter { - s.Any = v - return s -} - -// SetClosed sets the Closed field's value. -func (s *ListInsightsStatusFilter) SetClosed(v *ListInsightsClosedStatusFilter) *ListInsightsStatusFilter { - s.Closed = v +// SetMonitoredResourceIdentifiers sets the MonitoredResourceIdentifiers field's value. +func (s *ListMonitoredResourcesOutput) SetMonitoredResourceIdentifiers(v []*MonitoredResourceIdentifier) *ListMonitoredResourcesOutput { + s.MonitoredResourceIdentifiers = v return s } -// SetOngoing sets the Ongoing field's value. -func (s *ListInsightsStatusFilter) SetOngoing(v *ListInsightsOngoingStatusFilter) *ListInsightsStatusFilter { - s.Ongoing = v +// SetNextToken sets the NextToken field's value. +func (s *ListMonitoredResourcesOutput) SetNextToken(v string) *ListMonitoredResourcesOutput { + s.NextToken = &v return s } @@ -7751,6 +8441,248 @@ func (s *ListRecommendationsOutput) SetRecommendations(v []*Recommendation) *Lis return s } +// Information about an anomalous log event found within a log group. +type LogAnomalyClass struct { + _ struct{} `type:"structure"` + + // The explanation for why the log event is considered an anomaly. + Explanation *string `min:"1" type:"string"` + + // The token where the anomaly was detected. This may refer to an exception + // or another location, or it may be blank for log anomalies such as format + // anomalies. + LogAnomalyToken *string `min:"1" type:"string"` + + // The type of log anomaly that has been detected. + LogAnomalyType *string `type:"string" enum:"LogAnomalyType"` + + // The ID of the log event. + LogEventId *string `min:"1" type:"string"` + + // The time of the first occurrence of the anomalous log event. + LogEventTimestamp *time.Time `type:"timestamp"` + + // The name of the Amazon CloudWatch log stream that the anomalous log event + // belongs to. A log stream is a sequence of log events that share the same + // source. + LogStreamName *string `min:"1" type:"string"` + + // The number of log lines where this anomalous log event occurs. + NumberOfLogLinesOccurrences *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogAnomalyClass) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogAnomalyClass) GoString() string { + return s.String() +} + +// SetExplanation sets the Explanation field's value. +func (s *LogAnomalyClass) SetExplanation(v string) *LogAnomalyClass { + s.Explanation = &v + return s +} + +// SetLogAnomalyToken sets the LogAnomalyToken field's value. +func (s *LogAnomalyClass) SetLogAnomalyToken(v string) *LogAnomalyClass { + s.LogAnomalyToken = &v + return s +} + +// SetLogAnomalyType sets the LogAnomalyType field's value. +func (s *LogAnomalyClass) SetLogAnomalyType(v string) *LogAnomalyClass { + s.LogAnomalyType = &v + return s +} + +// SetLogEventId sets the LogEventId field's value. +func (s *LogAnomalyClass) SetLogEventId(v string) *LogAnomalyClass { + s.LogEventId = &v + return s +} + +// SetLogEventTimestamp sets the LogEventTimestamp field's value. +func (s *LogAnomalyClass) SetLogEventTimestamp(v time.Time) *LogAnomalyClass { + s.LogEventTimestamp = &v + return s +} + +// SetLogStreamName sets the LogStreamName field's value. +func (s *LogAnomalyClass) SetLogStreamName(v string) *LogAnomalyClass { + s.LogStreamName = &v + return s +} + +// SetNumberOfLogLinesOccurrences sets the NumberOfLogLinesOccurrences field's value. +func (s *LogAnomalyClass) SetNumberOfLogLinesOccurrences(v int64) *LogAnomalyClass { + s.NumberOfLogLinesOccurrences = &v + return s +} + +// A cluster of similar anomalous log events found within a log group. +type LogAnomalyShowcase struct { + _ struct{} `type:"structure"` + + // A list of anomalous log events that may be related. + LogAnomalyClasses []*LogAnomalyClass `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogAnomalyShowcase) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogAnomalyShowcase) GoString() string { + return s.String() +} + +// SetLogAnomalyClasses sets the LogAnomalyClasses field's value. +func (s *LogAnomalyShowcase) SetLogAnomalyClasses(v []*LogAnomalyClass) *LogAnomalyShowcase { + s.LogAnomalyClasses = v + return s +} + +// Information about the integration of DevOps Guru with CloudWatch log groups +// for log anomaly detection. +type LogsAnomalyDetectionIntegration struct { + _ struct{} `type:"structure"` + + // Specifies if DevOps Guru is configured to perform log anomaly detection on + // CloudWatch log groups. + OptInStatus *string `type:"string" enum:"OptInStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogsAnomalyDetectionIntegration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogsAnomalyDetectionIntegration) GoString() string { + return s.String() +} + +// SetOptInStatus sets the OptInStatus field's value. +func (s *LogsAnomalyDetectionIntegration) SetOptInStatus(v string) *LogsAnomalyDetectionIntegration { + s.OptInStatus = &v + return s +} + +// Information about the integration of DevOps Guru with CloudWatch log groups +// for log anomaly detection. You can use this to update the configuration. +type LogsAnomalyDetectionIntegrationConfig struct { + _ struct{} `type:"structure"` + + // Specifies if DevOps Guru is configured to perform log anomaly detection on + // CloudWatch log groups. + OptInStatus *string `type:"string" enum:"OptInStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogsAnomalyDetectionIntegrationConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogsAnomalyDetectionIntegrationConfig) GoString() string { + return s.String() +} + +// SetOptInStatus sets the OptInStatus field's value. +func (s *LogsAnomalyDetectionIntegrationConfig) SetOptInStatus(v string) *LogsAnomalyDetectionIntegrationConfig { + s.OptInStatus = &v + return s +} + +// Information about the resource that is being monitored, including the name +// of the resource, the type of resource, and whether or not permission is given +// to DevOps Guru to access that resource. +type MonitoredResourceIdentifier struct { + _ struct{} `type:"structure"` + + // The name of the resource being monitored. + MonitoredResourceName *string `min:"1" type:"string"` + + // The permission status of a resource. + ResourcePermission *string `type:"string" enum:"ResourcePermission"` + + // The type of resource being monitored. + Type *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MonitoredResourceIdentifier) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MonitoredResourceIdentifier) GoString() string { + return s.String() +} + +// SetMonitoredResourceName sets the MonitoredResourceName field's value. +func (s *MonitoredResourceIdentifier) SetMonitoredResourceName(v string) *MonitoredResourceIdentifier { + s.MonitoredResourceName = &v + return s +} + +// SetResourcePermission sets the ResourcePermission field's value. +func (s *MonitoredResourceIdentifier) SetResourcePermission(v string) *MonitoredResourceIdentifier { + s.ResourcePermission = &v + return s +} + +// SetType sets the Type field's value. +func (s *MonitoredResourceIdentifier) SetType(v string) *MonitoredResourceIdentifier { + s.Type = &v + return s +} + // Information about a notification channel. A notification channel is used // to notify you when DevOps Guru creates an insight. The one supported notification // channel is Amazon Simple Notification Service (Amazon SNS). @@ -7920,6 +8852,7 @@ func (s *OpsCenterIntegration) SetOptInStatus(v string) *OpsCenterIntegration { // Information about whether DevOps Guru is configured to create an OpsItem // in Amazon Web Services Systems Manager OpsCenter for each created insight. +// You can use this to update the configuration. type OpsCenterIntegrationConfig struct { _ struct{} `type:"structure"` @@ -11174,6 +12107,10 @@ func (s *ServiceInsightHealth) SetOpenReactiveInsights(v int64) *ServiceInsightH type ServiceIntegrationConfig struct { _ struct{} `type:"structure"` + // Information about whether DevOps Guru is configured to perform log anomaly + // detection on Amazon CloudWatch log groups. + LogsAnomalyDetection *LogsAnomalyDetectionIntegration `type:"structure"` + // Information about whether DevOps Guru is configured to create an OpsItem // in Amazon Web Services Systems Manager OpsCenter for each created insight. OpsCenter *OpsCenterIntegration `type:"structure"` @@ -11197,6 +12134,12 @@ func (s ServiceIntegrationConfig) GoString() string { return s.String() } +// SetLogsAnomalyDetection sets the LogsAnomalyDetection field's value. +func (s *ServiceIntegrationConfig) SetLogsAnomalyDetection(v *LogsAnomalyDetectionIntegration) *ServiceIntegrationConfig { + s.LogsAnomalyDetection = v + return s +} + // SetOpsCenter sets the OpsCenter field's value. func (s *ServiceIntegrationConfig) SetOpsCenter(v *OpsCenterIntegration) *ServiceIntegrationConfig { s.OpsCenter = v @@ -12256,8 +13199,13 @@ func (s UpdateResourceCollectionOutput) GoString() string { type UpdateServiceIntegrationConfig struct { _ struct{} `type:"structure"` + // Information about whether DevOps Guru is configured to perform log anomaly + // detection on Amazon CloudWatch log groups. + LogsAnomalyDetection *LogsAnomalyDetectionIntegrationConfig `type:"structure"` + // Information about whether DevOps Guru is configured to create an OpsItem // in Amazon Web Services Systems Manager OpsCenter for each created insight. + // You can use this to update the configuration. OpsCenter *OpsCenterIntegrationConfig `type:"structure"` } @@ -12279,6 +13227,12 @@ func (s UpdateServiceIntegrationConfig) GoString() string { return s.String() } +// SetLogsAnomalyDetection sets the LogsAnomalyDetection field's value. +func (s *UpdateServiceIntegrationConfig) SetLogsAnomalyDetection(v *LogsAnomalyDetectionIntegrationConfig) *UpdateServiceIntegrationConfig { + s.LogsAnomalyDetection = v + return s +} + // SetOpsCenter sets the OpsCenter field's value. func (s *UpdateServiceIntegrationConfig) SetOpsCenter(v *OpsCenterIntegrationConfig) *UpdateServiceIntegrationConfig { s.OpsCenter = v @@ -12890,6 +13844,46 @@ func Locale_Values() []string { } } +const ( + // LogAnomalyTypeKeyword is a LogAnomalyType enum value + LogAnomalyTypeKeyword = "KEYWORD" + + // LogAnomalyTypeKeywordToken is a LogAnomalyType enum value + LogAnomalyTypeKeywordToken = "KEYWORD_TOKEN" + + // LogAnomalyTypeFormat is a LogAnomalyType enum value + LogAnomalyTypeFormat = "FORMAT" + + // LogAnomalyTypeHttpCode is a LogAnomalyType enum value + LogAnomalyTypeHttpCode = "HTTP_CODE" + + // LogAnomalyTypeBlockFormat is a LogAnomalyType enum value + LogAnomalyTypeBlockFormat = "BLOCK_FORMAT" + + // LogAnomalyTypeNumericalPoint is a LogAnomalyType enum value + LogAnomalyTypeNumericalPoint = "NUMERICAL_POINT" + + // LogAnomalyTypeNumericalNan is a LogAnomalyType enum value + LogAnomalyTypeNumericalNan = "NUMERICAL_NAN" + + // LogAnomalyTypeNewFieldName is a LogAnomalyType enum value + LogAnomalyTypeNewFieldName = "NEW_FIELD_NAME" +) + +// LogAnomalyType_Values returns all elements of the LogAnomalyType enum +func LogAnomalyType_Values() []string { + return []string{ + LogAnomalyTypeKeyword, + LogAnomalyTypeKeywordToken, + LogAnomalyTypeFormat, + LogAnomalyTypeHttpCode, + LogAnomalyTypeBlockFormat, + LogAnomalyTypeNumericalPoint, + LogAnomalyTypeNumericalNan, + LogAnomalyTypeNewFieldName, + } +} + // Specifies if DevOps Guru is enabled to create an Amazon Web Services Systems // Manager OpsItem for each created insight. const ( @@ -12952,6 +13946,34 @@ func ResourceCollectionType_Values() []string { } } +const ( + // ResourcePermissionFullPermission is a ResourcePermission enum value + ResourcePermissionFullPermission = "FULL_PERMISSION" + + // ResourcePermissionMissingPermission is a ResourcePermission enum value + ResourcePermissionMissingPermission = "MISSING_PERMISSION" +) + +// ResourcePermission_Values returns all elements of the ResourcePermission enum +func ResourcePermission_Values() []string { + return []string{ + ResourcePermissionFullPermission, + ResourcePermissionMissingPermission, + } +} + +const ( + // ResourceTypeFilterLogGroups is a ResourceTypeFilter enum value + ResourceTypeFilterLogGroups = "LOG_GROUPS" +) + +// ResourceTypeFilter_Values returns all elements of the ResourceTypeFilter enum +func ResourceTypeFilter_Values() []string { + return []string{ + ResourceTypeFilterLogGroups, + } +} + const ( // ServiceNameApiGateway is a ServiceName enum value ServiceNameApiGateway = "API_GATEWAY" diff --git a/service/devopsguru/devopsguruiface/interface.go b/service/devopsguru/devopsguruiface/interface.go index aa7ff6835b0..4b07a180e9f 100644 --- a/service/devopsguru/devopsguruiface/interface.go +++ b/service/devopsguru/devopsguruiface/interface.go @@ -139,6 +139,13 @@ type DevOpsGuruAPI interface { ListAnomaliesForInsightPages(*devopsguru.ListAnomaliesForInsightInput, func(*devopsguru.ListAnomaliesForInsightOutput, bool) bool) error ListAnomaliesForInsightPagesWithContext(aws.Context, *devopsguru.ListAnomaliesForInsightInput, func(*devopsguru.ListAnomaliesForInsightOutput, bool) bool, ...request.Option) error + ListAnomalousLogGroups(*devopsguru.ListAnomalousLogGroupsInput) (*devopsguru.ListAnomalousLogGroupsOutput, error) + ListAnomalousLogGroupsWithContext(aws.Context, *devopsguru.ListAnomalousLogGroupsInput, ...request.Option) (*devopsguru.ListAnomalousLogGroupsOutput, error) + ListAnomalousLogGroupsRequest(*devopsguru.ListAnomalousLogGroupsInput) (*request.Request, *devopsguru.ListAnomalousLogGroupsOutput) + + ListAnomalousLogGroupsPages(*devopsguru.ListAnomalousLogGroupsInput, func(*devopsguru.ListAnomalousLogGroupsOutput, bool) bool) error + ListAnomalousLogGroupsPagesWithContext(aws.Context, *devopsguru.ListAnomalousLogGroupsInput, func(*devopsguru.ListAnomalousLogGroupsOutput, bool) bool, ...request.Option) error + ListEvents(*devopsguru.ListEventsInput) (*devopsguru.ListEventsOutput, error) ListEventsWithContext(aws.Context, *devopsguru.ListEventsInput, ...request.Option) (*devopsguru.ListEventsOutput, error) ListEventsRequest(*devopsguru.ListEventsInput) (*request.Request, *devopsguru.ListEventsOutput) @@ -153,6 +160,13 @@ type DevOpsGuruAPI interface { ListInsightsPages(*devopsguru.ListInsightsInput, func(*devopsguru.ListInsightsOutput, bool) bool) error ListInsightsPagesWithContext(aws.Context, *devopsguru.ListInsightsInput, func(*devopsguru.ListInsightsOutput, bool) bool, ...request.Option) error + ListMonitoredResources(*devopsguru.ListMonitoredResourcesInput) (*devopsguru.ListMonitoredResourcesOutput, error) + ListMonitoredResourcesWithContext(aws.Context, *devopsguru.ListMonitoredResourcesInput, ...request.Option) (*devopsguru.ListMonitoredResourcesOutput, error) + ListMonitoredResourcesRequest(*devopsguru.ListMonitoredResourcesInput) (*request.Request, *devopsguru.ListMonitoredResourcesOutput) + + ListMonitoredResourcesPages(*devopsguru.ListMonitoredResourcesInput, func(*devopsguru.ListMonitoredResourcesOutput, bool) bool) error + ListMonitoredResourcesPagesWithContext(aws.Context, *devopsguru.ListMonitoredResourcesInput, func(*devopsguru.ListMonitoredResourcesOutput, bool) bool, ...request.Option) error + ListNotificationChannels(*devopsguru.ListNotificationChannelsInput) (*devopsguru.ListNotificationChannelsOutput, error) ListNotificationChannelsWithContext(aws.Context, *devopsguru.ListNotificationChannelsInput, ...request.Option) (*devopsguru.ListNotificationChannelsOutput, error) ListNotificationChannelsRequest(*devopsguru.ListNotificationChannelsInput) (*request.Request, *devopsguru.ListNotificationChannelsOutput) diff --git a/service/glue/api.go b/service/glue/api.go index c015eda9951..d00707c96ae 100644 --- a/service/glue/api.go +++ b/service/glue/api.go @@ -44964,11 +44964,11 @@ type JobRun struct { // The date and time that this job run completed. CompletedOn *time.Time `type:"timestamp"` - // This field populates only when an Auto Scaling job run completes, and represents - // the total time each executor ran during the lifecycle of a job run in seconds, - // multiplied by a DPU factor (1 for G.1X and 2 for G.2X workers). This value - // may be different than the executionEngineRuntime * MaxCapacity as in the - // case of Auto Scaling jobs, as the number of executors running at a given + // This field populates only for Auto Scaling job runs, and represents the total + // time each executor ran during the lifecycle of a job run in seconds, multiplied + // by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This + // value may be different than the executionEngineRuntime * MaxCapacity as in + // the case of Auto Scaling jobs, as the number of executors running at a given // time may be less than the MaxCapacity. Therefore, it is possible that the // value of DPUSeconds is less than executionEngineRuntime * MaxCapacity. DPUSeconds *float64 `type:"double"` @@ -45050,9 +45050,11 @@ type JobRun struct { StartedOn *time.Time `type:"timestamp"` // The JobRun timeout in minutes. This is the maximum time that a job run can - // consume resources before it is terminated and enters TIMEOUT status. The - // default is 2,880 minutes (48 hours). This overrides the timeout value set - // in the parent job. + // consume resources before it is terminated and enters TIMEOUT status. This + // value overrides the timeout value set in the parent job. + // + // Streaming jobs do not have a timeout. The default for non-streaming jobs + // is 2,880 minutes (48 hours). Timeout *int64 `min:"1" type:"integer"` // The name of the trigger that started this job run. @@ -57012,9 +57014,11 @@ type StartJobRunInput struct { SecurityConfiguration *string `min:"1" type:"string"` // The JobRun timeout in minutes. This is the maximum time that a job run can - // consume resources before it is terminated and enters TIMEOUT status. The - // default is 2,880 minutes (48 hours). This overrides the timeout value set - // in the parent job. + // consume resources before it is terminated and enters TIMEOUT status. This + // value overrides the timeout value set in the parent job. + // + // Streaming jobs do not have a timeout. The default for non-streaming jobs + // is 2,880 minutes (48 hours). Timeout *int64 `min:"1" type:"integer"` // The type of predefined worker that is allocated when a job runs. Accepts diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index 05645afb6d5..05da189b6cd 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -84315,9 +84315,7 @@ type QueryLineageInput struct { // A list of resource Amazon Resource Name (ARN) that represent the starting // point for your lineage query. - // - // StartArns is a required field - StartArns []*string `min:"1" type:"list" required:"true"` + StartArns []*string `type:"list"` } // String returns the string representation. @@ -84338,22 +84336,6 @@ func (s QueryLineageInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *QueryLineageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "QueryLineageInput"} - if s.StartArns == nil { - invalidParams.Add(request.NewErrParamRequired("StartArns")) - } - if s.StartArns != nil && len(s.StartArns) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StartArns", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // SetDirection sets the Direction field's value. func (s *QueryLineageInput) SetDirection(v string) *QueryLineageInput { s.Direction = &v diff --git a/service/sagemakeredgemanager/api.go b/service/sagemakeredgemanager/api.go index 1878780fde0..ede5d038eab 100644 --- a/service/sagemakeredgemanager/api.go +++ b/service/sagemakeredgemanager/api.go @@ -13,6 +13,86 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restjson" ) +const opGetDeployments = "GetDeployments" + +// GetDeploymentsRequest generates a "aws/request.Request" representing the +// client's request for the GetDeployments operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDeployments for more information on using the GetDeployments +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetDeploymentsRequest method. +// req, resp := client.GetDeploymentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeployments +func (c *SagemakerEdgeManager) GetDeploymentsRequest(input *GetDeploymentsInput) (req *request.Request, output *GetDeploymentsOutput) { + op := &request.Operation{ + Name: opGetDeployments, + HTTPMethod: "POST", + HTTPPath: "/GetDeployments", + } + + if input == nil { + input = &GetDeploymentsInput{} + } + + output = &GetDeploymentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDeployments API operation for Amazon Sagemaker Edge Manager. +// +// Use to get the active deployments from a device. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Sagemaker Edge Manager's +// API operation GetDeployments for usage and error information. +// +// Returned Error Types: +// * InternalServiceException +// An internal failure occurred. Try your request again. If the problem persists, +// contact Amazon Web Services customer support. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeployments +func (c *SagemakerEdgeManager) GetDeployments(input *GetDeploymentsInput) (*GetDeploymentsOutput, error) { + req, out := c.GetDeploymentsRequest(input) + return out, req.Send() +} + +// GetDeploymentsWithContext is the same as GetDeployments with the addition of +// the ability to pass a context and additional request options. +// +// See GetDeployments for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SagemakerEdgeManager) GetDeploymentsWithContext(ctx aws.Context, input *GetDeploymentsInput, opts ...request.Option) (*GetDeploymentsOutput, error) { + req, out := c.GetDeploymentsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetDeviceRegistration = "GetDeviceRegistration" // GetDeviceRegistrationRequest generates a "aws/request.Request" representing the @@ -69,7 +149,7 @@ func (c *SagemakerEdgeManager) GetDeviceRegistrationRequest(input *GetDeviceRegi // Returned Error Types: // * InternalServiceException // An internal failure occurred. Try your request again. If the problem persists, -// contact AWS customer support. +// contact Amazon Web Services customer support. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeviceRegistration func (c *SagemakerEdgeManager) GetDeviceRegistration(input *GetDeviceRegistrationInput) (*GetDeviceRegistrationOutput, error) { @@ -150,7 +230,7 @@ func (c *SagemakerEdgeManager) SendHeartbeatRequest(input *SendHeartbeatInput) ( // Returned Error Types: // * InternalServiceException // An internal failure occurred. Try your request again. If the problem persists, -// contact AWS customer support. +// contact Amazon Web Services customer support. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/SendHeartbeat func (c *SagemakerEdgeManager) SendHeartbeat(input *SendHeartbeatInput) (*SendHeartbeatOutput, error) { @@ -174,6 +254,383 @@ func (c *SagemakerEdgeManager) SendHeartbeatWithContext(ctx aws.Context, input * return out, req.Send() } +// Information about the checksum of a model deployed on a device. +type Checksum struct { + _ struct{} `type:"structure"` + + // The checksum of the model. + Sum *string `min:"1" type:"string"` + + // The type of the checksum. + Type *string `type:"string" enum:"ChecksumType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Checksum) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Checksum) GoString() string { + return s.String() +} + +// SetSum sets the Sum field's value. +func (s *Checksum) SetSum(v string) *Checksum { + s.Sum = &v + return s +} + +// SetType sets the Type field's value. +func (s *Checksum) SetType(v string) *Checksum { + s.Type = &v + return s +} + +type Definition struct { + _ struct{} `type:"structure"` + + // The checksum information of the model. + Checksum *Checksum `type:"structure"` + + // The unique model handle. + ModelHandle *string `min:"1" type:"string"` + + // The absolute S3 location of the model. + S3Url *string `type:"string"` + + // The desired state of the model. + State *string `type:"string" enum:"ModelState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Definition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Definition) GoString() string { + return s.String() +} + +// SetChecksum sets the Checksum field's value. +func (s *Definition) SetChecksum(v *Checksum) *Definition { + s.Checksum = v + return s +} + +// SetModelHandle sets the ModelHandle field's value. +func (s *Definition) SetModelHandle(v string) *Definition { + s.ModelHandle = &v + return s +} + +// SetS3Url sets the S3Url field's value. +func (s *Definition) SetS3Url(v string) *Definition { + s.S3Url = &v + return s +} + +// SetState sets the State field's value. +func (s *Definition) SetState(v string) *Definition { + s.State = &v + return s +} + +type DeploymentModel struct { + _ struct{} `type:"structure"` + + // The desired state of the model. + DesiredState *string `type:"string" enum:"ModelState"` + + // The unique handle of the model. + ModelHandle *string `min:"1" type:"string"` + + // The name of the model. + ModelName *string `min:"4" type:"string"` + + // The version of the model. + ModelVersion *string `min:"1" type:"string"` + + // Returns the error message if there is a rollback. + RollbackFailureReason *string `type:"string"` + + // Returns the current state of the model. + State *string `type:"string" enum:"ModelState"` + + // Returns the deployment status of the model. + Status *string `type:"string" enum:"DeploymentStatus"` + + // Returns the error message for the deployment status result. + StatusReason *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeploymentModel) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeploymentModel) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeploymentModel) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeploymentModel"} + if s.ModelHandle != nil && len(*s.ModelHandle) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelHandle", 1)) + } + if s.ModelName != nil && len(*s.ModelName) < 4 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 4)) + } + if s.ModelVersion != nil && len(*s.ModelVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDesiredState sets the DesiredState field's value. +func (s *DeploymentModel) SetDesiredState(v string) *DeploymentModel { + s.DesiredState = &v + return s +} + +// SetModelHandle sets the ModelHandle field's value. +func (s *DeploymentModel) SetModelHandle(v string) *DeploymentModel { + s.ModelHandle = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *DeploymentModel) SetModelName(v string) *DeploymentModel { + s.ModelName = &v + return s +} + +// SetModelVersion sets the ModelVersion field's value. +func (s *DeploymentModel) SetModelVersion(v string) *DeploymentModel { + s.ModelVersion = &v + return s +} + +// SetRollbackFailureReason sets the RollbackFailureReason field's value. +func (s *DeploymentModel) SetRollbackFailureReason(v string) *DeploymentModel { + s.RollbackFailureReason = &v + return s +} + +// SetState sets the State field's value. +func (s *DeploymentModel) SetState(v string) *DeploymentModel { + s.State = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeploymentModel) SetStatus(v string) *DeploymentModel { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *DeploymentModel) SetStatusReason(v string) *DeploymentModel { + s.StatusReason = &v + return s +} + +// Information about the result of a deployment on an edge device that is registered +// with SageMaker Edge Manager. +type DeploymentResult struct { + _ struct{} `type:"structure"` + + // The timestamp of when the deployment was ended, and the agent got the deployment + // results. + DeploymentEndTime *time.Time `type:"timestamp"` + + // Returns a list of models deployed on the agent. + DeploymentModels []*DeploymentModel `type:"list"` + + // The name and unique ID of the deployment. + DeploymentName *string `min:"1" type:"string"` + + // The timestamp of when the deployment was started on the agent. + DeploymentStartTime *time.Time `type:"timestamp"` + + // Returns the bucket error code. + DeploymentStatus *string `min:"1" type:"string"` + + // Returns the detailed error message. + DeploymentStatusMessage *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeploymentResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeploymentResult) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeploymentResult) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeploymentResult"} + if s.DeploymentName != nil && len(*s.DeploymentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentName", 1)) + } + if s.DeploymentStatus != nil && len(*s.DeploymentStatus) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentStatus", 1)) + } + if s.DeploymentModels != nil { + for i, v := range s.DeploymentModels { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeploymentModels", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentEndTime sets the DeploymentEndTime field's value. +func (s *DeploymentResult) SetDeploymentEndTime(v time.Time) *DeploymentResult { + s.DeploymentEndTime = &v + return s +} + +// SetDeploymentModels sets the DeploymentModels field's value. +func (s *DeploymentResult) SetDeploymentModels(v []*DeploymentModel) *DeploymentResult { + s.DeploymentModels = v + return s +} + +// SetDeploymentName sets the DeploymentName field's value. +func (s *DeploymentResult) SetDeploymentName(v string) *DeploymentResult { + s.DeploymentName = &v + return s +} + +// SetDeploymentStartTime sets the DeploymentStartTime field's value. +func (s *DeploymentResult) SetDeploymentStartTime(v time.Time) *DeploymentResult { + s.DeploymentStartTime = &v + return s +} + +// SetDeploymentStatus sets the DeploymentStatus field's value. +func (s *DeploymentResult) SetDeploymentStatus(v string) *DeploymentResult { + s.DeploymentStatus = &v + return s +} + +// SetDeploymentStatusMessage sets the DeploymentStatusMessage field's value. +func (s *DeploymentResult) SetDeploymentStatusMessage(v string) *DeploymentResult { + s.DeploymentStatusMessage = &v + return s +} + +// Information about a deployment on an edge device that is registered with +// SageMaker Edge Manager. +type EdgeDeployment struct { + _ struct{} `type:"structure"` + + // Returns a list of Definition objects. + Definitions []*Definition `type:"list"` + + // The name and unique ID of the deployment. + DeploymentName *string `min:"1" type:"string"` + + // Determines whether to rollback to previous configuration if deployment fails. + FailureHandlingPolicy *string `type:"string" enum:"FailureHandlingPolicy"` + + // The type of the deployment. + Type *string `type:"string" enum:"DeploymentType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EdgeDeployment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EdgeDeployment) GoString() string { + return s.String() +} + +// SetDefinitions sets the Definitions field's value. +func (s *EdgeDeployment) SetDefinitions(v []*Definition) *EdgeDeployment { + s.Definitions = v + return s +} + +// SetDeploymentName sets the DeploymentName field's value. +func (s *EdgeDeployment) SetDeploymentName(v string) *EdgeDeployment { + s.DeploymentName = &v + return s +} + +// SetFailureHandlingPolicy sets the FailureHandlingPolicy field's value. +func (s *EdgeDeployment) SetFailureHandlingPolicy(v string) *EdgeDeployment { + s.FailureHandlingPolicy = &v + return s +} + +// SetType sets the Type field's value. +func (s *EdgeDeployment) SetType(v string) *EdgeDeployment { + s.Type = &v + return s +} + // Information required for edge device metrics. type EdgeMetric struct { _ struct{} `type:"structure"` @@ -249,6 +706,104 @@ func (s *EdgeMetric) SetValue(v float64) *EdgeMetric { return s } +type GetDeploymentsInput struct { + _ struct{} `type:"structure"` + + // The name of the fleet that the device belongs to. + // + // DeviceFleetName is a required field + DeviceFleetName *string `min:"1" type:"string" required:"true"` + + // The unique name of the device you want to get the configuration of active + // deployments from. + // + // DeviceName is a required field + DeviceName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDeploymentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDeploymentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeploymentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeploymentsInput"} + if s.DeviceFleetName == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceFleetName")) + } + if s.DeviceFleetName != nil && len(*s.DeviceFleetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceFleetName", 1)) + } + if s.DeviceName == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceName")) + } + if s.DeviceName != nil && len(*s.DeviceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceFleetName sets the DeviceFleetName field's value. +func (s *GetDeploymentsInput) SetDeviceFleetName(v string) *GetDeploymentsInput { + s.DeviceFleetName = &v + return s +} + +// SetDeviceName sets the DeviceName field's value. +func (s *GetDeploymentsInput) SetDeviceName(v string) *GetDeploymentsInput { + s.DeviceName = &v + return s +} + +type GetDeploymentsOutput struct { + _ struct{} `type:"structure"` + + // Returns a list of the configurations of the active deployments on the device. + Deployments []*EdgeDeployment `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDeploymentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDeploymentsOutput) GoString() string { + return s.String() +} + +// SetDeployments sets the Deployments field's value. +func (s *GetDeploymentsOutput) SetDeployments(v []*EdgeDeployment) *GetDeploymentsOutput { + s.Deployments = v + return s +} + type GetDeviceRegistrationInput struct { _ struct{} `type:"structure"` @@ -357,7 +912,7 @@ func (s *GetDeviceRegistrationOutput) SetDeviceRegistration(v string) *GetDevice } // An internal failure occurred. Try your request again. If the problem persists, -// contact AWS customer support. +// contact Amazon Web Services customer support. type InternalServiceException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -528,6 +1083,9 @@ type SendHeartbeatInput struct { // AgentVersion is a required field AgentVersion *string `min:"1" type:"string" required:"true"` + // Returns the result of a deployment on the device. + DeploymentResult *DeploymentResult `type:"structure"` + // The name of the fleet that the device belongs to. // // DeviceFleetName is a required field @@ -591,6 +1149,11 @@ func (s *SendHeartbeatInput) Validate() error { } } } + if s.DeploymentResult != nil { + if err := s.DeploymentResult.Validate(); err != nil { + invalidParams.AddNested("DeploymentResult", err.(request.ErrInvalidParams)) + } + } if s.Models != nil { for i, v := range s.Models { if v == nil { @@ -620,6 +1183,12 @@ func (s *SendHeartbeatInput) SetAgentVersion(v string) *SendHeartbeatInput { return s } +// SetDeploymentResult sets the DeploymentResult field's value. +func (s *SendHeartbeatInput) SetDeploymentResult(v *DeploymentResult) *SendHeartbeatInput { + s.DeploymentResult = v + return s +} + // SetDeviceFleetName sets the DeviceFleetName field's value. func (s *SendHeartbeatInput) SetDeviceFleetName(v string) *SendHeartbeatInput { s.DeviceFleetName = &v @@ -659,3 +1228,75 @@ func (s SendHeartbeatOutput) String() string { func (s SendHeartbeatOutput) GoString() string { return s.String() } + +const ( + // ChecksumTypeSha1 is a ChecksumType enum value + ChecksumTypeSha1 = "SHA1" +) + +// ChecksumType_Values returns all elements of the ChecksumType enum +func ChecksumType_Values() []string { + return []string{ + ChecksumTypeSha1, + } +} + +const ( + // DeploymentStatusSuccess is a DeploymentStatus enum value + DeploymentStatusSuccess = "SUCCESS" + + // DeploymentStatusFail is a DeploymentStatus enum value + DeploymentStatusFail = "FAIL" +) + +// DeploymentStatus_Values returns all elements of the DeploymentStatus enum +func DeploymentStatus_Values() []string { + return []string{ + DeploymentStatusSuccess, + DeploymentStatusFail, + } +} + +const ( + // DeploymentTypeModel is a DeploymentType enum value + DeploymentTypeModel = "Model" +) + +// DeploymentType_Values returns all elements of the DeploymentType enum +func DeploymentType_Values() []string { + return []string{ + DeploymentTypeModel, + } +} + +const ( + // FailureHandlingPolicyRollbackOnFailure is a FailureHandlingPolicy enum value + FailureHandlingPolicyRollbackOnFailure = "ROLLBACK_ON_FAILURE" + + // FailureHandlingPolicyDoNothing is a FailureHandlingPolicy enum value + FailureHandlingPolicyDoNothing = "DO_NOTHING" +) + +// FailureHandlingPolicy_Values returns all elements of the FailureHandlingPolicy enum +func FailureHandlingPolicy_Values() []string { + return []string{ + FailureHandlingPolicyRollbackOnFailure, + FailureHandlingPolicyDoNothing, + } +} + +const ( + // ModelStateDeploy is a ModelState enum value + ModelStateDeploy = "DEPLOY" + + // ModelStateUndeploy is a ModelState enum value + ModelStateUndeploy = "UNDEPLOY" +) + +// ModelState_Values returns all elements of the ModelState enum +func ModelState_Values() []string { + return []string{ + ModelStateDeploy, + ModelStateUndeploy, + } +} diff --git a/service/sagemakeredgemanager/errors.go b/service/sagemakeredgemanager/errors.go index f9328a55232..0165257d94f 100644 --- a/service/sagemakeredgemanager/errors.go +++ b/service/sagemakeredgemanager/errors.go @@ -12,7 +12,7 @@ const ( // "InternalServiceException". // // An internal failure occurred. Try your request again. If the problem persists, - // contact AWS customer support. + // contact Amazon Web Services customer support. ErrCodeInternalServiceException = "InternalServiceException" ) diff --git a/service/sagemakeredgemanager/sagemakeredgemanageriface/interface.go b/service/sagemakeredgemanager/sagemakeredgemanageriface/interface.go index bca3a8bac25..ce24033ef1b 100644 --- a/service/sagemakeredgemanager/sagemakeredgemanageriface/interface.go +++ b/service/sagemakeredgemanager/sagemakeredgemanageriface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // Amazon Sagemaker Edge Manager. // func myFunc(svc sagemakeredgemanageriface.SagemakerEdgeManagerAPI) bool { -// // Make svc.GetDeviceRegistration request +// // Make svc.GetDeployments request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockSagemakerEdgeManagerClient struct { // sagemakeredgemanageriface.SagemakerEdgeManagerAPI // } -// func (m *mockSagemakerEdgeManagerClient) GetDeviceRegistration(input *sagemakeredgemanager.GetDeviceRegistrationInput) (*sagemakeredgemanager.GetDeviceRegistrationOutput, error) { +// func (m *mockSagemakerEdgeManagerClient) GetDeployments(input *sagemakeredgemanager.GetDeploymentsInput) (*sagemakeredgemanager.GetDeploymentsOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type SagemakerEdgeManagerAPI interface { + GetDeployments(*sagemakeredgemanager.GetDeploymentsInput) (*sagemakeredgemanager.GetDeploymentsOutput, error) + GetDeploymentsWithContext(aws.Context, *sagemakeredgemanager.GetDeploymentsInput, ...request.Option) (*sagemakeredgemanager.GetDeploymentsOutput, error) + GetDeploymentsRequest(*sagemakeredgemanager.GetDeploymentsInput) (*request.Request, *sagemakeredgemanager.GetDeploymentsOutput) + GetDeviceRegistration(*sagemakeredgemanager.GetDeviceRegistrationInput) (*sagemakeredgemanager.GetDeviceRegistrationOutput, error) GetDeviceRegistrationWithContext(aws.Context, *sagemakeredgemanager.GetDeviceRegistrationInput, ...request.Option) (*sagemakeredgemanager.GetDeviceRegistrationOutput, error) GetDeviceRegistrationRequest(*sagemakeredgemanager.GetDeviceRegistrationInput) (*request.Request, *sagemakeredgemanager.GetDeviceRegistrationOutput) diff --git a/service/workspaces/api.go b/service/workspaces/api.go index 8ffebb89fa9..2ef801c4738 100644 --- a/service/workspaces/api.go +++ b/service/workspaces/api.go @@ -3599,6 +3599,9 @@ func (c *WorkSpaces) ImportClientBrandingRequest(input *ImportClientBrandingInpu // * ResourceLimitExceededException // Your resource limits have been exceeded. // +// * ResourceNotFoundException +// The resource could not be found. +// // * AccessDeniedException // The user is not authorized to access a resource. //