diff --git a/CHANGELOG.md b/CHANGELOG.md
index d72e13d1bc2..61c09eee671 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,18 @@
+Release v1.38.5 (2021-03-25)
+===
+
+### Service Client Updates
+* `service/alexaforbusiness`: Updates service API and documentation
+* `service/lookoutmetrics`: Adds new service
+* `service/medialive`: Updates service API and documentation
+ * EML now supports handling HDR10 and HLG 2020 color space from a Link input.
+* `service/rekognition`: Updates service API and documentation
+ * "This release introduces AWS tagging support for Amazon Rekognition collections, stream processors, and Custom Label models."
+* `service/sagemaker`: Updates service API and documentation
+ * This feature allows customer to specify the environment variables in their CreateTrainingJob requests.
+* `service/sqs`: Updates service documentation
+ * Documentation updates for Amazon SQS
+
Release v1.38.4 (2021-03-24)
===
diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go
index 05cbff6294e..ee958ece47c 100644
--- a/aws/endpoints/defaults.go
+++ b/aws/endpoints/defaults.go
@@ -8270,18 +8270,6 @@ var awsusgovPartition = partition{
"batch": service{
Endpoints: endpoints{
- "fips-us-gov-east-1": endpoint{
- Hostname: "batch.us-gov-east-1.amazonaws.com",
- CredentialScope: credentialScope{
- Region: "us-gov-east-1",
- },
- },
- "fips-us-gov-west-1": endpoint{
- Hostname: "batch.us-gov-west-1.amazonaws.com",
- CredentialScope: credentialScope{
- Region: "us-gov-west-1",
- },
- },
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
diff --git a/aws/version.go b/aws/version.go
index 88f5dc06d75..95758b23f6d 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.38.4"
+const SDKVersion = "1.38.5"
diff --git a/models/apis/alexaforbusiness/2017-11-09/api-2.json b/models/apis/alexaforbusiness/2017-11-09/api-2.json
index 048085f2715..841be0720f3 100644
--- a/models/apis/alexaforbusiness/2017-11-09/api-2.json
+++ b/models/apis/alexaforbusiness/2017-11-09/api-2.json
@@ -1762,6 +1762,7 @@
"SetupModeDisabled":{"shape":"Boolean"},
"MaxVolumeLimit":{"shape":"MaxVolumeLimit"},
"PSTNEnabled":{"shape":"Boolean"},
+ "DataRetentionOptIn":{"shape":"Boolean"},
"MeetingRoomConfiguration":{"shape":"CreateMeetingRoomConfiguration"},
"Tags":{"shape":"TagList"}
}
@@ -3066,6 +3067,7 @@
"SetupModeDisabled":{"shape":"Boolean"},
"MaxVolumeLimit":{"shape":"MaxVolumeLimit"},
"PSTNEnabled":{"shape":"Boolean"},
+ "DataRetentionOptIn":{"shape":"Boolean"},
"AddressBookArn":{"shape":"Arn"},
"MeetingRoomConfiguration":{"shape":"MeetingRoomConfiguration"}
}
@@ -4047,6 +4049,7 @@
"SetupModeDisabled":{"shape":"Boolean"},
"MaxVolumeLimit":{"shape":"MaxVolumeLimit"},
"PSTNEnabled":{"shape":"Boolean"},
+ "DataRetentionOptIn":{"shape":"Boolean"},
"MeetingRoomConfiguration":{"shape":"UpdateMeetingRoomConfiguration"}
}
},
diff --git a/models/apis/alexaforbusiness/2017-11-09/docs-2.json b/models/apis/alexaforbusiness/2017-11-09/docs-2.json
index 2d048e2f5e8..b00b8004915 100644
--- a/models/apis/alexaforbusiness/2017-11-09/docs-2.json
+++ b/models/apis/alexaforbusiness/2017-11-09/docs-2.json
@@ -396,6 +396,7 @@
"CreateMeetingRoomConfiguration$RoomUtilizationMetricsEnabled": "
Whether room utilization metrics are enabled or not.
",
"CreateProfileRequest$SetupModeDisabled": "Whether room profile setup is enabled.
",
"CreateProfileRequest$PSTNEnabled": "Whether PSTN calling is enabled.
",
+ "CreateProfileRequest$DataRetentionOptIn": "Whether data retention of the profile is enabled.
",
"CreateRequireCheckIn$Enabled": "Whether require check in is enabled or not.
",
"EndOfMeetingReminder$Enabled": "Whether an end of meeting reminder is enabled or not.
",
"InstantBooking$Enabled": "Whether instant booking is enabled or not.
",
@@ -403,6 +404,7 @@
"Profile$IsDefault": "Retrieves if the profile is default or not.
",
"Profile$SetupModeDisabled": "The setup mode of a room profile.
",
"Profile$PSTNEnabled": "The PSTN setting of a room profile.
",
+ "Profile$DataRetentionOptIn": "Whether data retention of the profile is enabled.
",
"ProfileData$IsDefault": "Retrieves if the profile data is default or not.
",
"RequireCheckIn$Enabled": "Whether require check in is enabled or not.
",
"UpdateEndOfMeetingReminder$Enabled": "Whether an end of meeting reminder is enabled or not.
",
@@ -411,6 +413,7 @@
"UpdateProfileRequest$IsDefault": "Sets the profile as default if selected. If this is missing, no update is done to the default status.
",
"UpdateProfileRequest$SetupModeDisabled": "Whether the setup mode of the profile is enabled.
",
"UpdateProfileRequest$PSTNEnabled": "Whether the PSTN setting of the room profile is enabled.
",
+ "UpdateProfileRequest$DataRetentionOptIn": "Whether data retention of the profile is enabled.
",
"UpdateRequireCheckIn$Enabled": "Whether require check in is enabled or not.
"
}
},
diff --git a/models/apis/lookoutmetrics/2017-07-25/api-2.json b/models/apis/lookoutmetrics/2017-07-25/api-2.json
new file mode 100644
index 00000000000..bf5c56dddfe
--- /dev/null
+++ b/models/apis/lookoutmetrics/2017-07-25/api-2.json
@@ -0,0 +1,1797 @@
+{
+ "version":"2.0",
+ "metadata":{
+ "apiVersion":"2017-07-25",
+ "endpointPrefix":"lookoutmetrics",
+ "jsonVersion":"1.1",
+ "protocol":"rest-json",
+ "serviceAbbreviation":"LookoutMetrics",
+ "serviceFullName":"Amazon Lookout for Metrics",
+ "serviceId":"LookoutMetrics",
+ "signatureVersion":"v4",
+ "signingName":"lookoutmetrics",
+ "uid":"lookoutmetrics-2017-07-25"
+ },
+ "operations":{
+ "ActivateAnomalyDetector":{
+ "name":"ActivateAnomalyDetector",
+ "http":{
+ "method":"POST",
+ "requestUri":"/ActivateAnomalyDetector"
+ },
+ "input":{"shape":"ActivateAnomalyDetectorRequest"},
+ "output":{"shape":"ActivateAnomalyDetectorResponse"},
+ "errors":[
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ConflictException"}
+ ]
+ },
+ "BackTestAnomalyDetector":{
+ "name":"BackTestAnomalyDetector",
+ "http":{
+ "method":"POST",
+ "requestUri":"/BackTestAnomalyDetector"
+ },
+ "input":{"shape":"BackTestAnomalyDetectorRequest"},
+ "output":{"shape":"BackTestAnomalyDetectorResponse"},
+ "errors":[
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "CreateAlert":{
+ "name":"CreateAlert",
+ "http":{
+ "method":"POST",
+ "requestUri":"/CreateAlert"
+ },
+ "input":{"shape":"CreateAlertRequest"},
+ "output":{"shape":"CreateAlertResponse"},
+ "errors":[
+ {"shape":"ConflictException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "CreateAnomalyDetector":{
+ "name":"CreateAnomalyDetector",
+ "http":{
+ "method":"POST",
+ "requestUri":"/CreateAnomalyDetector"
+ },
+ "input":{"shape":"CreateAnomalyDetectorRequest"},
+ "output":{"shape":"CreateAnomalyDetectorResponse"},
+ "errors":[
+ {"shape":"ConflictException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ConflictException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "CreateMetricSet":{
+ "name":"CreateMetricSet",
+ "http":{
+ "method":"POST",
+ "requestUri":"/CreateMetricSet"
+ },
+ "input":{"shape":"CreateMetricSetRequest"},
+ "output":{"shape":"CreateMetricSetResponse"},
+ "errors":[
+ {"shape":"ConflictException"},
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteAlert":{
+ "name":"DeleteAlert",
+ "http":{
+ "method":"POST",
+ "requestUri":"/DeleteAlert"
+ },
+ "input":{"shape":"DeleteAlertRequest"},
+ "output":{"shape":"DeleteAlertResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteAnomalyDetector":{
+ "name":"DeleteAnomalyDetector",
+ "http":{
+ "method":"POST",
+ "requestUri":"/DeleteAnomalyDetector"
+ },
+ "input":{"shape":"DeleteAnomalyDetectorRequest"},
+ "output":{"shape":"DeleteAnomalyDetectorResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeAlert":{
+ "name":"DescribeAlert",
+ "http":{
+ "method":"POST",
+ "requestUri":"/DescribeAlert"
+ },
+ "input":{"shape":"DescribeAlertRequest"},
+ "output":{"shape":"DescribeAlertResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"TooManyRequestsException"}
+ ]
+ },
+ "DescribeAnomalyDetectionExecutions":{
+ "name":"DescribeAnomalyDetectionExecutions",
+ "http":{
+ "method":"POST",
+ "requestUri":"/DescribeAnomalyDetectionExecutions"
+ },
+ "input":{"shape":"DescribeAnomalyDetectionExecutionsRequest"},
+ "output":{"shape":"DescribeAnomalyDetectionExecutionsResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeAnomalyDetector":{
+ "name":"DescribeAnomalyDetector",
+ "http":{
+ "method":"POST",
+ "requestUri":"/DescribeAnomalyDetector"
+ },
+ "input":{"shape":"DescribeAnomalyDetectorRequest"},
+ "output":{"shape":"DescribeAnomalyDetectorResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"TooManyRequestsException"}
+ ]
+ },
+ "DescribeMetricSet":{
+ "name":"DescribeMetricSet",
+ "http":{
+ "method":"POST",
+ "requestUri":"/DescribeMetricSet"
+ },
+ "input":{"shape":"DescribeMetricSetRequest"},
+ "output":{"shape":"DescribeMetricSetResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "GetAnomalyGroup":{
+ "name":"GetAnomalyGroup",
+ "http":{
+ "method":"POST",
+ "requestUri":"/GetAnomalyGroup"
+ },
+ "input":{"shape":"GetAnomalyGroupRequest"},
+ "output":{"shape":"GetAnomalyGroupResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"}
+ ]
+ },
+ "GetFeedback":{
+ "name":"GetFeedback",
+ "http":{
+ "method":"POST",
+ "requestUri":"/GetFeedback"
+ },
+ "input":{"shape":"GetFeedbackRequest"},
+ "output":{"shape":"GetFeedbackResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"TooManyRequestsException"}
+ ]
+ },
+ "GetSampleData":{
+ "name":"GetSampleData",
+ "http":{
+ "method":"POST",
+ "requestUri":"/GetSampleData"
+ },
+ "input":{"shape":"GetSampleDataRequest"},
+ "output":{"shape":"GetSampleDataResponse"},
+ "errors":[
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "ListAlerts":{
+ "name":"ListAlerts",
+ "http":{
+ "method":"POST",
+ "requestUri":"/ListAlerts"
+ },
+ "input":{"shape":"ListAlertsRequest"},
+ "output":{"shape":"ListAlertsResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "ListAnomalyDetectors":{
+ "name":"ListAnomalyDetectors",
+ "http":{
+ "method":"POST",
+ "requestUri":"/ListAnomalyDetectors"
+ },
+ "input":{"shape":"ListAnomalyDetectorsRequest"},
+ "output":{"shape":"ListAnomalyDetectorsResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "ListAnomalyGroupSummaries":{
+ "name":"ListAnomalyGroupSummaries",
+ "http":{
+ "method":"POST",
+ "requestUri":"/ListAnomalyGroupSummaries"
+ },
+ "input":{"shape":"ListAnomalyGroupSummariesRequest"},
+ "output":{"shape":"ListAnomalyGroupSummariesResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"}
+ ]
+ },
+ "ListAnomalyGroupTimeSeries":{
+ "name":"ListAnomalyGroupTimeSeries",
+ "http":{
+ "method":"POST",
+ "requestUri":"/ListAnomalyGroupTimeSeries"
+ },
+ "input":{"shape":"ListAnomalyGroupTimeSeriesRequest"},
+ "output":{"shape":"ListAnomalyGroupTimeSeriesResponse"},
+ "errors":[
+ {"shape":"InternalServerException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"TooManyRequestsException"}
+ ]
+ },
+ "ListMetricSets":{
+ "name":"ListMetricSets",
+ "http":{
+ "method":"POST",
+ "requestUri":"/ListMetricSets"
+ },
+ "input":{"shape":"ListMetricSetsRequest"},
+ "output":{"shape":"ListMetricSetsResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "ListTagsForResource":{
+ "name":"ListTagsForResource",
+ "http":{
+ "method":"GET",
+ "requestUri":"/tags/{resourceArn}",
+ "responseCode":200
+ },
+ "input":{"shape":"ListTagsForResourceRequest"},
+ "output":{"shape":"ListTagsForResourceResponse"},
+ "errors":[
+ {"shape":"InternalServerException"},
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"}
+ ]
+ },
+ "PutFeedback":{
+ "name":"PutFeedback",
+ "http":{
+ "method":"POST",
+ "requestUri":"/PutFeedback"
+ },
+ "input":{"shape":"PutFeedbackRequest"},
+ "output":{"shape":"PutFeedbackResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"TooManyRequestsException"}
+ ]
+ },
+ "TagResource":{
+ "name":"TagResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/tags/{resourceArn}",
+ "responseCode":204
+ },
+ "input":{"shape":"TagResourceRequest"},
+ "output":{"shape":"TagResourceResponse"},
+ "errors":[
+ {"shape":"InternalServerException"},
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"}
+ ]
+ },
+ "UntagResource":{
+ "name":"UntagResource",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/tags/{resourceArn}",
+ "responseCode":204
+ },
+ "input":{"shape":"UntagResourceRequest"},
+ "output":{"shape":"UntagResourceResponse"},
+ "errors":[
+ {"shape":"InternalServerException"},
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"}
+ ]
+ },
+ "UpdateAnomalyDetector":{
+ "name":"UpdateAnomalyDetector",
+ "http":{
+ "method":"POST",
+ "requestUri":"/UpdateAnomalyDetector"
+ },
+ "input":{"shape":"UpdateAnomalyDetectorRequest"},
+ "output":{"shape":"UpdateAnomalyDetectorResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"}
+ ]
+ },
+ "UpdateMetricSet":{
+ "name":"UpdateMetricSet",
+ "http":{
+ "method":"POST",
+ "requestUri":"/UpdateMetricSet"
+ },
+ "input":{"shape":"UpdateMetricSetRequest"},
+ "output":{"shape":"UpdateMetricSetResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"TooManyRequestsException"}
+ ]
+ }
+ },
+ "shapes":{
+ "AccessDeniedException":{
+ "type":"structure",
+ "required":["Message"],
+ "members":{
+ "Message":{"shape":"Message"}
+ },
+ "error":{"httpStatusCode":403},
+ "exception":true
+ },
+ "Action":{
+ "type":"structure",
+ "members":{
+ "SNSConfiguration":{"shape":"SNSConfiguration"},
+ "LambdaConfiguration":{"shape":"LambdaConfiguration"}
+ }
+ },
+ "ActivateAnomalyDetectorRequest":{
+ "type":"structure",
+ "required":["AnomalyDetectorArn"],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"}
+ }
+ },
+ "ActivateAnomalyDetectorResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "AggregationFunction":{
+ "type":"string",
+ "enum":[
+ "AVG",
+ "SUM"
+ ]
+ },
+ "Alert":{
+ "type":"structure",
+ "members":{
+ "Action":{"shape":"Action"},
+ "AlertDescription":{"shape":"AlertDescription"},
+ "AlertArn":{"shape":"Arn"},
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "AlertName":{"shape":"AlertName"},
+ "AlertSensitivityThreshold":{"shape":"SensitivityThreshold"},
+ "AlertType":{"shape":"AlertType"},
+ "AlertStatus":{"shape":"AlertStatus"},
+ "LastModificationTime":{"shape":"Timestamp"},
+ "CreationTime":{"shape":"Timestamp"}
+ }
+ },
+ "AlertDescription":{
+ "type":"string",
+ "max":256,
+ "pattern":".*\\S.*"
+ },
+ "AlertName":{
+ "type":"string",
+ "max":63,
+ "min":1,
+ "pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
+ },
+ "AlertStatus":{
+ "type":"string",
+ "enum":[
+ "ACTIVE",
+ "INACTIVE"
+ ]
+ },
+ "AlertSummary":{
+ "type":"structure",
+ "members":{
+ "AlertArn":{"shape":"Arn"},
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "AlertName":{"shape":"AlertName"},
+ "AlertSensitivityThreshold":{"shape":"SensitivityThreshold"},
+ "AlertType":{"shape":"AlertType"},
+ "AlertStatus":{"shape":"AlertStatus"},
+ "LastModificationTime":{"shape":"Timestamp"},
+ "CreationTime":{"shape":"Timestamp"},
+ "Tags":{"shape":"TagMap"}
+ }
+ },
+ "AlertSummaryList":{
+ "type":"list",
+ "member":{"shape":"AlertSummary"}
+ },
+ "AlertType":{
+ "type":"string",
+ "enum":[
+ "SNS",
+ "LAMBDA"
+ ]
+ },
+ "AnomalyDetectionTaskStatus":{
+ "type":"string",
+ "enum":[
+ "PENDING",
+ "IN_PROGRESS",
+ "COMPLETED",
+ "FAILED",
+ "FAILED_TO_SCHEDULE"
+ ]
+ },
+ "AnomalyDetectionTaskStatusMessage":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":".*\\S.*"
+ },
+ "AnomalyDetectorConfig":{
+ "type":"structure",
+ "members":{
+ "AnomalyDetectorFrequency":{"shape":"Frequency"}
+ }
+ },
+ "AnomalyDetectorConfigSummary":{
+ "type":"structure",
+ "members":{
+ "AnomalyDetectorFrequency":{"shape":"Frequency"}
+ }
+ },
+ "AnomalyDetectorDescription":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":".*\\S.*"
+ },
+ "AnomalyDetectorName":{
+ "type":"string",
+ "max":63,
+ "min":1,
+ "pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
+ },
+ "AnomalyDetectorStatus":{
+ "type":"string",
+ "enum":[
+ "ACTIVE",
+ "ACTIVATING",
+ "DELETING",
+ "FAILED",
+ "INACTIVE",
+ "BACK_TEST_ACTIVATING",
+ "BACK_TEST_ACTIVE",
+ "BACK_TEST_COMPLETE"
+ ]
+ },
+ "AnomalyDetectorSummary":{
+ "type":"structure",
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "AnomalyDetectorName":{"shape":"AnomalyDetectorName"},
+ "AnomalyDetectorDescription":{"shape":"AnomalyDetectorDescription"},
+ "CreationTime":{"shape":"Timestamp"},
+ "LastModificationTime":{"shape":"Timestamp"},
+ "Status":{"shape":"AnomalyDetectorStatus"},
+ "Tags":{"shape":"TagMap"}
+ }
+ },
+ "AnomalyDetectorSummaryList":{
+ "type":"list",
+ "member":{"shape":"AnomalyDetectorSummary"}
+ },
+ "AnomalyGroup":{
+ "type":"structure",
+ "members":{
+ "StartTime":{"shape":"TimestampString"},
+ "EndTime":{"shape":"TimestampString"},
+ "AnomalyGroupId":{"shape":"UUID"},
+ "AnomalyGroupScore":{"shape":"Score"},
+ "PrimaryMetricName":{"shape":"MetricName"},
+ "MetricLevelImpactList":{"shape":"MetricLevelImpactList"}
+ }
+ },
+ "AnomalyGroupStatistics":{
+ "type":"structure",
+ "members":{
+ "EvaluationStartDate":{"shape":"TimestampString"},
+ "TotalCount":{"shape":"Integer"},
+ "ItemizedMetricStatsList":{"shape":"ItemizedMetricStatsList"}
+ }
+ },
+ "AnomalyGroupSummary":{
+ "type":"structure",
+ "members":{
+ "StartTime":{"shape":"TimestampString"},
+ "EndTime":{"shape":"TimestampString"},
+ "AnomalyGroupId":{"shape":"UUID"},
+ "AnomalyGroupScore":{"shape":"Score"},
+ "PrimaryMetricName":{"shape":"MetricName"}
+ }
+ },
+ "AnomalyGroupSummaryList":{
+ "type":"list",
+ "member":{"shape":"AnomalyGroupSummary"}
+ },
+ "AnomalyGroupTimeSeries":{
+ "type":"structure",
+ "required":["AnomalyGroupId"],
+ "members":{
+ "AnomalyGroupId":{"shape":"UUID"},
+ "TimeSeriesId":{"shape":"TimeSeriesId"}
+ }
+ },
+ "AnomalyGroupTimeSeriesFeedback":{
+ "type":"structure",
+ "required":[
+ "AnomalyGroupId",
+ "TimeSeriesId",
+ "IsAnomaly"
+ ],
+ "members":{
+ "AnomalyGroupId":{"shape":"UUID"},
+ "TimeSeriesId":{"shape":"TimeSeriesId"},
+ "IsAnomaly":{"shape":"Boolean"}
+ }
+ },
+ "AppFlowConfig":{
+ "type":"structure",
+ "required":[
+ "RoleArn",
+ "FlowName"
+ ],
+ "members":{
+ "RoleArn":{"shape":"Arn"},
+ "FlowName":{"shape":"FlowName"}
+ }
+ },
+ "Arn":{
+ "type":"string",
+ "max":256,
+ "pattern":"arn:([a-z\\d-]+):.*:.*:.*:.+"
+ },
+ "BackTestAnomalyDetectorRequest":{
+ "type":"structure",
+ "required":["AnomalyDetectorArn"],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"}
+ }
+ },
+ "BackTestAnomalyDetectorResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "Boolean":{"type":"boolean"},
+ "CSVFileCompression":{
+ "type":"string",
+ "enum":[
+ "NONE",
+ "GZIP"
+ ]
+ },
+ "Charset":{
+ "type":"string",
+ "max":63,
+ "pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
+ },
+ "CloudWatchConfig":{
+ "type":"structure",
+ "required":["RoleArn"],
+ "members":{
+ "RoleArn":{"shape":"Arn"}
+ }
+ },
+ "ColumnName":{
+ "type":"string",
+ "max":63,
+ "min":1,
+ "pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
+ },
+ "ConflictException":{
+ "type":"structure",
+ "required":["Message"],
+ "members":{
+ "Message":{"shape":"Message"},
+ "ResourceId":{"shape":"ResourceId"},
+ "ResourceType":{"shape":"ResourceType"}
+ },
+ "error":{"httpStatusCode":409},
+ "exception":true
+ },
+ "ContributionMatrix":{
+ "type":"structure",
+ "members":{
+ "DimensionContributionList":{"shape":"DimensionContributionList"}
+ }
+ },
+ "CreateAlertRequest":{
+ "type":"structure",
+ "required":[
+ "AlertName",
+ "AlertSensitivityThreshold",
+ "AnomalyDetectorArn",
+ "Action"
+ ],
+ "members":{
+ "AlertName":{"shape":"AlertName"},
+ "AlertSensitivityThreshold":{"shape":"SensitivityThreshold"},
+ "AlertDescription":{"shape":"AlertDescription"},
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "Action":{"shape":"Action"},
+ "Tags":{"shape":"TagMap"}
+ }
+ },
+ "CreateAlertResponse":{
+ "type":"structure",
+ "members":{
+ "AlertArn":{"shape":"Arn"}
+ }
+ },
+ "CreateAnomalyDetectorRequest":{
+ "type":"structure",
+ "required":[
+ "AnomalyDetectorName",
+ "AnomalyDetectorConfig"
+ ],
+ "members":{
+ "AnomalyDetectorName":{"shape":"AnomalyDetectorName"},
+ "AnomalyDetectorDescription":{"shape":"AnomalyDetectorDescription"},
+ "AnomalyDetectorConfig":{"shape":"AnomalyDetectorConfig"},
+ "KmsKeyArn":{"shape":"KmsKeyArn"},
+ "Tags":{"shape":"TagMap"}
+ }
+ },
+ "CreateAnomalyDetectorResponse":{
+ "type":"structure",
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"}
+ }
+ },
+ "CreateMetricSetRequest":{
+ "type":"structure",
+ "required":[
+ "AnomalyDetectorArn",
+ "MetricSetName",
+ "MetricList",
+ "MetricSource"
+ ],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "MetricSetName":{"shape":"MetricSetName"},
+ "MetricSetDescription":{"shape":"MetricSetDescription"},
+ "MetricList":{"shape":"MetricList"},
+ "Offset":{
+ "shape":"Offset",
+ "box":true
+ },
+ "TimestampColumn":{"shape":"TimestampColumn"},
+ "DimensionList":{"shape":"DimensionList"},
+ "MetricSetFrequency":{"shape":"Frequency"},
+ "MetricSource":{"shape":"MetricSource"},
+ "Timezone":{"shape":"Timezone"},
+ "Tags":{"shape":"TagMap"}
+ }
+ },
+ "CreateMetricSetResponse":{
+ "type":"structure",
+ "members":{
+ "MetricSetArn":{"shape":"Arn"}
+ }
+ },
+ "CsvFormatDescriptor":{
+ "type":"structure",
+ "members":{
+ "FileCompression":{"shape":"CSVFileCompression"},
+ "Charset":{"shape":"Charset"},
+ "ContainsHeader":{"shape":"Boolean"},
+ "Delimiter":{"shape":"Delimiter"},
+ "HeaderList":{"shape":"HeaderList"},
+ "QuoteSymbol":{"shape":"QuoteSymbol"}
+ }
+ },
+ "DataItem":{"type":"string"},
+ "DatabaseHost":{
+ "type":"string",
+ "max":253,
+ "min":1,
+ "pattern":".*\\S.*"
+ },
+ "DatabasePort":{
+ "type":"integer",
+ "max":65535,
+ "min":1
+ },
+ "DateTimeFormat":{
+ "type":"string",
+ "max":63,
+ "pattern":".*\\S.*"
+ },
+ "DeleteAlertRequest":{
+ "type":"structure",
+ "required":["AlertArn"],
+ "members":{
+ "AlertArn":{"shape":"Arn"}
+ }
+ },
+ "DeleteAlertResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "DeleteAnomalyDetectorRequest":{
+ "type":"structure",
+ "required":["AnomalyDetectorArn"],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"}
+ }
+ },
+ "DeleteAnomalyDetectorResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "Delimiter":{
+ "type":"string",
+ "max":1,
+ "pattern":"[^\\r\\n]"
+ },
+ "DescribeAlertRequest":{
+ "type":"structure",
+ "required":["AlertArn"],
+ "members":{
+ "AlertArn":{"shape":"Arn"}
+ }
+ },
+ "DescribeAlertResponse":{
+ "type":"structure",
+ "members":{
+ "Alert":{"shape":"Alert"}
+ }
+ },
+ "DescribeAnomalyDetectionExecutionsRequest":{
+ "type":"structure",
+ "required":["AnomalyDetectorArn"],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "Timestamp":{"shape":"TimestampString"},
+ "MaxResults":{
+ "shape":"MaxResults",
+ "box":true
+ },
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeAnomalyDetectionExecutionsResponse":{
+ "type":"structure",
+ "members":{
+ "ExecutionList":{"shape":"ExecutionList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeAnomalyDetectorRequest":{
+ "type":"structure",
+ "required":["AnomalyDetectorArn"],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"}
+ }
+ },
+ "DescribeAnomalyDetectorResponse":{
+ "type":"structure",
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "AnomalyDetectorName":{"shape":"AnomalyDetectorName"},
+ "AnomalyDetectorDescription":{"shape":"AnomalyDetectorDescription"},
+ "AnomalyDetectorConfig":{"shape":"AnomalyDetectorConfigSummary"},
+ "CreationTime":{"shape":"Timestamp"},
+ "LastModificationTime":{"shape":"Timestamp"},
+ "Status":{"shape":"AnomalyDetectorStatus"},
+ "FailureReason":{"shape":"ErrorMessage"},
+ "KmsKeyArn":{"shape":"KmsKeyArn"}
+ }
+ },
+ "DescribeMetricSetRequest":{
+ "type":"structure",
+ "required":["MetricSetArn"],
+ "members":{
+ "MetricSetArn":{"shape":"Arn"}
+ }
+ },
+ "DescribeMetricSetResponse":{
+ "type":"structure",
+ "members":{
+ "MetricSetArn":{"shape":"Arn"},
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "MetricSetName":{"shape":"MetricSetName"},
+ "MetricSetDescription":{"shape":"MetricSetDescription"},
+ "CreationTime":{"shape":"Timestamp"},
+ "LastModificationTime":{"shape":"Timestamp"},
+ "Offset":{
+ "shape":"Offset",
+ "box":true
+ },
+ "MetricList":{"shape":"MetricList"},
+ "TimestampColumn":{"shape":"TimestampColumn"},
+ "DimensionList":{"shape":"DimensionList"},
+ "MetricSetFrequency":{"shape":"Frequency"},
+ "Timezone":{"shape":"Timezone"},
+ "MetricSource":{"shape":"MetricSource"}
+ }
+ },
+ "DimensionContribution":{
+ "type":"structure",
+ "members":{
+ "DimensionName":{"shape":"ColumnName"},
+ "DimensionValueContributionList":{"shape":"DimensionValueContributionList"}
+ }
+ },
+ "DimensionContributionList":{
+ "type":"list",
+ "member":{"shape":"DimensionContribution"}
+ },
+ "DimensionList":{
+ "type":"list",
+ "member":{"shape":"ColumnName"},
+ "min":1
+ },
+ "DimensionNameValue":{
+ "type":"structure",
+ "required":[
+ "DimensionName",
+ "DimensionValue"
+ ],
+ "members":{
+ "DimensionName":{"shape":"ColumnName"},
+ "DimensionValue":{"shape":"DimensionValue"}
+ }
+ },
+ "DimensionNameValueList":{
+ "type":"list",
+ "member":{"shape":"DimensionNameValue"}
+ },
+ "DimensionValue":{"type":"string"},
+ "DimensionValueContribution":{
+ "type":"structure",
+ "members":{
+ "DimensionValue":{"shape":"DimensionValue"},
+ "ContributionScore":{"shape":"Score"}
+ }
+ },
+ "DimensionValueContributionList":{
+ "type":"list",
+ "member":{"shape":"DimensionValueContribution"}
+ },
+ "ErrorMessage":{
+ "type":"string",
+ "max":256
+ },
+ "ExecutionList":{
+ "type":"list",
+ "member":{"shape":"ExecutionStatus"}
+ },
+ "ExecutionStatus":{
+ "type":"structure",
+ "members":{
+ "Timestamp":{"shape":"TimestampString"},
+ "Status":{"shape":"AnomalyDetectionTaskStatus"},
+ "FailureReason":{"shape":"AnomalyDetectionTaskStatusMessage"}
+ }
+ },
+ "FieldName":{"type":"string"},
+ "FileFormatDescriptor":{
+ "type":"structure",
+ "members":{
+ "CsvFormatDescriptor":{"shape":"CsvFormatDescriptor"},
+ "JsonFormatDescriptor":{"shape":"JsonFormatDescriptor"}
+ }
+ },
+ "FlowName":{
+ "type":"string",
+ "max":256,
+ "pattern":"[a-zA-Z0-9][\\w!@#.-]+"
+ },
+ "Frequency":{
+ "type":"string",
+ "enum":[
+ "P1D",
+ "PT1H",
+ "PT10M",
+ "PT5M"
+ ]
+ },
+ "GetAnomalyGroupRequest":{
+ "type":"structure",
+ "required":[
+ "AnomalyGroupId",
+ "AnomalyDetectorArn"
+ ],
+ "members":{
+ "AnomalyGroupId":{"shape":"UUID"},
+ "AnomalyDetectorArn":{"shape":"Arn"}
+ }
+ },
+ "GetAnomalyGroupResponse":{
+ "type":"structure",
+ "members":{
+ "AnomalyGroup":{"shape":"AnomalyGroup"}
+ }
+ },
+ "GetFeedbackRequest":{
+ "type":"structure",
+ "required":[
+ "AnomalyDetectorArn",
+ "AnomalyGroupTimeSeriesFeedback"
+ ],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "AnomalyGroupTimeSeriesFeedback":{"shape":"AnomalyGroupTimeSeries"},
+ "MaxResults":{
+ "shape":"MaxResults",
+ "box":true
+ },
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "GetFeedbackResponse":{
+ "type":"structure",
+ "members":{
+ "AnomalyGroupTimeSeriesFeedback":{"shape":"TimeSeriesFeedbackList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "GetSampleDataRequest":{
+ "type":"structure",
+ "members":{
+ "S3SourceConfig":{"shape":"SampleDataS3SourceConfig"}
+ }
+ },
+ "GetSampleDataResponse":{
+ "type":"structure",
+ "members":{
+ "HeaderValues":{"shape":"HeaderValueList"},
+ "SampleRows":{"shape":"SampleRows"}
+ }
+ },
+ "HeaderList":{
+ "type":"list",
+ "member":{"shape":"ColumnName"}
+ },
+ "HeaderValue":{"type":"string"},
+ "HeaderValueList":{
+ "type":"list",
+ "member":{"shape":"HeaderValue"}
+ },
+ "HistoricalDataPath":{
+ "type":"string",
+ "max":1024,
+ "pattern":"^s3://[a-z0-9].+$"
+ },
+ "HistoricalDataPathList":{
+ "type":"list",
+ "member":{"shape":"HistoricalDataPath"},
+ "max":1,
+ "min":1
+ },
+ "Integer":{"type":"integer"},
+ "InternalServerException":{
+ "type":"structure",
+ "required":["Message"],
+ "members":{
+ "Message":{"shape":"Message"}
+ },
+ "error":{"httpStatusCode":500},
+ "exception":true,
+ "fault":true
+ },
+ "ItemizedMetricStats":{
+ "type":"structure",
+ "members":{
+ "MetricName":{"shape":"ColumnName"},
+ "OccurrenceCount":{"shape":"Integer"}
+ }
+ },
+ "ItemizedMetricStatsList":{
+ "type":"list",
+ "member":{"shape":"ItemizedMetricStats"}
+ },
+ "JsonFileCompression":{
+ "type":"string",
+ "enum":[
+ "NONE",
+ "GZIP"
+ ]
+ },
+ "JsonFormatDescriptor":{
+ "type":"structure",
+ "members":{
+ "FileCompression":{"shape":"JsonFileCompression"},
+ "Charset":{"shape":"Charset"}
+ }
+ },
+ "KmsKeyArn":{
+ "type":"string",
+ "max":2048,
+ "min":20,
+ "pattern":"arn:aws.*:kms:.*:[0-9]{12}:key/.*"
+ },
+ "LambdaConfiguration":{
+ "type":"structure",
+ "required":[
+ "RoleArn",
+ "LambdaArn"
+ ],
+ "members":{
+ "RoleArn":{"shape":"Arn"},
+ "LambdaArn":{"shape":"Arn"}
+ }
+ },
+ "ListAlertsRequest":{
+ "type":"structure",
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{
+ "shape":"MaxResults",
+ "box":true
+ }
+ }
+ },
+ "ListAlertsResponse":{
+ "type":"structure",
+ "members":{
+ "AlertSummaryList":{"shape":"AlertSummaryList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "ListAnomalyDetectorsRequest":{
+ "type":"structure",
+ "members":{
+ "MaxResults":{
+ "shape":"MaxResults",
+ "box":true
+ },
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "ListAnomalyDetectorsResponse":{
+ "type":"structure",
+ "members":{
+ "AnomalyDetectorSummaryList":{"shape":"AnomalyDetectorSummaryList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "ListAnomalyGroupSummariesRequest":{
+ "type":"structure",
+ "required":[
+ "AnomalyDetectorArn",
+ "SensitivityThreshold"
+ ],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "SensitivityThreshold":{"shape":"SensitivityThreshold"},
+ "MaxResults":{
+ "shape":"MaxResults",
+ "box":true
+ },
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "ListAnomalyGroupSummariesResponse":{
+ "type":"structure",
+ "members":{
+ "AnomalyGroupSummaryList":{"shape":"AnomalyGroupSummaryList"},
+ "AnomalyGroupStatistics":{"shape":"AnomalyGroupStatistics"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "ListAnomalyGroupTimeSeriesRequest":{
+ "type":"structure",
+ "required":[
+ "AnomalyDetectorArn",
+ "AnomalyGroupId",
+ "MetricName"
+ ],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "AnomalyGroupId":{"shape":"UUID"},
+ "MetricName":{"shape":"MetricName"},
+ "MaxResults":{
+ "shape":"MaxResults",
+ "box":true
+ },
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "ListAnomalyGroupTimeSeriesResponse":{
+ "type":"structure",
+ "members":{
+ "AnomalyGroupId":{"shape":"UUID"},
+ "MetricName":{"shape":"MetricName"},
+ "TimestampList":{"shape":"TimestampList"},
+ "NextToken":{"shape":"NextToken"},
+ "TimeSeriesList":{"shape":"TimeSeriesList"}
+ }
+ },
+ "ListMetricSetsRequest":{
+ "type":"structure",
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "MaxResults":{
+ "shape":"MaxResults",
+ "box":true
+ },
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "ListMetricSetsResponse":{
+ "type":"structure",
+ "members":{
+ "MetricSetSummaryList":{"shape":"MetricSetSummaryList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "ListTagsForResourceRequest":{
+ "type":"structure",
+ "required":["ResourceArn"],
+ "members":{
+ "ResourceArn":{
+ "shape":"Arn",
+ "location":"uri",
+ "locationName":"resourceArn"
+ }
+ }
+ },
+ "ListTagsForResourceResponse":{
+ "type":"structure",
+ "members":{
+ "Tags":{
+ "shape":"TagMap",
+ "locationName":"Tags"
+ }
+ }
+ },
+ "MaxResults":{
+ "type":"integer",
+ "max":100,
+ "min":1
+ },
+ "Message":{"type":"string"},
+ "Metric":{
+ "type":"structure",
+ "required":[
+ "MetricName",
+ "AggregationFunction"
+ ],
+ "members":{
+ "MetricName":{"shape":"ColumnName"},
+ "AggregationFunction":{"shape":"AggregationFunction"},
+ "Namespace":{"shape":"Namespace"}
+ }
+ },
+ "MetricLevelImpact":{
+ "type":"structure",
+ "members":{
+ "MetricName":{"shape":"MetricName"},
+ "NumTimeSeries":{"shape":"Integer"},
+ "ContributionMatrix":{"shape":"ContributionMatrix"}
+ }
+ },
+ "MetricLevelImpactList":{
+ "type":"list",
+ "member":{"shape":"MetricLevelImpact"}
+ },
+ "MetricList":{
+ "type":"list",
+ "member":{"shape":"Metric"},
+ "min":1
+ },
+ "MetricName":{
+ "type":"string",
+ "max":256,
+ "pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
+ },
+ "MetricSetDescription":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":".*\\S.*"
+ },
+ "MetricSetName":{
+ "type":"string",
+ "max":63,
+ "min":1,
+ "pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
+ },
+ "MetricSetSummary":{
+ "type":"structure",
+ "members":{
+ "MetricSetArn":{"shape":"Arn"},
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "MetricSetDescription":{"shape":"MetricSetDescription"},
+ "MetricSetName":{"shape":"MetricSetName"},
+ "CreationTime":{"shape":"Timestamp"},
+ "LastModificationTime":{"shape":"Timestamp"},
+ "Tags":{"shape":"TagMap"}
+ }
+ },
+ "MetricSetSummaryList":{
+ "type":"list",
+ "member":{"shape":"MetricSetSummary"}
+ },
+ "MetricSource":{
+ "type":"structure",
+ "members":{
+ "S3SourceConfig":{"shape":"S3SourceConfig"},
+ "AppFlowConfig":{"shape":"AppFlowConfig"},
+ "CloudWatchConfig":{"shape":"CloudWatchConfig"},
+ "RDSSourceConfig":{"shape":"RDSSourceConfig"},
+ "RedshiftSourceConfig":{"shape":"RedshiftSourceConfig"}
+ }
+ },
+ "MetricValue":{"type":"double"},
+ "MetricValueList":{
+ "type":"list",
+ "member":{"shape":"MetricValue"}
+ },
+ "Namespace":{
+ "type":"string",
+ "max":255,
+ "min":1,
+ "pattern":"[^:].*"
+ },
+ "NextToken":{
+ "type":"string",
+ "max":3000,
+ "min":1,
+ "pattern":".*\\S.*"
+ },
+ "Offset":{
+ "type":"integer",
+ "max":432000,
+ "min":0
+ },
+ "PoirotSecretManagerArn":{
+ "type":"string",
+ "max":256,
+ "pattern":"arn:([a-z\\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+"
+ },
+ "PutFeedbackRequest":{
+ "type":"structure",
+ "required":[
+ "AnomalyDetectorArn",
+ "AnomalyGroupTimeSeriesFeedback"
+ ],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "AnomalyGroupTimeSeriesFeedback":{"shape":"AnomalyGroupTimeSeriesFeedback"}
+ }
+ },
+ "PutFeedbackResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "QuotaCode":{"type":"string"},
+ "QuoteSymbol":{
+ "type":"string",
+ "max":1,
+ "pattern":"[^\\r\\n]|^$"
+ },
+ "RDSDatabaseIdentifier":{
+ "type":"string",
+ "max":63,
+ "min":1,
+ "pattern":"^[a-zA-Z](?!.*--)(?!.*-$)[0-9a-zA-Z\\-]*$"
+ },
+ "RDSDatabaseName":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"[a-zA-Z0-9_]+"
+ },
+ "RDSSourceConfig":{
+ "type":"structure",
+ "required":[
+ "DBInstanceIdentifier",
+ "DatabaseHost",
+ "DatabasePort",
+ "SecretManagerArn",
+ "DatabaseName",
+ "TableName",
+ "RoleArn",
+ "VpcConfiguration"
+ ],
+ "members":{
+ "DBInstanceIdentifier":{"shape":"RDSDatabaseIdentifier"},
+ "DatabaseHost":{"shape":"DatabaseHost"},
+ "DatabasePort":{
+ "shape":"DatabasePort",
+ "box":true
+ },
+ "SecretManagerArn":{"shape":"PoirotSecretManagerArn"},
+ "DatabaseName":{"shape":"RDSDatabaseName"},
+ "TableName":{"shape":"TableName"},
+ "RoleArn":{"shape":"Arn"},
+ "VpcConfiguration":{"shape":"VpcConfiguration"}
+ }
+ },
+ "RedshiftClusterIdentifier":{
+ "type":"string",
+ "max":63,
+ "min":1,
+ "pattern":"^[a-z](?!.*--)(?!.*-$)[0-9a-z\\-]*$"
+ },
+ "RedshiftDatabaseName":{
+ "type":"string",
+ "max":100,
+ "min":1,
+ "pattern":"[a-z0-9]+"
+ },
+ "RedshiftSourceConfig":{
+ "type":"structure",
+ "required":[
+ "ClusterIdentifier",
+ "DatabaseHost",
+ "DatabasePort",
+ "SecretManagerArn",
+ "DatabaseName",
+ "TableName",
+ "RoleArn",
+ "VpcConfiguration"
+ ],
+ "members":{
+ "ClusterIdentifier":{"shape":"RedshiftClusterIdentifier"},
+ "DatabaseHost":{"shape":"DatabaseHost"},
+ "DatabasePort":{
+ "shape":"DatabasePort",
+ "box":true
+ },
+ "SecretManagerArn":{"shape":"PoirotSecretManagerArn"},
+ "DatabaseName":{"shape":"RedshiftDatabaseName"},
+ "TableName":{"shape":"TableName"},
+ "RoleArn":{"shape":"Arn"},
+ "VpcConfiguration":{"shape":"VpcConfiguration"}
+ }
+ },
+ "ResourceId":{"type":"string"},
+ "ResourceNotFoundException":{
+ "type":"structure",
+ "required":["Message"],
+ "members":{
+ "Message":{"shape":"Message"},
+ "ResourceId":{"shape":"ResourceId"},
+ "ResourceType":{"shape":"ResourceType"}
+ },
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "ResourceType":{"type":"string"},
+ "S3SourceConfig":{
+ "type":"structure",
+ "required":["RoleArn"],
+ "members":{
+ "RoleArn":{"shape":"Arn"},
+ "TemplatedPathList":{"shape":"TemplatedPathList"},
+ "HistoricalDataPathList":{"shape":"HistoricalDataPathList"},
+ "FileFormatDescriptor":{"shape":"FileFormatDescriptor"}
+ }
+ },
+ "SNSConfiguration":{
+ "type":"structure",
+ "required":[
+ "RoleArn",
+ "SnsTopicArn"
+ ],
+ "members":{
+ "RoleArn":{"shape":"Arn"},
+ "SnsTopicArn":{"shape":"Arn"}
+ }
+ },
+ "SampleDataS3SourceConfig":{
+ "type":"structure",
+ "required":[
+ "RoleArn",
+ "FileFormatDescriptor"
+ ],
+ "members":{
+ "RoleArn":{"shape":"Arn"},
+ "TemplatedPathList":{"shape":"TemplatedPathList"},
+ "HistoricalDataPathList":{"shape":"HistoricalDataPathList"},
+ "FileFormatDescriptor":{"shape":"FileFormatDescriptor"}
+ }
+ },
+ "SampleRow":{
+ "type":"list",
+ "member":{"shape":"DataItem"}
+ },
+ "SampleRows":{
+ "type":"list",
+ "member":{"shape":"SampleRow"}
+ },
+ "Score":{
+ "type":"double",
+ "max":100.0,
+ "min":0.0
+ },
+ "SecurityGroupId":{
+ "type":"string",
+ "max":255,
+ "min":1,
+ "pattern":"[-0-9a-zA-Z]+"
+ },
+ "SecurityGroupIdList":{
+ "type":"list",
+ "member":{"shape":"SecurityGroupId"}
+ },
+ "SensitivityThreshold":{
+ "type":"integer",
+ "max":100,
+ "min":0
+ },
+ "ServiceCode":{"type":"string"},
+ "ServiceQuotaExceededException":{
+ "type":"structure",
+ "required":["Message"],
+ "members":{
+ "Message":{"shape":"Message"},
+ "ResourceId":{"shape":"ResourceId"},
+ "ResourceType":{"shape":"ResourceType"},
+ "QuotaCode":{"shape":"QuotaCode"},
+ "ServiceCode":{"shape":"ServiceCode"}
+ },
+ "error":{"httpStatusCode":402},
+ "exception":true
+ },
+ "SubnetId":{
+ "type":"string",
+ "max":255,
+ "pattern":"[\\-0-9a-zA-Z]+"
+ },
+ "SubnetIdList":{
+ "type":"list",
+ "member":{"shape":"SubnetId"}
+ },
+ "TableName":{
+ "type":"string",
+ "max":100,
+ "min":1,
+ "pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"
+ },
+ "TagKey":{
+ "type":"string",
+ "max":128,
+ "min":1
+ },
+ "TagKeyList":{
+ "type":"list",
+ "member":{"shape":"TagKey"},
+ "max":50,
+ "min":1
+ },
+ "TagMap":{
+ "type":"map",
+ "key":{"shape":"TagKey"},
+ "value":{"shape":"TagValue"},
+ "max":50,
+ "min":1
+ },
+ "TagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "ResourceArn",
+ "Tags"
+ ],
+ "members":{
+ "ResourceArn":{
+ "shape":"Arn",
+ "location":"uri",
+ "locationName":"resourceArn"
+ },
+ "Tags":{
+ "shape":"TagMap",
+ "locationName":"tags"
+ }
+ }
+ },
+ "TagResourceResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "TagValue":{
+ "type":"string",
+ "max":256
+ },
+ "TemplatedPath":{
+ "type":"string",
+ "max":1024,
+ "pattern":"^s3://[a-zA-Z0-9_\\-\\/ {}=]+$"
+ },
+ "TemplatedPathList":{
+ "type":"list",
+ "member":{"shape":"TemplatedPath"},
+ "max":1,
+ "min":1
+ },
+ "TimeSeries":{
+ "type":"structure",
+ "required":[
+ "TimeSeriesId",
+ "DimensionList",
+ "MetricValueList"
+ ],
+ "members":{
+ "TimeSeriesId":{"shape":"TimeSeriesId"},
+ "DimensionList":{"shape":"DimensionNameValueList"},
+ "MetricValueList":{"shape":"MetricValueList"}
+ }
+ },
+ "TimeSeriesFeedback":{
+ "type":"structure",
+ "members":{
+ "TimeSeriesId":{"shape":"TimeSeriesId"},
+ "IsAnomaly":{"shape":"Boolean"}
+ }
+ },
+ "TimeSeriesFeedbackList":{
+ "type":"list",
+ "member":{"shape":"TimeSeriesFeedback"}
+ },
+ "TimeSeriesId":{
+ "type":"string",
+ "max":520,
+ "pattern":".*\\S.*"
+ },
+ "TimeSeriesList":{
+ "type":"list",
+ "member":{"shape":"TimeSeries"}
+ },
+ "Timestamp":{"type":"timestamp"},
+ "TimestampColumn":{
+ "type":"structure",
+ "members":{
+ "ColumnName":{"shape":"ColumnName"},
+ "ColumnFormat":{"shape":"DateTimeFormat"}
+ }
+ },
+ "TimestampList":{
+ "type":"list",
+ "member":{"shape":"TimestampString"}
+ },
+ "TimestampString":{
+ "type":"string",
+ "max":60,
+ "pattern":"^([12]\\d{3})-(1[0-2]|0[1-9])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)(Z|(\\+|\\-)(0\\d|1[0-2]):([0-5]\\d)(\\[[[:alnum:]\\/\\_]+\\])?)$"
+ },
+ "Timezone":{
+ "type":"string",
+ "max":60,
+ "pattern":".*\\S.*"
+ },
+ "TooManyRequestsException":{
+ "type":"structure",
+ "required":["Message"],
+ "members":{
+ "Message":{"shape":"Message"}
+ },
+ "error":{"httpStatusCode":429},
+ "exception":true
+ },
+ "UUID":{
+ "type":"string",
+ "max":63,
+ "pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
+ },
+ "UntagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "ResourceArn",
+ "TagKeys"
+ ],
+ "members":{
+ "ResourceArn":{
+ "shape":"Arn",
+ "location":"uri",
+ "locationName":"resourceArn"
+ },
+ "TagKeys":{
+ "shape":"TagKeyList",
+ "location":"querystring",
+ "locationName":"tagKeys"
+ }
+ }
+ },
+ "UntagResourceResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "UpdateAnomalyDetectorRequest":{
+ "type":"structure",
+ "required":["AnomalyDetectorArn"],
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"},
+ "KmsKeyArn":{"shape":"KmsKeyArn"},
+ "AnomalyDetectorDescription":{"shape":"AnomalyDetectorDescription"},
+ "AnomalyDetectorConfig":{"shape":"AnomalyDetectorConfig"}
+ }
+ },
+ "UpdateAnomalyDetectorResponse":{
+ "type":"structure",
+ "members":{
+ "AnomalyDetectorArn":{"shape":"Arn"}
+ }
+ },
+ "UpdateMetricSetRequest":{
+ "type":"structure",
+ "required":["MetricSetArn"],
+ "members":{
+ "MetricSetArn":{"shape":"Arn"},
+ "MetricSetDescription":{"shape":"MetricSetDescription"},
+ "MetricList":{"shape":"MetricList"},
+ "Offset":{
+ "shape":"Offset",
+ "box":true
+ },
+ "TimestampColumn":{"shape":"TimestampColumn"},
+ "DimensionList":{"shape":"DimensionList"},
+ "MetricSetFrequency":{"shape":"Frequency"},
+ "MetricSource":{"shape":"MetricSource"}
+ }
+ },
+ "UpdateMetricSetResponse":{
+ "type":"structure",
+ "members":{
+ "MetricSetArn":{"shape":"Arn"}
+ }
+ },
+ "ValidationException":{
+ "type":"structure",
+ "required":["Message"],
+ "members":{
+ "Message":{"shape":"Message"},
+ "Reason":{"shape":"ValidationExceptionReason"},
+ "Fields":{"shape":"ValidationExceptionFieldList"}
+ },
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "ValidationExceptionField":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Message"
+ ],
+ "members":{
+ "Name":{"shape":"FieldName"},
+ "Message":{"shape":"Message"}
+ }
+ },
+ "ValidationExceptionFieldList":{
+ "type":"list",
+ "member":{"shape":"ValidationExceptionField"}
+ },
+ "ValidationExceptionReason":{
+ "type":"string",
+ "enum":[
+ "UNKNOWN_OPERATION",
+ "CANNOT_PARSE",
+ "FIELD_VALIDATION_FAILED",
+ "OTHER"
+ ]
+ },
+ "VpcConfiguration":{
+ "type":"structure",
+ "required":[
+ "SubnetIdList",
+ "SecurityGroupIdList"
+ ],
+ "members":{
+ "SubnetIdList":{"shape":"SubnetIdList"},
+ "SecurityGroupIdList":{"shape":"SecurityGroupIdList"}
+ }
+ }
+ }
+}
diff --git a/models/apis/lookoutmetrics/2017-07-25/docs-2.json b/models/apis/lookoutmetrics/2017-07-25/docs-2.json
new file mode 100644
index 00000000000..afd551afe2a
--- /dev/null
+++ b/models/apis/lookoutmetrics/2017-07-25/docs-2.json
@@ -0,0 +1,1255 @@
+{
+ "version": "2.0",
+ "service": "This is the Amazon Lookout for Metrics API Reference. For an introduction to the service with tutorials for getting started, visit Amazon Lookout for Metrics Developer Guide.
",
+ "operations": {
+ "ActivateAnomalyDetector": "Activates an anomaly detector.
",
+ "BackTestAnomalyDetector": "Runs a backtest for anomaly detection for the specified resource.
",
+ "CreateAlert": "Creates an alert for an anomaly detector.
",
+ "CreateAnomalyDetector": "Creates an anomaly detector.
",
+ "CreateMetricSet": "Creates a dataset.
",
+ "DeleteAlert": "Deletes an alert.
",
+ "DeleteAnomalyDetector": "Deletes a detector. Deleting an anomaly detector will delete all of its corresponding resources including any configured datasets and alerts.
",
+ "DescribeAlert": "Describes an alert.
",
+ "DescribeAnomalyDetectionExecutions": "Returns information about the status of the specified anomaly detection jobs.
",
+ "DescribeAnomalyDetector": "Describes a detector.
",
+ "DescribeMetricSet": "Describes a dataset.
",
+ "GetAnomalyGroup": "Returns details about a group of anomalous metrics.
",
+ "GetFeedback": "Get feedback for an anomaly group.
",
+ "GetSampleData": "Returns a selection of sample records from an Amazon S3 datasource.
",
+ "ListAlerts": "Lists the alerts attached to a detector.
",
+ "ListAnomalyDetectors": "Lists the detectors in the current AWS Region.
",
+ "ListAnomalyGroupSummaries": "Returns a list of anomaly groups.
",
+ "ListAnomalyGroupTimeSeries": "Gets a list of anomalous metrics for a measure in an anomaly group.
",
+ "ListMetricSets": "Lists the datasets in the current AWS Region.
",
+ "ListTagsForResource": "Gets a list of tags for a detector, dataset, or alert.
",
+ "PutFeedback": "Add feedback for an anomalous metric.
",
+ "TagResource": "Adds tags to a detector, dataset, or alert.
",
+ "UntagResource": "Removes tags from a detector, dataset, or alert.
",
+ "UpdateAnomalyDetector": "Updates a detector. After activation, you can only change a detector's ingestion delay and description.
",
+ "UpdateMetricSet": "Updates a dataset.
"
+ },
+ "shapes": {
+ "AccessDeniedException": {
+ "base": "You do not have sufficient permissions to perform this action.
",
+ "refs": {
+ }
+ },
+ "Action": {
+ "base": "A configuration that specifies the action to perform when anomalies are detected.
",
+ "refs": {
+ "Alert$Action": "Action that will be triggered when there is an alert.
",
+ "CreateAlertRequest$Action": "Action that will be triggered when there is an alert.
"
+ }
+ },
+ "ActivateAnomalyDetectorRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ActivateAnomalyDetectorResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "AggregationFunction": {
+ "base": null,
+ "refs": {
+ "Metric$AggregationFunction": "The function with which the metric is calculated.
"
+ }
+ },
+ "Alert": {
+ "base": "A configuration for Amazon SNS-integrated notifications.
",
+ "refs": {
+ "DescribeAlertResponse$Alert": "Contains information about an alert.
"
+ }
+ },
+ "AlertDescription": {
+ "base": null,
+ "refs": {
+ "Alert$AlertDescription": "A description of the alert.
",
+ "CreateAlertRequest$AlertDescription": "A description of the alert.
"
+ }
+ },
+ "AlertName": {
+ "base": null,
+ "refs": {
+ "Alert$AlertName": "The name of the alert.
",
+ "AlertSummary$AlertName": "The name of the alert.
",
+ "CreateAlertRequest$AlertName": "The name of the alert.
"
+ }
+ },
+ "AlertStatus": {
+ "base": null,
+ "refs": {
+ "Alert$AlertStatus": "The status of the alert.
",
+ "AlertSummary$AlertStatus": "The status of the alert.
"
+ }
+ },
+ "AlertSummary": {
+ "base": "Provides a summary of an alert's configuration.
",
+ "refs": {
+ "AlertSummaryList$member": null
+ }
+ },
+ "AlertSummaryList": {
+ "base": null,
+ "refs": {
+ "ListAlertsResponse$AlertSummaryList": "Contains information about an alert.
"
+ }
+ },
+ "AlertType": {
+ "base": null,
+ "refs": {
+ "Alert$AlertType": "The type of the alert.
",
+ "AlertSummary$AlertType": "The type of the alert.
"
+ }
+ },
+ "AnomalyDetectionTaskStatus": {
+ "base": null,
+ "refs": {
+ "ExecutionStatus$Status": "The run's status.
"
+ }
+ },
+ "AnomalyDetectionTaskStatusMessage": {
+ "base": null,
+ "refs": {
+ "ExecutionStatus$FailureReason": "The reason that the run failed, if applicable.
"
+ }
+ },
+ "AnomalyDetectorConfig": {
+ "base": "Contains information about a detector's configuration.
",
+ "refs": {
+ "CreateAnomalyDetectorRequest$AnomalyDetectorConfig": "Contains information about the configuration of the anomaly detector.
",
+ "UpdateAnomalyDetectorRequest$AnomalyDetectorConfig": "Contains information about the configuration to which the detector will be updated.
"
+ }
+ },
+ "AnomalyDetectorConfigSummary": {
+ "base": "Contains information about a detector's configuration.
",
+ "refs": {
+ "DescribeAnomalyDetectorResponse$AnomalyDetectorConfig": "Contains information about the detector's configuration.
"
+ }
+ },
+ "AnomalyDetectorDescription": {
+ "base": null,
+ "refs": {
+ "AnomalyDetectorSummary$AnomalyDetectorDescription": "A description of the detector.
",
+ "CreateAnomalyDetectorRequest$AnomalyDetectorDescription": "A description of the detector.
",
+ "DescribeAnomalyDetectorResponse$AnomalyDetectorDescription": "A description of the detector.
",
+ "UpdateAnomalyDetectorRequest$AnomalyDetectorDescription": "The updated detector description.
"
+ }
+ },
+ "AnomalyDetectorName": {
+ "base": null,
+ "refs": {
+ "AnomalyDetectorSummary$AnomalyDetectorName": "The name of the detector.
",
+ "CreateAnomalyDetectorRequest$AnomalyDetectorName": "The name of the detector.
",
+ "DescribeAnomalyDetectorResponse$AnomalyDetectorName": "The name of the detector.
"
+ }
+ },
+ "AnomalyDetectorStatus": {
+ "base": null,
+ "refs": {
+ "AnomalyDetectorSummary$Status": "The status of detector.
",
+ "DescribeAnomalyDetectorResponse$Status": "The status of the detector.
"
+ }
+ },
+ "AnomalyDetectorSummary": {
+ "base": "Contains information about an an anomaly detector.
",
+ "refs": {
+ "AnomalyDetectorSummaryList$member": null
+ }
+ },
+ "AnomalyDetectorSummaryList": {
+ "base": null,
+ "refs": {
+ "ListAnomalyDetectorsResponse$AnomalyDetectorSummaryList": "A list of anomaly detectors in the account in the current region.
"
+ }
+ },
+ "AnomalyGroup": {
+ "base": "A group of anomalous metrics
",
+ "refs": {
+ "GetAnomalyGroupResponse$AnomalyGroup": "Details about the anomaly group.
"
+ }
+ },
+ "AnomalyGroupStatistics": {
+ "base": "Aggregated statistics for a group of anomalous metrics.
",
+ "refs": {
+ "ListAnomalyGroupSummariesResponse$AnomalyGroupStatistics": "Aggregated details about the anomaly groups.
"
+ }
+ },
+ "AnomalyGroupSummary": {
+ "base": "Details about a group of anomalous metrics.
",
+ "refs": {
+ "AnomalyGroupSummaryList$member": null
+ }
+ },
+ "AnomalyGroupSummaryList": {
+ "base": null,
+ "refs": {
+ "ListAnomalyGroupSummariesResponse$AnomalyGroupSummaryList": "A list of anomaly group summaries.
"
+ }
+ },
+ "AnomalyGroupTimeSeries": {
+ "base": "An anomalous metric in an anomaly group.
",
+ "refs": {
+ "GetFeedbackRequest$AnomalyGroupTimeSeriesFeedback": "The anomalous metric and group ID.
"
+ }
+ },
+ "AnomalyGroupTimeSeriesFeedback": {
+ "base": "Feedback for an anomalous metric.
",
+ "refs": {
+ "PutFeedbackRequest$AnomalyGroupTimeSeriesFeedback": "Feedback for an anomalous metric.
"
+ }
+ },
+ "AppFlowConfig": {
+ "base": "Details about an Amazon AppFlow flow datasource.
",
+ "refs": {
+ "MetricSource$AppFlowConfig": "An object containing information about the AppFlow configuration.
"
+ }
+ },
+ "Arn": {
+ "base": null,
+ "refs": {
+ "ActivateAnomalyDetectorRequest$AnomalyDetectorArn": "The ARN of the anomaly detector.
",
+ "Alert$AlertArn": "The ARN of the alert.
",
+ "Alert$AnomalyDetectorArn": "The ARN of the detector to which the alert is attached.
",
+ "AlertSummary$AlertArn": "The ARN of the alert.
",
+ "AlertSummary$AnomalyDetectorArn": "The ARN of the detector to which the alert is attached.
",
+ "AnomalyDetectorSummary$AnomalyDetectorArn": "The ARN of the detector.
",
+ "AppFlowConfig$RoleArn": "An IAM role that gives Amazon Lookout for Metrics permission to access the flow.
",
+ "BackTestAnomalyDetectorRequest$AnomalyDetectorArn": "The Amazon Resource Name (ARN) of the anomaly detector.
",
+ "CloudWatchConfig$RoleArn": "An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.
",
+ "CreateAlertRequest$AnomalyDetectorArn": "The ARN of the detector to which the alert is attached.
",
+ "CreateAlertResponse$AlertArn": "The ARN of the alert.
",
+ "CreateAnomalyDetectorResponse$AnomalyDetectorArn": "The ARN of the detector.
",
+ "CreateMetricSetRequest$AnomalyDetectorArn": "The ARN of the anomaly detector that will use the dataset.
",
+ "CreateMetricSetResponse$MetricSetArn": "The ARN of the dataset.
",
+ "DeleteAlertRequest$AlertArn": "The ARN of the alert to delete.
",
+ "DeleteAnomalyDetectorRequest$AnomalyDetectorArn": "The ARN of the detector to delete.
",
+ "DescribeAlertRequest$AlertArn": "The ARN of the alert to describe.
",
+ "DescribeAnomalyDetectionExecutionsRequest$AnomalyDetectorArn": "The Amazon Resource Name (ARN) of the anomaly detector.
",
+ "DescribeAnomalyDetectorRequest$AnomalyDetectorArn": "The ARN of the detector to describe.
",
+ "DescribeAnomalyDetectorResponse$AnomalyDetectorArn": "The ARN of the detector.
",
+ "DescribeMetricSetRequest$MetricSetArn": "The ARN of the dataset.
",
+ "DescribeMetricSetResponse$MetricSetArn": "The ARN of the dataset.
",
+ "DescribeMetricSetResponse$AnomalyDetectorArn": "The ARN of the detector that contains the dataset.
",
+ "GetAnomalyGroupRequest$AnomalyDetectorArn": "The Amazon Resource Name (ARN) of the anomaly detector.
",
+ "GetFeedbackRequest$AnomalyDetectorArn": "The Amazon Resource Name (ARN) of the anomaly detector.
",
+ "LambdaConfiguration$RoleArn": "The ARN of an IAM role that has permission to invoke the Lambda function.
",
+ "LambdaConfiguration$LambdaArn": "The ARN of the Lambda function.
",
+ "ListAlertsRequest$AnomalyDetectorArn": "The ARN of the alert's detector.
",
+ "ListAnomalyGroupSummariesRequest$AnomalyDetectorArn": "The Amazon Resource Name (ARN) of the anomaly detector.
",
+ "ListAnomalyGroupTimeSeriesRequest$AnomalyDetectorArn": "The Amazon Resource Name (ARN) of the anomaly detector.
",
+ "ListMetricSetsRequest$AnomalyDetectorArn": "The ARN of the anomaly detector containing the metrics sets to list.
",
+ "ListTagsForResourceRequest$ResourceArn": "The resource's Amazon Resource Name (ARN).
",
+ "MetricSetSummary$MetricSetArn": "The ARN of the dataset.
",
+ "MetricSetSummary$AnomalyDetectorArn": "The ARN of the detector to which the dataset belongs.
",
+ "PutFeedbackRequest$AnomalyDetectorArn": "The Amazon Resource Name (ARN) of the anomaly detector.
",
+ "RDSSourceConfig$RoleArn": "The Amazon Resource Name (ARN) of the role.
",
+ "RedshiftSourceConfig$RoleArn": "The Amazon Resource Name (ARN) of the role providing access to the database.
",
+ "S3SourceConfig$RoleArn": "The ARN of an IAM role that has read and write access permissions to the source S3 bucket.
",
+ "SNSConfiguration$RoleArn": "THe ARN of the IAM role that has access to the target SNS topic.
",
+ "SNSConfiguration$SnsTopicArn": "The ARN of the target SNS topic.
",
+ "SampleDataS3SourceConfig$RoleArn": "The Amazon Resource Name (ARN) of the role.
",
+ "TagResourceRequest$ResourceArn": "The resource's Amazon Resource Name (ARN).
",
+ "UntagResourceRequest$ResourceArn": "The resource's Amazon Resource Name (ARN).
",
+ "UpdateAnomalyDetectorRequest$AnomalyDetectorArn": "The ARN of the detector to update.
",
+ "UpdateAnomalyDetectorResponse$AnomalyDetectorArn": "The ARN of the updated detector.
",
+ "UpdateMetricSetRequest$MetricSetArn": "The ARN of the dataset to update.
",
+ "UpdateMetricSetResponse$MetricSetArn": "The ARN of the dataset.
"
+ }
+ },
+ "BackTestAnomalyDetectorRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "BackTestAnomalyDetectorResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "Boolean": {
+ "base": null,
+ "refs": {
+ "AnomalyGroupTimeSeriesFeedback$IsAnomaly": "Feedback on whether the metric is a legitimate anomaly.
",
+ "CsvFormatDescriptor$ContainsHeader": "Whether or not the source CSV file contains a header.
",
+ "TimeSeriesFeedback$IsAnomaly": "Feedback on whether the metric is a legitimate anomaly.
"
+ }
+ },
+ "CSVFileCompression": {
+ "base": null,
+ "refs": {
+ "CsvFormatDescriptor$FileCompression": "The level of compression of the source CSV file.
"
+ }
+ },
+ "Charset": {
+ "base": null,
+ "refs": {
+ "CsvFormatDescriptor$Charset": "The character set in which the source CSV file is written.
",
+ "JsonFormatDescriptor$Charset": "The character set in which the source JSON file is written.
"
+ }
+ },
+ "CloudWatchConfig": {
+ "base": "Details about an Amazon CloudWatch datasource.
",
+ "refs": {
+ "MetricSource$CloudWatchConfig": "An object containing information about the Amazon CloudWatch monitoring configuration.
"
+ }
+ },
+ "ColumnName": {
+ "base": null,
+ "refs": {
+ "DimensionContribution$DimensionName": "The name of the dimension.
",
+ "DimensionList$member": null,
+ "DimensionNameValue$DimensionName": "The name of the dimension.
",
+ "HeaderList$member": null,
+ "ItemizedMetricStats$MetricName": "The name of the measure.
",
+ "Metric$MetricName": "The name of the metric.
",
+ "TimestampColumn$ColumnName": "The name of the timestamp column.
"
+ }
+ },
+ "ConflictException": {
+ "base": "There was a conflict processing the request. Try your request again.
",
+ "refs": {
+ }
+ },
+ "ContributionMatrix": {
+ "base": "Details about dimensions that contributed to an anomaly.
",
+ "refs": {
+ "MetricLevelImpact$ContributionMatrix": "Details about the dimensions that contributed to the anomaly.
"
+ }
+ },
+ "CreateAlertRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateAlertResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateAnomalyDetectorRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateAnomalyDetectorResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateMetricSetRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateMetricSetResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CsvFormatDescriptor": {
+ "base": "Contains information about how a source CSV data file should be analyzed.
",
+ "refs": {
+ "FileFormatDescriptor$CsvFormatDescriptor": "Contains information about how a source CSV data file should be analyzed.
"
+ }
+ },
+ "DataItem": {
+ "base": null,
+ "refs": {
+ "SampleRow$member": null
+ }
+ },
+ "DatabaseHost": {
+ "base": null,
+ "refs": {
+ "RDSSourceConfig$DatabaseHost": "The host name of the database.
",
+ "RedshiftSourceConfig$DatabaseHost": "The name of the database host.
"
+ }
+ },
+ "DatabasePort": {
+ "base": null,
+ "refs": {
+ "RDSSourceConfig$DatabasePort": "The port number where the database can be accessed.
",
+ "RedshiftSourceConfig$DatabasePort": "The port number where the database can be accessed.
"
+ }
+ },
+ "DateTimeFormat": {
+ "base": null,
+ "refs": {
+ "TimestampColumn$ColumnFormat": "The format of the timestamp column.
"
+ }
+ },
+ "DeleteAlertRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteAlertResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteAnomalyDetectorRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteAnomalyDetectorResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "Delimiter": {
+ "base": null,
+ "refs": {
+ "CsvFormatDescriptor$Delimiter": "The character used to delimit the source CSV file.
"
+ }
+ },
+ "DescribeAlertRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeAlertResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeAnomalyDetectionExecutionsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeAnomalyDetectionExecutionsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeAnomalyDetectorRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeAnomalyDetectorResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeMetricSetRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeMetricSetResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DimensionContribution": {
+ "base": "Details about a dimension that contributed to an anomaly.
",
+ "refs": {
+ "DimensionContributionList$member": null
+ }
+ },
+ "DimensionContributionList": {
+ "base": null,
+ "refs": {
+ "ContributionMatrix$DimensionContributionList": "A list of contributing dimensions.
"
+ }
+ },
+ "DimensionList": {
+ "base": null,
+ "refs": {
+ "CreateMetricSetRequest$DimensionList": "A list of the fields you want to treat as dimensions.
",
+ "DescribeMetricSetResponse$DimensionList": "A list of the dimensions chosen for analysis.
",
+ "UpdateMetricSetRequest$DimensionList": "The dimension list.
"
+ }
+ },
+ "DimensionNameValue": {
+ "base": "A dimension name and value.
",
+ "refs": {
+ "DimensionNameValueList$member": null
+ }
+ },
+ "DimensionNameValueList": {
+ "base": null,
+ "refs": {
+ "TimeSeries$DimensionList": "The dimensions of the metric.
"
+ }
+ },
+ "DimensionValue": {
+ "base": null,
+ "refs": {
+ "DimensionNameValue$DimensionValue": "The value of the dimension.
",
+ "DimensionValueContribution$DimensionValue": "The value of the dimension.
"
+ }
+ },
+ "DimensionValueContribution": {
+ "base": "The severity of a value of a dimension that contributed to an anomaly.
",
+ "refs": {
+ "DimensionValueContributionList$member": null
+ }
+ },
+ "DimensionValueContributionList": {
+ "base": null,
+ "refs": {
+ "DimensionContribution$DimensionValueContributionList": "A list of dimension values that contributed to the anomaly.
"
+ }
+ },
+ "ErrorMessage": {
+ "base": null,
+ "refs": {
+ "DescribeAnomalyDetectorResponse$FailureReason": "The reason that the detector failed, if any.
"
+ }
+ },
+ "ExecutionList": {
+ "base": null,
+ "refs": {
+ "DescribeAnomalyDetectionExecutionsResponse$ExecutionList": "A list of detection jobs.
"
+ }
+ },
+ "ExecutionStatus": {
+ "base": "The status of an anomaly detector run.
",
+ "refs": {
+ "ExecutionList$member": null
+ }
+ },
+ "FieldName": {
+ "base": null,
+ "refs": {
+ "ValidationExceptionField$Name": "The name of the field.
"
+ }
+ },
+ "FileFormatDescriptor": {
+ "base": "Contains information about a source file's formatting.
",
+ "refs": {
+ "S3SourceConfig$FileFormatDescriptor": "Contains information about a source file's formatting.
",
+ "SampleDataS3SourceConfig$FileFormatDescriptor": null
+ }
+ },
+ "FlowName": {
+ "base": null,
+ "refs": {
+ "AppFlowConfig$FlowName": "The name of the flow.
"
+ }
+ },
+ "Frequency": {
+ "base": null,
+ "refs": {
+ "AnomalyDetectorConfig$AnomalyDetectorFrequency": "The frequency at which the detector analyzes its source data.
",
+ "AnomalyDetectorConfigSummary$AnomalyDetectorFrequency": "The interval at which the detector analyzes its source data.
",
+ "CreateMetricSetRequest$MetricSetFrequency": "The frequency with which the source data will be analyzed for anomalies.
",
+ "DescribeMetricSetResponse$MetricSetFrequency": "The interval at which the data will be analyzed for anomalies.
",
+ "UpdateMetricSetRequest$MetricSetFrequency": "The dataset's interval.
"
+ }
+ },
+ "GetAnomalyGroupRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetAnomalyGroupResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetFeedbackRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetFeedbackResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetSampleDataRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetSampleDataResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "HeaderList": {
+ "base": null,
+ "refs": {
+ "CsvFormatDescriptor$HeaderList": "A list of the source CSV file's headers, if any.
"
+ }
+ },
+ "HeaderValue": {
+ "base": null,
+ "refs": {
+ "HeaderValueList$member": null
+ }
+ },
+ "HeaderValueList": {
+ "base": null,
+ "refs": {
+ "GetSampleDataResponse$HeaderValues": "A list of header labels for the records.
"
+ }
+ },
+ "HistoricalDataPath": {
+ "base": null,
+ "refs": {
+ "HistoricalDataPathList$member": null
+ }
+ },
+ "HistoricalDataPathList": {
+ "base": null,
+ "refs": {
+ "S3SourceConfig$HistoricalDataPathList": "A list of paths to the historical data files.
",
+ "SampleDataS3SourceConfig$HistoricalDataPathList": "An array of strings containing the historical set of data paths.
"
+ }
+ },
+ "Integer": {
+ "base": null,
+ "refs": {
+ "AnomalyGroupStatistics$TotalCount": "The number of groups found.
",
+ "ItemizedMetricStats$OccurrenceCount": "The number of times that the measure appears.
",
+ "MetricLevelImpact$NumTimeSeries": "The number of anomalous metrics for the measure.
"
+ }
+ },
+ "InternalServerException": {
+ "base": "The request processing has failed because of an unknown error, exception, or failure.
",
+ "refs": {
+ }
+ },
+ "ItemizedMetricStats": {
+ "base": "Aggregated statistics about a measure affected by an anomaly.
",
+ "refs": {
+ "ItemizedMetricStatsList$member": null
+ }
+ },
+ "ItemizedMetricStatsList": {
+ "base": null,
+ "refs": {
+ "AnomalyGroupStatistics$ItemizedMetricStatsList": "Statistics for individual metrics within the group.
"
+ }
+ },
+ "JsonFileCompression": {
+ "base": null,
+ "refs": {
+ "JsonFormatDescriptor$FileCompression": "The level of compression of the source CSV file.
"
+ }
+ },
+ "JsonFormatDescriptor": {
+ "base": "Contains information about how a source JSON data file should be analyzed.
",
+ "refs": {
+ "FileFormatDescriptor$JsonFormatDescriptor": "Contains information about how a source JSON data file should be analyzed.
"
+ }
+ },
+ "KmsKeyArn": {
+ "base": null,
+ "refs": {
+ "CreateAnomalyDetectorRequest$KmsKeyArn": "The ARN of the KMS key to use to encrypt your data.
",
+ "DescribeAnomalyDetectorResponse$KmsKeyArn": "The ARN of the KMS key to use to encrypt your data.
",
+ "UpdateAnomalyDetectorRequest$KmsKeyArn": "The Amazon Resource Name (ARN) of an AWS KMS encryption key.
"
+ }
+ },
+ "LambdaConfiguration": {
+ "base": "Contains information about a Lambda configuration.
",
+ "refs": {
+ "Action$LambdaConfiguration": "A configuration for an AWS Lambda channel.
"
+ }
+ },
+ "ListAlertsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListAlertsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListAnomalyDetectorsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListAnomalyDetectorsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListAnomalyGroupSummariesRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListAnomalyGroupSummariesResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListAnomalyGroupTimeSeriesRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListAnomalyGroupTimeSeriesResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListMetricSetsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListMetricSetsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListTagsForResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListTagsForResourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "MaxResults": {
+ "base": null,
+ "refs": {
+ "DescribeAnomalyDetectionExecutionsRequest$MaxResults": "The number of items to return in the response.
",
+ "GetFeedbackRequest$MaxResults": "The maximum number of results to return.
",
+ "ListAlertsRequest$MaxResults": "The maximum number of results that will be displayed by the request.
",
+ "ListAnomalyDetectorsRequest$MaxResults": "The maximum number of results to return.
",
+ "ListAnomalyGroupSummariesRequest$MaxResults": "The maximum number of results to return.
",
+ "ListAnomalyGroupTimeSeriesRequest$MaxResults": "The maximum number of results to return.
",
+ "ListMetricSetsRequest$MaxResults": "The maximum number of results to return.
"
+ }
+ },
+ "Message": {
+ "base": null,
+ "refs": {
+ "AccessDeniedException$Message": null,
+ "ConflictException$Message": null,
+ "InternalServerException$Message": null,
+ "ResourceNotFoundException$Message": null,
+ "ServiceQuotaExceededException$Message": null,
+ "TooManyRequestsException$Message": null,
+ "ValidationException$Message": null,
+ "ValidationExceptionField$Message": "The message with more information about the validation exception.
"
+ }
+ },
+ "Metric": {
+ "base": "A calculation made by contrasting a measure and a dimension from your source data.
",
+ "refs": {
+ "MetricList$member": null
+ }
+ },
+ "MetricLevelImpact": {
+ "base": "Details about a measure affected by an anomaly.
",
+ "refs": {
+ "MetricLevelImpactList$member": null
+ }
+ },
+ "MetricLevelImpactList": {
+ "base": null,
+ "refs": {
+ "AnomalyGroup$MetricLevelImpactList": "A list of measures affected by the anomaly.
"
+ }
+ },
+ "MetricList": {
+ "base": null,
+ "refs": {
+ "CreateMetricSetRequest$MetricList": "A list of metrics that the dataset will contain.
",
+ "DescribeMetricSetResponse$MetricList": "A list of the metrics defined by the dataset.
",
+ "UpdateMetricSetRequest$MetricList": "The metric list.
"
+ }
+ },
+ "MetricName": {
+ "base": null,
+ "refs": {
+ "AnomalyGroup$PrimaryMetricName": "The name of the primary affected measure for the group.
",
+ "AnomalyGroupSummary$PrimaryMetricName": "The name of the primary affected measure for the group.
",
+ "ListAnomalyGroupTimeSeriesRequest$MetricName": "The name of the measure field.
",
+ "ListAnomalyGroupTimeSeriesResponse$MetricName": "The name of the measure field.
",
+ "MetricLevelImpact$MetricName": "The name of the measure.
"
+ }
+ },
+ "MetricSetDescription": {
+ "base": null,
+ "refs": {
+ "CreateMetricSetRequest$MetricSetDescription": "A description of the dataset you are creating.
",
+ "DescribeMetricSetResponse$MetricSetDescription": "The dataset's description.
",
+ "MetricSetSummary$MetricSetDescription": "The description of the dataset.
",
+ "UpdateMetricSetRequest$MetricSetDescription": "The dataset's description.
"
+ }
+ },
+ "MetricSetName": {
+ "base": null,
+ "refs": {
+ "CreateMetricSetRequest$MetricSetName": "The name of the dataset.
",
+ "DescribeMetricSetResponse$MetricSetName": "The name of the dataset.
",
+ "MetricSetSummary$MetricSetName": "The name of the dataset.
"
+ }
+ },
+ "MetricSetSummary": {
+ "base": "Contains information about a dataset.
",
+ "refs": {
+ "MetricSetSummaryList$member": null
+ }
+ },
+ "MetricSetSummaryList": {
+ "base": null,
+ "refs": {
+ "ListMetricSetsResponse$MetricSetSummaryList": "A list of the datasets in the AWS Region, with configuration details for each.
"
+ }
+ },
+ "MetricSource": {
+ "base": "Contains information about source data used to generate a metric.
",
+ "refs": {
+ "CreateMetricSetRequest$MetricSource": "Contains information about how the source data should be interpreted.
",
+ "DescribeMetricSetResponse$MetricSource": "Contains information about the dataset's source data.
",
+ "UpdateMetricSetRequest$MetricSource": null
+ }
+ },
+ "MetricValue": {
+ "base": null,
+ "refs": {
+ "MetricValueList$member": null
+ }
+ },
+ "MetricValueList": {
+ "base": null,
+ "refs": {
+ "TimeSeries$MetricValueList": "The values for the metric.
"
+ }
+ },
+ "Namespace": {
+ "base": null,
+ "refs": {
+ "Metric$Namespace": "The namespace for the metric.
"
+ }
+ },
+ "NextToken": {
+ "base": null,
+ "refs": {
+ "DescribeAnomalyDetectionExecutionsRequest$NextToken": "Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "DescribeAnomalyDetectionExecutionsResponse$NextToken": "The pagination token that's included if more results are available.
",
+ "GetFeedbackRequest$NextToken": "Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "GetFeedbackResponse$NextToken": "The pagination token that's included if more results are available.
",
+ "ListAlertsRequest$NextToken": "If the result of the previous request is truncated, the response includes a NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
",
+ "ListAlertsResponse$NextToken": "If the response is truncated, the service returns this token. To retrieve the next set of results, use this token in the next request.
",
+ "ListAnomalyDetectorsRequest$NextToken": "If the result of the previous request was truncated, the response includes a NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
",
+ "ListAnomalyDetectorsResponse$NextToken": "If the response is truncated, the service returns this token. To retrieve the next set of results, use the token in the next request.
",
+ "ListAnomalyGroupSummariesRequest$NextToken": "Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "ListAnomalyGroupSummariesResponse$NextToken": "The pagination token that's included if more results are available.
",
+ "ListAnomalyGroupTimeSeriesRequest$NextToken": "Specify the pagination token that's returned by a previous request to retrieve the next page of results.
",
+ "ListAnomalyGroupTimeSeriesResponse$NextToken": "The pagination token that's included if more results are available.
",
+ "ListMetricSetsRequest$NextToken": "If the result of the previous request was truncated, the response includes a NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
",
+ "ListMetricSetsResponse$NextToken": "If the response is truncated, the list call returns this token. To retrieve the next set of results, use the token in the next list request.
"
+ }
+ },
+ "Offset": {
+ "base": null,
+ "refs": {
+ "CreateMetricSetRequest$Offset": "After an interval ends, the amount of time that the detector waits before importing data.
",
+ "DescribeMetricSetResponse$Offset": "The offset for the dataset.
",
+ "UpdateMetricSetRequest$Offset": "After an interval ends, the amount of time that the detector waits before importing data.
"
+ }
+ },
+ "PoirotSecretManagerArn": {
+ "base": null,
+ "refs": {
+ "RDSSourceConfig$SecretManagerArn": "The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
",
+ "RedshiftSourceConfig$SecretManagerArn": "The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
"
+ }
+ },
+ "PutFeedbackRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutFeedbackResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "QuotaCode": {
+ "base": null,
+ "refs": {
+ "ServiceQuotaExceededException$QuotaCode": "The quota code.
"
+ }
+ },
+ "QuoteSymbol": {
+ "base": null,
+ "refs": {
+ "CsvFormatDescriptor$QuoteSymbol": "The character used as a quote character.
"
+ }
+ },
+ "RDSDatabaseIdentifier": {
+ "base": null,
+ "refs": {
+ "RDSSourceConfig$DBInstanceIdentifier": "A string identifying the database instance.
"
+ }
+ },
+ "RDSDatabaseName": {
+ "base": null,
+ "refs": {
+ "RDSSourceConfig$DatabaseName": "The name of the RDS database.
"
+ }
+ },
+ "RDSSourceConfig": {
+ "base": "Contains information about the Amazon Relational Database Service (RDS) configuration.
",
+ "refs": {
+ "MetricSource$RDSSourceConfig": "An object containing information about the Amazon Relational Database Service (RDS) configuration.
"
+ }
+ },
+ "RedshiftClusterIdentifier": {
+ "base": null,
+ "refs": {
+ "RedshiftSourceConfig$ClusterIdentifier": "A string identifying the Redshift cluster.
"
+ }
+ },
+ "RedshiftDatabaseName": {
+ "base": null,
+ "refs": {
+ "RedshiftSourceConfig$DatabaseName": "The Redshift database name.
"
+ }
+ },
+ "RedshiftSourceConfig": {
+ "base": "Provides information about the Amazon Redshift database configuration.
",
+ "refs": {
+ "MetricSource$RedshiftSourceConfig": "An object containing information about the Amazon Redshift database configuration.
"
+ }
+ },
+ "ResourceId": {
+ "base": null,
+ "refs": {
+ "ConflictException$ResourceId": "The ID of the resource.
",
+ "ResourceNotFoundException$ResourceId": "The ID of the resource.
",
+ "ServiceQuotaExceededException$ResourceId": "The ID of the resource.
"
+ }
+ },
+ "ResourceNotFoundException": {
+ "base": "The specified resource cannot be found. Check the ARN of the resource and try again.
",
+ "refs": {
+ }
+ },
+ "ResourceType": {
+ "base": null,
+ "refs": {
+ "ConflictException$ResourceType": "The type of the resource.
",
+ "ResourceNotFoundException$ResourceType": "The type of the resource.
",
+ "ServiceQuotaExceededException$ResourceType": "The type of the resource.
"
+ }
+ },
+ "S3SourceConfig": {
+ "base": "Contains information about the configuration of the S3 bucket that contains source files.
",
+ "refs": {
+ "MetricSource$S3SourceConfig": null
+ }
+ },
+ "SNSConfiguration": {
+ "base": "Contains information about the SNS topic to which you want to send your alerts and the IAM role that has access to that topic.
",
+ "refs": {
+ "Action$SNSConfiguration": "A configuration for an Amazon SNS channel.
"
+ }
+ },
+ "SampleDataS3SourceConfig": {
+ "base": "Contains information about the source configuration in Amazon S3.
",
+ "refs": {
+ "GetSampleDataRequest$S3SourceConfig": "A datasource bucket in Amazon S3.
"
+ }
+ },
+ "SampleRow": {
+ "base": null,
+ "refs": {
+ "SampleRows$member": null
+ }
+ },
+ "SampleRows": {
+ "base": null,
+ "refs": {
+ "GetSampleDataResponse$SampleRows": "A list of records.
"
+ }
+ },
+ "Score": {
+ "base": null,
+ "refs": {
+ "AnomalyGroup$AnomalyGroupScore": "The severity score of the group.
",
+ "AnomalyGroupSummary$AnomalyGroupScore": "The severity score of the group.
",
+ "DimensionValueContribution$ContributionScore": "The severity score of the value.
"
+ }
+ },
+ "SecurityGroupId": {
+ "base": null,
+ "refs": {
+ "SecurityGroupIdList$member": null
+ }
+ },
+ "SecurityGroupIdList": {
+ "base": null,
+ "refs": {
+ "VpcConfiguration$SecurityGroupIdList": "An array of strings containing the list of security groups.
"
+ }
+ },
+ "SensitivityThreshold": {
+ "base": null,
+ "refs": {
+ "Alert$AlertSensitivityThreshold": "The minimum severity for an anomaly to trigger the alert.
",
+ "AlertSummary$AlertSensitivityThreshold": "The minimum severity for an anomaly to trigger the alert.
",
+ "CreateAlertRequest$AlertSensitivityThreshold": "An integer from 0 to 100 specifying the alert sensitivity threshold.
",
+ "ListAnomalyGroupSummariesRequest$SensitivityThreshold": "The minimum severity score for inclusion in the output.
"
+ }
+ },
+ "ServiceCode": {
+ "base": null,
+ "refs": {
+ "ServiceQuotaExceededException$ServiceCode": "The service code.
"
+ }
+ },
+ "ServiceQuotaExceededException": {
+ "base": "The request exceeded the service's quotas. Check the service quotas and try again.
",
+ "refs": {
+ }
+ },
+ "SubnetId": {
+ "base": null,
+ "refs": {
+ "SubnetIdList$member": null
+ }
+ },
+ "SubnetIdList": {
+ "base": null,
+ "refs": {
+ "VpcConfiguration$SubnetIdList": "An array of strings containing the Amazon VPC subnet IDs (e.g., subnet-0bb1c79de3EXAMPLE
.
"
+ }
+ },
+ "TableName": {
+ "base": null,
+ "refs": {
+ "RDSSourceConfig$TableName": "The name of the table in the database.
",
+ "RedshiftSourceConfig$TableName": "The table name of the Redshift database.
"
+ }
+ },
+ "TagKey": {
+ "base": null,
+ "refs": {
+ "TagKeyList$member": null,
+ "TagMap$key": null
+ }
+ },
+ "TagKeyList": {
+ "base": null,
+ "refs": {
+ "UntagResourceRequest$TagKeys": "Keys to remove from the resource's tags.
"
+ }
+ },
+ "TagMap": {
+ "base": null,
+ "refs": {
+ "AlertSummary$Tags": "The alert's tags.
",
+ "AnomalyDetectorSummary$Tags": "The detector's tags.
",
+ "CreateAlertRequest$Tags": "A list of tags to apply to the alert.
",
+ "CreateAnomalyDetectorRequest$Tags": "A list of tags to apply to the anomaly detector.
",
+ "CreateMetricSetRequest$Tags": "A list of tags to apply to the dataset.
",
+ "ListTagsForResourceResponse$Tags": "The resource's tags.
",
+ "MetricSetSummary$Tags": "The dataset's tags.
",
+ "TagResourceRequest$Tags": "Tags to apply to the resource. Tag keys and values can contain letters, numbers, spaces, and the following symbols: _.:/=+@-
"
+ }
+ },
+ "TagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "TagResourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "TagValue": {
+ "base": null,
+ "refs": {
+ "TagMap$value": null
+ }
+ },
+ "TemplatedPath": {
+ "base": null,
+ "refs": {
+ "TemplatedPathList$member": null
+ }
+ },
+ "TemplatedPathList": {
+ "base": null,
+ "refs": {
+ "S3SourceConfig$TemplatedPathList": "A list of templated paths to the source files.
",
+ "SampleDataS3SourceConfig$TemplatedPathList": "An array of strings containing the list of templated paths.
"
+ }
+ },
+ "TimeSeries": {
+ "base": "Details about a metric. A metric is an aggregation of the values of a measure for a dimension value, such as availability in the us-east-1 Region.
",
+ "refs": {
+ "TimeSeriesList$member": null
+ }
+ },
+ "TimeSeriesFeedback": {
+ "base": "Details about feedback submitted for an anomalous metric.
",
+ "refs": {
+ "TimeSeriesFeedbackList$member": null
+ }
+ },
+ "TimeSeriesFeedbackList": {
+ "base": null,
+ "refs": {
+ "GetFeedbackResponse$AnomalyGroupTimeSeriesFeedback": "Feedback for an anomalous metric.
"
+ }
+ },
+ "TimeSeriesId": {
+ "base": null,
+ "refs": {
+ "AnomalyGroupTimeSeries$TimeSeriesId": "The ID of the metric.
",
+ "AnomalyGroupTimeSeriesFeedback$TimeSeriesId": "The ID of the metric.
",
+ "TimeSeries$TimeSeriesId": "The ID of the metric.
",
+ "TimeSeriesFeedback$TimeSeriesId": "The ID of the metric.
"
+ }
+ },
+ "TimeSeriesList": {
+ "base": null,
+ "refs": {
+ "ListAnomalyGroupTimeSeriesResponse$TimeSeriesList": "A list of anomalous metrics.
"
+ }
+ },
+ "Timestamp": {
+ "base": null,
+ "refs": {
+ "Alert$LastModificationTime": "The time at which the alert was last modified.
",
+ "Alert$CreationTime": "The time at which the alert was created.
",
+ "AlertSummary$LastModificationTime": "The time at which the alert was last modified.
",
+ "AlertSummary$CreationTime": "The time at which the alert was created.
",
+ "AnomalyDetectorSummary$CreationTime": "The time at which the detector was created.
",
+ "AnomalyDetectorSummary$LastModificationTime": "The time at which the detector was last modified.
",
+ "DescribeAnomalyDetectorResponse$CreationTime": "The time at which the detector was created.
",
+ "DescribeAnomalyDetectorResponse$LastModificationTime": "The time at which the detector was last modified.
",
+ "DescribeMetricSetResponse$CreationTime": "The time at which the dataset was created.
",
+ "DescribeMetricSetResponse$LastModificationTime": "The time at which the dataset was last modified.
",
+ "MetricSetSummary$CreationTime": "The time at which the dataset was created.
",
+ "MetricSetSummary$LastModificationTime": "The time at which the dataset was last modified.
"
+ }
+ },
+ "TimestampColumn": {
+ "base": "Contains information about the column used to track time in a source data file.
",
+ "refs": {
+ "CreateMetricSetRequest$TimestampColumn": "Contains information about the column used for tracking time in your source data.
",
+ "DescribeMetricSetResponse$TimestampColumn": "Contains information about the column used for tracking time in your source data.
",
+ "UpdateMetricSetRequest$TimestampColumn": "The timestamp column.
"
+ }
+ },
+ "TimestampList": {
+ "base": null,
+ "refs": {
+ "ListAnomalyGroupTimeSeriesResponse$TimestampList": "Timestamps for the anomalous metrics.
"
+ }
+ },
+ "TimestampString": {
+ "base": null,
+ "refs": {
+ "AnomalyGroup$StartTime": "The start time for the group.
",
+ "AnomalyGroup$EndTime": "The end time for the group.
",
+ "AnomalyGroupStatistics$EvaluationStartDate": "The start of the time range that was searched.
",
+ "AnomalyGroupSummary$StartTime": "The start time for the group.
",
+ "AnomalyGroupSummary$EndTime": "The end time for the group.
",
+ "DescribeAnomalyDetectionExecutionsRequest$Timestamp": "The timestamp of the anomaly detection job.
",
+ "ExecutionStatus$Timestamp": "The run's timestamp.
",
+ "TimestampList$member": null
+ }
+ },
+ "Timezone": {
+ "base": null,
+ "refs": {
+ "CreateMetricSetRequest$Timezone": "The time zone in which your source data was recorded.
",
+ "DescribeMetricSetResponse$Timezone": "The time zone in which the dataset's data was recorded.
"
+ }
+ },
+ "TooManyRequestsException": {
+ "base": "The request was denied due to too many requests being submitted at the same time.
",
+ "refs": {
+ }
+ },
+ "UUID": {
+ "base": null,
+ "refs": {
+ "AnomalyGroup$AnomalyGroupId": "The ID of the anomaly group.
",
+ "AnomalyGroupSummary$AnomalyGroupId": "The ID of the anomaly group.
",
+ "AnomalyGroupTimeSeries$AnomalyGroupId": "The ID of the anomaly group.
",
+ "AnomalyGroupTimeSeriesFeedback$AnomalyGroupId": "The ID of the anomaly group.
",
+ "GetAnomalyGroupRequest$AnomalyGroupId": "The ID of the anomaly group.
",
+ "ListAnomalyGroupTimeSeriesRequest$AnomalyGroupId": "The ID of the anomaly group.
",
+ "ListAnomalyGroupTimeSeriesResponse$AnomalyGroupId": "The ID of the anomaly group.
"
+ }
+ },
+ "UntagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UntagResourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdateAnomalyDetectorRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdateAnomalyDetectorResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdateMetricSetRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdateMetricSetResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ValidationException": {
+ "base": "The input fails to satisfy the constraints specified by the AWS service. Check your input values and try again.
",
+ "refs": {
+ }
+ },
+ "ValidationExceptionField": {
+ "base": "Contains information about a a field in a validation exception.
",
+ "refs": {
+ "ValidationExceptionFieldList$member": null
+ }
+ },
+ "ValidationExceptionFieldList": {
+ "base": null,
+ "refs": {
+ "ValidationException$Fields": "Fields that failed validation.
"
+ }
+ },
+ "ValidationExceptionReason": {
+ "base": null,
+ "refs": {
+ "ValidationException$Reason": "The reason that validation failed.
"
+ }
+ },
+ "VpcConfiguration": {
+ "base": "Contains configuration information about the Amazon Virtual Private Cloud (VPC).
",
+ "refs": {
+ "RDSSourceConfig$VpcConfiguration": "An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
",
+ "RedshiftSourceConfig$VpcConfiguration": "Contains information about the Amazon Virtual Private Cloud (VPC) configuration.
"
+ }
+ }
+ }
+}
diff --git a/models/apis/lookoutmetrics/2017-07-25/examples-1.json b/models/apis/lookoutmetrics/2017-07-25/examples-1.json
new file mode 100644
index 00000000000..0ea7e3b0bbe
--- /dev/null
+++ b/models/apis/lookoutmetrics/2017-07-25/examples-1.json
@@ -0,0 +1,5 @@
+{
+ "version": "1.0",
+ "examples": {
+ }
+}
diff --git a/models/apis/lookoutmetrics/2017-07-25/paginators-1.json b/models/apis/lookoutmetrics/2017-07-25/paginators-1.json
new file mode 100644
index 00000000000..14cadb46769
--- /dev/null
+++ b/models/apis/lookoutmetrics/2017-07-25/paginators-1.json
@@ -0,0 +1,39 @@
+{
+ "pagination": {
+ "DescribeAnomalyDetectionExecutions": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults"
+ },
+ "GetFeedback": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults"
+ },
+ "ListAlerts": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults"
+ },
+ "ListAnomalyDetectors": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults"
+ },
+ "ListAnomalyGroupSummaries": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults"
+ },
+ "ListAnomalyGroupTimeSeries": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults"
+ },
+ "ListMetricSets": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults"
+ }
+ }
+}
diff --git a/models/apis/medialive/2017-10-14/api-2.json b/models/apis/medialive/2017-10-14/api-2.json
index ed21fd7be26..c50a8905c9b 100644
--- a/models/apis/medialive/2017-10-14/api-2.json
+++ b/models/apis/medialive/2017-10-14/api-2.json
@@ -3409,32 +3409,32 @@
]
},
"CaptionRectangle": {
- "type": "structure",
- "members": {
- "Height": {
- "shape": "__doubleMin0Max100",
- "locationName": "height"
- },
- "LeftOffset": {
- "shape": "__doubleMin0Max100",
- "locationName": "leftOffset"
- },
- "TopOffset": {
- "shape": "__doubleMin0Max100",
- "locationName": "topOffset"
- },
- "Width": {
- "shape": "__doubleMin0Max100",
- "locationName": "width"
- }
- },
- "required": [
- "TopOffset",
- "Height",
- "Width",
- "LeftOffset"
- ]
- },
+ "type": "structure",
+ "members": {
+ "Height": {
+ "shape": "__doubleMin0Max100",
+ "locationName": "height"
+ },
+ "LeftOffset": {
+ "shape": "__doubleMin0Max100",
+ "locationName": "leftOffset"
+ },
+ "TopOffset": {
+ "shape": "__doubleMin0Max100",
+ "locationName": "topOffset"
+ },
+ "Width": {
+ "shape": "__doubleMin0Max100",
+ "locationName": "width"
+ }
+ },
+ "required": [
+ "TopOffset",
+ "Height",
+ "Width",
+ "LeftOffset"
+ ]
+ },
"CaptionSelector": {
"type": "structure",
"members": {
@@ -5599,7 +5599,7 @@
"CopyrightHolder": {
"shape": "__stringMax1000",
"locationName": "copyrightHolder"
- },
+ },
"FontFamily": {
"shape": "__string",
"locationName": "fontFamily"
@@ -11524,7 +11524,7 @@
"OutputRectangle": {
"shape": "CaptionRectangle",
"locationName": "outputRectangle"
- },
+ },
"PageNumber": {
"shape": "__string",
"locationName": "pageNumber"
@@ -11685,7 +11685,7 @@
"TargetRegion": {
"shape": "__string",
"locationName": "targetRegion"
- },
+ },
"TransferType": {
"shape": "InputDeviceTransferType",
"locationName": "transferType"
@@ -12408,6 +12408,10 @@
"shape": "VideoSelectorColorSpace",
"locationName": "colorSpace"
},
+ "ColorSpaceSettings": {
+ "shape": "VideoSelectorColorSpaceSettings",
+ "locationName": "colorSpaceSettings"
+ },
"ColorSpaceUsage": {
"shape": "VideoSelectorColorSpaceUsage",
"locationName": "colorSpaceUsage"
@@ -12422,10 +12426,21 @@
"type": "string",
"enum": [
"FOLLOW",
+ "HDR10",
+ "HLG_2020",
"REC_601",
"REC_709"
]
},
+ "VideoSelectorColorSpaceSettings": {
+ "type": "structure",
+ "members": {
+ "Hdr10Settings": {
+ "shape": "Hdr10Settings",
+ "locationName": "hdr10Settings"
+ }
+ }
+ },
"VideoSelectorColorSpaceUsage": {
"type": "string",
"enum": [
@@ -12529,7 +12544,7 @@
},
"__doubleMin0Max100": {
"type": "double"
- },
+ },
"__doubleMin1": {
"type": "double"
},
@@ -13101,7 +13116,7 @@
"__stringMax1000": {
"type": "string",
"max": 1000
- },
+ },
"__stringMax256": {
"type": "string",
"max": 256
diff --git a/models/apis/medialive/2017-10-14/docs-2.json b/models/apis/medialive/2017-10-14/docs-2.json
index 208922c37da..984d5f71837 100644
--- a/models/apis/medialive/2017-10-14/docs-2.json
+++ b/models/apis/medialive/2017-10-14/docs-2.json
@@ -532,11 +532,11 @@
}
},
"CaptionRectangle": {
- "base": "Caption Rectangle",
- "refs": {
- "TeletextSourceSettings$OutputRectangle": "Optionally defines a region where TTML style captions will be displayed"
+ "base": "Caption Rectangle",
+ "refs": {
+ "TeletextSourceSettings$OutputRectangle": "Optionally defines a region where TTML style captions will be displayed"
}
- },
+ },
"CaptionSelector": {
"base": "Output groups for this Live Event. Output groups contain information about where streams should be distributed.",
"refs": {
@@ -1320,7 +1320,8 @@
"Hdr10Settings": {
"base": "Hdr10 Settings",
"refs": {
- "H265ColorSpaceSettings$Hdr10Settings": null
+ "H265ColorSpaceSettings$Hdr10Settings": null,
+ "VideoSelectorColorSpaceSettings$Hdr10Settings": null
}
},
"HlsAdMarkers": {
@@ -3206,6 +3207,12 @@
"VideoSelector$ColorSpace": "Specifies the color space of an input. This setting works in tandem with colorSpaceUsage and a video description's colorSpaceSettingsChoice to determine if any conversion will be performed."
}
},
+ "VideoSelectorColorSpaceSettings": {
+ "base": "Video Selector Color Space Settings",
+ "refs": {
+ "VideoSelector$ColorSpaceSettings": "Color space settings"
+ }
+ },
"VideoSelectorColorSpaceUsage": {
"base": "Video Selector Color Space Usage",
"refs": {
@@ -3308,7 +3315,7 @@
"CaptionRectangle$TopOffset": "See the description in leftOffset.\nFor topOffset, specify the position of the top edge of the rectangle, as a percentage of the underlying frame height, and relative to the top edge of the frame. For example, \\\"10\\\" means the measurement is 10% of the underlying frame height. The rectangle top edge starts at that position from the top edge of the frame.\nThis field corresponds to tts:origin - Y in the TTML standard.",
"CaptionRectangle$Width": "See the description in leftOffset.\nFor width, specify the entire width of the rectangle as a percentage of the underlying frame width. For example, \\\"80\\\" means the rectangle width is 80% of the underlying frame width. The leftOffset and rectangleWidth must add up to 100% or less.\nThis field corresponds to tts:extent - X in the TTML standard."
}
- },
+ },
"__doubleMin1": {
"base": null,
"refs": {
@@ -4364,7 +4371,7 @@
"refs": {
"EbuTtDDestinationSettings$CopyrightHolder": "Applies only if you plan to convert these source captions to EBU-TT-D or TTML in an output. Complete this field if you want to include the name of the copyright holder in the copyright metadata tag in the TTML"
}
- },
+ },
"__stringMax256": {
"base": null,
"refs": {
diff --git a/models/apis/rekognition/2016-06-27/api-2.json b/models/apis/rekognition/2016-06-27/api-2.json
index 9f070c66894..c5c167a3e84 100644
--- a/models/apis/rekognition/2016-06-27/api-2.json
+++ b/models/apis/rekognition/2016-06-27/api-2.json
@@ -45,7 +45,8 @@
{"shape":"InternalServerError"},
{"shape":"ThrottlingException"},
{"shape":"ProvisionedThroughputExceededException"},
- {"shape":"ResourceAlreadyExistsException"}
+ {"shape":"ResourceAlreadyExistsException"},
+ {"shape":"ServiceQuotaExceededException"}
]
},
"CreateProject":{
@@ -82,7 +83,8 @@
{"shape":"AccessDeniedException"},
{"shape":"InternalServerError"},
{"shape":"ThrottlingException"},
- {"shape":"ProvisionedThroughputExceededException"}
+ {"shape":"ProvisionedThroughputExceededException"},
+ {"shape":"ServiceQuotaExceededException"}
]
},
"CreateStreamProcessor":{
@@ -100,7 +102,8 @@
{"shape":"InvalidParameterException"},
{"shape":"LimitExceededException"},
{"shape":"ResourceInUseException"},
- {"shape":"ProvisionedThroughputExceededException"}
+ {"shape":"ProvisionedThroughputExceededException"},
+ {"shape":"ServiceQuotaExceededException"}
]
},
"DeleteCollection":{
@@ -613,6 +616,23 @@
{"shape":"ProvisionedThroughputExceededException"}
]
},
+ "ListTagsForResource":{
+ "name":"ListTagsForResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"ListTagsForResourceRequest"},
+ "output":{"shape":"ListTagsForResourceResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerError"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ProvisionedThroughputExceededException"}
+ ]
+ },
"RecognizeCelebrities":{
"name":"RecognizeCelebrities",
"http":{
@@ -911,6 +931,41 @@
{"shape":"ResourceInUseException"},
{"shape":"ProvisionedThroughputExceededException"}
]
+ },
+ "TagResource":{
+ "name":"TagResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"TagResourceRequest"},
+ "output":{"shape":"TagResourceResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerError"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ProvisionedThroughputExceededException"}
+ ]
+ },
+ "UntagResource":{
+ "name":"UntagResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"UntagResourceRequest"},
+ "output":{"shape":"UntagResourceResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidParameterException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerError"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ProvisionedThroughputExceededException"}
+ ]
}
},
"shapes":{
@@ -1160,7 +1215,8 @@
"type":"structure",
"required":["CollectionId"],
"members":{
- "CollectionId":{"shape":"CollectionId"}
+ "CollectionId":{"shape":"CollectionId"},
+ "Tags":{"shape":"TagMap"}
}
},
"CreateCollectionResponse":{
@@ -1198,7 +1254,8 @@
"VersionName":{"shape":"VersionName"},
"OutputConfig":{"shape":"OutputConfig"},
"TrainingData":{"shape":"TrainingData"},
- "TestingData":{"shape":"TestingData"}
+ "TestingData":{"shape":"TestingData"},
+ "Tags":{"shape":"TagMap"}
}
},
"CreateProjectVersionResponse":{
@@ -1221,7 +1278,8 @@
"Output":{"shape":"StreamProcessorOutput"},
"Name":{"shape":"StreamProcessorName"},
"Settings":{"shape":"StreamProcessorSettings"},
- "RoleArn":{"shape":"RoleArn"}
+ "RoleArn":{"shape":"RoleArn"},
+ "Tags":{"shape":"TagMap"}
}
},
"CreateStreamProcessorResponse":{
@@ -2207,6 +2265,19 @@
"StreamProcessors":{"shape":"StreamProcessorList"}
}
},
+ "ListTagsForResourceRequest":{
+ "type":"structure",
+ "required":["ResourceArn"],
+ "members":{
+ "ResourceArn":{"shape":"ResourceArn"}
+ }
+ },
+ "ListTagsForResourceResponse":{
+ "type":"structure",
+ "members":{
+ "Tags":{"shape":"TagMap"}
+ }
+ },
"MaxFaces":{
"type":"integer",
"max":4096,
@@ -2563,6 +2634,11 @@
},
"exception":true
},
+ "ResourceArn":{
+ "type":"string",
+ "max":2048,
+ "min":20
+ },
"ResourceInUseException":{
"type":"structure",
"members":{
@@ -3013,6 +3089,47 @@
"Confidence":{"shape":"Percent"}
}
},
+ "TagKey":{
+ "type":"string",
+ "max":128,
+ "min":1,
+ "pattern":"^(?!aws:)[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*$"
+ },
+ "TagKeyList":{
+ "type":"list",
+ "member":{"shape":"TagKey"},
+ "max":200,
+ "min":0
+ },
+ "TagMap":{
+ "type":"map",
+ "key":{"shape":"TagKey"},
+ "value":{"shape":"TagValue"},
+ "max":200,
+ "min":0
+ },
+ "TagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "ResourceArn",
+ "Tags"
+ ],
+ "members":{
+ "ResourceArn":{"shape":"ResourceArn"},
+ "Tags":{"shape":"TagMap"}
+ }
+ },
+ "TagResourceResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "TagValue":{
+ "type":"string",
+ "max":256,
+ "min":0,
+ "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
+ },
"TechnicalCueSegment":{
"type":"structure",
"members":{
@@ -3118,6 +3235,22 @@
"type":"list",
"member":{"shape":"UnindexedFace"}
},
+ "UntagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "ResourceArn",
+ "TagKeys"
+ ],
+ "members":{
+ "ResourceArn":{"shape":"ResourceArn"},
+ "TagKeys":{"shape":"TagKeyList"}
+ }
+ },
+ "UntagResourceResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
"Url":{"type":"string"},
"Urls":{
"type":"list",
diff --git a/models/apis/rekognition/2016-06-27/docs-2.json b/models/apis/rekognition/2016-06-27/docs-2.json
index e3dfdebd532..5d5f2ffc45b 100644
--- a/models/apis/rekognition/2016-06-27/docs-2.json
+++ b/models/apis/rekognition/2016-06-27/docs-2.json
@@ -2,7 +2,7 @@
"version": "2.0",
"service": "This is the Amazon Rekognition API reference.
",
"operations": {
- "CompareFaces": "Compares a face in the source input image with each of the 100 largest faces detected in the target input image.
If the source image contains multiple faces, the service detects the largest face and compares it with each face detected in the target image.
You pass the input and target images either as base64-encoded image bytes or as references to images in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes isn't supported. The image must be formatted as a PNG or JPEG file.
In response, the operation returns an array of face matches ordered by similarity score in descending order. For each face match, the response provides a bounding box of the face, facial landmarks, pose details (pitch, role, and yaw), quality (brightness and sharpness), and confidence value (indicating the level of confidence that the bounding box contains a face). The response also provides a similarity score, which indicates how closely the faces match.
By default, only faces with a similarity score of greater than or equal to 80% are returned in the response. You can change this value by specifying the SimilarityThreshold
parameter.
CompareFaces
also returns an array of faces that don't match the source image. For each face, it returns a bounding box, confidence value, landmarks, pose details, and quality. The response also returns information about the face in the source image, including the bounding box of the face and confidence value.
The QualityFilter
input parameter allows you to filter out detected faces that don’t meet a required quality bar. The quality bar is based on a variety of common use cases. Use QualityFilter
to set the quality bar by specifying LOW
, MEDIUM
, or HIGH
. If you do not want to filter detected faces, specify NONE
. The default value is NONE
.
If the image doesn't contain Exif metadata, CompareFaces
returns orientation information for the source and target images. Use these values to display the images with the correct image orientation.
If no faces are detected in the source or target images, CompareFaces
returns an InvalidParameterException
error.
This is a stateless API operation. That is, data returned by this operation doesn't persist.
For an example, see Comparing Faces in Images in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the rekognition:CompareFaces
action.
",
+ "CompareFaces": "Compares a face in the source input image with each of the 100 largest faces detected in the target input image.
If the source image contains multiple faces, the service detects the largest face and compares it with each face detected in the target image.
CompareFaces uses machine learning algorithms, which are probabilistic. A false negative is an incorrect prediction that a face in the target image has a low similarity confidence score when compared to the face in the source image. To reduce the probability of false negatives, we recommend that you compare the target image against multiple source images. If you plan to use CompareFaces
to make a decision that impacts an individual's rights, privacy, or access to services, we recommend that you pass the result to a human for review and further validation before taking action.
You pass the input and target images either as base64-encoded image bytes or as references to images in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes isn't supported. The image must be formatted as a PNG or JPEG file.
In response, the operation returns an array of face matches ordered by similarity score in descending order. For each face match, the response provides a bounding box of the face, facial landmarks, pose details (pitch, role, and yaw), quality (brightness and sharpness), and confidence value (indicating the level of confidence that the bounding box contains a face). The response also provides a similarity score, which indicates how closely the faces match.
By default, only faces with a similarity score of greater than or equal to 80% are returned in the response. You can change this value by specifying the SimilarityThreshold
parameter.
CompareFaces
also returns an array of faces that don't match the source image. For each face, it returns a bounding box, confidence value, landmarks, pose details, and quality. The response also returns information about the face in the source image, including the bounding box of the face and confidence value.
The QualityFilter
input parameter allows you to filter out detected faces that don’t meet a required quality bar. The quality bar is based on a variety of common use cases. Use QualityFilter
to set the quality bar by specifying LOW
, MEDIUM
, or HIGH
. If you do not want to filter detected faces, specify NONE
. The default value is NONE
.
If the image doesn't contain Exif metadata, CompareFaces
returns orientation information for the source and target images. Use these values to display the images with the correct image orientation.
If no faces are detected in the source or target images, CompareFaces
returns an InvalidParameterException
error.
This is a stateless API operation. That is, data returned by this operation doesn't persist.
For an example, see Comparing Faces in Images in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the rekognition:CompareFaces
action.
",
"CreateCollection": "Creates a collection in an AWS Region. You can add faces to the collection using the IndexFaces operation.
For example, you might create collections, one for each of your application users. A user can then index faces using the IndexFaces
operation and persist results in a specific collection. Then, a user can search the collection for faces in the user-specific container.
When you create a collection, it is associated with the latest version of the face model version.
Collection names are case-sensitive.
This operation requires permissions to perform the rekognition:CreateCollection
action.
",
"CreateProject": "Creates a new Amazon Rekognition Custom Labels project. A project is a logical grouping of resources (images, Labels, models) and operations (training, evaluation and detection).
This operation requires permissions to perform the rekognition:CreateProject
action.
",
"CreateProjectVersion": "Creates a new version of a model and begins training. Models are managed as part of an Amazon Rekognition Custom Labels project. You can specify one training dataset and one testing dataset. The response from CreateProjectVersion
is an Amazon Resource Name (ARN) for the version of the model.
Training takes a while to complete. You can get the current status by calling DescribeProjectVersions.
Once training has successfully completed, call DescribeProjectVersions to get the training results and evaluate the model.
After evaluating the model, you start the model by calling StartProjectVersion.
This operation requires permissions to perform the rekognition:CreateProjectVersion
action.
",
@@ -35,6 +35,7 @@
"ListCollections": "Returns list of collection IDs in your account. If the result is truncated, the response also provides a NextToken
that you can use in the subsequent request to fetch the next set of collection IDs.
For an example, see Listing Collections in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the rekognition:ListCollections
action.
",
"ListFaces": "Returns metadata for faces in the specified collection. This metadata includes information such as the bounding box coordinates, the confidence (that the bounding box contains a face), and face ID. For an example, see Listing Faces in a Collection in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the rekognition:ListFaces
action.
",
"ListStreamProcessors": "Gets a list of stream processors that you have created with CreateStreamProcessor.
",
+ "ListTagsForResource": " Returns a list of tags in an Amazon Rekognition collection, stream processor, or Custom Labels model.
",
"RecognizeCelebrities": "Returns an array of celebrities recognized in the input image. For more information, see Recognizing Celebrities in the Amazon Rekognition Developer Guide.
RecognizeCelebrities
returns the 64 largest faces in the image. It lists recognized celebrities in the CelebrityFaces
array and unrecognized faces in the UnrecognizedFaces
array. RecognizeCelebrities
doesn't return celebrities whose faces aren't among the largest 64 faces in the image.
For each celebrity recognized, RecognizeCelebrities
returns a Celebrity
object. The Celebrity
object contains the celebrity name, ID, URL links to additional information, match confidence, and a ComparedFace
object that you can use to locate the celebrity's face on the image.
Amazon Rekognition doesn't retain information about which images a celebrity has been recognized in. Your application must store this information and use the Celebrity
ID property as a unique identifier for the celebrity. If you don't store the celebrity name or additional information URLs returned by RecognizeCelebrities
, you will need the ID to identify the celebrity in a call to the GetCelebrityInfo operation.
You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
For an example, see Recognizing Celebrities in an Image in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the rekognition:RecognizeCelebrities
operation.
",
"SearchFaces": "For a given input face ID, searches for matching faces in the collection the face belongs to. You get a face ID when you add a face to the collection using the IndexFaces operation. The operation compares the features of the input face with faces in the specified collection.
You can also search faces without indexing faces by using the SearchFacesByImage
operation.
The operation response returns an array of faces that match, ordered by similarity score with the highest similarity first. More specifically, it is an array of metadata for each face match that is found. Along with the metadata, the response also includes a confidence
value for each face match, indicating the confidence that the specific face matches the input face.
For an example, see Searching for a Face Using Its Face ID in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the rekognition:SearchFaces
action.
",
"SearchFacesByImage": "For a given input image, first detects the largest face in the image, and then searches the specified collection for matching faces. The operation compares the features of the input face with faces in the specified collection.
To search for all faces in an input image, you might first call the IndexFaces operation, and then use the face IDs returned in subsequent calls to the SearchFaces operation.
You can also call the DetectFaces
operation and use the bounding boxes in the response to make face crops, which then you can pass in to the SearchFacesByImage
operation.
You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
The response returns an array of faces that match, ordered by similarity score with the highest similarity first. More specifically, it is an array of metadata for each face match found. Along with the metadata, the response also includes a similarity
indicating how similar the face is to the input face. In the response, the operation also returns the bounding box (and a confidence level that the bounding box contains a face) of the face that Amazon Rekognition used for the input image.
For an example, Searching for a Face Using an Image in the Amazon Rekognition Developer Guide.
The QualityFilter
input parameter allows you to filter out detected faces that don’t meet a required quality bar. The quality bar is based on a variety of common use cases. Use QualityFilter
to set the quality bar for filtering by specifying LOW
, MEDIUM
, or HIGH
. If you do not want to filter detected faces, specify NONE
. The default value is NONE
.
To use quality filtering, you need a collection associated with version 3 of the face model or higher. To get the version of the face model associated with a collection, call DescribeCollection.
This operation requires permissions to perform the rekognition:SearchFacesByImage
action.
",
@@ -49,7 +50,9 @@
"StartStreamProcessor": "Starts processing a stream processor. You create a stream processor by calling CreateStreamProcessor. To tell StartStreamProcessor
which stream processor to start, use the value of the Name
field specified in the call to CreateStreamProcessor
.
",
"StartTextDetection": "Starts asynchronous detection of text in a stored video.
Amazon Rekognition Video can detect text in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartTextDetection
returns a job identifier (JobId
) which you use to get the results of the operation. When text detection is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel
.
To get the results of the text detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED
. if so, call GetTextDetection and pass the job identifier (JobId
) from the initial call to StartTextDetection
.
",
"StopProjectVersion": "Stops a running model. The operation might take a while to complete. To check the current status, call DescribeProjectVersions.
",
- "StopStreamProcessor": "Stops a running stream processor that was created by CreateStreamProcessor.
"
+ "StopStreamProcessor": "Stops a running stream processor that was created by CreateStreamProcessor.
",
+ "TagResource": " Adds one or more key-value tags to an Amazon Rekognition collection, stream processor, or Custom Labels model. For more information, see Tagging AWS Resources.
",
+ "UntagResource": " Removes one or more tags from an Amazon Rekognition collection, stream processor, or Custom Labels model.
"
},
"shapes": {
"AccessDeniedException": {
@@ -959,7 +962,7 @@
}
},
"ImageTooLargeException": {
- "base": "The input image size exceeds the allowed limit. For more information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
",
+ "base": "The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, the image size or resolution exceeds the allowed limit. For more information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
",
"refs": {
}
},
@@ -1160,6 +1163,16 @@
"refs": {
}
},
+ "ListTagsForResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListTagsForResourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"MaxFaces": {
"base": null,
"refs": {
@@ -1303,7 +1316,7 @@
"DetectCustomLabelsRequest$MinConfidence": "Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with a confidence lower than this specified value. If you specify a value of 0, all labels are return, regardless of the default thresholds that the model version applies.
",
"DetectLabelsRequest$MinConfidence": "Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with confidence lower than this specified value.
If MinConfidence
is not specified, the operation returns labels with a confidence values greater than or equal to 55 percent.
",
"DetectModerationLabelsRequest$MinConfidence": "Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with a confidence level lower than this specified value.
If you don't specify MinConfidence
, the operation returns labels with confidence values greater than or equal to 50 percent.
",
- "DetectionFilter$MinConfidence": "Sets confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 0.5 and 1 as Text in Video will not return any result below 0.5.
",
+ "DetectionFilter$MinConfidence": "Sets the confidence of word detection. Words with detection confidence below this will be excluded from the result. Values should be between 50 and 100 as Text in Video will not return any result below 50.
",
"Emotion$Confidence": "Level of confidence in the determination.
",
"EquipmentDetection$Confidence": "The confidence that Amazon Rekognition has that the bounding box (BoundingBox
) contains an item of PPE.
",
"EyeOpen$Confidence": "Level of confidence in the determination.
",
@@ -1489,7 +1502,7 @@
"base": null,
"refs": {
"ProtectiveEquipmentSummary$PersonsWithRequiredEquipment": "An array of IDs for persons who are wearing detected personal protective equipment.
",
- "ProtectiveEquipmentSummary$PersonsWithoutRequiredEquipment": "An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes field of the detected personal protective equipment.
",
+ "ProtectiveEquipmentSummary$PersonsWithoutRequiredEquipment": "An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes
field of the detected personal protective equipment.
",
"ProtectiveEquipmentSummary$PersonsIndeterminate": "An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
"
}
},
@@ -1585,6 +1598,14 @@
"refs": {
}
},
+ "ResourceArn": {
+ "base": null,
+ "refs": {
+ "ListTagsForResourceRequest$ResourceArn": " Amazon Resource Name (ARN) of the model, collection, or stream processor that contains the tags that you want a list of.
",
+ "TagResourceRequest$ResourceArn": " Amazon Resource Name (ARN) of the model, collection, or stream processor that you want to assign the tags to.
",
+ "UntagResourceRequest$ResourceArn": " Amazon Resource Name (ARN) of the model, collection, or stream processor that you want to remove the tags from.
"
+ }
+ },
"ResourceInUseException": {
"base": "The specified resource is already being used.
",
"refs": {
@@ -1716,7 +1737,7 @@
}
},
"ServiceQuotaExceededException": {
- "base": " The size of the collection exceeds the allowed limit. For more information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
",
+ "base": " The size of the collection or tag list exceeds the allowed limit. For more information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
",
"refs": {
}
},
@@ -2000,6 +2021,45 @@
"FaceDetail$Sunglasses": "Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
"
}
},
+ "TagKey": {
+ "base": null,
+ "refs": {
+ "TagKeyList$member": null,
+ "TagMap$key": null
+ }
+ },
+ "TagKeyList": {
+ "base": null,
+ "refs": {
+ "UntagResourceRequest$TagKeys": " A list of the tags that you want to remove.
"
+ }
+ },
+ "TagMap": {
+ "base": null,
+ "refs": {
+ "CreateCollectionRequest$Tags": " A set of tags (key-value pairs) that you want to attach to the collection.
",
+ "CreateProjectVersionRequest$Tags": " A set of tags (key-value pairs) that you want to attach to the model.
",
+ "CreateStreamProcessorRequest$Tags": " A set of tags (key-value pairs) that you want to attach to the stream processor.
",
+ "ListTagsForResourceResponse$Tags": " A list of key-value tags assigned to the resource.
",
+ "TagResourceRequest$Tags": " The key-value tags to assign to the resource.
"
+ }
+ },
+ "TagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "TagResourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "TagValue": {
+ "base": null,
+ "refs": {
+ "TagMap$value": null
+ }
+ },
"TechnicalCueSegment": {
"base": "Information about a technical cue segment. For more information, see SegmentDetection.
",
"refs": {
@@ -2140,6 +2200,16 @@
"IndexFacesResponse$UnindexedFaces": "An array of faces that were detected in the image but weren't indexed. They weren't indexed because the quality filter identified them as low quality, or the MaxFaces
request parameter filtered them out. To use the quality filter, you specify the QualityFilter
request parameter.
"
}
},
+ "UntagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UntagResourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"Url": {
"base": null,
"refs": {
diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json
index 4b8e1f3deab..bde2e179f46 100644
--- a/models/apis/sagemaker/2017-07-24/api-2.json
+++ b/models/apis/sagemaker/2017-07-24/api-2.json
@@ -3292,7 +3292,10 @@
"Stopped",
"MaxAutoMLJobRuntimeReached",
"Stopping",
- "CandidateDefinitionsGenerated"
+ "CandidateDefinitionsGenerated",
+ "GeneratingExplainabilityReport",
+ "Completed",
+ "ExplainabilityError"
]
},
"AutoMLJobStatus":{
@@ -4918,7 +4921,8 @@
"TensorBoardOutputConfig":{"shape":"TensorBoardOutputConfig"},
"ExperimentConfig":{"shape":"ExperimentConfig"},
"ProfilerConfig":{"shape":"ProfilerConfig"},
- "ProfilerRuleConfigurations":{"shape":"ProfilerRuleConfigurations"}
+ "ProfilerRuleConfigurations":{"shape":"ProfilerRuleConfigurations"},
+ "Environment":{"shape":"TrainingEnvironmentMap"}
}
},
"CreateTrainingJobResponse":{
@@ -6846,7 +6850,8 @@
"ProfilerConfig":{"shape":"ProfilerConfig"},
"ProfilerRuleConfigurations":{"shape":"ProfilerRuleConfigurations"},
"ProfilerRuleEvaluationStatuses":{"shape":"ProfilerRuleEvaluationStatuses"},
- "ProfilingStatus":{"shape":"ProfilingStatus"}
+ "ProfilingStatus":{"shape":"ProfilingStatus"},
+ "Environment":{"shape":"TrainingEnvironmentMap"}
}
},
"DescribeTransformJobRequest":{
@@ -13465,6 +13470,22 @@
"CANARY"
]
},
+ "TrainingEnvironmentKey":{
+ "type":"string",
+ "max":512,
+ "pattern":"[a-zA-Z_][a-zA-Z0-9_]*"
+ },
+ "TrainingEnvironmentMap":{
+ "type":"map",
+ "key":{"shape":"TrainingEnvironmentKey"},
+ "value":{"shape":"TrainingEnvironmentValue"},
+ "max":48
+ },
+ "TrainingEnvironmentValue":{
+ "type":"string",
+ "max":512,
+ "pattern":"[\\S\\s]*"
+ },
"TrainingInputMode":{
"type":"string",
"enum":[
@@ -13561,6 +13582,7 @@
"DebugRuleConfigurations":{"shape":"DebugRuleConfigurations"},
"TensorBoardOutputConfig":{"shape":"TensorBoardOutputConfig"},
"DebugRuleEvaluationStatuses":{"shape":"DebugRuleEvaluationStatuses"},
+ "Environment":{"shape":"TrainingEnvironmentMap"},
"Tags":{"shape":"TagList"}
}
},
diff --git a/models/apis/sagemaker/2017-07-24/docs-2.json b/models/apis/sagemaker/2017-07-24/docs-2.json
index ee4ec78f5c6..1e3d9a08a59 100644
--- a/models/apis/sagemaker/2017-07-24/docs-2.json
+++ b/models/apis/sagemaker/2017-07-24/docs-2.json
@@ -42,7 +42,7 @@
"CreatePresignedNotebookInstanceUrl": "Returns a URL that you can use to connect to the Jupyter server from a notebook instance. In the Amazon SageMaker console, when you choose Open
next to a notebook instance, Amazon SageMaker opens a new tab showing the Jupyter server home page from the notebook instance. The console uses this API to get the URL and show the page.
The IAM role or user used to call this API defines the permissions to access the notebook instance. Once the presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for this API are also enforced for every HTTP request and WebSocket frame that attempts to connect to the notebook instance.
You can restrict access to this API and to the URL that it returns to a list of IP addresses that you specify. Use the NotIpAddress
condition operator and the aws:SourceIP
condition context key to specify the list of IP addresses that you want to have access to the notebook instance. For more information, see Limit Access to a Notebook Instance by IP Address.
The URL that you get from a call to CreatePresignedNotebookInstanceUrl is valid only for 5 minutes. If you try to use the URL after the 5-minute limit expires, you are directed to the AWS console sign-in page.
",
"CreateProcessingJob": "Creates a processing job.
",
"CreateProject": "Creates a machine learning (ML) project that can contain one or more templates that set up an ML pipeline from training to deploying an approved model.
",
- "CreateTrainingJob": "Starts a model training job. After training completes, Amazon SageMaker saves the resulting model artifacts to an Amazon S3 location that you specify.
If you choose to host your model using Amazon SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts in a machine learning service other than Amazon SageMaker, provided that you know how to use them for inference.
In the request body, you provide the following:
-
AlgorithmSpecification
- Identifies the training algorithm to use.
-
HyperParameters
- Specify these algorithm-specific parameters to enable the estimation of model parameters during training. Hyperparameters can be tuned to optimize this learning process. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms.
-
InputDataConfig
- Describes the training dataset and the Amazon S3, EFS, or FSx location where it is stored.
-
OutputDataConfig
- Identifies the Amazon S3 bucket where you want Amazon SageMaker to save the results of model training.
-
ResourceConfig
- Identifies the resources, ML compute instances, and ML storage volumes to deploy for model training. In distributed training, you specify more than one instance.
-
EnableManagedSpotTraining
- Optimize the cost of training machine learning models by up to 80% by using Amazon EC2 Spot instances. For more information, see Managed Spot Training.
-
RoleArn
- The Amazon Resource Name (ARN) that Amazon SageMaker assumes to perform tasks on your behalf during model training. You must grant this role the necessary permissions so that Amazon SageMaker can successfully complete model training.
-
StoppingCondition
- To help cap training costs, use MaxRuntimeInSeconds
to set a time limit for training. Use MaxWaitTimeInSeconds
to specify how long you are willing to wait for a managed spot training job to complete.
For more information about Amazon SageMaker, see How It Works.
",
+ "CreateTrainingJob": "Starts a model training job. After training completes, Amazon SageMaker saves the resulting model artifacts to an Amazon S3 location that you specify.
If you choose to host your model using Amazon SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts in a machine learning service other than Amazon SageMaker, provided that you know how to use them for inference.
In the request body, you provide the following:
-
AlgorithmSpecification
- Identifies the training algorithm to use.
-
HyperParameters
- Specify these algorithm-specific parameters to enable the estimation of model parameters during training. Hyperparameters can be tuned to optimize this learning process. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms.
-
InputDataConfig
- Describes the training dataset and the Amazon S3, EFS, or FSx location where it is stored.
-
OutputDataConfig
- Identifies the Amazon S3 bucket where you want Amazon SageMaker to save the results of model training.
-
ResourceConfig
- Identifies the resources, ML compute instances, and ML storage volumes to deploy for model training. In distributed training, you specify more than one instance.
-
EnableManagedSpotTraining
- Optimize the cost of training machine learning models by up to 80% by using Amazon EC2 Spot instances. For more information, see Managed Spot Training.
-
RoleArn
- The Amazon Resource Name (ARN) that Amazon SageMaker assumes to perform tasks on your behalf during model training. You must grant this role the necessary permissions so that Amazon SageMaker can successfully complete model training.
-
StoppingCondition
- To help cap training costs, use MaxRuntimeInSeconds
to set a time limit for training. Use MaxWaitTimeInSeconds
to specify how long you are willing to wait for a managed spot training job to complete.
-
Environment
- The environment variables to set in the Docker container.
For more information about Amazon SageMaker, see How It Works.
",
"CreateTransformJob": "Starts a transform job. A transform job uses a trained model to get inferences on a dataset and saves these results to an Amazon S3 location that you specify.
To perform batch transformations, you create a transform job and use the data that you have readily available.
In the request body, you provide the following:
-
TransformJobName
- Identifies the transform job. The name must be unique within an AWS Region in an AWS account.
-
ModelName
- Identifies the model to use. ModelName
must be the name of an existing Amazon SageMaker model in the same AWS Region and AWS account. For information on creating a model, see CreateModel.
-
TransformInput
- Describes the dataset to be transformed and the Amazon S3 location where it is stored.
-
TransformOutput
- Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.
-
TransformResources
- Identifies the ML compute instances for the transform job.
For more information about how batch transformation works, see Batch Transform.
",
"CreateTrial": "Creates an Amazon SageMaker trial. A trial is a set of steps called trial components that produce a machine learning model. A trial is part of a single Amazon SageMaker experiment.
When you use Amazon SageMaker Studio or the Amazon SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the AWS SDK for Python (Boto), you must use the logging APIs provided by the SDK.
You can add tags to a trial and then use the Search API to search for the tags.
To get a list of all your trials, call the ListTrials API. To view a trial's properties, call the DescribeTrial API. To create a trial component, call the CreateTrialComponent API.
",
"CreateTrialComponent": "Creates a trial component, which is a stage of a machine learning trial. A trial is composed of one or more trial components. A trial component can be used in multiple trials.
Trial components include pre-processing jobs, training jobs, and batch transform jobs.
When you use Amazon SageMaker Studio or the Amazon SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the AWS SDK for Python (Boto), you must use the logging APIs provided by the SDK.
You can add tags to a trial component and then use the Search API to search for the tags.
CreateTrialComponent
can only be invoked from within an Amazon SageMaker managed environment. This includes Amazon SageMaker training jobs, processing jobs, transform jobs, and Amazon SageMaker notebooks. A call to CreateTrialComponent
from outside one of these environments results in an error.
",
@@ -4825,8 +4825,8 @@
"DescribeNotebookInstanceOutput$KmsKeyId": "The AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the ML storage volume attached to the instance.
",
"EdgeOutputConfig$KmsKeyId": "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.
",
"FlowDefinitionOutputConfig$KmsKeyId": "The Amazon Key Management Service (KMS) key ID for server-side encryption.
",
- "LabelingJobOutputConfig$KmsKeyId": "The AWS Key Management Service ID of the key used to encrypt the output data, if any.
If you use a KMS key ID or an alias of your master key, the Amazon SageMaker execution role must include permissions to call kms:Encrypt
. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. Amazon SageMaker uses server-side encryption with KMS-managed keys for LabelingJobOutputConfig
. If you use a bucket policy with an s3:PutObject
permission that only allows objects with server-side encryption, set the condition key of s3:x-amz-server-side-encryption
to \"aws:kms\"
. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.
The KMS key policy must grant permission to the IAM role that you specify in your CreateLabelingJob
request. For more information, see Using Key Policies in AWS KMS in the AWS Key Management Service Developer Guide.
",
- "LabelingJobResourceConfig$VolumeKmsKeyId": "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job. The VolumeKmsKeyId
can be any of the following formats:
-
// KMS Key ID
\"1234abcd-12ab-34cd-56ef-1234567890ab\"
-
// Amazon Resource Name (ARN) of a KMS Key
\"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"
",
+ "LabelingJobOutputConfig$KmsKeyId": "The AWS Key Management Service ID of the key used to encrypt the output data, if any.
If you provide your own KMS key ID, you must add the required permissions to your KMS key described in Encrypt Output Data and Storage Volume with AWS KMS.
If you don't provide a KMS key ID, Amazon SageMaker uses the default AWS KMS key for Amazon S3 for your role's account to encrypt your output data.
If you use a bucket policy with an s3:PutObject
permission that only allows objects with server-side encryption, set the condition key of s3:x-amz-server-side-encryption
to \"aws:kms\"
. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.
",
+ "LabelingJobResourceConfig$VolumeKmsKeyId": "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training and inference jobs used for automated data labeling.
You can only specify a VolumeKmsKeyId
when you create a labeling job with automated data labeling enabled using the API operation CreateLabelingJob
. You cannot specify an AWS KMS customer managed CMK to encrypt the storage volume used for automated data labeling model training and inference when you create a labeling job using the console. To learn more, see Output Data and Storage Volume Encryption.
The VolumeKmsKeyId
can be any of the following formats:
-
KMS Key ID
\"1234abcd-12ab-34cd-56ef-1234567890ab\"
-
Amazon Resource Name (ARN) of a KMS Key
\"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"
",
"MonitoringClusterConfig$VolumeKmsKeyId": "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.
",
"MonitoringOutputConfig$KmsKeyId": "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.
",
"OnlineStoreSecurityConfig$KmsKeyId": "The ID of the AWS Key Management Service (AWS KMS) key that SageMaker Feature Store uses to encrypt the Amazon S3 objects at rest using Amazon S3 server-side encryption.
The caller (either IAM user or IAM role) of CreateFeatureGroup
must have below permissions to the OnlineStore
KmsKeyId
:
-
\"kms:Encrypt\"
-
\"kms:Decrypt\"
-
\"kms:DescribeKey\"
-
\"kms:CreateGrant\"
-
\"kms:RetireGrant\"
-
\"kms:ReEncryptFrom\"
-
\"kms:ReEncryptTo\"
-
\"kms:GenerateDataKey\"
-
\"kms:ListAliases\"
-
\"kms:ListGrants\"
-
\"kms:RevokeGrant\"
The caller (either IAM user or IAM role) to all DataPlane operations (PutRecord
, GetRecord
, DeleteRecord
) must have the following permissions to the KmsKeyId
:
",
@@ -4959,7 +4959,7 @@
}
},
"LabelingJobResourceConfig": {
- "base": "Provides configuration information for labeling jobs.
",
+ "base": "Configure encryption on the storage volume attached to the ML compute instance used to run automated data labeling model training and inference.
",
"refs": {
"LabelingJobAlgorithmsConfig$LabelingJobResourceConfig": "Provides configuration information for a labeling job.
"
}
@@ -4973,7 +4973,7 @@
"LabelingJobSnsDataSource": {
"base": "An Amazon SNS data source used for streaming labeling jobs.
",
"refs": {
- "LabelingJobDataSource$SnsDataSource": "An Amazon SNS data source used for streaming labeling jobs.
"
+ "LabelingJobDataSource$SnsDataSource": "An Amazon SNS data source used for streaming labeling jobs. To learn more, see Send Data to a Streaming Labeling Job.
"
}
},
"LabelingJobStatus": {
@@ -8373,9 +8373,9 @@
}
},
"SharingSettings": {
- "base": "Specifies options when sharing an Amazon SageMaker Studio notebook. These settings are specified as part of DefaultUserSettings
when the CreateDomain API is called, and as part of UserSettings
when the CreateUserProfile API is called.
",
+ "base": "Specifies options for sharing SageMaker Studio notebooks. These settings are specified as part of DefaultUserSettings
when the CreateDomain API is called, and as part of UserSettings
when the CreateUserProfile API is called. When SharingSettings
is not specified, notebook sharing isn't allowed.
",
"refs": {
- "UserSettings$SharingSettings": "The sharing settings.
"
+ "UserSettings$SharingSettings": "Specifies options for sharing SageMaker Studio notebooks.
"
}
},
"ShuffleConfig": {
@@ -8394,8 +8394,8 @@
"SnsTopicArn": {
"base": null,
"refs": {
- "LabelingJobOutputConfig$SnsTopicArn": "An Amazon Simple Notification Service (Amazon SNS) output topic ARN.
When workers complete labeling tasks, Ground Truth will send labeling task output data to the SNS output topic you specify here.
You must provide a value for this parameter if you provide an Amazon SNS input topic in SnsDataSource
in InputConfig
.
",
- "LabelingJobSnsDataSource$SnsTopicArn": "The Amazon SNS input topic Amazon Resource Name (ARN). Specify the ARN of the input topic you will use to send new data objects to a streaming labeling job.
If you specify an input topic for SnsTopicArn
in InputConfig
, you must specify a value for SnsTopicArn
in OutputConfig
.
"
+ "LabelingJobOutputConfig$SnsTopicArn": "An Amazon Simple Notification Service (Amazon SNS) output topic ARN.
If you provide an SnsTopicArn
in OutputConfig
, when workers complete labeling tasks, Ground Truth will send labeling task output data to the SNS output topic you specify here.
To learn more, see Receive Output Data from a Streaming Labeling Job.
",
+ "LabelingJobSnsDataSource$SnsTopicArn": "The Amazon SNS input topic Amazon Resource Name (ARN). Specify the ARN of the input topic you will use to send new data objects to a streaming labeling job.
"
}
},
"SortActionsBy": {
@@ -8850,7 +8850,7 @@
"CreateContextRequest$Tags": "A list of tags to apply to the context.
",
"CreateDataQualityJobDefinitionRequest$Tags": "(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.
",
"CreateDeviceFleetRequest$Tags": "Creates tags for the specified fleet.
",
- "CreateDomainRequest$Tags": "Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be unique per resource. Tags are searchable using the Search API.
",
+ "CreateDomainRequest$Tags": "Tags to associated with the Domain. Each tag consists of a key and an optional value. Tag keys must be unique per resource. Tags are searchable using the Search API.
",
"CreateEdgePackagingJobRequest$Tags": "Creates tags for the packaging job.
",
"CreateEndpointConfigInput$Tags": "An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
",
"CreateEndpointInput$Tags": "An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
",
@@ -9357,6 +9357,26 @@
"TrafficRoutingConfig$Type": ""
}
},
+ "TrainingEnvironmentKey": {
+ "base": null,
+ "refs": {
+ "TrainingEnvironmentMap$key": null
+ }
+ },
+ "TrainingEnvironmentMap": {
+ "base": null,
+ "refs": {
+ "CreateTrainingJobRequest$Environment": "The environment variables to set in the Docker container.
",
+ "DescribeTrainingJobResponse$Environment": "The environment variables to set in the Docker container.
",
+ "TrainingJob$Environment": "The environment variables to set in the Docker container.
"
+ }
+ },
+ "TrainingEnvironmentValue": {
+ "base": null,
+ "refs": {
+ "TrainingEnvironmentMap$value": null
+ }
+ },
"TrainingInputMode": {
"base": null,
"refs": {
@@ -10203,11 +10223,11 @@
}
},
"UserSettings": {
- "base": "A collection of settings that apply to users of Amazon SageMaker Studio. These settings are specified when the CreateUserProfile API is called, and as DefaultUserSettings
when the CreateDomain API is called.
SecurityGroups
is aggregated when specified in both calls. For all other settings in UserSettings
, the values specified in CreateUserProfile
take precedence over those specified in CreateDomain
.
",
+ "base": "A collection of settings that apply to users of Amazon SageMaker Studio. These settings are specified when the CreateUserProfile API is called, and as DefaultUserSettings
when the CreateDomain API is called.
SecurityGroups
is aggregated when specified in both calls. For all other settings in UserSettings
, the values specified in CreateUserProfile
take precedence over those specified in CreateDomain
.
",
"refs": {
- "CreateDomainRequest$DefaultUserSettings": "The default user settings.
",
+ "CreateDomainRequest$DefaultUserSettings": "The default settings to use to create a user profile when UserSettings
isn't specified in the call to the CreateUserProfile API.
SecurityGroups
is aggregated when specified in both calls. For all other settings in UserSettings
, the values specified in CreateUserProfile
take precedence over those specified in CreateDomain
.
",
"CreateUserProfileRequest$UserSettings": "A collection of settings.
",
- "DescribeDomainResponse$DefaultUserSettings": "Settings which are applied to all UserProfiles in this domain, if settings are not explicitly specified in a given UserProfile.
",
+ "DescribeDomainResponse$DefaultUserSettings": "Settings which are applied to UserProfiles in this domain if settings are not explicitly specified in a given UserProfile.
",
"DescribeUserProfileResponse$UserSettings": "A collection of settings.
",
"UpdateDomainRequest$DefaultUserSettings": "A collection of settings.
",
"UpdateUserProfileRequest$UserSettings": "A collection of settings.
"
diff --git a/models/apis/sqs/2012-11-05/docs-2.json b/models/apis/sqs/2012-11-05/docs-2.json
index 2700277307a..b86862a6bf7 100644
--- a/models/apis/sqs/2012-11-05/docs-2.json
+++ b/models/apis/sqs/2012-11-05/docs-2.json
@@ -1,6 +1,6 @@
{
"version": "2.0",
- "service": "Welcome to the Amazon Simple Queue Service API Reference.
Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.
For information on the permissions you need to use this API, see Identity and access management in the Amazon Simple Queue Service Developer Guide.
You can use AWS SDKs to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:
Additional Information
",
+ "service": "Welcome to the Amazon Simple Queue Service API Reference.
Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.
For information on the permissions you need to use this API, see Identity and access management in the Amazon Simple Queue Service Developer Guide.
You can use AWS SDKs to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:
Additional information
",
"operations": {
"AddPermission": "Adds a permission to a queue for a specific principal. This allows sharing access to the queue.
When you create a queue, you have full control access rights for the queue. Only you, the owner of the queue, can grant or deny permissions to the queue. For more information about these permissions, see Allow Developers to Write Messages to a Shared Queue in the Amazon Simple Queue Service Developer Guide.
-
AddPermission
generates a policy for you. You can use SetQueueAttributes
to upload your policy. For more information, see Using Custom Policies with the Amazon SQS Access Policy Language in the Amazon Simple Queue Service Developer Guide.
-
An Amazon SQS policy can have a maximum of 7 actions.
-
To remove the ability to change queue permissions, you must deny permission to the AddPermission
, RemovePermission
, and SetQueueAttributes
actions in your IAM policy.
Some actions take lists of parameters. These lists are specified using the param.n
notation. Values of n
are integers starting from 1. For example, a parameter list with two elements looks like this:
&AttributeName.1=first
&AttributeName.2=second
Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a user name in the Amazon Simple Queue Service Developer Guide.
",
"ChangeMessageVisibility": "Changes the visibility timeout of a specified message in a queue to a new value. The default visibility timeout for a message is 30 seconds. The minimum is 0 seconds. The maximum is 12 hours. For more information, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.
For example, you have a message with a visibility timeout of 5 minutes. After 3 minutes, you call ChangeMessageVisibility
with a timeout of 10 minutes. You can continue to call ChangeMessageVisibility
to extend the visibility timeout to the maximum allowed time. If you try to extend the visibility timeout beyond the maximum, your request is rejected.
An Amazon SQS message has three basic states:
-
Sent to a queue by a producer.
-
Received from the queue by a consumer.
-
Deleted from the queue.
A message is considered to be stored after it is sent to a queue by a producer, but not yet received from the queue by a consumer (that is, between states 1 and 2). There is no limit to the number of stored messages. A message is considered to be in flight after it is received from a queue by a consumer, but not yet deleted from the queue (that is, between states 2 and 3). There is a limit to the number of inflight messages.
Limits that apply to inflight messages are unrelated to the unlimited number of stored messages.
For most standard queues (depending on queue traffic and message backlog), there can be a maximum of approximately 120,000 inflight messages (received from a queue by a consumer, but not yet deleted from the queue). If you reach this limit, Amazon SQS returns the OverLimit
error message. To avoid reaching the limit, you should delete messages from the queue after they're processed. You can also increase the number of queues you use to process your messages. To request a limit increase, file a support request.
For FIFO queues, there can be a maximum of 20,000 inflight messages (received from a queue by a consumer, but not yet deleted from the queue). If you reach this limit, Amazon SQS returns no error messages.
If you attempt to set the VisibilityTimeout
to a value greater than the maximum time left, Amazon SQS returns an error. Amazon SQS doesn't automatically recalculate and increase the timeout to the maximum remaining time.
Unlike with a queue, when you change the visibility timeout for a specific message the timeout value is applied immediately but isn't saved in memory for that message. If you don't delete a message after it is received, the visibility timeout for the message reverts to the original timeout value (not to the value you set using the ChangeMessageVisibility
action) the next time the message is received.
",
@@ -532,7 +532,7 @@
"SendMessageBatchRequestEntry$MessageGroupId": "This parameter applies only to FIFO (first-in-first-out) queues.
The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use MessageGroupId
values (for example, session data for multiple users). In this scenario, multiple consumers can process the queue, but the session data of each user is processed in a FIFO fashion.
-
You must associate a non-empty MessageGroupId
with a message. If you don't provide a MessageGroupId
, the action fails.
-
ReceiveMessage
might return messages with multiple MessageGroupId
values. For each MessageGroupId
, the messages are sorted by time sent. The caller can't specify a MessageGroupId
.
The length of MessageGroupId
is 128 characters. Valid values: alphanumeric characters and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~)
.
For best practices of using MessageGroupId
, see Using the MessageGroupId Property in the Amazon Simple Queue Service Developer Guide.
MessageGroupId
is required for FIFO queues. You can't use it for Standard queues.
",
"SendMessageBatchResultEntry$Id": "An identifier for the message in this batch.
",
"SendMessageBatchResultEntry$MessageId": "An identifier for the message.
",
- "SendMessageBatchResultEntry$MD5OfMessageBody": "An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.
",
+ "SendMessageBatchResultEntry$MD5OfMessageBody": "An MD5 digest of the non-URL-encoded message body string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.
",
"SendMessageBatchResultEntry$MD5OfMessageAttributes": "An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.
",
"SendMessageBatchResultEntry$MD5OfMessageSystemAttributes": "An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.
",
"SendMessageBatchResultEntry$SequenceNumber": "This parameter applies only to FIFO (first-in-first-out) queues.
The large, non-consecutive number that Amazon SQS assigns to each message.
The length of SequenceNumber
is 128 bits. As SequenceNumber
continues to increase for a particular MessageGroupId
.
",
@@ -540,7 +540,7 @@
"SendMessageRequest$MessageBody": "The message to send. The minimum size is one character. The maximum size is 256 KB.
A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:
#x9
| #xA
| #xD
| #x20
to #xD7FF
| #xE000
to #xFFFD
| #x10000
to #x10FFFF
Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.
",
"SendMessageRequest$MessageDeduplicationId": "This parameter applies only to FIFO (first-in-first-out) queues.
The token used for deduplication of sent messages. If a message with a particular MessageDeduplicationId
is sent successfully, any messages sent with the same MessageDeduplicationId
are accepted successfully but aren't delivered during the 5-minute deduplication interval. For more information, see Exactly-Once Processing in the Amazon Simple Queue Service Developer Guide.
-
Every message must have a unique MessageDeduplicationId
,
-
You may provide a MessageDeduplicationId
explicitly.
-
If you aren't able to provide a MessageDeduplicationId
and you enable ContentBasedDeduplication
for your queue, Amazon SQS uses a SHA-256 hash to generate the MessageDeduplicationId
using the body of the message (but not the attributes of the message).
-
If you don't provide a MessageDeduplicationId
and the queue doesn't have ContentBasedDeduplication
set, the action fails with an error.
-
If the queue has ContentBasedDeduplication
set, your MessageDeduplicationId
overrides the generated one.
-
When ContentBasedDeduplication
is in effect, messages with identical content sent within the deduplication interval are treated as duplicates and only one copy of the message is delivered.
-
If you send one message with ContentBasedDeduplication
enabled and then another message with a MessageDeduplicationId
that is the same as the one generated for the first MessageDeduplicationId
, the two messages are treated as duplicates and only one copy of the message is delivered.
The MessageDeduplicationId
is available to the consumer of the message (this can be useful for troubleshooting delivery issues).
If a message is sent successfully but the acknowledgement is lost and the message is resent with the same MessageDeduplicationId
after the deduplication interval, Amazon SQS can't detect duplicate messages.
Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted.
The maximum length of MessageDeduplicationId
is 128 characters. MessageDeduplicationId
can contain alphanumeric characters (a-z
, A-Z
, 0-9
) and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~
).
For best practices of using MessageDeduplicationId
, see Using the MessageDeduplicationId Property in the Amazon Simple Queue Service Developer Guide.
",
"SendMessageRequest$MessageGroupId": "This parameter applies only to FIFO (first-in-first-out) queues.
The tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are processed in a FIFO manner (however, messages in different message groups might be processed out of order). To interleave multiple ordered streams within a single queue, use MessageGroupId
values (for example, session data for multiple users). In this scenario, multiple consumers can process the queue, but the session data of each user is processed in a FIFO fashion.
-
You must associate a non-empty MessageGroupId
with a message. If you don't provide a MessageGroupId
, the action fails.
-
ReceiveMessage
might return messages with multiple MessageGroupId
values. For each MessageGroupId
, the messages are sorted by time sent. The caller can't specify a MessageGroupId
.
The length of MessageGroupId
is 128 characters. Valid values: alphanumeric characters and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~)
.
For best practices of using MessageGroupId
, see Using the MessageGroupId Property in the Amazon Simple Queue Service Developer Guide.
MessageGroupId
is required for FIFO queues. You can't use it for Standard queues.
",
- "SendMessageResult$MD5OfMessageBody": "An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.
",
+ "SendMessageResult$MD5OfMessageBody": "An MD5 digest of the non-URL-encoded message body string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.
",
"SendMessageResult$MD5OfMessageAttributes": "An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.
",
"SendMessageResult$MD5OfMessageSystemAttributes": "An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest.
",
"SendMessageResult$MessageId": "An attribute containing the MessageId
of the message sent to the queue. For more information, see Queue and Message Identifiers in the Amazon Simple Queue Service Developer Guide.
",
diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json
index 3cdb8e38c68..37423fd99fe 100644
--- a/models/endpoints/endpoints.json
+++ b/models/endpoints/endpoints.json
@@ -7915,18 +7915,6 @@
},
"batch" : {
"endpoints" : {
- "fips-us-gov-east-1" : {
- "credentialScope" : {
- "region" : "us-gov-east-1"
- },
- "hostname" : "batch.us-gov-east-1.amazonaws.com"
- },
- "fips-us-gov-west-1" : {
- "credentialScope" : {
- "region" : "us-gov-west-1"
- },
- "hostname" : "batch.us-gov-west-1.amazonaws.com"
- },
"us-gov-east-1" : { },
"us-gov-west-1" : { }
}
diff --git a/service/alexaforbusiness/api.go b/service/alexaforbusiness/api.go
index 1bf0fe129d5..5edfe307386 100644
--- a/service/alexaforbusiness/api.go
+++ b/service/alexaforbusiness/api.go
@@ -11016,6 +11016,9 @@ type CreateProfileInput struct {
// The user-specified token that is used during the creation of a profile.
ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"`
+ // Whether data retention of the profile is enabled.
+ DataRetentionOptIn *bool `type:"boolean"`
+
// The distance unit to be used by devices in the profile.
//
// DistanceUnit is a required field
@@ -11141,6 +11144,12 @@ func (s *CreateProfileInput) SetClientRequestToken(v string) *CreateProfileInput
return s
}
+// SetDataRetentionOptIn sets the DataRetentionOptIn field's value.
+func (s *CreateProfileInput) SetDataRetentionOptIn(v bool) *CreateProfileInput {
+ s.DataRetentionOptIn = &v
+ return s
+}
+
// SetDistanceUnit sets the DistanceUnit field's value.
func (s *CreateProfileInput) SetDistanceUnit(v string) *CreateProfileInput {
s.DistanceUnit = &v
@@ -16154,6 +16163,9 @@ type Profile struct {
// The ARN of the address book.
AddressBookArn *string `type:"string"`
+ // Whether data retention of the profile is enabled.
+ DataRetentionOptIn *bool `type:"boolean"`
+
// The distance unit of a room profile.
DistanceUnit *string `type:"string" enum:"DistanceUnit"`
@@ -16214,6 +16226,12 @@ func (s *Profile) SetAddressBookArn(v string) *Profile {
return s
}
+// SetDataRetentionOptIn sets the DataRetentionOptIn field's value.
+func (s *Profile) SetDataRetentionOptIn(v bool) *Profile {
+ s.DataRetentionOptIn = &v
+ return s
+}
+
// SetDistanceUnit sets the DistanceUnit field's value.
func (s *Profile) SetDistanceUnit(v string) *Profile {
s.DistanceUnit = &v
@@ -20540,6 +20558,9 @@ type UpdateProfileInput struct {
// The updated address for the room profile.
Address *string `min:"1" type:"string"`
+ // Whether data retention of the profile is enabled.
+ DataRetentionOptIn *bool `type:"boolean"`
+
// The updated distance unit for the room profile.
DistanceUnit *string `type:"string" enum:"DistanceUnit"`
@@ -20622,6 +20643,12 @@ func (s *UpdateProfileInput) SetAddress(v string) *UpdateProfileInput {
return s
}
+// SetDataRetentionOptIn sets the DataRetentionOptIn field's value.
+func (s *UpdateProfileInput) SetDataRetentionOptIn(v bool) *UpdateProfileInput {
+ s.DataRetentionOptIn = &v
+ return s
+}
+
// SetDistanceUnit sets the DistanceUnit field's value.
func (s *UpdateProfileInput) SetDistanceUnit(v string) *UpdateProfileInput {
s.DistanceUnit = &v
diff --git a/service/lookoutmetrics/api.go b/service/lookoutmetrics/api.go
new file mode 100644
index 00000000000..ac8ee1b73b0
--- /dev/null
+++ b/service/lookoutmetrics/api.go
@@ -0,0 +1,8063 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package lookoutmetrics
+
+import (
+ "fmt"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/awsutil"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/private/protocol/restjson"
+)
+
+const opActivateAnomalyDetector = "ActivateAnomalyDetector"
+
+// ActivateAnomalyDetectorRequest generates a "aws/request.Request" representing the
+// client's request for the ActivateAnomalyDetector 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 ActivateAnomalyDetector for more information on using the ActivateAnomalyDetector
+// 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 ActivateAnomalyDetectorRequest method.
+// req, resp := client.ActivateAnomalyDetectorRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ActivateAnomalyDetector
+func (c *LookoutMetrics) ActivateAnomalyDetectorRequest(input *ActivateAnomalyDetectorInput) (req *request.Request, output *ActivateAnomalyDetectorOutput) {
+ op := &request.Operation{
+ Name: opActivateAnomalyDetector,
+ HTTPMethod: "POST",
+ HTTPPath: "/ActivateAnomalyDetector",
+ }
+
+ if input == nil {
+ input = &ActivateAnomalyDetectorInput{}
+ }
+
+ output = &ActivateAnomalyDetectorOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// ActivateAnomalyDetector API operation for Amazon Lookout for Metrics.
+//
+// Activates an anomaly detector.
+//
+// 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 Lookout for Metrics's
+// API operation ActivateAnomalyDetector for usage and error information.
+//
+// Returned Error Types:
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * ConflictException
+// There was a conflict processing the request. Try your request again.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ActivateAnomalyDetector
+func (c *LookoutMetrics) ActivateAnomalyDetector(input *ActivateAnomalyDetectorInput) (*ActivateAnomalyDetectorOutput, error) {
+ req, out := c.ActivateAnomalyDetectorRequest(input)
+ return out, req.Send()
+}
+
+// ActivateAnomalyDetectorWithContext is the same as ActivateAnomalyDetector with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ActivateAnomalyDetector 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 *LookoutMetrics) ActivateAnomalyDetectorWithContext(ctx aws.Context, input *ActivateAnomalyDetectorInput, opts ...request.Option) (*ActivateAnomalyDetectorOutput, error) {
+ req, out := c.ActivateAnomalyDetectorRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opBackTestAnomalyDetector = "BackTestAnomalyDetector"
+
+// BackTestAnomalyDetectorRequest generates a "aws/request.Request" representing the
+// client's request for the BackTestAnomalyDetector 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 BackTestAnomalyDetector for more information on using the BackTestAnomalyDetector
+// 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 BackTestAnomalyDetectorRequest method.
+// req, resp := client.BackTestAnomalyDetectorRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/BackTestAnomalyDetector
+func (c *LookoutMetrics) BackTestAnomalyDetectorRequest(input *BackTestAnomalyDetectorInput) (req *request.Request, output *BackTestAnomalyDetectorOutput) {
+ op := &request.Operation{
+ Name: opBackTestAnomalyDetector,
+ HTTPMethod: "POST",
+ HTTPPath: "/BackTestAnomalyDetector",
+ }
+
+ if input == nil {
+ input = &BackTestAnomalyDetectorInput{}
+ }
+
+ output = &BackTestAnomalyDetectorOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// BackTestAnomalyDetector API operation for Amazon Lookout for Metrics.
+//
+// Runs a backtest for anomaly detection for the specified resource.
+//
+// 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 Lookout for Metrics's
+// API operation BackTestAnomalyDetector for usage and error information.
+//
+// Returned Error Types:
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/BackTestAnomalyDetector
+func (c *LookoutMetrics) BackTestAnomalyDetector(input *BackTestAnomalyDetectorInput) (*BackTestAnomalyDetectorOutput, error) {
+ req, out := c.BackTestAnomalyDetectorRequest(input)
+ return out, req.Send()
+}
+
+// BackTestAnomalyDetectorWithContext is the same as BackTestAnomalyDetector with the addition of
+// the ability to pass a context and additional request options.
+//
+// See BackTestAnomalyDetector 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 *LookoutMetrics) BackTestAnomalyDetectorWithContext(ctx aws.Context, input *BackTestAnomalyDetectorInput, opts ...request.Option) (*BackTestAnomalyDetectorOutput, error) {
+ req, out := c.BackTestAnomalyDetectorRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCreateAlert = "CreateAlert"
+
+// CreateAlertRequest generates a "aws/request.Request" representing the
+// client's request for the CreateAlert 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 CreateAlert for more information on using the CreateAlert
+// 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 CreateAlertRequest method.
+// req, resp := client.CreateAlertRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/CreateAlert
+func (c *LookoutMetrics) CreateAlertRequest(input *CreateAlertInput) (req *request.Request, output *CreateAlertOutput) {
+ op := &request.Operation{
+ Name: opCreateAlert,
+ HTTPMethod: "POST",
+ HTTPPath: "/CreateAlert",
+ }
+
+ if input == nil {
+ input = &CreateAlertInput{}
+ }
+
+ output = &CreateAlertOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateAlert API operation for Amazon Lookout for Metrics.
+//
+// Creates an alert for an anomaly detector.
+//
+// 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 Lookout for Metrics's
+// API operation CreateAlert for usage and error information.
+//
+// Returned Error Types:
+// * ConflictException
+// There was a conflict processing the request. Try your request again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ServiceQuotaExceededException
+// The request exceeded the service's quotas. Check the service quotas and try
+// again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/CreateAlert
+func (c *LookoutMetrics) CreateAlert(input *CreateAlertInput) (*CreateAlertOutput, error) {
+ req, out := c.CreateAlertRequest(input)
+ return out, req.Send()
+}
+
+// CreateAlertWithContext is the same as CreateAlert with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateAlert 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 *LookoutMetrics) CreateAlertWithContext(ctx aws.Context, input *CreateAlertInput, opts ...request.Option) (*CreateAlertOutput, error) {
+ req, out := c.CreateAlertRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCreateAnomalyDetector = "CreateAnomalyDetector"
+
+// CreateAnomalyDetectorRequest generates a "aws/request.Request" representing the
+// client's request for the CreateAnomalyDetector 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 CreateAnomalyDetector for more information on using the CreateAnomalyDetector
+// 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 CreateAnomalyDetectorRequest method.
+// req, resp := client.CreateAnomalyDetectorRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/CreateAnomalyDetector
+func (c *LookoutMetrics) CreateAnomalyDetectorRequest(input *CreateAnomalyDetectorInput) (req *request.Request, output *CreateAnomalyDetectorOutput) {
+ op := &request.Operation{
+ Name: opCreateAnomalyDetector,
+ HTTPMethod: "POST",
+ HTTPPath: "/CreateAnomalyDetector",
+ }
+
+ if input == nil {
+ input = &CreateAnomalyDetectorInput{}
+ }
+
+ output = &CreateAnomalyDetectorOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateAnomalyDetector API operation for Amazon Lookout for Metrics.
+//
+// Creates an anomaly detector.
+//
+// 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 Lookout for Metrics's
+// API operation CreateAnomalyDetector for usage and error information.
+//
+// Returned Error Types:
+// * ConflictException
+// There was a conflict processing the request. Try your request again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ServiceQuotaExceededException
+// The request exceeded the service's quotas. Check the service quotas and try
+// again.
+//
+// * ConflictException
+// There was a conflict processing the request. Try your request again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/CreateAnomalyDetector
+func (c *LookoutMetrics) CreateAnomalyDetector(input *CreateAnomalyDetectorInput) (*CreateAnomalyDetectorOutput, error) {
+ req, out := c.CreateAnomalyDetectorRequest(input)
+ return out, req.Send()
+}
+
+// CreateAnomalyDetectorWithContext is the same as CreateAnomalyDetector with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateAnomalyDetector 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 *LookoutMetrics) CreateAnomalyDetectorWithContext(ctx aws.Context, input *CreateAnomalyDetectorInput, opts ...request.Option) (*CreateAnomalyDetectorOutput, error) {
+ req, out := c.CreateAnomalyDetectorRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCreateMetricSet = "CreateMetricSet"
+
+// CreateMetricSetRequest generates a "aws/request.Request" representing the
+// client's request for the CreateMetricSet 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 CreateMetricSet for more information on using the CreateMetricSet
+// 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 CreateMetricSetRequest method.
+// req, resp := client.CreateMetricSetRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/CreateMetricSet
+func (c *LookoutMetrics) CreateMetricSetRequest(input *CreateMetricSetInput) (req *request.Request, output *CreateMetricSetOutput) {
+ op := &request.Operation{
+ Name: opCreateMetricSet,
+ HTTPMethod: "POST",
+ HTTPPath: "/CreateMetricSet",
+ }
+
+ if input == nil {
+ input = &CreateMetricSetInput{}
+ }
+
+ output = &CreateMetricSetOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateMetricSet API operation for Amazon Lookout for Metrics.
+//
+// Creates a dataset.
+//
+// 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 Lookout for Metrics's
+// API operation CreateMetricSet for usage and error information.
+//
+// Returned Error Types:
+// * ConflictException
+// There was a conflict processing the request. Try your request again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ServiceQuotaExceededException
+// The request exceeded the service's quotas. Check the service quotas and try
+// again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/CreateMetricSet
+func (c *LookoutMetrics) CreateMetricSet(input *CreateMetricSetInput) (*CreateMetricSetOutput, error) {
+ req, out := c.CreateMetricSetRequest(input)
+ return out, req.Send()
+}
+
+// CreateMetricSetWithContext is the same as CreateMetricSet with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateMetricSet 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 *LookoutMetrics) CreateMetricSetWithContext(ctx aws.Context, input *CreateMetricSetInput, opts ...request.Option) (*CreateMetricSetOutput, error) {
+ req, out := c.CreateMetricSetRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteAlert = "DeleteAlert"
+
+// DeleteAlertRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteAlert 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 DeleteAlert for more information on using the DeleteAlert
+// 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 DeleteAlertRequest method.
+// req, resp := client.DeleteAlertRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DeleteAlert
+func (c *LookoutMetrics) DeleteAlertRequest(input *DeleteAlertInput) (req *request.Request, output *DeleteAlertOutput) {
+ op := &request.Operation{
+ Name: opDeleteAlert,
+ HTTPMethod: "POST",
+ HTTPPath: "/DeleteAlert",
+ }
+
+ if input == nil {
+ input = &DeleteAlertInput{}
+ }
+
+ output = &DeleteAlertOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeleteAlert API operation for Amazon Lookout for Metrics.
+//
+// Deletes an alert.
+//
+// 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 Lookout for Metrics's
+// API operation DeleteAlert for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DeleteAlert
+func (c *LookoutMetrics) DeleteAlert(input *DeleteAlertInput) (*DeleteAlertOutput, error) {
+ req, out := c.DeleteAlertRequest(input)
+ return out, req.Send()
+}
+
+// DeleteAlertWithContext is the same as DeleteAlert with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteAlert 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 *LookoutMetrics) DeleteAlertWithContext(ctx aws.Context, input *DeleteAlertInput, opts ...request.Option) (*DeleteAlertOutput, error) {
+ req, out := c.DeleteAlertRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteAnomalyDetector = "DeleteAnomalyDetector"
+
+// DeleteAnomalyDetectorRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteAnomalyDetector 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 DeleteAnomalyDetector for more information on using the DeleteAnomalyDetector
+// 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 DeleteAnomalyDetectorRequest method.
+// req, resp := client.DeleteAnomalyDetectorRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DeleteAnomalyDetector
+func (c *LookoutMetrics) DeleteAnomalyDetectorRequest(input *DeleteAnomalyDetectorInput) (req *request.Request, output *DeleteAnomalyDetectorOutput) {
+ op := &request.Operation{
+ Name: opDeleteAnomalyDetector,
+ HTTPMethod: "POST",
+ HTTPPath: "/DeleteAnomalyDetector",
+ }
+
+ if input == nil {
+ input = &DeleteAnomalyDetectorInput{}
+ }
+
+ output = &DeleteAnomalyDetectorOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeleteAnomalyDetector API operation for Amazon Lookout for Metrics.
+//
+// Deletes a detector. Deleting an anomaly detector will delete all of its corresponding
+// resources including any configured datasets and alerts.
+//
+// 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 Lookout for Metrics's
+// API operation DeleteAnomalyDetector for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ConflictException
+// There was a conflict processing the request. Try your request again.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DeleteAnomalyDetector
+func (c *LookoutMetrics) DeleteAnomalyDetector(input *DeleteAnomalyDetectorInput) (*DeleteAnomalyDetectorOutput, error) {
+ req, out := c.DeleteAnomalyDetectorRequest(input)
+ return out, req.Send()
+}
+
+// DeleteAnomalyDetectorWithContext is the same as DeleteAnomalyDetector with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteAnomalyDetector 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 *LookoutMetrics) DeleteAnomalyDetectorWithContext(ctx aws.Context, input *DeleteAnomalyDetectorInput, opts ...request.Option) (*DeleteAnomalyDetectorOutput, error) {
+ req, out := c.DeleteAnomalyDetectorRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribeAlert = "DescribeAlert"
+
+// DescribeAlertRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeAlert 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 DescribeAlert for more information on using the DescribeAlert
+// 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 DescribeAlertRequest method.
+// req, resp := client.DescribeAlertRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeAlert
+func (c *LookoutMetrics) DescribeAlertRequest(input *DescribeAlertInput) (req *request.Request, output *DescribeAlertOutput) {
+ op := &request.Operation{
+ Name: opDescribeAlert,
+ HTTPMethod: "POST",
+ HTTPPath: "/DescribeAlert",
+ }
+
+ if input == nil {
+ input = &DescribeAlertInput{}
+ }
+
+ output = &DescribeAlertOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeAlert API operation for Amazon Lookout for Metrics.
+//
+// Describes an alert.
+//
+// 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 Lookout for Metrics's
+// API operation DescribeAlert for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeAlert
+func (c *LookoutMetrics) DescribeAlert(input *DescribeAlertInput) (*DescribeAlertOutput, error) {
+ req, out := c.DescribeAlertRequest(input)
+ return out, req.Send()
+}
+
+// DescribeAlertWithContext is the same as DescribeAlert with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeAlert 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 *LookoutMetrics) DescribeAlertWithContext(ctx aws.Context, input *DescribeAlertInput, opts ...request.Option) (*DescribeAlertOutput, error) {
+ req, out := c.DescribeAlertRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribeAnomalyDetectionExecutions = "DescribeAnomalyDetectionExecutions"
+
+// DescribeAnomalyDetectionExecutionsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeAnomalyDetectionExecutions 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 DescribeAnomalyDetectionExecutions for more information on using the DescribeAnomalyDetectionExecutions
+// 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 DescribeAnomalyDetectionExecutionsRequest method.
+// req, resp := client.DescribeAnomalyDetectionExecutionsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeAnomalyDetectionExecutions
+func (c *LookoutMetrics) DescribeAnomalyDetectionExecutionsRequest(input *DescribeAnomalyDetectionExecutionsInput) (req *request.Request, output *DescribeAnomalyDetectionExecutionsOutput) {
+ op := &request.Operation{
+ Name: opDescribeAnomalyDetectionExecutions,
+ HTTPMethod: "POST",
+ HTTPPath: "/DescribeAnomalyDetectionExecutions",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeAnomalyDetectionExecutionsInput{}
+ }
+
+ output = &DescribeAnomalyDetectionExecutionsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeAnomalyDetectionExecutions API operation for Amazon Lookout for Metrics.
+//
+// Returns information about the status of the specified anomaly detection jobs.
+//
+// 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 Lookout for Metrics's
+// API operation DescribeAnomalyDetectionExecutions for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeAnomalyDetectionExecutions
+func (c *LookoutMetrics) DescribeAnomalyDetectionExecutions(input *DescribeAnomalyDetectionExecutionsInput) (*DescribeAnomalyDetectionExecutionsOutput, error) {
+ req, out := c.DescribeAnomalyDetectionExecutionsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeAnomalyDetectionExecutionsWithContext is the same as DescribeAnomalyDetectionExecutions with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeAnomalyDetectionExecutions 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 *LookoutMetrics) DescribeAnomalyDetectionExecutionsWithContext(ctx aws.Context, input *DescribeAnomalyDetectionExecutionsInput, opts ...request.Option) (*DescribeAnomalyDetectionExecutionsOutput, error) {
+ req, out := c.DescribeAnomalyDetectionExecutionsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeAnomalyDetectionExecutionsPages iterates over the pages of a DescribeAnomalyDetectionExecutions operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeAnomalyDetectionExecutions 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 DescribeAnomalyDetectionExecutions operation.
+// pageNum := 0
+// err := client.DescribeAnomalyDetectionExecutionsPages(params,
+// func(page *lookoutmetrics.DescribeAnomalyDetectionExecutionsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *LookoutMetrics) DescribeAnomalyDetectionExecutionsPages(input *DescribeAnomalyDetectionExecutionsInput, fn func(*DescribeAnomalyDetectionExecutionsOutput, bool) bool) error {
+ return c.DescribeAnomalyDetectionExecutionsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeAnomalyDetectionExecutionsPagesWithContext same as DescribeAnomalyDetectionExecutionsPages 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 *LookoutMetrics) DescribeAnomalyDetectionExecutionsPagesWithContext(ctx aws.Context, input *DescribeAnomalyDetectionExecutionsInput, fn func(*DescribeAnomalyDetectionExecutionsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeAnomalyDetectionExecutionsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeAnomalyDetectionExecutionsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeAnomalyDetectionExecutionsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeAnomalyDetector = "DescribeAnomalyDetector"
+
+// DescribeAnomalyDetectorRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeAnomalyDetector 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 DescribeAnomalyDetector for more information on using the DescribeAnomalyDetector
+// 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 DescribeAnomalyDetectorRequest method.
+// req, resp := client.DescribeAnomalyDetectorRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeAnomalyDetector
+func (c *LookoutMetrics) DescribeAnomalyDetectorRequest(input *DescribeAnomalyDetectorInput) (req *request.Request, output *DescribeAnomalyDetectorOutput) {
+ op := &request.Operation{
+ Name: opDescribeAnomalyDetector,
+ HTTPMethod: "POST",
+ HTTPPath: "/DescribeAnomalyDetector",
+ }
+
+ if input == nil {
+ input = &DescribeAnomalyDetectorInput{}
+ }
+
+ output = &DescribeAnomalyDetectorOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeAnomalyDetector API operation for Amazon Lookout for Metrics.
+//
+// Describes a detector.
+//
+// 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 Lookout for Metrics's
+// API operation DescribeAnomalyDetector for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeAnomalyDetector
+func (c *LookoutMetrics) DescribeAnomalyDetector(input *DescribeAnomalyDetectorInput) (*DescribeAnomalyDetectorOutput, error) {
+ req, out := c.DescribeAnomalyDetectorRequest(input)
+ return out, req.Send()
+}
+
+// DescribeAnomalyDetectorWithContext is the same as DescribeAnomalyDetector with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeAnomalyDetector 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 *LookoutMetrics) DescribeAnomalyDetectorWithContext(ctx aws.Context, input *DescribeAnomalyDetectorInput, opts ...request.Option) (*DescribeAnomalyDetectorOutput, error) {
+ req, out := c.DescribeAnomalyDetectorRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribeMetricSet = "DescribeMetricSet"
+
+// DescribeMetricSetRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeMetricSet 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 DescribeMetricSet for more information on using the DescribeMetricSet
+// 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 DescribeMetricSetRequest method.
+// req, resp := client.DescribeMetricSetRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeMetricSet
+func (c *LookoutMetrics) DescribeMetricSetRequest(input *DescribeMetricSetInput) (req *request.Request, output *DescribeMetricSetOutput) {
+ op := &request.Operation{
+ Name: opDescribeMetricSet,
+ HTTPMethod: "POST",
+ HTTPPath: "/DescribeMetricSet",
+ }
+
+ if input == nil {
+ input = &DescribeMetricSetInput{}
+ }
+
+ output = &DescribeMetricSetOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeMetricSet API operation for Amazon Lookout for Metrics.
+//
+// Describes a dataset.
+//
+// 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 Lookout for Metrics's
+// API operation DescribeMetricSet for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeMetricSet
+func (c *LookoutMetrics) DescribeMetricSet(input *DescribeMetricSetInput) (*DescribeMetricSetOutput, error) {
+ req, out := c.DescribeMetricSetRequest(input)
+ return out, req.Send()
+}
+
+// DescribeMetricSetWithContext is the same as DescribeMetricSet with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeMetricSet 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 *LookoutMetrics) DescribeMetricSetWithContext(ctx aws.Context, input *DescribeMetricSetInput, opts ...request.Option) (*DescribeMetricSetOutput, error) {
+ req, out := c.DescribeMetricSetRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetAnomalyGroup = "GetAnomalyGroup"
+
+// GetAnomalyGroupRequest generates a "aws/request.Request" representing the
+// client's request for the GetAnomalyGroup 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 GetAnomalyGroup for more information on using the GetAnomalyGroup
+// 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 GetAnomalyGroupRequest method.
+// req, resp := client.GetAnomalyGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/GetAnomalyGroup
+func (c *LookoutMetrics) GetAnomalyGroupRequest(input *GetAnomalyGroupInput) (req *request.Request, output *GetAnomalyGroupOutput) {
+ op := &request.Operation{
+ Name: opGetAnomalyGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/GetAnomalyGroup",
+ }
+
+ if input == nil {
+ input = &GetAnomalyGroupInput{}
+ }
+
+ output = &GetAnomalyGroupOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetAnomalyGroup API operation for Amazon Lookout for Metrics.
+//
+// Returns details about a group of anomalous metrics.
+//
+// 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 Lookout for Metrics's
+// API operation GetAnomalyGroup for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/GetAnomalyGroup
+func (c *LookoutMetrics) GetAnomalyGroup(input *GetAnomalyGroupInput) (*GetAnomalyGroupOutput, error) {
+ req, out := c.GetAnomalyGroupRequest(input)
+ return out, req.Send()
+}
+
+// GetAnomalyGroupWithContext is the same as GetAnomalyGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetAnomalyGroup 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 *LookoutMetrics) GetAnomalyGroupWithContext(ctx aws.Context, input *GetAnomalyGroupInput, opts ...request.Option) (*GetAnomalyGroupOutput, error) {
+ req, out := c.GetAnomalyGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetFeedback = "GetFeedback"
+
+// GetFeedbackRequest generates a "aws/request.Request" representing the
+// client's request for the GetFeedback 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 GetFeedback for more information on using the GetFeedback
+// 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 GetFeedbackRequest method.
+// req, resp := client.GetFeedbackRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/GetFeedback
+func (c *LookoutMetrics) GetFeedbackRequest(input *GetFeedbackInput) (req *request.Request, output *GetFeedbackOutput) {
+ op := &request.Operation{
+ Name: opGetFeedback,
+ HTTPMethod: "POST",
+ HTTPPath: "/GetFeedback",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &GetFeedbackInput{}
+ }
+
+ output = &GetFeedbackOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetFeedback API operation for Amazon Lookout for Metrics.
+//
+// Get feedback for an anomaly group.
+//
+// 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 Lookout for Metrics's
+// API operation GetFeedback for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/GetFeedback
+func (c *LookoutMetrics) GetFeedback(input *GetFeedbackInput) (*GetFeedbackOutput, error) {
+ req, out := c.GetFeedbackRequest(input)
+ return out, req.Send()
+}
+
+// GetFeedbackWithContext is the same as GetFeedback with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetFeedback 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 *LookoutMetrics) GetFeedbackWithContext(ctx aws.Context, input *GetFeedbackInput, opts ...request.Option) (*GetFeedbackOutput, error) {
+ req, out := c.GetFeedbackRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// GetFeedbackPages iterates over the pages of a GetFeedback operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See GetFeedback 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 GetFeedback operation.
+// pageNum := 0
+// err := client.GetFeedbackPages(params,
+// func(page *lookoutmetrics.GetFeedbackOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *LookoutMetrics) GetFeedbackPages(input *GetFeedbackInput, fn func(*GetFeedbackOutput, bool) bool) error {
+ return c.GetFeedbackPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// GetFeedbackPagesWithContext same as GetFeedbackPages 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 *LookoutMetrics) GetFeedbackPagesWithContext(ctx aws.Context, input *GetFeedbackInput, fn func(*GetFeedbackOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *GetFeedbackInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.GetFeedbackRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*GetFeedbackOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opGetSampleData = "GetSampleData"
+
+// GetSampleDataRequest generates a "aws/request.Request" representing the
+// client's request for the GetSampleData 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 GetSampleData for more information on using the GetSampleData
+// 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 GetSampleDataRequest method.
+// req, resp := client.GetSampleDataRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/GetSampleData
+func (c *LookoutMetrics) GetSampleDataRequest(input *GetSampleDataInput) (req *request.Request, output *GetSampleDataOutput) {
+ op := &request.Operation{
+ Name: opGetSampleData,
+ HTTPMethod: "POST",
+ HTTPPath: "/GetSampleData",
+ }
+
+ if input == nil {
+ input = &GetSampleDataInput{}
+ }
+
+ output = &GetSampleDataOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetSampleData API operation for Amazon Lookout for Metrics.
+//
+// Returns a selection of sample records from an Amazon S3 datasource.
+//
+// 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 Lookout for Metrics's
+// API operation GetSampleData for usage and error information.
+//
+// Returned Error Types:
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/GetSampleData
+func (c *LookoutMetrics) GetSampleData(input *GetSampleDataInput) (*GetSampleDataOutput, error) {
+ req, out := c.GetSampleDataRequest(input)
+ return out, req.Send()
+}
+
+// GetSampleDataWithContext is the same as GetSampleData with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetSampleData 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 *LookoutMetrics) GetSampleDataWithContext(ctx aws.Context, input *GetSampleDataInput, opts ...request.Option) (*GetSampleDataOutput, error) {
+ req, out := c.GetSampleDataRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opListAlerts = "ListAlerts"
+
+// ListAlertsRequest generates a "aws/request.Request" representing the
+// client's request for the ListAlerts 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 ListAlerts for more information on using the ListAlerts
+// 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 ListAlertsRequest method.
+// req, resp := client.ListAlertsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListAlerts
+func (c *LookoutMetrics) ListAlertsRequest(input *ListAlertsInput) (req *request.Request, output *ListAlertsOutput) {
+ op := &request.Operation{
+ Name: opListAlerts,
+ HTTPMethod: "POST",
+ HTTPPath: "/ListAlerts",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListAlertsInput{}
+ }
+
+ output = &ListAlertsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListAlerts API operation for Amazon Lookout for Metrics.
+//
+// Lists the alerts attached to a detector.
+//
+// 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 Lookout for Metrics's
+// API operation ListAlerts for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListAlerts
+func (c *LookoutMetrics) ListAlerts(input *ListAlertsInput) (*ListAlertsOutput, error) {
+ req, out := c.ListAlertsRequest(input)
+ return out, req.Send()
+}
+
+// ListAlertsWithContext is the same as ListAlerts with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListAlerts 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 *LookoutMetrics) ListAlertsWithContext(ctx aws.Context, input *ListAlertsInput, opts ...request.Option) (*ListAlertsOutput, error) {
+ req, out := c.ListAlertsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListAlertsPages iterates over the pages of a ListAlerts operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListAlerts 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 ListAlerts operation.
+// pageNum := 0
+// err := client.ListAlertsPages(params,
+// func(page *lookoutmetrics.ListAlertsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *LookoutMetrics) ListAlertsPages(input *ListAlertsInput, fn func(*ListAlertsOutput, bool) bool) error {
+ return c.ListAlertsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListAlertsPagesWithContext same as ListAlertsPages 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 *LookoutMetrics) ListAlertsPagesWithContext(ctx aws.Context, input *ListAlertsInput, fn func(*ListAlertsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListAlertsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListAlertsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListAlertsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListAnomalyDetectors = "ListAnomalyDetectors"
+
+// ListAnomalyDetectorsRequest generates a "aws/request.Request" representing the
+// client's request for the ListAnomalyDetectors 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 ListAnomalyDetectors for more information on using the ListAnomalyDetectors
+// 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 ListAnomalyDetectorsRequest method.
+// req, resp := client.ListAnomalyDetectorsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListAnomalyDetectors
+func (c *LookoutMetrics) ListAnomalyDetectorsRequest(input *ListAnomalyDetectorsInput) (req *request.Request, output *ListAnomalyDetectorsOutput) {
+ op := &request.Operation{
+ Name: opListAnomalyDetectors,
+ HTTPMethod: "POST",
+ HTTPPath: "/ListAnomalyDetectors",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListAnomalyDetectorsInput{}
+ }
+
+ output = &ListAnomalyDetectorsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListAnomalyDetectors API operation for Amazon Lookout for Metrics.
+//
+// Lists the detectors in the current AWS Region.
+//
+// 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 Lookout for Metrics's
+// API operation ListAnomalyDetectors for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListAnomalyDetectors
+func (c *LookoutMetrics) ListAnomalyDetectors(input *ListAnomalyDetectorsInput) (*ListAnomalyDetectorsOutput, error) {
+ req, out := c.ListAnomalyDetectorsRequest(input)
+ return out, req.Send()
+}
+
+// ListAnomalyDetectorsWithContext is the same as ListAnomalyDetectors with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListAnomalyDetectors 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 *LookoutMetrics) ListAnomalyDetectorsWithContext(ctx aws.Context, input *ListAnomalyDetectorsInput, opts ...request.Option) (*ListAnomalyDetectorsOutput, error) {
+ req, out := c.ListAnomalyDetectorsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListAnomalyDetectorsPages iterates over the pages of a ListAnomalyDetectors operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListAnomalyDetectors 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 ListAnomalyDetectors operation.
+// pageNum := 0
+// err := client.ListAnomalyDetectorsPages(params,
+// func(page *lookoutmetrics.ListAnomalyDetectorsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *LookoutMetrics) ListAnomalyDetectorsPages(input *ListAnomalyDetectorsInput, fn func(*ListAnomalyDetectorsOutput, bool) bool) error {
+ return c.ListAnomalyDetectorsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListAnomalyDetectorsPagesWithContext same as ListAnomalyDetectorsPages 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 *LookoutMetrics) ListAnomalyDetectorsPagesWithContext(ctx aws.Context, input *ListAnomalyDetectorsInput, fn func(*ListAnomalyDetectorsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListAnomalyDetectorsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListAnomalyDetectorsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListAnomalyDetectorsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListAnomalyGroupSummaries = "ListAnomalyGroupSummaries"
+
+// ListAnomalyGroupSummariesRequest generates a "aws/request.Request" representing the
+// client's request for the ListAnomalyGroupSummaries 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 ListAnomalyGroupSummaries for more information on using the ListAnomalyGroupSummaries
+// 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 ListAnomalyGroupSummariesRequest method.
+// req, resp := client.ListAnomalyGroupSummariesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListAnomalyGroupSummaries
+func (c *LookoutMetrics) ListAnomalyGroupSummariesRequest(input *ListAnomalyGroupSummariesInput) (req *request.Request, output *ListAnomalyGroupSummariesOutput) {
+ op := &request.Operation{
+ Name: opListAnomalyGroupSummaries,
+ HTTPMethod: "POST",
+ HTTPPath: "/ListAnomalyGroupSummaries",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListAnomalyGroupSummariesInput{}
+ }
+
+ output = &ListAnomalyGroupSummariesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListAnomalyGroupSummaries API operation for Amazon Lookout for Metrics.
+//
+// Returns a list of anomaly groups.
+//
+// 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 Lookout for Metrics's
+// API operation ListAnomalyGroupSummaries for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListAnomalyGroupSummaries
+func (c *LookoutMetrics) ListAnomalyGroupSummaries(input *ListAnomalyGroupSummariesInput) (*ListAnomalyGroupSummariesOutput, error) {
+ req, out := c.ListAnomalyGroupSummariesRequest(input)
+ return out, req.Send()
+}
+
+// ListAnomalyGroupSummariesWithContext is the same as ListAnomalyGroupSummaries with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListAnomalyGroupSummaries 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 *LookoutMetrics) ListAnomalyGroupSummariesWithContext(ctx aws.Context, input *ListAnomalyGroupSummariesInput, opts ...request.Option) (*ListAnomalyGroupSummariesOutput, error) {
+ req, out := c.ListAnomalyGroupSummariesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListAnomalyGroupSummariesPages iterates over the pages of a ListAnomalyGroupSummaries operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListAnomalyGroupSummaries 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 ListAnomalyGroupSummaries operation.
+// pageNum := 0
+// err := client.ListAnomalyGroupSummariesPages(params,
+// func(page *lookoutmetrics.ListAnomalyGroupSummariesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *LookoutMetrics) ListAnomalyGroupSummariesPages(input *ListAnomalyGroupSummariesInput, fn func(*ListAnomalyGroupSummariesOutput, bool) bool) error {
+ return c.ListAnomalyGroupSummariesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListAnomalyGroupSummariesPagesWithContext same as ListAnomalyGroupSummariesPages 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 *LookoutMetrics) ListAnomalyGroupSummariesPagesWithContext(ctx aws.Context, input *ListAnomalyGroupSummariesInput, fn func(*ListAnomalyGroupSummariesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListAnomalyGroupSummariesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListAnomalyGroupSummariesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListAnomalyGroupSummariesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListAnomalyGroupTimeSeries = "ListAnomalyGroupTimeSeries"
+
+// ListAnomalyGroupTimeSeriesRequest generates a "aws/request.Request" representing the
+// client's request for the ListAnomalyGroupTimeSeries 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 ListAnomalyGroupTimeSeries for more information on using the ListAnomalyGroupTimeSeries
+// 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 ListAnomalyGroupTimeSeriesRequest method.
+// req, resp := client.ListAnomalyGroupTimeSeriesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListAnomalyGroupTimeSeries
+func (c *LookoutMetrics) ListAnomalyGroupTimeSeriesRequest(input *ListAnomalyGroupTimeSeriesInput) (req *request.Request, output *ListAnomalyGroupTimeSeriesOutput) {
+ op := &request.Operation{
+ Name: opListAnomalyGroupTimeSeries,
+ HTTPMethod: "POST",
+ HTTPPath: "/ListAnomalyGroupTimeSeries",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListAnomalyGroupTimeSeriesInput{}
+ }
+
+ output = &ListAnomalyGroupTimeSeriesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListAnomalyGroupTimeSeries API operation for Amazon Lookout for Metrics.
+//
+// Gets a list of anomalous metrics for a measure in an anomaly group.
+//
+// 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 Lookout for Metrics's
+// API operation ListAnomalyGroupTimeSeries for usage and error information.
+//
+// Returned Error Types:
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListAnomalyGroupTimeSeries
+func (c *LookoutMetrics) ListAnomalyGroupTimeSeries(input *ListAnomalyGroupTimeSeriesInput) (*ListAnomalyGroupTimeSeriesOutput, error) {
+ req, out := c.ListAnomalyGroupTimeSeriesRequest(input)
+ return out, req.Send()
+}
+
+// ListAnomalyGroupTimeSeriesWithContext is the same as ListAnomalyGroupTimeSeries with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListAnomalyGroupTimeSeries 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 *LookoutMetrics) ListAnomalyGroupTimeSeriesWithContext(ctx aws.Context, input *ListAnomalyGroupTimeSeriesInput, opts ...request.Option) (*ListAnomalyGroupTimeSeriesOutput, error) {
+ req, out := c.ListAnomalyGroupTimeSeriesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListAnomalyGroupTimeSeriesPages iterates over the pages of a ListAnomalyGroupTimeSeries operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListAnomalyGroupTimeSeries 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 ListAnomalyGroupTimeSeries operation.
+// pageNum := 0
+// err := client.ListAnomalyGroupTimeSeriesPages(params,
+// func(page *lookoutmetrics.ListAnomalyGroupTimeSeriesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *LookoutMetrics) ListAnomalyGroupTimeSeriesPages(input *ListAnomalyGroupTimeSeriesInput, fn func(*ListAnomalyGroupTimeSeriesOutput, bool) bool) error {
+ return c.ListAnomalyGroupTimeSeriesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListAnomalyGroupTimeSeriesPagesWithContext same as ListAnomalyGroupTimeSeriesPages 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 *LookoutMetrics) ListAnomalyGroupTimeSeriesPagesWithContext(ctx aws.Context, input *ListAnomalyGroupTimeSeriesInput, fn func(*ListAnomalyGroupTimeSeriesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListAnomalyGroupTimeSeriesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListAnomalyGroupTimeSeriesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListAnomalyGroupTimeSeriesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListMetricSets = "ListMetricSets"
+
+// ListMetricSetsRequest generates a "aws/request.Request" representing the
+// client's request for the ListMetricSets 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 ListMetricSets for more information on using the ListMetricSets
+// 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 ListMetricSetsRequest method.
+// req, resp := client.ListMetricSetsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListMetricSets
+func (c *LookoutMetrics) ListMetricSetsRequest(input *ListMetricSetsInput) (req *request.Request, output *ListMetricSetsOutput) {
+ op := &request.Operation{
+ Name: opListMetricSets,
+ HTTPMethod: "POST",
+ HTTPPath: "/ListMetricSets",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListMetricSetsInput{}
+ }
+
+ output = &ListMetricSetsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListMetricSets API operation for Amazon Lookout for Metrics.
+//
+// Lists the datasets in the current AWS Region.
+//
+// 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 Lookout for Metrics's
+// API operation ListMetricSets for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListMetricSets
+func (c *LookoutMetrics) ListMetricSets(input *ListMetricSetsInput) (*ListMetricSetsOutput, error) {
+ req, out := c.ListMetricSetsRequest(input)
+ return out, req.Send()
+}
+
+// ListMetricSetsWithContext is the same as ListMetricSets with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListMetricSets 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 *LookoutMetrics) ListMetricSetsWithContext(ctx aws.Context, input *ListMetricSetsInput, opts ...request.Option) (*ListMetricSetsOutput, error) {
+ req, out := c.ListMetricSetsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListMetricSetsPages iterates over the pages of a ListMetricSets operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListMetricSets 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 ListMetricSets operation.
+// pageNum := 0
+// err := client.ListMetricSetsPages(params,
+// func(page *lookoutmetrics.ListMetricSetsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *LookoutMetrics) ListMetricSetsPages(input *ListMetricSetsInput, fn func(*ListMetricSetsOutput, bool) bool) error {
+ return c.ListMetricSetsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListMetricSetsPagesWithContext same as ListMetricSetsPages 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 *LookoutMetrics) ListMetricSetsPagesWithContext(ctx aws.Context, input *ListMetricSetsInput, fn func(*ListMetricSetsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListMetricSetsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListMetricSetsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListMetricSetsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListTagsForResource = "ListTagsForResource"
+
+// ListTagsForResourceRequest generates a "aws/request.Request" representing the
+// client's request for the ListTagsForResource 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 ListTagsForResource for more information on using the ListTagsForResource
+// 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 ListTagsForResourceRequest method.
+// req, resp := client.ListTagsForResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListTagsForResource
+func (c *LookoutMetrics) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
+ op := &request.Operation{
+ Name: opListTagsForResource,
+ HTTPMethod: "GET",
+ HTTPPath: "/tags/{resourceArn}",
+ }
+
+ if input == nil {
+ input = &ListTagsForResourceInput{}
+ }
+
+ output = &ListTagsForResourceOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListTagsForResource API operation for Amazon Lookout for Metrics.
+//
+// Gets a list of tags (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
+// for a detector, dataset, or alert.
+//
+// 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 Lookout for Metrics's
+// API operation ListTagsForResource for usage and error information.
+//
+// Returned Error Types:
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/ListTagsForResource
+func (c *LookoutMetrics) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ return out, req.Send()
+}
+
+// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListTagsForResource 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 *LookoutMetrics) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutFeedback = "PutFeedback"
+
+// PutFeedbackRequest generates a "aws/request.Request" representing the
+// client's request for the PutFeedback 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 PutFeedback for more information on using the PutFeedback
+// 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 PutFeedbackRequest method.
+// req, resp := client.PutFeedbackRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/PutFeedback
+func (c *LookoutMetrics) PutFeedbackRequest(input *PutFeedbackInput) (req *request.Request, output *PutFeedbackOutput) {
+ op := &request.Operation{
+ Name: opPutFeedback,
+ HTTPMethod: "POST",
+ HTTPPath: "/PutFeedback",
+ }
+
+ if input == nil {
+ input = &PutFeedbackInput{}
+ }
+
+ output = &PutFeedbackOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// PutFeedback API operation for Amazon Lookout for Metrics.
+//
+// Add feedback for an anomalous metric.
+//
+// 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 Lookout for Metrics's
+// API operation PutFeedback for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/PutFeedback
+func (c *LookoutMetrics) PutFeedback(input *PutFeedbackInput) (*PutFeedbackOutput, error) {
+ req, out := c.PutFeedbackRequest(input)
+ return out, req.Send()
+}
+
+// PutFeedbackWithContext is the same as PutFeedback with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutFeedback 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 *LookoutMetrics) PutFeedbackWithContext(ctx aws.Context, input *PutFeedbackInput, opts ...request.Option) (*PutFeedbackOutput, error) {
+ req, out := c.PutFeedbackRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opTagResource = "TagResource"
+
+// TagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the TagResource 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 TagResource for more information on using the TagResource
+// 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 TagResourceRequest method.
+// req, resp := client.TagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/TagResource
+func (c *LookoutMetrics) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
+ op := &request.Operation{
+ Name: opTagResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/tags/{resourceArn}",
+ }
+
+ if input == nil {
+ input = &TagResourceInput{}
+ }
+
+ output = &TagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// TagResource API operation for Amazon Lookout for Metrics.
+//
+// Adds tags (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
+// to a detector, dataset, or alert.
+//
+// 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 Lookout for Metrics's
+// API operation TagResource for usage and error information.
+//
+// Returned Error Types:
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/TagResource
+func (c *LookoutMetrics) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ return out, req.Send()
+}
+
+// TagResourceWithContext is the same as TagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TagResource 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 *LookoutMetrics) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUntagResource = "UntagResource"
+
+// UntagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the UntagResource 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 UntagResource for more information on using the UntagResource
+// 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 UntagResourceRequest method.
+// req, resp := client.UntagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UntagResource
+func (c *LookoutMetrics) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
+ op := &request.Operation{
+ Name: opUntagResource,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/tags/{resourceArn}",
+ }
+
+ if input == nil {
+ input = &UntagResourceInput{}
+ }
+
+ output = &UntagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UntagResource API operation for Amazon Lookout for Metrics.
+//
+// Removes tags (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
+// from a detector, dataset, or alert.
+//
+// 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 Lookout for Metrics's
+// API operation UntagResource for usage and error information.
+//
+// Returned Error Types:
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UntagResource
+func (c *LookoutMetrics) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ return out, req.Send()
+}
+
+// UntagResourceWithContext is the same as UntagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UntagResource 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 *LookoutMetrics) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateAnomalyDetector = "UpdateAnomalyDetector"
+
+// UpdateAnomalyDetectorRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateAnomalyDetector 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 UpdateAnomalyDetector for more information on using the UpdateAnomalyDetector
+// 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 UpdateAnomalyDetectorRequest method.
+// req, resp := client.UpdateAnomalyDetectorRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateAnomalyDetector
+func (c *LookoutMetrics) UpdateAnomalyDetectorRequest(input *UpdateAnomalyDetectorInput) (req *request.Request, output *UpdateAnomalyDetectorOutput) {
+ op := &request.Operation{
+ Name: opUpdateAnomalyDetector,
+ HTTPMethod: "POST",
+ HTTPPath: "/UpdateAnomalyDetector",
+ }
+
+ if input == nil {
+ input = &UpdateAnomalyDetectorInput{}
+ }
+
+ output = &UpdateAnomalyDetectorOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateAnomalyDetector API operation for Amazon Lookout for Metrics.
+//
+// Updates a detector. After activation, you can only change a detector's ingestion
+// delay and description.
+//
+// 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 Lookout for Metrics's
+// API operation UpdateAnomalyDetector for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateAnomalyDetector
+func (c *LookoutMetrics) UpdateAnomalyDetector(input *UpdateAnomalyDetectorInput) (*UpdateAnomalyDetectorOutput, error) {
+ req, out := c.UpdateAnomalyDetectorRequest(input)
+ return out, req.Send()
+}
+
+// UpdateAnomalyDetectorWithContext is the same as UpdateAnomalyDetector with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateAnomalyDetector 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 *LookoutMetrics) UpdateAnomalyDetectorWithContext(ctx aws.Context, input *UpdateAnomalyDetectorInput, opts ...request.Option) (*UpdateAnomalyDetectorOutput, error) {
+ req, out := c.UpdateAnomalyDetectorRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateMetricSet = "UpdateMetricSet"
+
+// UpdateMetricSetRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateMetricSet 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 UpdateMetricSet for more information on using the UpdateMetricSet
+// 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 UpdateMetricSetRequest method.
+// req, resp := client.UpdateMetricSetRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateMetricSet
+func (c *LookoutMetrics) UpdateMetricSetRequest(input *UpdateMetricSetInput) (req *request.Request, output *UpdateMetricSetOutput) {
+ op := &request.Operation{
+ Name: opUpdateMetricSet,
+ HTTPMethod: "POST",
+ HTTPPath: "/UpdateMetricSet",
+ }
+
+ if input == nil {
+ input = &UpdateMetricSetInput{}
+ }
+
+ output = &UpdateMetricSetOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateMetricSet API operation for Amazon Lookout for Metrics.
+//
+// Updates a dataset.
+//
+// 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 Lookout for Metrics's
+// API operation UpdateMetricSet for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+//
+// * ValidationException
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+//
+// * InternalServerException
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * TooManyRequestsException
+// The request was denied due to too many requests being submitted at the same
+// time.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/UpdateMetricSet
+func (c *LookoutMetrics) UpdateMetricSet(input *UpdateMetricSetInput) (*UpdateMetricSetOutput, error) {
+ req, out := c.UpdateMetricSetRequest(input)
+ return out, req.Send()
+}
+
+// UpdateMetricSetWithContext is the same as UpdateMetricSet with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateMetricSet 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 *LookoutMetrics) UpdateMetricSetWithContext(ctx aws.Context, input *UpdateMetricSetInput, opts ...request.Option) (*UpdateMetricSetOutput, error) {
+ req, out := c.UpdateMetricSetRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// You do not have sufficient permissions to perform this action.
+type AccessDeniedException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+}
+
+// String returns the string representation
+func (s AccessDeniedException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AccessDeniedException) GoString() string {
+ return s.String()
+}
+
+func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
+ return &AccessDeniedException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *AccessDeniedException) Code() string {
+ return "AccessDeniedException"
+}
+
+// Message returns the exception's message.
+func (s *AccessDeniedException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *AccessDeniedException) OrigErr() error {
+ return nil
+}
+
+func (s *AccessDeniedException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// A configuration that specifies the action to perform when anomalies are detected.
+type Action struct {
+ _ struct{} `type:"structure"`
+
+ // A configuration for an AWS Lambda channel.
+ LambdaConfiguration *LambdaConfiguration `type:"structure"`
+
+ // A configuration for an Amazon SNS channel.
+ SNSConfiguration *SNSConfiguration `type:"structure"`
+}
+
+// String returns the string representation
+func (s Action) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Action) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Action) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Action"}
+ if s.LambdaConfiguration != nil {
+ if err := s.LambdaConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("LambdaConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.SNSConfiguration != nil {
+ if err := s.SNSConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("SNSConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLambdaConfiguration sets the LambdaConfiguration field's value.
+func (s *Action) SetLambdaConfiguration(v *LambdaConfiguration) *Action {
+ s.LambdaConfiguration = v
+ return s
+}
+
+// SetSNSConfiguration sets the SNSConfiguration field's value.
+func (s *Action) SetSNSConfiguration(v *SNSConfiguration) *Action {
+ s.SNSConfiguration = v
+ return s
+}
+
+type ActivateAnomalyDetectorInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the anomaly detector.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ActivateAnomalyDetectorInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ActivateAnomalyDetectorInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ActivateAnomalyDetectorInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ActivateAnomalyDetectorInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *ActivateAnomalyDetectorInput) SetAnomalyDetectorArn(v string) *ActivateAnomalyDetectorInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+type ActivateAnomalyDetectorOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s ActivateAnomalyDetectorOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ActivateAnomalyDetectorOutput) GoString() string {
+ return s.String()
+}
+
+// A configuration for Amazon SNS-integrated notifications.
+type Alert struct {
+ _ struct{} `type:"structure"`
+
+ // Action that will be triggered when there is an alert.
+ Action *Action `type:"structure"`
+
+ // The ARN of the alert.
+ AlertArn *string `type:"string"`
+
+ // A description of the alert.
+ AlertDescription *string `type:"string"`
+
+ // The name of the alert.
+ AlertName *string `min:"1" type:"string"`
+
+ // The minimum severity for an anomaly to trigger the alert.
+ AlertSensitivityThreshold *int64 `type:"integer"`
+
+ // The status of the alert.
+ AlertStatus *string `type:"string" enum:"AlertStatus"`
+
+ // The type of the alert.
+ AlertType *string `type:"string" enum:"AlertType"`
+
+ // The ARN of the detector to which the alert is attached.
+ AnomalyDetectorArn *string `type:"string"`
+
+ // The time at which the alert was created.
+ CreationTime *time.Time `type:"timestamp"`
+
+ // The time at which the alert was last modified.
+ LastModificationTime *time.Time `type:"timestamp"`
+}
+
+// String returns the string representation
+func (s Alert) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Alert) GoString() string {
+ return s.String()
+}
+
+// SetAction sets the Action field's value.
+func (s *Alert) SetAction(v *Action) *Alert {
+ s.Action = v
+ return s
+}
+
+// SetAlertArn sets the AlertArn field's value.
+func (s *Alert) SetAlertArn(v string) *Alert {
+ s.AlertArn = &v
+ return s
+}
+
+// SetAlertDescription sets the AlertDescription field's value.
+func (s *Alert) SetAlertDescription(v string) *Alert {
+ s.AlertDescription = &v
+ return s
+}
+
+// SetAlertName sets the AlertName field's value.
+func (s *Alert) SetAlertName(v string) *Alert {
+ s.AlertName = &v
+ return s
+}
+
+// SetAlertSensitivityThreshold sets the AlertSensitivityThreshold field's value.
+func (s *Alert) SetAlertSensitivityThreshold(v int64) *Alert {
+ s.AlertSensitivityThreshold = &v
+ return s
+}
+
+// SetAlertStatus sets the AlertStatus field's value.
+func (s *Alert) SetAlertStatus(v string) *Alert {
+ s.AlertStatus = &v
+ return s
+}
+
+// SetAlertType sets the AlertType field's value.
+func (s *Alert) SetAlertType(v string) *Alert {
+ s.AlertType = &v
+ return s
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *Alert) SetAnomalyDetectorArn(v string) *Alert {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetCreationTime sets the CreationTime field's value.
+func (s *Alert) SetCreationTime(v time.Time) *Alert {
+ s.CreationTime = &v
+ return s
+}
+
+// SetLastModificationTime sets the LastModificationTime field's value.
+func (s *Alert) SetLastModificationTime(v time.Time) *Alert {
+ s.LastModificationTime = &v
+ return s
+}
+
+// Provides a summary of an alert's configuration.
+type AlertSummary struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the alert.
+ AlertArn *string `type:"string"`
+
+ // The name of the alert.
+ AlertName *string `min:"1" type:"string"`
+
+ // The minimum severity for an anomaly to trigger the alert.
+ AlertSensitivityThreshold *int64 `type:"integer"`
+
+ // The status of the alert.
+ AlertStatus *string `type:"string" enum:"AlertStatus"`
+
+ // The type of the alert.
+ AlertType *string `type:"string" enum:"AlertType"`
+
+ // The ARN of the detector to which the alert is attached.
+ AnomalyDetectorArn *string `type:"string"`
+
+ // The time at which the alert was created.
+ CreationTime *time.Time `type:"timestamp"`
+
+ // The time at which the alert was last modified.
+ LastModificationTime *time.Time `type:"timestamp"`
+
+ // The alert's tags (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html).
+ Tags map[string]*string `min:"1" type:"map"`
+}
+
+// String returns the string representation
+func (s AlertSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AlertSummary) GoString() string {
+ return s.String()
+}
+
+// SetAlertArn sets the AlertArn field's value.
+func (s *AlertSummary) SetAlertArn(v string) *AlertSummary {
+ s.AlertArn = &v
+ return s
+}
+
+// SetAlertName sets the AlertName field's value.
+func (s *AlertSummary) SetAlertName(v string) *AlertSummary {
+ s.AlertName = &v
+ return s
+}
+
+// SetAlertSensitivityThreshold sets the AlertSensitivityThreshold field's value.
+func (s *AlertSummary) SetAlertSensitivityThreshold(v int64) *AlertSummary {
+ s.AlertSensitivityThreshold = &v
+ return s
+}
+
+// SetAlertStatus sets the AlertStatus field's value.
+func (s *AlertSummary) SetAlertStatus(v string) *AlertSummary {
+ s.AlertStatus = &v
+ return s
+}
+
+// SetAlertType sets the AlertType field's value.
+func (s *AlertSummary) SetAlertType(v string) *AlertSummary {
+ s.AlertType = &v
+ return s
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *AlertSummary) SetAnomalyDetectorArn(v string) *AlertSummary {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetCreationTime sets the CreationTime field's value.
+func (s *AlertSummary) SetCreationTime(v time.Time) *AlertSummary {
+ s.CreationTime = &v
+ return s
+}
+
+// SetLastModificationTime sets the LastModificationTime field's value.
+func (s *AlertSummary) SetLastModificationTime(v time.Time) *AlertSummary {
+ s.LastModificationTime = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *AlertSummary) SetTags(v map[string]*string) *AlertSummary {
+ s.Tags = v
+ return s
+}
+
+// Contains information about a detector's configuration.
+type AnomalyDetectorConfig struct {
+ _ struct{} `type:"structure"`
+
+ // The frequency at which the detector analyzes its source data.
+ AnomalyDetectorFrequency *string `type:"string" enum:"Frequency"`
+}
+
+// String returns the string representation
+func (s AnomalyDetectorConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AnomalyDetectorConfig) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyDetectorFrequency sets the AnomalyDetectorFrequency field's value.
+func (s *AnomalyDetectorConfig) SetAnomalyDetectorFrequency(v string) *AnomalyDetectorConfig {
+ s.AnomalyDetectorFrequency = &v
+ return s
+}
+
+// Contains information about a detector's configuration.
+type AnomalyDetectorConfigSummary struct {
+ _ struct{} `type:"structure"`
+
+ // The interval at which the detector analyzes its source data.
+ AnomalyDetectorFrequency *string `type:"string" enum:"Frequency"`
+}
+
+// String returns the string representation
+func (s AnomalyDetectorConfigSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AnomalyDetectorConfigSummary) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyDetectorFrequency sets the AnomalyDetectorFrequency field's value.
+func (s *AnomalyDetectorConfigSummary) SetAnomalyDetectorFrequency(v string) *AnomalyDetectorConfigSummary {
+ s.AnomalyDetectorFrequency = &v
+ return s
+}
+
+// Contains information about an an anomaly detector.
+type AnomalyDetectorSummary struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the detector.
+ AnomalyDetectorArn *string `type:"string"`
+
+ // A description of the detector.
+ AnomalyDetectorDescription *string `min:"1" type:"string"`
+
+ // The name of the detector.
+ AnomalyDetectorName *string `min:"1" type:"string"`
+
+ // The time at which the detector was created.
+ CreationTime *time.Time `type:"timestamp"`
+
+ // The time at which the detector was last modified.
+ LastModificationTime *time.Time `type:"timestamp"`
+
+ // The status of detector.
+ Status *string `type:"string" enum:"AnomalyDetectorStatus"`
+
+ // The detector's tags (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html).
+ Tags map[string]*string `min:"1" type:"map"`
+}
+
+// String returns the string representation
+func (s AnomalyDetectorSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AnomalyDetectorSummary) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *AnomalyDetectorSummary) SetAnomalyDetectorArn(v string) *AnomalyDetectorSummary {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetAnomalyDetectorDescription sets the AnomalyDetectorDescription field's value.
+func (s *AnomalyDetectorSummary) SetAnomalyDetectorDescription(v string) *AnomalyDetectorSummary {
+ s.AnomalyDetectorDescription = &v
+ return s
+}
+
+// SetAnomalyDetectorName sets the AnomalyDetectorName field's value.
+func (s *AnomalyDetectorSummary) SetAnomalyDetectorName(v string) *AnomalyDetectorSummary {
+ s.AnomalyDetectorName = &v
+ return s
+}
+
+// SetCreationTime sets the CreationTime field's value.
+func (s *AnomalyDetectorSummary) SetCreationTime(v time.Time) *AnomalyDetectorSummary {
+ s.CreationTime = &v
+ return s
+}
+
+// SetLastModificationTime sets the LastModificationTime field's value.
+func (s *AnomalyDetectorSummary) SetLastModificationTime(v time.Time) *AnomalyDetectorSummary {
+ s.LastModificationTime = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *AnomalyDetectorSummary) SetStatus(v string) *AnomalyDetectorSummary {
+ s.Status = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *AnomalyDetectorSummary) SetTags(v map[string]*string) *AnomalyDetectorSummary {
+ s.Tags = v
+ return s
+}
+
+// A group of anomalous metrics
+type AnomalyGroup struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the anomaly group.
+ AnomalyGroupId *string `type:"string"`
+
+ // The severity score of the group.
+ AnomalyGroupScore *float64 `type:"double"`
+
+ // The end time for the group.
+ EndTime *string `type:"string"`
+
+ // A list of measures affected by the anomaly.
+ MetricLevelImpactList []*MetricLevelImpact `type:"list"`
+
+ // The name of the primary affected measure for the group.
+ PrimaryMetricName *string `type:"string"`
+
+ // The start time for the group.
+ StartTime *string `type:"string"`
+}
+
+// String returns the string representation
+func (s AnomalyGroup) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AnomalyGroup) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyGroupId sets the AnomalyGroupId field's value.
+func (s *AnomalyGroup) SetAnomalyGroupId(v string) *AnomalyGroup {
+ s.AnomalyGroupId = &v
+ return s
+}
+
+// SetAnomalyGroupScore sets the AnomalyGroupScore field's value.
+func (s *AnomalyGroup) SetAnomalyGroupScore(v float64) *AnomalyGroup {
+ s.AnomalyGroupScore = &v
+ return s
+}
+
+// SetEndTime sets the EndTime field's value.
+func (s *AnomalyGroup) SetEndTime(v string) *AnomalyGroup {
+ s.EndTime = &v
+ return s
+}
+
+// SetMetricLevelImpactList sets the MetricLevelImpactList field's value.
+func (s *AnomalyGroup) SetMetricLevelImpactList(v []*MetricLevelImpact) *AnomalyGroup {
+ s.MetricLevelImpactList = v
+ return s
+}
+
+// SetPrimaryMetricName sets the PrimaryMetricName field's value.
+func (s *AnomalyGroup) SetPrimaryMetricName(v string) *AnomalyGroup {
+ s.PrimaryMetricName = &v
+ return s
+}
+
+// SetStartTime sets the StartTime field's value.
+func (s *AnomalyGroup) SetStartTime(v string) *AnomalyGroup {
+ s.StartTime = &v
+ return s
+}
+
+// Aggregated statistics for a group of anomalous metrics.
+type AnomalyGroupStatistics struct {
+ _ struct{} `type:"structure"`
+
+ // The start of the time range that was searched.
+ EvaluationStartDate *string `type:"string"`
+
+ // Statistics for individual metrics within the group.
+ ItemizedMetricStatsList []*ItemizedMetricStats `type:"list"`
+
+ // The number of groups found.
+ TotalCount *int64 `type:"integer"`
+}
+
+// String returns the string representation
+func (s AnomalyGroupStatistics) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AnomalyGroupStatistics) GoString() string {
+ return s.String()
+}
+
+// SetEvaluationStartDate sets the EvaluationStartDate field's value.
+func (s *AnomalyGroupStatistics) SetEvaluationStartDate(v string) *AnomalyGroupStatistics {
+ s.EvaluationStartDate = &v
+ return s
+}
+
+// SetItemizedMetricStatsList sets the ItemizedMetricStatsList field's value.
+func (s *AnomalyGroupStatistics) SetItemizedMetricStatsList(v []*ItemizedMetricStats) *AnomalyGroupStatistics {
+ s.ItemizedMetricStatsList = v
+ return s
+}
+
+// SetTotalCount sets the TotalCount field's value.
+func (s *AnomalyGroupStatistics) SetTotalCount(v int64) *AnomalyGroupStatistics {
+ s.TotalCount = &v
+ return s
+}
+
+// Details about a group of anomalous metrics.
+type AnomalyGroupSummary struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the anomaly group.
+ AnomalyGroupId *string `type:"string"`
+
+ // The severity score of the group.
+ AnomalyGroupScore *float64 `type:"double"`
+
+ // The end time for the group.
+ EndTime *string `type:"string"`
+
+ // The name of the primary affected measure for the group.
+ PrimaryMetricName *string `type:"string"`
+
+ // The start time for the group.
+ StartTime *string `type:"string"`
+}
+
+// String returns the string representation
+func (s AnomalyGroupSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AnomalyGroupSummary) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyGroupId sets the AnomalyGroupId field's value.
+func (s *AnomalyGroupSummary) SetAnomalyGroupId(v string) *AnomalyGroupSummary {
+ s.AnomalyGroupId = &v
+ return s
+}
+
+// SetAnomalyGroupScore sets the AnomalyGroupScore field's value.
+func (s *AnomalyGroupSummary) SetAnomalyGroupScore(v float64) *AnomalyGroupSummary {
+ s.AnomalyGroupScore = &v
+ return s
+}
+
+// SetEndTime sets the EndTime field's value.
+func (s *AnomalyGroupSummary) SetEndTime(v string) *AnomalyGroupSummary {
+ s.EndTime = &v
+ return s
+}
+
+// SetPrimaryMetricName sets the PrimaryMetricName field's value.
+func (s *AnomalyGroupSummary) SetPrimaryMetricName(v string) *AnomalyGroupSummary {
+ s.PrimaryMetricName = &v
+ return s
+}
+
+// SetStartTime sets the StartTime field's value.
+func (s *AnomalyGroupSummary) SetStartTime(v string) *AnomalyGroupSummary {
+ s.StartTime = &v
+ return s
+}
+
+// An anomalous metric in an anomaly group.
+type AnomalyGroupTimeSeries struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the anomaly group.
+ //
+ // AnomalyGroupId is a required field
+ AnomalyGroupId *string `type:"string" required:"true"`
+
+ // The ID of the metric.
+ TimeSeriesId *string `type:"string"`
+}
+
+// String returns the string representation
+func (s AnomalyGroupTimeSeries) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AnomalyGroupTimeSeries) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AnomalyGroupTimeSeries) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AnomalyGroupTimeSeries"}
+ if s.AnomalyGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyGroupId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyGroupId sets the AnomalyGroupId field's value.
+func (s *AnomalyGroupTimeSeries) SetAnomalyGroupId(v string) *AnomalyGroupTimeSeries {
+ s.AnomalyGroupId = &v
+ return s
+}
+
+// SetTimeSeriesId sets the TimeSeriesId field's value.
+func (s *AnomalyGroupTimeSeries) SetTimeSeriesId(v string) *AnomalyGroupTimeSeries {
+ s.TimeSeriesId = &v
+ return s
+}
+
+// Feedback for an anomalous metric.
+type AnomalyGroupTimeSeriesFeedback struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the anomaly group.
+ //
+ // AnomalyGroupId is a required field
+ AnomalyGroupId *string `type:"string" required:"true"`
+
+ // Feedback on whether the metric is a legitimate anomaly.
+ //
+ // IsAnomaly is a required field
+ IsAnomaly *bool `type:"boolean" required:"true"`
+
+ // The ID of the metric.
+ //
+ // TimeSeriesId is a required field
+ TimeSeriesId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s AnomalyGroupTimeSeriesFeedback) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AnomalyGroupTimeSeriesFeedback) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AnomalyGroupTimeSeriesFeedback) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AnomalyGroupTimeSeriesFeedback"}
+ if s.AnomalyGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyGroupId"))
+ }
+ if s.IsAnomaly == nil {
+ invalidParams.Add(request.NewErrParamRequired("IsAnomaly"))
+ }
+ if s.TimeSeriesId == nil {
+ invalidParams.Add(request.NewErrParamRequired("TimeSeriesId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyGroupId sets the AnomalyGroupId field's value.
+func (s *AnomalyGroupTimeSeriesFeedback) SetAnomalyGroupId(v string) *AnomalyGroupTimeSeriesFeedback {
+ s.AnomalyGroupId = &v
+ return s
+}
+
+// SetIsAnomaly sets the IsAnomaly field's value.
+func (s *AnomalyGroupTimeSeriesFeedback) SetIsAnomaly(v bool) *AnomalyGroupTimeSeriesFeedback {
+ s.IsAnomaly = &v
+ return s
+}
+
+// SetTimeSeriesId sets the TimeSeriesId field's value.
+func (s *AnomalyGroupTimeSeriesFeedback) SetTimeSeriesId(v string) *AnomalyGroupTimeSeriesFeedback {
+ s.TimeSeriesId = &v
+ return s
+}
+
+// Details about an Amazon AppFlow flow datasource.
+type AppFlowConfig struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the flow.
+ //
+ // FlowName is a required field
+ FlowName *string `type:"string" required:"true"`
+
+ // An IAM role that gives Amazon Lookout for Metrics permission to access the
+ // flow.
+ //
+ // RoleArn is a required field
+ RoleArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s AppFlowConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AppFlowConfig) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AppFlowConfig) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AppFlowConfig"}
+ if s.FlowName == nil {
+ invalidParams.Add(request.NewErrParamRequired("FlowName"))
+ }
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFlowName sets the FlowName field's value.
+func (s *AppFlowConfig) SetFlowName(v string) *AppFlowConfig {
+ s.FlowName = &v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *AppFlowConfig) SetRoleArn(v string) *AppFlowConfig {
+ s.RoleArn = &v
+ return s
+}
+
+type BackTestAnomalyDetectorInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the anomaly detector.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s BackTestAnomalyDetectorInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BackTestAnomalyDetectorInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *BackTestAnomalyDetectorInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "BackTestAnomalyDetectorInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *BackTestAnomalyDetectorInput) SetAnomalyDetectorArn(v string) *BackTestAnomalyDetectorInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+type BackTestAnomalyDetectorOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s BackTestAnomalyDetectorOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s BackTestAnomalyDetectorOutput) GoString() string {
+ return s.String()
+}
+
+// Details about an Amazon CloudWatch datasource.
+type CloudWatchConfig struct {
+ _ struct{} `type:"structure"`
+
+ // An IAM role that gives Amazon Lookout for Metrics permission to access data
+ // in Amazon CloudWatch.
+ //
+ // RoleArn is a required field
+ RoleArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s CloudWatchConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CloudWatchConfig) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CloudWatchConfig) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CloudWatchConfig"}
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *CloudWatchConfig) SetRoleArn(v string) *CloudWatchConfig {
+ s.RoleArn = &v
+ return s
+}
+
+// There was a conflict processing the request. Try your request again.
+type ConflictException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The ID of the resource.
+ ResourceId *string `type:"string"`
+
+ // The type of the resource.
+ ResourceType *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ConflictException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ConflictException) GoString() string {
+ return s.String()
+}
+
+func newErrorConflictException(v protocol.ResponseMetadata) error {
+ return &ConflictException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ConflictException) Code() string {
+ return "ConflictException"
+}
+
+// Message returns the exception's message.
+func (s *ConflictException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ConflictException) OrigErr() error {
+ return nil
+}
+
+func (s *ConflictException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Details about dimensions that contributed to an anomaly.
+type ContributionMatrix struct {
+ _ struct{} `type:"structure"`
+
+ // A list of contributing dimensions.
+ DimensionContributionList []*DimensionContribution `type:"list"`
+}
+
+// String returns the string representation
+func (s ContributionMatrix) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ContributionMatrix) GoString() string {
+ return s.String()
+}
+
+// SetDimensionContributionList sets the DimensionContributionList field's value.
+func (s *ContributionMatrix) SetDimensionContributionList(v []*DimensionContribution) *ContributionMatrix {
+ s.DimensionContributionList = v
+ return s
+}
+
+type CreateAlertInput struct {
+ _ struct{} `type:"structure"`
+
+ // Action that will be triggered when there is an alert.
+ //
+ // Action is a required field
+ Action *Action `type:"structure" required:"true"`
+
+ // A description of the alert.
+ AlertDescription *string `type:"string"`
+
+ // The name of the alert.
+ //
+ // AlertName is a required field
+ AlertName *string `min:"1" type:"string" required:"true"`
+
+ // An integer from 0 to 100 specifying the alert sensitivity threshold.
+ //
+ // AlertSensitivityThreshold is a required field
+ AlertSensitivityThreshold *int64 `type:"integer" required:"true"`
+
+ // The ARN of the detector to which the alert is attached.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+
+ // A list of tags (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
+ // to apply to the alert.
+ Tags map[string]*string `min:"1" type:"map"`
+}
+
+// String returns the string representation
+func (s CreateAlertInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateAlertInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateAlertInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateAlertInput"}
+ if s.Action == nil {
+ invalidParams.Add(request.NewErrParamRequired("Action"))
+ }
+ if s.AlertName == nil {
+ invalidParams.Add(request.NewErrParamRequired("AlertName"))
+ }
+ if s.AlertName != nil && len(*s.AlertName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AlertName", 1))
+ }
+ if s.AlertSensitivityThreshold == nil {
+ invalidParams.Add(request.NewErrParamRequired("AlertSensitivityThreshold"))
+ }
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
+ if s.Action != nil {
+ if err := s.Action.Validate(); err != nil {
+ invalidParams.AddNested("Action", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAction sets the Action field's value.
+func (s *CreateAlertInput) SetAction(v *Action) *CreateAlertInput {
+ s.Action = v
+ return s
+}
+
+// SetAlertDescription sets the AlertDescription field's value.
+func (s *CreateAlertInput) SetAlertDescription(v string) *CreateAlertInput {
+ s.AlertDescription = &v
+ return s
+}
+
+// SetAlertName sets the AlertName field's value.
+func (s *CreateAlertInput) SetAlertName(v string) *CreateAlertInput {
+ s.AlertName = &v
+ return s
+}
+
+// SetAlertSensitivityThreshold sets the AlertSensitivityThreshold field's value.
+func (s *CreateAlertInput) SetAlertSensitivityThreshold(v int64) *CreateAlertInput {
+ s.AlertSensitivityThreshold = &v
+ return s
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *CreateAlertInput) SetAnomalyDetectorArn(v string) *CreateAlertInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateAlertInput) SetTags(v map[string]*string) *CreateAlertInput {
+ s.Tags = v
+ return s
+}
+
+type CreateAlertOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the alert.
+ AlertArn *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CreateAlertOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateAlertOutput) GoString() string {
+ return s.String()
+}
+
+// SetAlertArn sets the AlertArn field's value.
+func (s *CreateAlertOutput) SetAlertArn(v string) *CreateAlertOutput {
+ s.AlertArn = &v
+ return s
+}
+
+type CreateAnomalyDetectorInput struct {
+ _ struct{} `type:"structure"`
+
+ // Contains information about the configuration of the anomaly detector.
+ //
+ // AnomalyDetectorConfig is a required field
+ AnomalyDetectorConfig *AnomalyDetectorConfig `type:"structure" required:"true"`
+
+ // A description of the detector.
+ AnomalyDetectorDescription *string `min:"1" type:"string"`
+
+ // The name of the detector.
+ //
+ // AnomalyDetectorName is a required field
+ AnomalyDetectorName *string `min:"1" type:"string" required:"true"`
+
+ // The ARN of the KMS key to use to encrypt your data.
+ KmsKeyArn *string `min:"20" type:"string"`
+
+ // A list of tags (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
+ // to apply to the anomaly detector.
+ Tags map[string]*string `min:"1" type:"map"`
+}
+
+// String returns the string representation
+func (s CreateAnomalyDetectorInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateAnomalyDetectorInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateAnomalyDetectorInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateAnomalyDetectorInput"}
+ if s.AnomalyDetectorConfig == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorConfig"))
+ }
+ if s.AnomalyDetectorDescription != nil && len(*s.AnomalyDetectorDescription) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AnomalyDetectorDescription", 1))
+ }
+ if s.AnomalyDetectorName == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorName"))
+ }
+ if s.AnomalyDetectorName != nil && len(*s.AnomalyDetectorName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AnomalyDetectorName", 1))
+ }
+ if s.KmsKeyArn != nil && len(*s.KmsKeyArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("KmsKeyArn", 20))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorConfig sets the AnomalyDetectorConfig field's value.
+func (s *CreateAnomalyDetectorInput) SetAnomalyDetectorConfig(v *AnomalyDetectorConfig) *CreateAnomalyDetectorInput {
+ s.AnomalyDetectorConfig = v
+ return s
+}
+
+// SetAnomalyDetectorDescription sets the AnomalyDetectorDescription field's value.
+func (s *CreateAnomalyDetectorInput) SetAnomalyDetectorDescription(v string) *CreateAnomalyDetectorInput {
+ s.AnomalyDetectorDescription = &v
+ return s
+}
+
+// SetAnomalyDetectorName sets the AnomalyDetectorName field's value.
+func (s *CreateAnomalyDetectorInput) SetAnomalyDetectorName(v string) *CreateAnomalyDetectorInput {
+ s.AnomalyDetectorName = &v
+ return s
+}
+
+// SetKmsKeyArn sets the KmsKeyArn field's value.
+func (s *CreateAnomalyDetectorInput) SetKmsKeyArn(v string) *CreateAnomalyDetectorInput {
+ s.KmsKeyArn = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateAnomalyDetectorInput) SetTags(v map[string]*string) *CreateAnomalyDetectorInput {
+ s.Tags = v
+ return s
+}
+
+type CreateAnomalyDetectorOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the detector.
+ AnomalyDetectorArn *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CreateAnomalyDetectorOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateAnomalyDetectorOutput) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *CreateAnomalyDetectorOutput) SetAnomalyDetectorArn(v string) *CreateAnomalyDetectorOutput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+type CreateMetricSetInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the anomaly detector that will use the dataset.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+
+ // A list of the fields you want to treat as dimensions.
+ DimensionList []*string `min:"1" type:"list"`
+
+ // A list of metrics that the dataset will contain.
+ //
+ // MetricList is a required field
+ MetricList []*Metric `min:"1" type:"list" required:"true"`
+
+ // A description of the dataset you are creating.
+ MetricSetDescription *string `min:"1" type:"string"`
+
+ // The frequency with which the source data will be analyzed for anomalies.
+ MetricSetFrequency *string `type:"string" enum:"Frequency"`
+
+ // The name of the dataset.
+ //
+ // MetricSetName is a required field
+ MetricSetName *string `min:"1" type:"string" required:"true"`
+
+ // Contains information about how the source data should be interpreted.
+ //
+ // MetricSource is a required field
+ MetricSource *MetricSource `type:"structure" required:"true"`
+
+ // After an interval ends, the amount of time that the detector waits before
+ // importing data.
+ Offset *int64 `type:"integer"`
+
+ // A list of tags (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
+ // to apply to the dataset.
+ Tags map[string]*string `min:"1" type:"map"`
+
+ // Contains information about the column used for tracking time in your source
+ // data.
+ TimestampColumn *TimestampColumn `type:"structure"`
+
+ // The time zone in which your source data was recorded.
+ Timezone *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CreateMetricSetInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateMetricSetInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateMetricSetInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateMetricSetInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+ if s.DimensionList != nil && len(s.DimensionList) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DimensionList", 1))
+ }
+ if s.MetricList == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricList"))
+ }
+ if s.MetricList != nil && len(s.MetricList) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MetricList", 1))
+ }
+ if s.MetricSetDescription != nil && len(*s.MetricSetDescription) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MetricSetDescription", 1))
+ }
+ if s.MetricSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricSetName"))
+ }
+ if s.MetricSetName != nil && len(*s.MetricSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MetricSetName", 1))
+ }
+ if s.MetricSource == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricSource"))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
+ if s.MetricList != nil {
+ for i, v := range s.MetricList {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricList", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+ if s.MetricSource != nil {
+ if err := s.MetricSource.Validate(); err != nil {
+ invalidParams.AddNested("MetricSource", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.TimestampColumn != nil {
+ if err := s.TimestampColumn.Validate(); err != nil {
+ invalidParams.AddNested("TimestampColumn", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *CreateMetricSetInput) SetAnomalyDetectorArn(v string) *CreateMetricSetInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetDimensionList sets the DimensionList field's value.
+func (s *CreateMetricSetInput) SetDimensionList(v []*string) *CreateMetricSetInput {
+ s.DimensionList = v
+ return s
+}
+
+// SetMetricList sets the MetricList field's value.
+func (s *CreateMetricSetInput) SetMetricList(v []*Metric) *CreateMetricSetInput {
+ s.MetricList = v
+ return s
+}
+
+// SetMetricSetDescription sets the MetricSetDescription field's value.
+func (s *CreateMetricSetInput) SetMetricSetDescription(v string) *CreateMetricSetInput {
+ s.MetricSetDescription = &v
+ return s
+}
+
+// SetMetricSetFrequency sets the MetricSetFrequency field's value.
+func (s *CreateMetricSetInput) SetMetricSetFrequency(v string) *CreateMetricSetInput {
+ s.MetricSetFrequency = &v
+ return s
+}
+
+// SetMetricSetName sets the MetricSetName field's value.
+func (s *CreateMetricSetInput) SetMetricSetName(v string) *CreateMetricSetInput {
+ s.MetricSetName = &v
+ return s
+}
+
+// SetMetricSource sets the MetricSource field's value.
+func (s *CreateMetricSetInput) SetMetricSource(v *MetricSource) *CreateMetricSetInput {
+ s.MetricSource = v
+ return s
+}
+
+// SetOffset sets the Offset field's value.
+func (s *CreateMetricSetInput) SetOffset(v int64) *CreateMetricSetInput {
+ s.Offset = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateMetricSetInput) SetTags(v map[string]*string) *CreateMetricSetInput {
+ s.Tags = v
+ return s
+}
+
+// SetTimestampColumn sets the TimestampColumn field's value.
+func (s *CreateMetricSetInput) SetTimestampColumn(v *TimestampColumn) *CreateMetricSetInput {
+ s.TimestampColumn = v
+ return s
+}
+
+// SetTimezone sets the Timezone field's value.
+func (s *CreateMetricSetInput) SetTimezone(v string) *CreateMetricSetInput {
+ s.Timezone = &v
+ return s
+}
+
+type CreateMetricSetOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the dataset.
+ MetricSetArn *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CreateMetricSetOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateMetricSetOutput) GoString() string {
+ return s.String()
+}
+
+// SetMetricSetArn sets the MetricSetArn field's value.
+func (s *CreateMetricSetOutput) SetMetricSetArn(v string) *CreateMetricSetOutput {
+ s.MetricSetArn = &v
+ return s
+}
+
+// Contains information about how a source CSV data file should be analyzed.
+type CsvFormatDescriptor struct {
+ _ struct{} `type:"structure"`
+
+ // The character set in which the source CSV file is written.
+ Charset *string `type:"string"`
+
+ // Whether or not the source CSV file contains a header.
+ ContainsHeader *bool `type:"boolean"`
+
+ // The character used to delimit the source CSV file.
+ Delimiter *string `type:"string"`
+
+ // The level of compression of the source CSV file.
+ FileCompression *string `type:"string" enum:"CSVFileCompression"`
+
+ // A list of the source CSV file's headers, if any.
+ HeaderList []*string `type:"list"`
+
+ // The character used as a quote character.
+ QuoteSymbol *string `type:"string"`
+}
+
+// String returns the string representation
+func (s CsvFormatDescriptor) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CsvFormatDescriptor) GoString() string {
+ return s.String()
+}
+
+// SetCharset sets the Charset field's value.
+func (s *CsvFormatDescriptor) SetCharset(v string) *CsvFormatDescriptor {
+ s.Charset = &v
+ return s
+}
+
+// SetContainsHeader sets the ContainsHeader field's value.
+func (s *CsvFormatDescriptor) SetContainsHeader(v bool) *CsvFormatDescriptor {
+ s.ContainsHeader = &v
+ return s
+}
+
+// SetDelimiter sets the Delimiter field's value.
+func (s *CsvFormatDescriptor) SetDelimiter(v string) *CsvFormatDescriptor {
+ s.Delimiter = &v
+ return s
+}
+
+// SetFileCompression sets the FileCompression field's value.
+func (s *CsvFormatDescriptor) SetFileCompression(v string) *CsvFormatDescriptor {
+ s.FileCompression = &v
+ return s
+}
+
+// SetHeaderList sets the HeaderList field's value.
+func (s *CsvFormatDescriptor) SetHeaderList(v []*string) *CsvFormatDescriptor {
+ s.HeaderList = v
+ return s
+}
+
+// SetQuoteSymbol sets the QuoteSymbol field's value.
+func (s *CsvFormatDescriptor) SetQuoteSymbol(v string) *CsvFormatDescriptor {
+ s.QuoteSymbol = &v
+ return s
+}
+
+type DeleteAlertInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the alert to delete.
+ //
+ // AlertArn is a required field
+ AlertArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteAlertInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteAlertInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteAlertInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteAlertInput"}
+ if s.AlertArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AlertArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAlertArn sets the AlertArn field's value.
+func (s *DeleteAlertInput) SetAlertArn(v string) *DeleteAlertInput {
+ s.AlertArn = &v
+ return s
+}
+
+type DeleteAlertOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteAlertOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteAlertOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteAnomalyDetectorInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the detector to delete.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DeleteAnomalyDetectorInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteAnomalyDetectorInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteAnomalyDetectorInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteAnomalyDetectorInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *DeleteAnomalyDetectorInput) SetAnomalyDetectorArn(v string) *DeleteAnomalyDetectorInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+type DeleteAnomalyDetectorOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteAnomalyDetectorOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteAnomalyDetectorOutput) GoString() string {
+ return s.String()
+}
+
+type DescribeAlertInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the alert to describe.
+ //
+ // AlertArn is a required field
+ AlertArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DescribeAlertInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeAlertInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeAlertInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeAlertInput"}
+ if s.AlertArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AlertArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAlertArn sets the AlertArn field's value.
+func (s *DescribeAlertInput) SetAlertArn(v string) *DescribeAlertInput {
+ s.AlertArn = &v
+ return s
+}
+
+type DescribeAlertOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Contains information about an alert.
+ Alert *Alert `type:"structure"`
+}
+
+// String returns the string representation
+func (s DescribeAlertOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeAlertOutput) GoString() string {
+ return s.String()
+}
+
+// SetAlert sets the Alert field's value.
+func (s *DescribeAlertOutput) SetAlert(v *Alert) *DescribeAlertOutput {
+ s.Alert = v
+ return s
+}
+
+type DescribeAnomalyDetectionExecutionsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the anomaly detector.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+
+ // The number of items to return in the response.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // Specify the pagination token that's returned by a previous request to retrieve
+ // the next page of results.
+ NextToken *string `min:"1" type:"string"`
+
+ // The timestamp of the anomaly detection job.
+ Timestamp *string `type:"string"`
+}
+
+// String returns the string representation
+func (s DescribeAnomalyDetectionExecutionsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeAnomalyDetectionExecutionsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeAnomalyDetectionExecutionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeAnomalyDetectionExecutionsInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *DescribeAnomalyDetectionExecutionsInput) SetAnomalyDetectorArn(v string) *DescribeAnomalyDetectionExecutionsInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeAnomalyDetectionExecutionsInput) SetMaxResults(v int64) *DescribeAnomalyDetectionExecutionsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeAnomalyDetectionExecutionsInput) SetNextToken(v string) *DescribeAnomalyDetectionExecutionsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetTimestamp sets the Timestamp field's value.
+func (s *DescribeAnomalyDetectionExecutionsInput) SetTimestamp(v string) *DescribeAnomalyDetectionExecutionsInput {
+ s.Timestamp = &v
+ return s
+}
+
+type DescribeAnomalyDetectionExecutionsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A list of detection jobs.
+ ExecutionList []*ExecutionStatus `type:"list"`
+
+ // The pagination token that's included if more results are available.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s DescribeAnomalyDetectionExecutionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeAnomalyDetectionExecutionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetExecutionList sets the ExecutionList field's value.
+func (s *DescribeAnomalyDetectionExecutionsOutput) SetExecutionList(v []*ExecutionStatus) *DescribeAnomalyDetectionExecutionsOutput {
+ s.ExecutionList = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeAnomalyDetectionExecutionsOutput) SetNextToken(v string) *DescribeAnomalyDetectionExecutionsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeAnomalyDetectorInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the detector to describe.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DescribeAnomalyDetectorInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeAnomalyDetectorInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeAnomalyDetectorInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeAnomalyDetectorInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *DescribeAnomalyDetectorInput) SetAnomalyDetectorArn(v string) *DescribeAnomalyDetectorInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+type DescribeAnomalyDetectorOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the detector.
+ AnomalyDetectorArn *string `type:"string"`
+
+ // Contains information about the detector's configuration.
+ AnomalyDetectorConfig *AnomalyDetectorConfigSummary `type:"structure"`
+
+ // A description of the detector.
+ AnomalyDetectorDescription *string `min:"1" type:"string"`
+
+ // The name of the detector.
+ AnomalyDetectorName *string `min:"1" type:"string"`
+
+ // The time at which the detector was created.
+ CreationTime *time.Time `type:"timestamp"`
+
+ // The reason that the detector failed, if any.
+ FailureReason *string `type:"string"`
+
+ // The ARN of the KMS key to use to encrypt your data.
+ KmsKeyArn *string `min:"20" type:"string"`
+
+ // The time at which the detector was last modified.
+ LastModificationTime *time.Time `type:"timestamp"`
+
+ // The status of the detector.
+ Status *string `type:"string" enum:"AnomalyDetectorStatus"`
+}
+
+// String returns the string representation
+func (s DescribeAnomalyDetectorOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeAnomalyDetectorOutput) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *DescribeAnomalyDetectorOutput) SetAnomalyDetectorArn(v string) *DescribeAnomalyDetectorOutput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetAnomalyDetectorConfig sets the AnomalyDetectorConfig field's value.
+func (s *DescribeAnomalyDetectorOutput) SetAnomalyDetectorConfig(v *AnomalyDetectorConfigSummary) *DescribeAnomalyDetectorOutput {
+ s.AnomalyDetectorConfig = v
+ return s
+}
+
+// SetAnomalyDetectorDescription sets the AnomalyDetectorDescription field's value.
+func (s *DescribeAnomalyDetectorOutput) SetAnomalyDetectorDescription(v string) *DescribeAnomalyDetectorOutput {
+ s.AnomalyDetectorDescription = &v
+ return s
+}
+
+// SetAnomalyDetectorName sets the AnomalyDetectorName field's value.
+func (s *DescribeAnomalyDetectorOutput) SetAnomalyDetectorName(v string) *DescribeAnomalyDetectorOutput {
+ s.AnomalyDetectorName = &v
+ return s
+}
+
+// SetCreationTime sets the CreationTime field's value.
+func (s *DescribeAnomalyDetectorOutput) SetCreationTime(v time.Time) *DescribeAnomalyDetectorOutput {
+ s.CreationTime = &v
+ return s
+}
+
+// SetFailureReason sets the FailureReason field's value.
+func (s *DescribeAnomalyDetectorOutput) SetFailureReason(v string) *DescribeAnomalyDetectorOutput {
+ s.FailureReason = &v
+ return s
+}
+
+// SetKmsKeyArn sets the KmsKeyArn field's value.
+func (s *DescribeAnomalyDetectorOutput) SetKmsKeyArn(v string) *DescribeAnomalyDetectorOutput {
+ s.KmsKeyArn = &v
+ return s
+}
+
+// SetLastModificationTime sets the LastModificationTime field's value.
+func (s *DescribeAnomalyDetectorOutput) SetLastModificationTime(v time.Time) *DescribeAnomalyDetectorOutput {
+ s.LastModificationTime = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *DescribeAnomalyDetectorOutput) SetStatus(v string) *DescribeAnomalyDetectorOutput {
+ s.Status = &v
+ return s
+}
+
+type DescribeMetricSetInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the dataset.
+ //
+ // MetricSetArn is a required field
+ MetricSetArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DescribeMetricSetInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeMetricSetInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeMetricSetInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeMetricSetInput"}
+ if s.MetricSetArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricSetArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMetricSetArn sets the MetricSetArn field's value.
+func (s *DescribeMetricSetInput) SetMetricSetArn(v string) *DescribeMetricSetInput {
+ s.MetricSetArn = &v
+ return s
+}
+
+type DescribeMetricSetOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the detector that contains the dataset.
+ AnomalyDetectorArn *string `type:"string"`
+
+ // The time at which the dataset was created.
+ CreationTime *time.Time `type:"timestamp"`
+
+ // A list of the dimensions chosen for analysis.
+ DimensionList []*string `min:"1" type:"list"`
+
+ // The time at which the dataset was last modified.
+ LastModificationTime *time.Time `type:"timestamp"`
+
+ // A list of the metrics defined by the dataset.
+ MetricList []*Metric `min:"1" type:"list"`
+
+ // The ARN of the dataset.
+ MetricSetArn *string `type:"string"`
+
+ // The dataset's description.
+ MetricSetDescription *string `min:"1" type:"string"`
+
+ // The interval at which the data will be analyzed for anomalies.
+ MetricSetFrequency *string `type:"string" enum:"Frequency"`
+
+ // The name of the dataset.
+ MetricSetName *string `min:"1" type:"string"`
+
+ // Contains information about the dataset's source data.
+ MetricSource *MetricSource `type:"structure"`
+
+ // The offset for the dataset.
+ Offset *int64 `type:"integer"`
+
+ // Contains information about the column used for tracking time in your source
+ // data.
+ TimestampColumn *TimestampColumn `type:"structure"`
+
+ // The time zone in which the dataset's data was recorded.
+ Timezone *string `type:"string"`
+}
+
+// String returns the string representation
+func (s DescribeMetricSetOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeMetricSetOutput) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *DescribeMetricSetOutput) SetAnomalyDetectorArn(v string) *DescribeMetricSetOutput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetCreationTime sets the CreationTime field's value.
+func (s *DescribeMetricSetOutput) SetCreationTime(v time.Time) *DescribeMetricSetOutput {
+ s.CreationTime = &v
+ return s
+}
+
+// SetDimensionList sets the DimensionList field's value.
+func (s *DescribeMetricSetOutput) SetDimensionList(v []*string) *DescribeMetricSetOutput {
+ s.DimensionList = v
+ return s
+}
+
+// SetLastModificationTime sets the LastModificationTime field's value.
+func (s *DescribeMetricSetOutput) SetLastModificationTime(v time.Time) *DescribeMetricSetOutput {
+ s.LastModificationTime = &v
+ return s
+}
+
+// SetMetricList sets the MetricList field's value.
+func (s *DescribeMetricSetOutput) SetMetricList(v []*Metric) *DescribeMetricSetOutput {
+ s.MetricList = v
+ return s
+}
+
+// SetMetricSetArn sets the MetricSetArn field's value.
+func (s *DescribeMetricSetOutput) SetMetricSetArn(v string) *DescribeMetricSetOutput {
+ s.MetricSetArn = &v
+ return s
+}
+
+// SetMetricSetDescription sets the MetricSetDescription field's value.
+func (s *DescribeMetricSetOutput) SetMetricSetDescription(v string) *DescribeMetricSetOutput {
+ s.MetricSetDescription = &v
+ return s
+}
+
+// SetMetricSetFrequency sets the MetricSetFrequency field's value.
+func (s *DescribeMetricSetOutput) SetMetricSetFrequency(v string) *DescribeMetricSetOutput {
+ s.MetricSetFrequency = &v
+ return s
+}
+
+// SetMetricSetName sets the MetricSetName field's value.
+func (s *DescribeMetricSetOutput) SetMetricSetName(v string) *DescribeMetricSetOutput {
+ s.MetricSetName = &v
+ return s
+}
+
+// SetMetricSource sets the MetricSource field's value.
+func (s *DescribeMetricSetOutput) SetMetricSource(v *MetricSource) *DescribeMetricSetOutput {
+ s.MetricSource = v
+ return s
+}
+
+// SetOffset sets the Offset field's value.
+func (s *DescribeMetricSetOutput) SetOffset(v int64) *DescribeMetricSetOutput {
+ s.Offset = &v
+ return s
+}
+
+// SetTimestampColumn sets the TimestampColumn field's value.
+func (s *DescribeMetricSetOutput) SetTimestampColumn(v *TimestampColumn) *DescribeMetricSetOutput {
+ s.TimestampColumn = v
+ return s
+}
+
+// SetTimezone sets the Timezone field's value.
+func (s *DescribeMetricSetOutput) SetTimezone(v string) *DescribeMetricSetOutput {
+ s.Timezone = &v
+ return s
+}
+
+// Details about a dimension that contributed to an anomaly.
+type DimensionContribution struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the dimension.
+ DimensionName *string `min:"1" type:"string"`
+
+ // A list of dimension values that contributed to the anomaly.
+ DimensionValueContributionList []*DimensionValueContribution `type:"list"`
+}
+
+// String returns the string representation
+func (s DimensionContribution) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DimensionContribution) GoString() string {
+ return s.String()
+}
+
+// SetDimensionName sets the DimensionName field's value.
+func (s *DimensionContribution) SetDimensionName(v string) *DimensionContribution {
+ s.DimensionName = &v
+ return s
+}
+
+// SetDimensionValueContributionList sets the DimensionValueContributionList field's value.
+func (s *DimensionContribution) SetDimensionValueContributionList(v []*DimensionValueContribution) *DimensionContribution {
+ s.DimensionValueContributionList = v
+ return s
+}
+
+// A dimension name and value.
+type DimensionNameValue struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the dimension.
+ //
+ // DimensionName is a required field
+ DimensionName *string `min:"1" type:"string" required:"true"`
+
+ // The value of the dimension.
+ //
+ // DimensionValue is a required field
+ DimensionValue *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s DimensionNameValue) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DimensionNameValue) GoString() string {
+ return s.String()
+}
+
+// SetDimensionName sets the DimensionName field's value.
+func (s *DimensionNameValue) SetDimensionName(v string) *DimensionNameValue {
+ s.DimensionName = &v
+ return s
+}
+
+// SetDimensionValue sets the DimensionValue field's value.
+func (s *DimensionNameValue) SetDimensionValue(v string) *DimensionNameValue {
+ s.DimensionValue = &v
+ return s
+}
+
+// The severity of a value of a dimension that contributed to an anomaly.
+type DimensionValueContribution struct {
+ _ struct{} `type:"structure"`
+
+ // The severity score of the value.
+ ContributionScore *float64 `type:"double"`
+
+ // The value of the dimension.
+ DimensionValue *string `type:"string"`
+}
+
+// String returns the string representation
+func (s DimensionValueContribution) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DimensionValueContribution) GoString() string {
+ return s.String()
+}
+
+// SetContributionScore sets the ContributionScore field's value.
+func (s *DimensionValueContribution) SetContributionScore(v float64) *DimensionValueContribution {
+ s.ContributionScore = &v
+ return s
+}
+
+// SetDimensionValue sets the DimensionValue field's value.
+func (s *DimensionValueContribution) SetDimensionValue(v string) *DimensionValueContribution {
+ s.DimensionValue = &v
+ return s
+}
+
+// The status of an anomaly detector run.
+type ExecutionStatus struct {
+ _ struct{} `type:"structure"`
+
+ // The reason that the run failed, if applicable.
+ FailureReason *string `min:"1" type:"string"`
+
+ // The run's status.
+ Status *string `type:"string" enum:"AnomalyDetectionTaskStatus"`
+
+ // The run's timestamp.
+ Timestamp *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ExecutionStatus) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExecutionStatus) GoString() string {
+ return s.String()
+}
+
+// SetFailureReason sets the FailureReason field's value.
+func (s *ExecutionStatus) SetFailureReason(v string) *ExecutionStatus {
+ s.FailureReason = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *ExecutionStatus) SetStatus(v string) *ExecutionStatus {
+ s.Status = &v
+ return s
+}
+
+// SetTimestamp sets the Timestamp field's value.
+func (s *ExecutionStatus) SetTimestamp(v string) *ExecutionStatus {
+ s.Timestamp = &v
+ return s
+}
+
+// Contains information about a source file's formatting.
+type FileFormatDescriptor struct {
+ _ struct{} `type:"structure"`
+
+ // Contains information about how a source CSV data file should be analyzed.
+ CsvFormatDescriptor *CsvFormatDescriptor `type:"structure"`
+
+ // Contains information about how a source JSON data file should be analyzed.
+ JsonFormatDescriptor *JsonFormatDescriptor `type:"structure"`
+}
+
+// String returns the string representation
+func (s FileFormatDescriptor) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s FileFormatDescriptor) GoString() string {
+ return s.String()
+}
+
+// SetCsvFormatDescriptor sets the CsvFormatDescriptor field's value.
+func (s *FileFormatDescriptor) SetCsvFormatDescriptor(v *CsvFormatDescriptor) *FileFormatDescriptor {
+ s.CsvFormatDescriptor = v
+ return s
+}
+
+// SetJsonFormatDescriptor sets the JsonFormatDescriptor field's value.
+func (s *FileFormatDescriptor) SetJsonFormatDescriptor(v *JsonFormatDescriptor) *FileFormatDescriptor {
+ s.JsonFormatDescriptor = v
+ return s
+}
+
+type GetAnomalyGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the anomaly detector.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+
+ // The ID of the anomaly group.
+ //
+ // AnomalyGroupId is a required field
+ AnomalyGroupId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s GetAnomalyGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetAnomalyGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetAnomalyGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetAnomalyGroupInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+ if s.AnomalyGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyGroupId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *GetAnomalyGroupInput) SetAnomalyDetectorArn(v string) *GetAnomalyGroupInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetAnomalyGroupId sets the AnomalyGroupId field's value.
+func (s *GetAnomalyGroupInput) SetAnomalyGroupId(v string) *GetAnomalyGroupInput {
+ s.AnomalyGroupId = &v
+ return s
+}
+
+type GetAnomalyGroupOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Details about the anomaly group.
+ AnomalyGroup *AnomalyGroup `type:"structure"`
+}
+
+// String returns the string representation
+func (s GetAnomalyGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetAnomalyGroupOutput) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyGroup sets the AnomalyGroup field's value.
+func (s *GetAnomalyGroupOutput) SetAnomalyGroup(v *AnomalyGroup) *GetAnomalyGroupOutput {
+ s.AnomalyGroup = v
+ return s
+}
+
+type GetFeedbackInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the anomaly detector.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+
+ // The anomalous metric and group ID.
+ //
+ // AnomalyGroupTimeSeriesFeedback is a required field
+ AnomalyGroupTimeSeriesFeedback *AnomalyGroupTimeSeries `type:"structure" required:"true"`
+
+ // The maximum number of results to return.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // Specify the pagination token that's returned by a previous request to retrieve
+ // the next page of results.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s GetFeedbackInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetFeedbackInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetFeedbackInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetFeedbackInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+ if s.AnomalyGroupTimeSeriesFeedback == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyGroupTimeSeriesFeedback"))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.AnomalyGroupTimeSeriesFeedback != nil {
+ if err := s.AnomalyGroupTimeSeriesFeedback.Validate(); err != nil {
+ invalidParams.AddNested("AnomalyGroupTimeSeriesFeedback", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *GetFeedbackInput) SetAnomalyDetectorArn(v string) *GetFeedbackInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetAnomalyGroupTimeSeriesFeedback sets the AnomalyGroupTimeSeriesFeedback field's value.
+func (s *GetFeedbackInput) SetAnomalyGroupTimeSeriesFeedback(v *AnomalyGroupTimeSeries) *GetFeedbackInput {
+ s.AnomalyGroupTimeSeriesFeedback = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *GetFeedbackInput) SetMaxResults(v int64) *GetFeedbackInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *GetFeedbackInput) SetNextToken(v string) *GetFeedbackInput {
+ s.NextToken = &v
+ return s
+}
+
+type GetFeedbackOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Feedback for an anomalous metric.
+ AnomalyGroupTimeSeriesFeedback []*TimeSeriesFeedback `type:"list"`
+
+ // The pagination token that's included if more results are available.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s GetFeedbackOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetFeedbackOutput) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyGroupTimeSeriesFeedback sets the AnomalyGroupTimeSeriesFeedback field's value.
+func (s *GetFeedbackOutput) SetAnomalyGroupTimeSeriesFeedback(v []*TimeSeriesFeedback) *GetFeedbackOutput {
+ s.AnomalyGroupTimeSeriesFeedback = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *GetFeedbackOutput) SetNextToken(v string) *GetFeedbackOutput {
+ s.NextToken = &v
+ return s
+}
+
+type GetSampleDataInput struct {
+ _ struct{} `type:"structure"`
+
+ // A datasource bucket in Amazon S3.
+ S3SourceConfig *SampleDataS3SourceConfig `type:"structure"`
+}
+
+// String returns the string representation
+func (s GetSampleDataInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetSampleDataInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetSampleDataInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetSampleDataInput"}
+ if s.S3SourceConfig != nil {
+ if err := s.S3SourceConfig.Validate(); err != nil {
+ invalidParams.AddNested("S3SourceConfig", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetS3SourceConfig sets the S3SourceConfig field's value.
+func (s *GetSampleDataInput) SetS3SourceConfig(v *SampleDataS3SourceConfig) *GetSampleDataInput {
+ s.S3SourceConfig = v
+ return s
+}
+
+type GetSampleDataOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A list of header labels for the records.
+ HeaderValues []*string `type:"list"`
+
+ // A list of records.
+ SampleRows [][]*string `type:"list"`
+}
+
+// String returns the string representation
+func (s GetSampleDataOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetSampleDataOutput) GoString() string {
+ return s.String()
+}
+
+// SetHeaderValues sets the HeaderValues field's value.
+func (s *GetSampleDataOutput) SetHeaderValues(v []*string) *GetSampleDataOutput {
+ s.HeaderValues = v
+ return s
+}
+
+// SetSampleRows sets the SampleRows field's value.
+func (s *GetSampleDataOutput) SetSampleRows(v [][]*string) *GetSampleDataOutput {
+ s.SampleRows = v
+ return s
+}
+
+// The request processing has failed because of an unknown error, exception,
+// or failure.
+type InternalServerException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+}
+
+// String returns the string representation
+func (s InternalServerException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s InternalServerException) GoString() string {
+ return s.String()
+}
+
+func newErrorInternalServerException(v protocol.ResponseMetadata) error {
+ return &InternalServerException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *InternalServerException) Code() string {
+ return "InternalServerException"
+}
+
+// Message returns the exception's message.
+func (s *InternalServerException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *InternalServerException) OrigErr() error {
+ return nil
+}
+
+func (s *InternalServerException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *InternalServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *InternalServerException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Aggregated statistics about a measure affected by an anomaly.
+type ItemizedMetricStats struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the measure.
+ MetricName *string `min:"1" type:"string"`
+
+ // The number of times that the measure appears.
+ OccurrenceCount *int64 `type:"integer"`
+}
+
+// String returns the string representation
+func (s ItemizedMetricStats) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ItemizedMetricStats) GoString() string {
+ return s.String()
+}
+
+// SetMetricName sets the MetricName field's value.
+func (s *ItemizedMetricStats) SetMetricName(v string) *ItemizedMetricStats {
+ s.MetricName = &v
+ return s
+}
+
+// SetOccurrenceCount sets the OccurrenceCount field's value.
+func (s *ItemizedMetricStats) SetOccurrenceCount(v int64) *ItemizedMetricStats {
+ s.OccurrenceCount = &v
+ return s
+}
+
+// Contains information about how a source JSON data file should be analyzed.
+type JsonFormatDescriptor struct {
+ _ struct{} `type:"structure"`
+
+ // The character set in which the source JSON file is written.
+ Charset *string `type:"string"`
+
+ // The level of compression of the source CSV file.
+ FileCompression *string `type:"string" enum:"JsonFileCompression"`
+}
+
+// String returns the string representation
+func (s JsonFormatDescriptor) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s JsonFormatDescriptor) GoString() string {
+ return s.String()
+}
+
+// SetCharset sets the Charset field's value.
+func (s *JsonFormatDescriptor) SetCharset(v string) *JsonFormatDescriptor {
+ s.Charset = &v
+ return s
+}
+
+// SetFileCompression sets the FileCompression field's value.
+func (s *JsonFormatDescriptor) SetFileCompression(v string) *JsonFormatDescriptor {
+ s.FileCompression = &v
+ return s
+}
+
+// Contains information about a Lambda configuration.
+type LambdaConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the Lambda function.
+ //
+ // LambdaArn is a required field
+ LambdaArn *string `type:"string" required:"true"`
+
+ // The ARN of an IAM role that has permission to invoke the Lambda function.
+ //
+ // RoleArn is a required field
+ RoleArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s LambdaConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s LambdaConfiguration) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *LambdaConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "LambdaConfiguration"}
+ if s.LambdaArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("LambdaArn"))
+ }
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLambdaArn sets the LambdaArn field's value.
+func (s *LambdaConfiguration) SetLambdaArn(v string) *LambdaConfiguration {
+ s.LambdaArn = &v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *LambdaConfiguration) SetRoleArn(v string) *LambdaConfiguration {
+ s.RoleArn = &v
+ return s
+}
+
+type ListAlertsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the alert's detector.
+ AnomalyDetectorArn *string `type:"string"`
+
+ // The maximum number of results that will be displayed by the request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // If the result of the previous request is truncated, the response includes
+ // a NextToken. To retrieve the next set of results, use the token in the next
+ // request. Tokens expire after 24 hours.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListAlertsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAlertsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListAlertsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListAlertsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *ListAlertsInput) SetAnomalyDetectorArn(v string) *ListAlertsInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListAlertsInput) SetMaxResults(v int64) *ListAlertsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListAlertsInput) SetNextToken(v string) *ListAlertsInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListAlertsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Contains information about an alert.
+ AlertSummaryList []*AlertSummary `type:"list"`
+
+ // If the response is truncated, the service returns this token. To retrieve
+ // the next set of results, use this token in the next request.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListAlertsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAlertsOutput) GoString() string {
+ return s.String()
+}
+
+// SetAlertSummaryList sets the AlertSummaryList field's value.
+func (s *ListAlertsOutput) SetAlertSummaryList(v []*AlertSummary) *ListAlertsOutput {
+ s.AlertSummaryList = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListAlertsOutput) SetNextToken(v string) *ListAlertsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type ListAnomalyDetectorsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum number of results to return.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // If the result of the previous request was truncated, the response includes
+ // a NextToken. To retrieve the next set of results, use the token in the next
+ // request. Tokens expire after 24 hours.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListAnomalyDetectorsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAnomalyDetectorsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListAnomalyDetectorsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListAnomalyDetectorsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListAnomalyDetectorsInput) SetMaxResults(v int64) *ListAnomalyDetectorsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListAnomalyDetectorsInput) SetNextToken(v string) *ListAnomalyDetectorsInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListAnomalyDetectorsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A list of anomaly detectors in the account in the current region.
+ AnomalyDetectorSummaryList []*AnomalyDetectorSummary `type:"list"`
+
+ // If the response is truncated, the service returns this token. To retrieve
+ // the next set of results, use the token in the next request.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListAnomalyDetectorsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAnomalyDetectorsOutput) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyDetectorSummaryList sets the AnomalyDetectorSummaryList field's value.
+func (s *ListAnomalyDetectorsOutput) SetAnomalyDetectorSummaryList(v []*AnomalyDetectorSummary) *ListAnomalyDetectorsOutput {
+ s.AnomalyDetectorSummaryList = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListAnomalyDetectorsOutput) SetNextToken(v string) *ListAnomalyDetectorsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type ListAnomalyGroupSummariesInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the anomaly detector.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+
+ // The maximum number of results to return.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // Specify the pagination token that's returned by a previous request to retrieve
+ // the next page of results.
+ NextToken *string `min:"1" type:"string"`
+
+ // The minimum severity score for inclusion in the output.
+ //
+ // SensitivityThreshold is a required field
+ SensitivityThreshold *int64 `type:"integer" required:"true"`
+}
+
+// String returns the string representation
+func (s ListAnomalyGroupSummariesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAnomalyGroupSummariesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListAnomalyGroupSummariesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListAnomalyGroupSummariesInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.SensitivityThreshold == nil {
+ invalidParams.Add(request.NewErrParamRequired("SensitivityThreshold"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *ListAnomalyGroupSummariesInput) SetAnomalyDetectorArn(v string) *ListAnomalyGroupSummariesInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListAnomalyGroupSummariesInput) SetMaxResults(v int64) *ListAnomalyGroupSummariesInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListAnomalyGroupSummariesInput) SetNextToken(v string) *ListAnomalyGroupSummariesInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetSensitivityThreshold sets the SensitivityThreshold field's value.
+func (s *ListAnomalyGroupSummariesInput) SetSensitivityThreshold(v int64) *ListAnomalyGroupSummariesInput {
+ s.SensitivityThreshold = &v
+ return s
+}
+
+type ListAnomalyGroupSummariesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Aggregated details about the anomaly groups.
+ AnomalyGroupStatistics *AnomalyGroupStatistics `type:"structure"`
+
+ // A list of anomaly group summaries.
+ AnomalyGroupSummaryList []*AnomalyGroupSummary `type:"list"`
+
+ // The pagination token that's included if more results are available.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListAnomalyGroupSummariesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAnomalyGroupSummariesOutput) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyGroupStatistics sets the AnomalyGroupStatistics field's value.
+func (s *ListAnomalyGroupSummariesOutput) SetAnomalyGroupStatistics(v *AnomalyGroupStatistics) *ListAnomalyGroupSummariesOutput {
+ s.AnomalyGroupStatistics = v
+ return s
+}
+
+// SetAnomalyGroupSummaryList sets the AnomalyGroupSummaryList field's value.
+func (s *ListAnomalyGroupSummariesOutput) SetAnomalyGroupSummaryList(v []*AnomalyGroupSummary) *ListAnomalyGroupSummariesOutput {
+ s.AnomalyGroupSummaryList = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListAnomalyGroupSummariesOutput) SetNextToken(v string) *ListAnomalyGroupSummariesOutput {
+ s.NextToken = &v
+ return s
+}
+
+type ListAnomalyGroupTimeSeriesInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the anomaly detector.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+
+ // The ID of the anomaly group.
+ //
+ // AnomalyGroupId is a required field
+ AnomalyGroupId *string `type:"string" required:"true"`
+
+ // The maximum number of results to return.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The name of the measure field.
+ //
+ // MetricName is a required field
+ MetricName *string `type:"string" required:"true"`
+
+ // Specify the pagination token that's returned by a previous request to retrieve
+ // the next page of results.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListAnomalyGroupTimeSeriesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAnomalyGroupTimeSeriesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListAnomalyGroupTimeSeriesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListAnomalyGroupTimeSeriesInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+ if s.AnomalyGroupId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyGroupId"))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.MetricName == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricName"))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *ListAnomalyGroupTimeSeriesInput) SetAnomalyDetectorArn(v string) *ListAnomalyGroupTimeSeriesInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetAnomalyGroupId sets the AnomalyGroupId field's value.
+func (s *ListAnomalyGroupTimeSeriesInput) SetAnomalyGroupId(v string) *ListAnomalyGroupTimeSeriesInput {
+ s.AnomalyGroupId = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListAnomalyGroupTimeSeriesInput) SetMaxResults(v int64) *ListAnomalyGroupTimeSeriesInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetMetricName sets the MetricName field's value.
+func (s *ListAnomalyGroupTimeSeriesInput) SetMetricName(v string) *ListAnomalyGroupTimeSeriesInput {
+ s.MetricName = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListAnomalyGroupTimeSeriesInput) SetNextToken(v string) *ListAnomalyGroupTimeSeriesInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListAnomalyGroupTimeSeriesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the anomaly group.
+ AnomalyGroupId *string `type:"string"`
+
+ // The name of the measure field.
+ MetricName *string `type:"string"`
+
+ // The pagination token that's included if more results are available.
+ NextToken *string `min:"1" type:"string"`
+
+ // A list of anomalous metrics.
+ TimeSeriesList []*TimeSeries `type:"list"`
+
+ // Timestamps for the anomalous metrics.
+ TimestampList []*string `type:"list"`
+}
+
+// String returns the string representation
+func (s ListAnomalyGroupTimeSeriesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListAnomalyGroupTimeSeriesOutput) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyGroupId sets the AnomalyGroupId field's value.
+func (s *ListAnomalyGroupTimeSeriesOutput) SetAnomalyGroupId(v string) *ListAnomalyGroupTimeSeriesOutput {
+ s.AnomalyGroupId = &v
+ return s
+}
+
+// SetMetricName sets the MetricName field's value.
+func (s *ListAnomalyGroupTimeSeriesOutput) SetMetricName(v string) *ListAnomalyGroupTimeSeriesOutput {
+ s.MetricName = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListAnomalyGroupTimeSeriesOutput) SetNextToken(v string) *ListAnomalyGroupTimeSeriesOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetTimeSeriesList sets the TimeSeriesList field's value.
+func (s *ListAnomalyGroupTimeSeriesOutput) SetTimeSeriesList(v []*TimeSeries) *ListAnomalyGroupTimeSeriesOutput {
+ s.TimeSeriesList = v
+ return s
+}
+
+// SetTimestampList sets the TimestampList field's value.
+func (s *ListAnomalyGroupTimeSeriesOutput) SetTimestampList(v []*string) *ListAnomalyGroupTimeSeriesOutput {
+ s.TimestampList = v
+ return s
+}
+
+type ListMetricSetsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the anomaly detector containing the metrics sets to list.
+ AnomalyDetectorArn *string `type:"string"`
+
+ // The maximum number of results to return.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // If the result of the previous request was truncated, the response includes
+ // a NextToken. To retrieve the next set of results, use the token in the next
+ // request. Tokens expire after 24 hours.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListMetricSetsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListMetricSetsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListMetricSetsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListMetricSetsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *ListMetricSetsInput) SetAnomalyDetectorArn(v string) *ListMetricSetsInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListMetricSetsInput) SetMaxResults(v int64) *ListMetricSetsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListMetricSetsInput) SetNextToken(v string) *ListMetricSetsInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListMetricSetsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A list of the datasets in the AWS Region, with configuration details for
+ // each.
+ MetricSetSummaryList []*MetricSetSummary `type:"list"`
+
+ // If the response is truncated, the list call returns this token. To retrieve
+ // the next set of results, use the token in the next list request.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s ListMetricSetsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListMetricSetsOutput) GoString() string {
+ return s.String()
+}
+
+// SetMetricSetSummaryList sets the MetricSetSummaryList field's value.
+func (s *ListMetricSetsOutput) SetMetricSetSummaryList(v []*MetricSetSummary) *ListMetricSetsOutput {
+ s.MetricSetSummaryList = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListMetricSetsOutput) SetNextToken(v string) *ListMetricSetsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type ListTagsForResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // The resource's Amazon Resource Name (ARN).
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ListTagsForResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListTagsForResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListTagsForResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+type ListTagsForResourceOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The resource's tags.
+ Tags map[string]*string `locationName:"Tags" min:"1" type:"map"`
+}
+
+// String returns the string representation
+func (s ListTagsForResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListTagsForResourceOutput) GoString() string {
+ return s.String()
+}
+
+// SetTags sets the Tags field's value.
+func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
+ s.Tags = v
+ return s
+}
+
+// A calculation made by contrasting a measure and a dimension from your source
+// data.
+type Metric struct {
+ _ struct{} `type:"structure"`
+
+ // The function with which the metric is calculated.
+ //
+ // AggregationFunction is a required field
+ AggregationFunction *string `type:"string" required:"true" enum:"AggregationFunction"`
+
+ // The name of the metric.
+ //
+ // MetricName is a required field
+ MetricName *string `min:"1" type:"string" required:"true"`
+
+ // The namespace for the metric.
+ Namespace *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s Metric) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Metric) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Metric) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Metric"}
+ if s.AggregationFunction == nil {
+ invalidParams.Add(request.NewErrParamRequired("AggregationFunction"))
+ }
+ if s.MetricName == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricName"))
+ }
+ if s.MetricName != nil && len(*s.MetricName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MetricName", 1))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAggregationFunction sets the AggregationFunction field's value.
+func (s *Metric) SetAggregationFunction(v string) *Metric {
+ s.AggregationFunction = &v
+ return s
+}
+
+// SetMetricName sets the MetricName field's value.
+func (s *Metric) SetMetricName(v string) *Metric {
+ s.MetricName = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *Metric) SetNamespace(v string) *Metric {
+ s.Namespace = &v
+ return s
+}
+
+// Details about a measure affected by an anomaly.
+type MetricLevelImpact struct {
+ _ struct{} `type:"structure"`
+
+ // Details about the dimensions that contributed to the anomaly.
+ ContributionMatrix *ContributionMatrix `type:"structure"`
+
+ // The name of the measure.
+ MetricName *string `type:"string"`
+
+ // The number of anomalous metrics for the measure.
+ NumTimeSeries *int64 `type:"integer"`
+}
+
+// String returns the string representation
+func (s MetricLevelImpact) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s MetricLevelImpact) GoString() string {
+ return s.String()
+}
+
+// SetContributionMatrix sets the ContributionMatrix field's value.
+func (s *MetricLevelImpact) SetContributionMatrix(v *ContributionMatrix) *MetricLevelImpact {
+ s.ContributionMatrix = v
+ return s
+}
+
+// SetMetricName sets the MetricName field's value.
+func (s *MetricLevelImpact) SetMetricName(v string) *MetricLevelImpact {
+ s.MetricName = &v
+ return s
+}
+
+// SetNumTimeSeries sets the NumTimeSeries field's value.
+func (s *MetricLevelImpact) SetNumTimeSeries(v int64) *MetricLevelImpact {
+ s.NumTimeSeries = &v
+ return s
+}
+
+// Contains information about a dataset.
+type MetricSetSummary struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the detector to which the dataset belongs.
+ AnomalyDetectorArn *string `type:"string"`
+
+ // The time at which the dataset was created.
+ CreationTime *time.Time `type:"timestamp"`
+
+ // The time at which the dataset was last modified.
+ LastModificationTime *time.Time `type:"timestamp"`
+
+ // The ARN of the dataset.
+ MetricSetArn *string `type:"string"`
+
+ // The description of the dataset.
+ MetricSetDescription *string `min:"1" type:"string"`
+
+ // The name of the dataset.
+ MetricSetName *string `min:"1" type:"string"`
+
+ // The dataset's tags (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html).
+ Tags map[string]*string `min:"1" type:"map"`
+}
+
+// String returns the string representation
+func (s MetricSetSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s MetricSetSummary) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *MetricSetSummary) SetAnomalyDetectorArn(v string) *MetricSetSummary {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetCreationTime sets the CreationTime field's value.
+func (s *MetricSetSummary) SetCreationTime(v time.Time) *MetricSetSummary {
+ s.CreationTime = &v
+ return s
+}
+
+// SetLastModificationTime sets the LastModificationTime field's value.
+func (s *MetricSetSummary) SetLastModificationTime(v time.Time) *MetricSetSummary {
+ s.LastModificationTime = &v
+ return s
+}
+
+// SetMetricSetArn sets the MetricSetArn field's value.
+func (s *MetricSetSummary) SetMetricSetArn(v string) *MetricSetSummary {
+ s.MetricSetArn = &v
+ return s
+}
+
+// SetMetricSetDescription sets the MetricSetDescription field's value.
+func (s *MetricSetSummary) SetMetricSetDescription(v string) *MetricSetSummary {
+ s.MetricSetDescription = &v
+ return s
+}
+
+// SetMetricSetName sets the MetricSetName field's value.
+func (s *MetricSetSummary) SetMetricSetName(v string) *MetricSetSummary {
+ s.MetricSetName = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *MetricSetSummary) SetTags(v map[string]*string) *MetricSetSummary {
+ s.Tags = v
+ return s
+}
+
+// Contains information about source data used to generate a metric.
+type MetricSource struct {
+ _ struct{} `type:"structure"`
+
+ // An object containing information about the AppFlow configuration.
+ AppFlowConfig *AppFlowConfig `type:"structure"`
+
+ // An object containing information about the Amazon CloudWatch monitoring configuration.
+ CloudWatchConfig *CloudWatchConfig `type:"structure"`
+
+ // An object containing information about the Amazon Relational Database Service
+ // (RDS) configuration.
+ RDSSourceConfig *RDSSourceConfig `type:"structure"`
+
+ // An object containing information about the Amazon Redshift database configuration.
+ RedshiftSourceConfig *RedshiftSourceConfig `type:"structure"`
+
+ // Contains information about the configuration of the S3 bucket that contains
+ // source files.
+ S3SourceConfig *S3SourceConfig `type:"structure"`
+}
+
+// String returns the string representation
+func (s MetricSource) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s MetricSource) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *MetricSource) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "MetricSource"}
+ if s.AppFlowConfig != nil {
+ if err := s.AppFlowConfig.Validate(); err != nil {
+ invalidParams.AddNested("AppFlowConfig", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.CloudWatchConfig != nil {
+ if err := s.CloudWatchConfig.Validate(); err != nil {
+ invalidParams.AddNested("CloudWatchConfig", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.RDSSourceConfig != nil {
+ if err := s.RDSSourceConfig.Validate(); err != nil {
+ invalidParams.AddNested("RDSSourceConfig", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.RedshiftSourceConfig != nil {
+ if err := s.RedshiftSourceConfig.Validate(); err != nil {
+ invalidParams.AddNested("RedshiftSourceConfig", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.S3SourceConfig != nil {
+ if err := s.S3SourceConfig.Validate(); err != nil {
+ invalidParams.AddNested("S3SourceConfig", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAppFlowConfig sets the AppFlowConfig field's value.
+func (s *MetricSource) SetAppFlowConfig(v *AppFlowConfig) *MetricSource {
+ s.AppFlowConfig = v
+ return s
+}
+
+// SetCloudWatchConfig sets the CloudWatchConfig field's value.
+func (s *MetricSource) SetCloudWatchConfig(v *CloudWatchConfig) *MetricSource {
+ s.CloudWatchConfig = v
+ return s
+}
+
+// SetRDSSourceConfig sets the RDSSourceConfig field's value.
+func (s *MetricSource) SetRDSSourceConfig(v *RDSSourceConfig) *MetricSource {
+ s.RDSSourceConfig = v
+ return s
+}
+
+// SetRedshiftSourceConfig sets the RedshiftSourceConfig field's value.
+func (s *MetricSource) SetRedshiftSourceConfig(v *RedshiftSourceConfig) *MetricSource {
+ s.RedshiftSourceConfig = v
+ return s
+}
+
+// SetS3SourceConfig sets the S3SourceConfig field's value.
+func (s *MetricSource) SetS3SourceConfig(v *S3SourceConfig) *MetricSource {
+ s.S3SourceConfig = v
+ return s
+}
+
+type PutFeedbackInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the anomaly detector.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+
+ // Feedback for an anomalous metric.
+ //
+ // AnomalyGroupTimeSeriesFeedback is a required field
+ AnomalyGroupTimeSeriesFeedback *AnomalyGroupTimeSeriesFeedback `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s PutFeedbackInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutFeedbackInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutFeedbackInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutFeedbackInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+ if s.AnomalyGroupTimeSeriesFeedback == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyGroupTimeSeriesFeedback"))
+ }
+ if s.AnomalyGroupTimeSeriesFeedback != nil {
+ if err := s.AnomalyGroupTimeSeriesFeedback.Validate(); err != nil {
+ invalidParams.AddNested("AnomalyGroupTimeSeriesFeedback", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *PutFeedbackInput) SetAnomalyDetectorArn(v string) *PutFeedbackInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetAnomalyGroupTimeSeriesFeedback sets the AnomalyGroupTimeSeriesFeedback field's value.
+func (s *PutFeedbackInput) SetAnomalyGroupTimeSeriesFeedback(v *AnomalyGroupTimeSeriesFeedback) *PutFeedbackInput {
+ s.AnomalyGroupTimeSeriesFeedback = v
+ return s
+}
+
+type PutFeedbackOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s PutFeedbackOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutFeedbackOutput) GoString() string {
+ return s.String()
+}
+
+// Contains information about the Amazon Relational Database Service (RDS) configuration.
+type RDSSourceConfig struct {
+ _ struct{} `type:"structure"`
+
+ // A string identifying the database instance.
+ //
+ // DBInstanceIdentifier is a required field
+ DBInstanceIdentifier *string `min:"1" type:"string" required:"true"`
+
+ // The host name of the database.
+ //
+ // DatabaseHost is a required field
+ DatabaseHost *string `min:"1" type:"string" required:"true"`
+
+ // The name of the RDS database.
+ //
+ // DatabaseName is a required field
+ DatabaseName *string `min:"1" type:"string" required:"true"`
+
+ // The port number where the database can be accessed.
+ //
+ // DatabasePort is a required field
+ DatabasePort *int64 `min:"1" type:"integer" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the role.
+ //
+ // RoleArn is a required field
+ RoleArn *string `type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
+ //
+ // SecretManagerArn is a required field
+ SecretManagerArn *string `type:"string" required:"true"`
+
+ // The name of the table in the database.
+ //
+ // TableName is a required field
+ TableName *string `min:"1" type:"string" required:"true"`
+
+ // An object containing information about the Amazon Virtual Private Cloud (VPC)
+ // configuration.
+ //
+ // VpcConfiguration is a required field
+ VpcConfiguration *VpcConfiguration `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s RDSSourceConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RDSSourceConfig) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RDSSourceConfig) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RDSSourceConfig"}
+ if s.DBInstanceIdentifier == nil {
+ invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
+ }
+ if s.DBInstanceIdentifier != nil && len(*s.DBInstanceIdentifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DBInstanceIdentifier", 1))
+ }
+ if s.DatabaseHost == nil {
+ invalidParams.Add(request.NewErrParamRequired("DatabaseHost"))
+ }
+ if s.DatabaseHost != nil && len(*s.DatabaseHost) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DatabaseHost", 1))
+ }
+ if s.DatabaseName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DatabaseName"))
+ }
+ if s.DatabaseName != nil && len(*s.DatabaseName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1))
+ }
+ if s.DatabasePort == nil {
+ invalidParams.Add(request.NewErrParamRequired("DatabasePort"))
+ }
+ if s.DatabasePort != nil && *s.DatabasePort < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("DatabasePort", 1))
+ }
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+ if s.SecretManagerArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("SecretManagerArn"))
+ }
+ if s.TableName == nil {
+ invalidParams.Add(request.NewErrParamRequired("TableName"))
+ }
+ if s.TableName != nil && len(*s.TableName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TableName", 1))
+ }
+ if s.VpcConfiguration == nil {
+ invalidParams.Add(request.NewErrParamRequired("VpcConfiguration"))
+ }
+ if s.VpcConfiguration != nil {
+ if err := s.VpcConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
+func (s *RDSSourceConfig) SetDBInstanceIdentifier(v string) *RDSSourceConfig {
+ s.DBInstanceIdentifier = &v
+ return s
+}
+
+// SetDatabaseHost sets the DatabaseHost field's value.
+func (s *RDSSourceConfig) SetDatabaseHost(v string) *RDSSourceConfig {
+ s.DatabaseHost = &v
+ return s
+}
+
+// SetDatabaseName sets the DatabaseName field's value.
+func (s *RDSSourceConfig) SetDatabaseName(v string) *RDSSourceConfig {
+ s.DatabaseName = &v
+ return s
+}
+
+// SetDatabasePort sets the DatabasePort field's value.
+func (s *RDSSourceConfig) SetDatabasePort(v int64) *RDSSourceConfig {
+ s.DatabasePort = &v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *RDSSourceConfig) SetRoleArn(v string) *RDSSourceConfig {
+ s.RoleArn = &v
+ return s
+}
+
+// SetSecretManagerArn sets the SecretManagerArn field's value.
+func (s *RDSSourceConfig) SetSecretManagerArn(v string) *RDSSourceConfig {
+ s.SecretManagerArn = &v
+ return s
+}
+
+// SetTableName sets the TableName field's value.
+func (s *RDSSourceConfig) SetTableName(v string) *RDSSourceConfig {
+ s.TableName = &v
+ return s
+}
+
+// SetVpcConfiguration sets the VpcConfiguration field's value.
+func (s *RDSSourceConfig) SetVpcConfiguration(v *VpcConfiguration) *RDSSourceConfig {
+ s.VpcConfiguration = v
+ return s
+}
+
+// Provides information about the Amazon Redshift database configuration.
+type RedshiftSourceConfig struct {
+ _ struct{} `type:"structure"`
+
+ // A string identifying the Redshift cluster.
+ //
+ // ClusterIdentifier is a required field
+ ClusterIdentifier *string `min:"1" type:"string" required:"true"`
+
+ // The name of the database host.
+ //
+ // DatabaseHost is a required field
+ DatabaseHost *string `min:"1" type:"string" required:"true"`
+
+ // The Redshift database name.
+ //
+ // DatabaseName is a required field
+ DatabaseName *string `min:"1" type:"string" required:"true"`
+
+ // The port number where the database can be accessed.
+ //
+ // DatabasePort is a required field
+ DatabasePort *int64 `min:"1" type:"integer" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the role providing access to the database.
+ //
+ // RoleArn is a required field
+ RoleArn *string `type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
+ //
+ // SecretManagerArn is a required field
+ SecretManagerArn *string `type:"string" required:"true"`
+
+ // The table name of the Redshift database.
+ //
+ // TableName is a required field
+ TableName *string `min:"1" type:"string" required:"true"`
+
+ // Contains information about the Amazon Virtual Private Cloud (VPC) configuration.
+ //
+ // VpcConfiguration is a required field
+ VpcConfiguration *VpcConfiguration `type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s RedshiftSourceConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RedshiftSourceConfig) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RedshiftSourceConfig) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RedshiftSourceConfig"}
+ if s.ClusterIdentifier == nil {
+ invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
+ }
+ if s.ClusterIdentifier != nil && len(*s.ClusterIdentifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClusterIdentifier", 1))
+ }
+ if s.DatabaseHost == nil {
+ invalidParams.Add(request.NewErrParamRequired("DatabaseHost"))
+ }
+ if s.DatabaseHost != nil && len(*s.DatabaseHost) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DatabaseHost", 1))
+ }
+ if s.DatabaseName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DatabaseName"))
+ }
+ if s.DatabaseName != nil && len(*s.DatabaseName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1))
+ }
+ if s.DatabasePort == nil {
+ invalidParams.Add(request.NewErrParamRequired("DatabasePort"))
+ }
+ if s.DatabasePort != nil && *s.DatabasePort < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("DatabasePort", 1))
+ }
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+ if s.SecretManagerArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("SecretManagerArn"))
+ }
+ if s.TableName == nil {
+ invalidParams.Add(request.NewErrParamRequired("TableName"))
+ }
+ if s.TableName != nil && len(*s.TableName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TableName", 1))
+ }
+ if s.VpcConfiguration == nil {
+ invalidParams.Add(request.NewErrParamRequired("VpcConfiguration"))
+ }
+ if s.VpcConfiguration != nil {
+ if err := s.VpcConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClusterIdentifier sets the ClusterIdentifier field's value.
+func (s *RedshiftSourceConfig) SetClusterIdentifier(v string) *RedshiftSourceConfig {
+ s.ClusterIdentifier = &v
+ return s
+}
+
+// SetDatabaseHost sets the DatabaseHost field's value.
+func (s *RedshiftSourceConfig) SetDatabaseHost(v string) *RedshiftSourceConfig {
+ s.DatabaseHost = &v
+ return s
+}
+
+// SetDatabaseName sets the DatabaseName field's value.
+func (s *RedshiftSourceConfig) SetDatabaseName(v string) *RedshiftSourceConfig {
+ s.DatabaseName = &v
+ return s
+}
+
+// SetDatabasePort sets the DatabasePort field's value.
+func (s *RedshiftSourceConfig) SetDatabasePort(v int64) *RedshiftSourceConfig {
+ s.DatabasePort = &v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *RedshiftSourceConfig) SetRoleArn(v string) *RedshiftSourceConfig {
+ s.RoleArn = &v
+ return s
+}
+
+// SetSecretManagerArn sets the SecretManagerArn field's value.
+func (s *RedshiftSourceConfig) SetSecretManagerArn(v string) *RedshiftSourceConfig {
+ s.SecretManagerArn = &v
+ return s
+}
+
+// SetTableName sets the TableName field's value.
+func (s *RedshiftSourceConfig) SetTableName(v string) *RedshiftSourceConfig {
+ s.TableName = &v
+ return s
+}
+
+// SetVpcConfiguration sets the VpcConfiguration field's value.
+func (s *RedshiftSourceConfig) SetVpcConfiguration(v *VpcConfiguration) *RedshiftSourceConfig {
+ s.VpcConfiguration = v
+ return s
+}
+
+// The specified resource cannot be found. Check the ARN of the resource and
+// try again.
+type ResourceNotFoundException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The ID of the resource.
+ ResourceId *string `type:"string"`
+
+ // The type of the resource.
+ ResourceType *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ResourceNotFoundException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResourceNotFoundException) GoString() string {
+ return s.String()
+}
+
+func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
+ return &ResourceNotFoundException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ResourceNotFoundException) Code() string {
+ return "ResourceNotFoundException"
+}
+
+// Message returns the exception's message.
+func (s *ResourceNotFoundException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ResourceNotFoundException) OrigErr() error {
+ return nil
+}
+
+func (s *ResourceNotFoundException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Contains information about the configuration of the S3 bucket that contains
+// source files.
+type S3SourceConfig struct {
+ _ struct{} `type:"structure"`
+
+ // Contains information about a source file's formatting.
+ FileFormatDescriptor *FileFormatDescriptor `type:"structure"`
+
+ // A list of paths to the historical data files.
+ HistoricalDataPathList []*string `min:"1" type:"list"`
+
+ // The ARN of an IAM role that has read and write access permissions to the
+ // source S3 bucket.
+ //
+ // RoleArn is a required field
+ RoleArn *string `type:"string" required:"true"`
+
+ // A list of templated paths to the source files.
+ TemplatedPathList []*string `min:"1" type:"list"`
+}
+
+// String returns the string representation
+func (s S3SourceConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s S3SourceConfig) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *S3SourceConfig) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3SourceConfig"}
+ if s.HistoricalDataPathList != nil && len(s.HistoricalDataPathList) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("HistoricalDataPathList", 1))
+ }
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+ if s.TemplatedPathList != nil && len(s.TemplatedPathList) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TemplatedPathList", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFileFormatDescriptor sets the FileFormatDescriptor field's value.
+func (s *S3SourceConfig) SetFileFormatDescriptor(v *FileFormatDescriptor) *S3SourceConfig {
+ s.FileFormatDescriptor = v
+ return s
+}
+
+// SetHistoricalDataPathList sets the HistoricalDataPathList field's value.
+func (s *S3SourceConfig) SetHistoricalDataPathList(v []*string) *S3SourceConfig {
+ s.HistoricalDataPathList = v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *S3SourceConfig) SetRoleArn(v string) *S3SourceConfig {
+ s.RoleArn = &v
+ return s
+}
+
+// SetTemplatedPathList sets the TemplatedPathList field's value.
+func (s *S3SourceConfig) SetTemplatedPathList(v []*string) *S3SourceConfig {
+ s.TemplatedPathList = v
+ return s
+}
+
+// Contains information about the SNS topic to which you want to send your alerts
+// and the IAM role that has access to that topic.
+type SNSConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // THe ARN of the IAM role that has access to the target SNS topic.
+ //
+ // RoleArn is a required field
+ RoleArn *string `type:"string" required:"true"`
+
+ // The ARN of the target SNS topic.
+ //
+ // SnsTopicArn is a required field
+ SnsTopicArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s SNSConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s SNSConfiguration) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SNSConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SNSConfiguration"}
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+ if s.SnsTopicArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("SnsTopicArn"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *SNSConfiguration) SetRoleArn(v string) *SNSConfiguration {
+ s.RoleArn = &v
+ return s
+}
+
+// SetSnsTopicArn sets the SnsTopicArn field's value.
+func (s *SNSConfiguration) SetSnsTopicArn(v string) *SNSConfiguration {
+ s.SnsTopicArn = &v
+ return s
+}
+
+// Contains information about the source configuration in Amazon S3.
+type SampleDataS3SourceConfig struct {
+ _ struct{} `type:"structure"`
+
+ // Contains information about a source file's formatting.
+ //
+ // FileFormatDescriptor is a required field
+ FileFormatDescriptor *FileFormatDescriptor `type:"structure" required:"true"`
+
+ // An array of strings containing the historical set of data paths.
+ HistoricalDataPathList []*string `min:"1" type:"list"`
+
+ // The Amazon Resource Name (ARN) of the role.
+ //
+ // RoleArn is a required field
+ RoleArn *string `type:"string" required:"true"`
+
+ // An array of strings containing the list of templated paths.
+ TemplatedPathList []*string `min:"1" type:"list"`
+}
+
+// String returns the string representation
+func (s SampleDataS3SourceConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s SampleDataS3SourceConfig) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SampleDataS3SourceConfig) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SampleDataS3SourceConfig"}
+ if s.FileFormatDescriptor == nil {
+ invalidParams.Add(request.NewErrParamRequired("FileFormatDescriptor"))
+ }
+ if s.HistoricalDataPathList != nil && len(s.HistoricalDataPathList) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("HistoricalDataPathList", 1))
+ }
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+ if s.TemplatedPathList != nil && len(s.TemplatedPathList) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TemplatedPathList", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFileFormatDescriptor sets the FileFormatDescriptor field's value.
+func (s *SampleDataS3SourceConfig) SetFileFormatDescriptor(v *FileFormatDescriptor) *SampleDataS3SourceConfig {
+ s.FileFormatDescriptor = v
+ return s
+}
+
+// SetHistoricalDataPathList sets the HistoricalDataPathList field's value.
+func (s *SampleDataS3SourceConfig) SetHistoricalDataPathList(v []*string) *SampleDataS3SourceConfig {
+ s.HistoricalDataPathList = v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *SampleDataS3SourceConfig) SetRoleArn(v string) *SampleDataS3SourceConfig {
+ s.RoleArn = &v
+ return s
+}
+
+// SetTemplatedPathList sets the TemplatedPathList field's value.
+func (s *SampleDataS3SourceConfig) SetTemplatedPathList(v []*string) *SampleDataS3SourceConfig {
+ s.TemplatedPathList = v
+ return s
+}
+
+// The request exceeded the service's quotas. Check the service quotas and try
+// again.
+type ServiceQuotaExceededException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The quota code.
+ QuotaCode *string `type:"string"`
+
+ // The ID of the resource.
+ ResourceId *string `type:"string"`
+
+ // The type of the resource.
+ ResourceType *string `type:"string"`
+
+ // The service code.
+ ServiceCode *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ServiceQuotaExceededException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ServiceQuotaExceededException) GoString() string {
+ return s.String()
+}
+
+func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
+ return &ServiceQuotaExceededException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ServiceQuotaExceededException) Code() string {
+ return "ServiceQuotaExceededException"
+}
+
+// Message returns the exception's message.
+func (s *ServiceQuotaExceededException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ServiceQuotaExceededException) OrigErr() error {
+ return nil
+}
+
+func (s *ServiceQuotaExceededException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ServiceQuotaExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ServiceQuotaExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type TagResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // The resource's Amazon Resource Name (ARN).
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
+
+ // Tags to apply to the resource. Tag keys and values can contain letters, numbers,
+ // spaces, and the following symbols: _.:/=+@-
+ //
+ // Tags is a required field
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"`
+}
+
+// String returns the string representation
+func (s TagResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
+ }
+ if s.Tags == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tags"))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
+ s.Tags = v
+ return s
+}
+
+type TagResourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s TagResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagResourceOutput) GoString() string {
+ return s.String()
+}
+
+// Details about a metric. A metric is an aggregation of the values of a measure
+// for a dimension value, such as availability in the us-east-1 Region.
+type TimeSeries struct {
+ _ struct{} `type:"structure"`
+
+ // The dimensions of the metric.
+ //
+ // DimensionList is a required field
+ DimensionList []*DimensionNameValue `type:"list" required:"true"`
+
+ // The values for the metric.
+ //
+ // MetricValueList is a required field
+ MetricValueList []*float64 `type:"list" required:"true"`
+
+ // The ID of the metric.
+ //
+ // TimeSeriesId is a required field
+ TimeSeriesId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s TimeSeries) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TimeSeries) GoString() string {
+ return s.String()
+}
+
+// SetDimensionList sets the DimensionList field's value.
+func (s *TimeSeries) SetDimensionList(v []*DimensionNameValue) *TimeSeries {
+ s.DimensionList = v
+ return s
+}
+
+// SetMetricValueList sets the MetricValueList field's value.
+func (s *TimeSeries) SetMetricValueList(v []*float64) *TimeSeries {
+ s.MetricValueList = v
+ return s
+}
+
+// SetTimeSeriesId sets the TimeSeriesId field's value.
+func (s *TimeSeries) SetTimeSeriesId(v string) *TimeSeries {
+ s.TimeSeriesId = &v
+ return s
+}
+
+// Details about feedback submitted for an anomalous metric.
+type TimeSeriesFeedback struct {
+ _ struct{} `type:"structure"`
+
+ // Feedback on whether the metric is a legitimate anomaly.
+ IsAnomaly *bool `type:"boolean"`
+
+ // The ID of the metric.
+ TimeSeriesId *string `type:"string"`
+}
+
+// String returns the string representation
+func (s TimeSeriesFeedback) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TimeSeriesFeedback) GoString() string {
+ return s.String()
+}
+
+// SetIsAnomaly sets the IsAnomaly field's value.
+func (s *TimeSeriesFeedback) SetIsAnomaly(v bool) *TimeSeriesFeedback {
+ s.IsAnomaly = &v
+ return s
+}
+
+// SetTimeSeriesId sets the TimeSeriesId field's value.
+func (s *TimeSeriesFeedback) SetTimeSeriesId(v string) *TimeSeriesFeedback {
+ s.TimeSeriesId = &v
+ return s
+}
+
+// Contains information about the column used to track time in a source data
+// file.
+type TimestampColumn struct {
+ _ struct{} `type:"structure"`
+
+ // The format of the timestamp column.
+ ColumnFormat *string `type:"string"`
+
+ // The name of the timestamp column.
+ ColumnName *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s TimestampColumn) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TimestampColumn) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TimestampColumn) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TimestampColumn"}
+ if s.ColumnName != nil && len(*s.ColumnName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ColumnName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetColumnFormat sets the ColumnFormat field's value.
+func (s *TimestampColumn) SetColumnFormat(v string) *TimestampColumn {
+ s.ColumnFormat = &v
+ return s
+}
+
+// SetColumnName sets the ColumnName field's value.
+func (s *TimestampColumn) SetColumnName(v string) *TimestampColumn {
+ s.ColumnName = &v
+ return s
+}
+
+// The request was denied due to too many requests being submitted at the same
+// time.
+type TooManyRequestsException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+}
+
+// String returns the string representation
+func (s TooManyRequestsException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TooManyRequestsException) GoString() string {
+ return s.String()
+}
+
+func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
+ return &TooManyRequestsException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *TooManyRequestsException) Code() string {
+ return "TooManyRequestsException"
+}
+
+// Message returns the exception's message.
+func (s *TooManyRequestsException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *TooManyRequestsException) OrigErr() error {
+ return nil
+}
+
+func (s *TooManyRequestsException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *TooManyRequestsException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *TooManyRequestsException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type UntagResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // The resource's Amazon Resource Name (ARN).
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
+
+ // Keys to remove from the resource's tags.
+ //
+ // TagKeys is a required field
+ TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s UntagResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UntagResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UntagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
+ }
+ if s.TagKeys == nil {
+ invalidParams.Add(request.NewErrParamRequired("TagKeys"))
+ }
+ if s.TagKeys != nil && len(s.TagKeys) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTagKeys sets the TagKeys field's value.
+func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
+ s.TagKeys = v
+ return s
+}
+
+type UntagResourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s UntagResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UntagResourceOutput) GoString() string {
+ return s.String()
+}
+
+type UpdateAnomalyDetectorInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the detector to update.
+ //
+ // AnomalyDetectorArn is a required field
+ AnomalyDetectorArn *string `type:"string" required:"true"`
+
+ // Contains information about the configuration to which the detector will be
+ // updated.
+ AnomalyDetectorConfig *AnomalyDetectorConfig `type:"structure"`
+
+ // The updated detector description.
+ AnomalyDetectorDescription *string `min:"1" type:"string"`
+
+ // The Amazon Resource Name (ARN) of an AWS KMS encryption key.
+ KmsKeyArn *string `min:"20" type:"string"`
+}
+
+// String returns the string representation
+func (s UpdateAnomalyDetectorInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateAnomalyDetectorInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateAnomalyDetectorInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateAnomalyDetectorInput"}
+ if s.AnomalyDetectorArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
+ }
+ if s.AnomalyDetectorDescription != nil && len(*s.AnomalyDetectorDescription) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AnomalyDetectorDescription", 1))
+ }
+ if s.KmsKeyArn != nil && len(*s.KmsKeyArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("KmsKeyArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *UpdateAnomalyDetectorInput) SetAnomalyDetectorArn(v string) *UpdateAnomalyDetectorInput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+// SetAnomalyDetectorConfig sets the AnomalyDetectorConfig field's value.
+func (s *UpdateAnomalyDetectorInput) SetAnomalyDetectorConfig(v *AnomalyDetectorConfig) *UpdateAnomalyDetectorInput {
+ s.AnomalyDetectorConfig = v
+ return s
+}
+
+// SetAnomalyDetectorDescription sets the AnomalyDetectorDescription field's value.
+func (s *UpdateAnomalyDetectorInput) SetAnomalyDetectorDescription(v string) *UpdateAnomalyDetectorInput {
+ s.AnomalyDetectorDescription = &v
+ return s
+}
+
+// SetKmsKeyArn sets the KmsKeyArn field's value.
+func (s *UpdateAnomalyDetectorInput) SetKmsKeyArn(v string) *UpdateAnomalyDetectorInput {
+ s.KmsKeyArn = &v
+ return s
+}
+
+type UpdateAnomalyDetectorOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the updated detector.
+ AnomalyDetectorArn *string `type:"string"`
+}
+
+// String returns the string representation
+func (s UpdateAnomalyDetectorOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateAnomalyDetectorOutput) GoString() string {
+ return s.String()
+}
+
+// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
+func (s *UpdateAnomalyDetectorOutput) SetAnomalyDetectorArn(v string) *UpdateAnomalyDetectorOutput {
+ s.AnomalyDetectorArn = &v
+ return s
+}
+
+type UpdateMetricSetInput struct {
+ _ struct{} `type:"structure"`
+
+ // The dimension list.
+ DimensionList []*string `min:"1" type:"list"`
+
+ // The metric list.
+ MetricList []*Metric `min:"1" type:"list"`
+
+ // The ARN of the dataset to update.
+ //
+ // MetricSetArn is a required field
+ MetricSetArn *string `type:"string" required:"true"`
+
+ // The dataset's description.
+ MetricSetDescription *string `min:"1" type:"string"`
+
+ // The dataset's interval.
+ MetricSetFrequency *string `type:"string" enum:"Frequency"`
+
+ // Contains information about source data used to generate a metric.
+ MetricSource *MetricSource `type:"structure"`
+
+ // After an interval ends, the amount of time that the detector waits before
+ // importing data.
+ Offset *int64 `type:"integer"`
+
+ // The timestamp column.
+ TimestampColumn *TimestampColumn `type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateMetricSetInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateMetricSetInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateMetricSetInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateMetricSetInput"}
+ if s.DimensionList != nil && len(s.DimensionList) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DimensionList", 1))
+ }
+ if s.MetricList != nil && len(s.MetricList) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MetricList", 1))
+ }
+ if s.MetricSetArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricSetArn"))
+ }
+ if s.MetricSetDescription != nil && len(*s.MetricSetDescription) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MetricSetDescription", 1))
+ }
+ if s.MetricList != nil {
+ for i, v := range s.MetricList {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricList", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+ if s.MetricSource != nil {
+ if err := s.MetricSource.Validate(); err != nil {
+ invalidParams.AddNested("MetricSource", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.TimestampColumn != nil {
+ if err := s.TimestampColumn.Validate(); err != nil {
+ invalidParams.AddNested("TimestampColumn", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDimensionList sets the DimensionList field's value.
+func (s *UpdateMetricSetInput) SetDimensionList(v []*string) *UpdateMetricSetInput {
+ s.DimensionList = v
+ return s
+}
+
+// SetMetricList sets the MetricList field's value.
+func (s *UpdateMetricSetInput) SetMetricList(v []*Metric) *UpdateMetricSetInput {
+ s.MetricList = v
+ return s
+}
+
+// SetMetricSetArn sets the MetricSetArn field's value.
+func (s *UpdateMetricSetInput) SetMetricSetArn(v string) *UpdateMetricSetInput {
+ s.MetricSetArn = &v
+ return s
+}
+
+// SetMetricSetDescription sets the MetricSetDescription field's value.
+func (s *UpdateMetricSetInput) SetMetricSetDescription(v string) *UpdateMetricSetInput {
+ s.MetricSetDescription = &v
+ return s
+}
+
+// SetMetricSetFrequency sets the MetricSetFrequency field's value.
+func (s *UpdateMetricSetInput) SetMetricSetFrequency(v string) *UpdateMetricSetInput {
+ s.MetricSetFrequency = &v
+ return s
+}
+
+// SetMetricSource sets the MetricSource field's value.
+func (s *UpdateMetricSetInput) SetMetricSource(v *MetricSource) *UpdateMetricSetInput {
+ s.MetricSource = v
+ return s
+}
+
+// SetOffset sets the Offset field's value.
+func (s *UpdateMetricSetInput) SetOffset(v int64) *UpdateMetricSetInput {
+ s.Offset = &v
+ return s
+}
+
+// SetTimestampColumn sets the TimestampColumn field's value.
+func (s *UpdateMetricSetInput) SetTimestampColumn(v *TimestampColumn) *UpdateMetricSetInput {
+ s.TimestampColumn = v
+ return s
+}
+
+type UpdateMetricSetOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the dataset.
+ MetricSetArn *string `type:"string"`
+}
+
+// String returns the string representation
+func (s UpdateMetricSetOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateMetricSetOutput) GoString() string {
+ return s.String()
+}
+
+// SetMetricSetArn sets the MetricSetArn field's value.
+func (s *UpdateMetricSetOutput) SetMetricSetArn(v string) *UpdateMetricSetOutput {
+ s.MetricSetArn = &v
+ return s
+}
+
+// The input fails to satisfy the constraints specified by the AWS service.
+// Check your input values and try again.
+type ValidationException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // Fields that failed validation.
+ Fields []*ValidationExceptionField `type:"list"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The reason that validation failed.
+ Reason *string `type:"string" enum:"ValidationExceptionReason"`
+}
+
+// String returns the string representation
+func (s ValidationException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ValidationException) GoString() string {
+ return s.String()
+}
+
+func newErrorValidationException(v protocol.ResponseMetadata) error {
+ return &ValidationException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ValidationException) Code() string {
+ return "ValidationException"
+}
+
+// Message returns the exception's message.
+func (s *ValidationException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ValidationException) OrigErr() error {
+ return nil
+}
+
+func (s *ValidationException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Contains information about a a field in a validation exception.
+type ValidationExceptionField struct {
+ _ struct{} `type:"structure"`
+
+ // The message with more information about the validation exception.
+ //
+ // Message is a required field
+ Message *string `type:"string" required:"true"`
+
+ // The name of the field.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ValidationExceptionField) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ValidationExceptionField) GoString() string {
+ return s.String()
+}
+
+// SetMessage sets the Message field's value.
+func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField {
+ s.Message = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField {
+ s.Name = &v
+ return s
+}
+
+// Contains configuration information about the Amazon Virtual Private Cloud
+// (VPC).
+type VpcConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // An array of strings containing the list of security groups.
+ //
+ // SecurityGroupIdList is a required field
+ SecurityGroupIdList []*string `type:"list" required:"true"`
+
+ // An array of strings containing the Amazon VPC subnet IDs (e.g., subnet-0bb1c79de3EXAMPLE.
+ //
+ // SubnetIdList is a required field
+ SubnetIdList []*string `type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s VpcConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s VpcConfiguration) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *VpcConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "VpcConfiguration"}
+ if s.SecurityGroupIdList == nil {
+ invalidParams.Add(request.NewErrParamRequired("SecurityGroupIdList"))
+ }
+ if s.SubnetIdList == nil {
+ invalidParams.Add(request.NewErrParamRequired("SubnetIdList"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetSecurityGroupIdList sets the SecurityGroupIdList field's value.
+func (s *VpcConfiguration) SetSecurityGroupIdList(v []*string) *VpcConfiguration {
+ s.SecurityGroupIdList = v
+ return s
+}
+
+// SetSubnetIdList sets the SubnetIdList field's value.
+func (s *VpcConfiguration) SetSubnetIdList(v []*string) *VpcConfiguration {
+ s.SubnetIdList = v
+ return s
+}
+
+const (
+ // AggregationFunctionAvg is a AggregationFunction enum value
+ AggregationFunctionAvg = "AVG"
+
+ // AggregationFunctionSum is a AggregationFunction enum value
+ AggregationFunctionSum = "SUM"
+)
+
+// AggregationFunction_Values returns all elements of the AggregationFunction enum
+func AggregationFunction_Values() []string {
+ return []string{
+ AggregationFunctionAvg,
+ AggregationFunctionSum,
+ }
+}
+
+const (
+ // AlertStatusActive is a AlertStatus enum value
+ AlertStatusActive = "ACTIVE"
+
+ // AlertStatusInactive is a AlertStatus enum value
+ AlertStatusInactive = "INACTIVE"
+)
+
+// AlertStatus_Values returns all elements of the AlertStatus enum
+func AlertStatus_Values() []string {
+ return []string{
+ AlertStatusActive,
+ AlertStatusInactive,
+ }
+}
+
+const (
+ // AlertTypeSns is a AlertType enum value
+ AlertTypeSns = "SNS"
+
+ // AlertTypeLambda is a AlertType enum value
+ AlertTypeLambda = "LAMBDA"
+)
+
+// AlertType_Values returns all elements of the AlertType enum
+func AlertType_Values() []string {
+ return []string{
+ AlertTypeSns,
+ AlertTypeLambda,
+ }
+}
+
+const (
+ // AnomalyDetectionTaskStatusPending is a AnomalyDetectionTaskStatus enum value
+ AnomalyDetectionTaskStatusPending = "PENDING"
+
+ // AnomalyDetectionTaskStatusInProgress is a AnomalyDetectionTaskStatus enum value
+ AnomalyDetectionTaskStatusInProgress = "IN_PROGRESS"
+
+ // AnomalyDetectionTaskStatusCompleted is a AnomalyDetectionTaskStatus enum value
+ AnomalyDetectionTaskStatusCompleted = "COMPLETED"
+
+ // AnomalyDetectionTaskStatusFailed is a AnomalyDetectionTaskStatus enum value
+ AnomalyDetectionTaskStatusFailed = "FAILED"
+
+ // AnomalyDetectionTaskStatusFailedToSchedule is a AnomalyDetectionTaskStatus enum value
+ AnomalyDetectionTaskStatusFailedToSchedule = "FAILED_TO_SCHEDULE"
+)
+
+// AnomalyDetectionTaskStatus_Values returns all elements of the AnomalyDetectionTaskStatus enum
+func AnomalyDetectionTaskStatus_Values() []string {
+ return []string{
+ AnomalyDetectionTaskStatusPending,
+ AnomalyDetectionTaskStatusInProgress,
+ AnomalyDetectionTaskStatusCompleted,
+ AnomalyDetectionTaskStatusFailed,
+ AnomalyDetectionTaskStatusFailedToSchedule,
+ }
+}
+
+const (
+ // AnomalyDetectorStatusActive is a AnomalyDetectorStatus enum value
+ AnomalyDetectorStatusActive = "ACTIVE"
+
+ // AnomalyDetectorStatusActivating is a AnomalyDetectorStatus enum value
+ AnomalyDetectorStatusActivating = "ACTIVATING"
+
+ // AnomalyDetectorStatusDeleting is a AnomalyDetectorStatus enum value
+ AnomalyDetectorStatusDeleting = "DELETING"
+
+ // AnomalyDetectorStatusFailed is a AnomalyDetectorStatus enum value
+ AnomalyDetectorStatusFailed = "FAILED"
+
+ // AnomalyDetectorStatusInactive is a AnomalyDetectorStatus enum value
+ AnomalyDetectorStatusInactive = "INACTIVE"
+
+ // AnomalyDetectorStatusBackTestActivating is a AnomalyDetectorStatus enum value
+ AnomalyDetectorStatusBackTestActivating = "BACK_TEST_ACTIVATING"
+
+ // AnomalyDetectorStatusBackTestActive is a AnomalyDetectorStatus enum value
+ AnomalyDetectorStatusBackTestActive = "BACK_TEST_ACTIVE"
+
+ // AnomalyDetectorStatusBackTestComplete is a AnomalyDetectorStatus enum value
+ AnomalyDetectorStatusBackTestComplete = "BACK_TEST_COMPLETE"
+)
+
+// AnomalyDetectorStatus_Values returns all elements of the AnomalyDetectorStatus enum
+func AnomalyDetectorStatus_Values() []string {
+ return []string{
+ AnomalyDetectorStatusActive,
+ AnomalyDetectorStatusActivating,
+ AnomalyDetectorStatusDeleting,
+ AnomalyDetectorStatusFailed,
+ AnomalyDetectorStatusInactive,
+ AnomalyDetectorStatusBackTestActivating,
+ AnomalyDetectorStatusBackTestActive,
+ AnomalyDetectorStatusBackTestComplete,
+ }
+}
+
+const (
+ // CSVFileCompressionNone is a CSVFileCompression enum value
+ CSVFileCompressionNone = "NONE"
+
+ // CSVFileCompressionGzip is a CSVFileCompression enum value
+ CSVFileCompressionGzip = "GZIP"
+)
+
+// CSVFileCompression_Values returns all elements of the CSVFileCompression enum
+func CSVFileCompression_Values() []string {
+ return []string{
+ CSVFileCompressionNone,
+ CSVFileCompressionGzip,
+ }
+}
+
+const (
+ // FrequencyP1d is a Frequency enum value
+ FrequencyP1d = "P1D"
+
+ // FrequencyPt1h is a Frequency enum value
+ FrequencyPt1h = "PT1H"
+
+ // FrequencyPt10m is a Frequency enum value
+ FrequencyPt10m = "PT10M"
+
+ // FrequencyPt5m is a Frequency enum value
+ FrequencyPt5m = "PT5M"
+)
+
+// Frequency_Values returns all elements of the Frequency enum
+func Frequency_Values() []string {
+ return []string{
+ FrequencyP1d,
+ FrequencyPt1h,
+ FrequencyPt10m,
+ FrequencyPt5m,
+ }
+}
+
+const (
+ // JsonFileCompressionNone is a JsonFileCompression enum value
+ JsonFileCompressionNone = "NONE"
+
+ // JsonFileCompressionGzip is a JsonFileCompression enum value
+ JsonFileCompressionGzip = "GZIP"
+)
+
+// JsonFileCompression_Values returns all elements of the JsonFileCompression enum
+func JsonFileCompression_Values() []string {
+ return []string{
+ JsonFileCompressionNone,
+ JsonFileCompressionGzip,
+ }
+}
+
+const (
+ // ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value
+ ValidationExceptionReasonUnknownOperation = "UNKNOWN_OPERATION"
+
+ // ValidationExceptionReasonCannotParse is a ValidationExceptionReason enum value
+ ValidationExceptionReasonCannotParse = "CANNOT_PARSE"
+
+ // ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value
+ ValidationExceptionReasonFieldValidationFailed = "FIELD_VALIDATION_FAILED"
+
+ // ValidationExceptionReasonOther is a ValidationExceptionReason enum value
+ ValidationExceptionReasonOther = "OTHER"
+)
+
+// ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum
+func ValidationExceptionReason_Values() []string {
+ return []string{
+ ValidationExceptionReasonUnknownOperation,
+ ValidationExceptionReasonCannotParse,
+ ValidationExceptionReasonFieldValidationFailed,
+ ValidationExceptionReasonOther,
+ }
+}
diff --git a/service/lookoutmetrics/doc.go b/service/lookoutmetrics/doc.go
new file mode 100644
index 00000000000..22c5abc6776
--- /dev/null
+++ b/service/lookoutmetrics/doc.go
@@ -0,0 +1,30 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+// Package lookoutmetrics provides the client and types for making API
+// requests to Amazon Lookout for Metrics.
+//
+// This is the Amazon Lookout for Metrics API Reference. For an introduction
+// to the service with tutorials for getting started, visit Amazon Lookout for
+// Metrics Developer Guide (https://docs.aws.amazon.com/lookoutmetrics/latest/dev).
+//
+// See https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25 for more information on this service.
+//
+// See lookoutmetrics package documentation for more information.
+// https://docs.aws.amazon.com/sdk-for-go/api/service/lookoutmetrics/
+//
+// Using the Client
+//
+// To contact Amazon Lookout for Metrics with the SDK use the New function to create
+// a new service client. With that client you can make API requests to the service.
+// These clients are safe to use concurrently.
+//
+// See the SDK's documentation for more information on how to use the SDK.
+// https://docs.aws.amazon.com/sdk-for-go/api/
+//
+// See aws.Config documentation for more information on configuring SDK clients.
+// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
+//
+// See the Amazon Lookout for Metrics client LookoutMetrics for more
+// information on creating client for this service.
+// https://docs.aws.amazon.com/sdk-for-go/api/service/lookoutmetrics/#New
+package lookoutmetrics
diff --git a/service/lookoutmetrics/errors.go b/service/lookoutmetrics/errors.go
new file mode 100644
index 00000000000..3918563c2cd
--- /dev/null
+++ b/service/lookoutmetrics/errors.go
@@ -0,0 +1,67 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package lookoutmetrics
+
+import (
+ "github.com/aws/aws-sdk-go/private/protocol"
+)
+
+const (
+
+ // ErrCodeAccessDeniedException for service response error code
+ // "AccessDeniedException".
+ //
+ // You do not have sufficient permissions to perform this action.
+ ErrCodeAccessDeniedException = "AccessDeniedException"
+
+ // ErrCodeConflictException for service response error code
+ // "ConflictException".
+ //
+ // There was a conflict processing the request. Try your request again.
+ ErrCodeConflictException = "ConflictException"
+
+ // ErrCodeInternalServerException for service response error code
+ // "InternalServerException".
+ //
+ // The request processing has failed because of an unknown error, exception,
+ // or failure.
+ ErrCodeInternalServerException = "InternalServerException"
+
+ // ErrCodeResourceNotFoundException for service response error code
+ // "ResourceNotFoundException".
+ //
+ // The specified resource cannot be found. Check the ARN of the resource and
+ // try again.
+ ErrCodeResourceNotFoundException = "ResourceNotFoundException"
+
+ // ErrCodeServiceQuotaExceededException for service response error code
+ // "ServiceQuotaExceededException".
+ //
+ // The request exceeded the service's quotas. Check the service quotas and try
+ // again.
+ ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
+
+ // ErrCodeTooManyRequestsException for service response error code
+ // "TooManyRequestsException".
+ //
+ // The request was denied due to too many requests being submitted at the same
+ // time.
+ ErrCodeTooManyRequestsException = "TooManyRequestsException"
+
+ // ErrCodeValidationException for service response error code
+ // "ValidationException".
+ //
+ // The input fails to satisfy the constraints specified by the AWS service.
+ // Check your input values and try again.
+ ErrCodeValidationException = "ValidationException"
+)
+
+var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
+ "AccessDeniedException": newErrorAccessDeniedException,
+ "ConflictException": newErrorConflictException,
+ "InternalServerException": newErrorInternalServerException,
+ "ResourceNotFoundException": newErrorResourceNotFoundException,
+ "ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
+ "TooManyRequestsException": newErrorTooManyRequestsException,
+ "ValidationException": newErrorValidationException,
+}
diff --git a/service/lookoutmetrics/lookoutmetricsiface/interface.go b/service/lookoutmetrics/lookoutmetricsiface/interface.go
new file mode 100644
index 00000000000..bba73eefdc1
--- /dev/null
+++ b/service/lookoutmetrics/lookoutmetricsiface/interface.go
@@ -0,0 +1,185 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+// Package lookoutmetricsiface provides an interface to enable mocking the Amazon Lookout for Metrics service client
+// for testing your code.
+//
+// It is important to note that this interface will have breaking changes
+// when the service model is updated and adds new API operations, paginators,
+// and waiters.
+package lookoutmetricsiface
+
+import (
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/service/lookoutmetrics"
+)
+
+// LookoutMetricsAPI provides an interface to enable mocking the
+// lookoutmetrics.LookoutMetrics service client's API operation,
+// paginators, and waiters. This make unit testing your code that calls out
+// to the SDK's service client's calls easier.
+//
+// The best way to use this interface is so the SDK's service client's calls
+// can be stubbed out for unit testing your code with the SDK without needing
+// to inject custom request handlers into the SDK's request pipeline.
+//
+// // myFunc uses an SDK service client to make a request to
+// // Amazon Lookout for Metrics.
+// func myFunc(svc lookoutmetricsiface.LookoutMetricsAPI) bool {
+// // Make svc.ActivateAnomalyDetector request
+// }
+//
+// func main() {
+// sess := session.New()
+// svc := lookoutmetrics.New(sess)
+//
+// myFunc(svc)
+// }
+//
+// In your _test.go file:
+//
+// // Define a mock struct to be used in your unit tests of myFunc.
+// type mockLookoutMetricsClient struct {
+// lookoutmetricsiface.LookoutMetricsAPI
+// }
+// func (m *mockLookoutMetricsClient) ActivateAnomalyDetector(input *lookoutmetrics.ActivateAnomalyDetectorInput) (*lookoutmetrics.ActivateAnomalyDetectorOutput, error) {
+// // mock response/functionality
+// }
+//
+// func TestMyFunc(t *testing.T) {
+// // Setup Test
+// mockSvc := &mockLookoutMetricsClient{}
+//
+// myfunc(mockSvc)
+//
+// // Verify myFunc's functionality
+// }
+//
+// It is important to note that this interface will have breaking changes
+// when the service model is updated and adds new API operations, paginators,
+// and waiters. Its suggested to use the pattern above for testing, or using
+// tooling to generate mocks to satisfy the interfaces.
+type LookoutMetricsAPI interface {
+ ActivateAnomalyDetector(*lookoutmetrics.ActivateAnomalyDetectorInput) (*lookoutmetrics.ActivateAnomalyDetectorOutput, error)
+ ActivateAnomalyDetectorWithContext(aws.Context, *lookoutmetrics.ActivateAnomalyDetectorInput, ...request.Option) (*lookoutmetrics.ActivateAnomalyDetectorOutput, error)
+ ActivateAnomalyDetectorRequest(*lookoutmetrics.ActivateAnomalyDetectorInput) (*request.Request, *lookoutmetrics.ActivateAnomalyDetectorOutput)
+
+ BackTestAnomalyDetector(*lookoutmetrics.BackTestAnomalyDetectorInput) (*lookoutmetrics.BackTestAnomalyDetectorOutput, error)
+ BackTestAnomalyDetectorWithContext(aws.Context, *lookoutmetrics.BackTestAnomalyDetectorInput, ...request.Option) (*lookoutmetrics.BackTestAnomalyDetectorOutput, error)
+ BackTestAnomalyDetectorRequest(*lookoutmetrics.BackTestAnomalyDetectorInput) (*request.Request, *lookoutmetrics.BackTestAnomalyDetectorOutput)
+
+ CreateAlert(*lookoutmetrics.CreateAlertInput) (*lookoutmetrics.CreateAlertOutput, error)
+ CreateAlertWithContext(aws.Context, *lookoutmetrics.CreateAlertInput, ...request.Option) (*lookoutmetrics.CreateAlertOutput, error)
+ CreateAlertRequest(*lookoutmetrics.CreateAlertInput) (*request.Request, *lookoutmetrics.CreateAlertOutput)
+
+ CreateAnomalyDetector(*lookoutmetrics.CreateAnomalyDetectorInput) (*lookoutmetrics.CreateAnomalyDetectorOutput, error)
+ CreateAnomalyDetectorWithContext(aws.Context, *lookoutmetrics.CreateAnomalyDetectorInput, ...request.Option) (*lookoutmetrics.CreateAnomalyDetectorOutput, error)
+ CreateAnomalyDetectorRequest(*lookoutmetrics.CreateAnomalyDetectorInput) (*request.Request, *lookoutmetrics.CreateAnomalyDetectorOutput)
+
+ CreateMetricSet(*lookoutmetrics.CreateMetricSetInput) (*lookoutmetrics.CreateMetricSetOutput, error)
+ CreateMetricSetWithContext(aws.Context, *lookoutmetrics.CreateMetricSetInput, ...request.Option) (*lookoutmetrics.CreateMetricSetOutput, error)
+ CreateMetricSetRequest(*lookoutmetrics.CreateMetricSetInput) (*request.Request, *lookoutmetrics.CreateMetricSetOutput)
+
+ DeleteAlert(*lookoutmetrics.DeleteAlertInput) (*lookoutmetrics.DeleteAlertOutput, error)
+ DeleteAlertWithContext(aws.Context, *lookoutmetrics.DeleteAlertInput, ...request.Option) (*lookoutmetrics.DeleteAlertOutput, error)
+ DeleteAlertRequest(*lookoutmetrics.DeleteAlertInput) (*request.Request, *lookoutmetrics.DeleteAlertOutput)
+
+ DeleteAnomalyDetector(*lookoutmetrics.DeleteAnomalyDetectorInput) (*lookoutmetrics.DeleteAnomalyDetectorOutput, error)
+ DeleteAnomalyDetectorWithContext(aws.Context, *lookoutmetrics.DeleteAnomalyDetectorInput, ...request.Option) (*lookoutmetrics.DeleteAnomalyDetectorOutput, error)
+ DeleteAnomalyDetectorRequest(*lookoutmetrics.DeleteAnomalyDetectorInput) (*request.Request, *lookoutmetrics.DeleteAnomalyDetectorOutput)
+
+ DescribeAlert(*lookoutmetrics.DescribeAlertInput) (*lookoutmetrics.DescribeAlertOutput, error)
+ DescribeAlertWithContext(aws.Context, *lookoutmetrics.DescribeAlertInput, ...request.Option) (*lookoutmetrics.DescribeAlertOutput, error)
+ DescribeAlertRequest(*lookoutmetrics.DescribeAlertInput) (*request.Request, *lookoutmetrics.DescribeAlertOutput)
+
+ DescribeAnomalyDetectionExecutions(*lookoutmetrics.DescribeAnomalyDetectionExecutionsInput) (*lookoutmetrics.DescribeAnomalyDetectionExecutionsOutput, error)
+ DescribeAnomalyDetectionExecutionsWithContext(aws.Context, *lookoutmetrics.DescribeAnomalyDetectionExecutionsInput, ...request.Option) (*lookoutmetrics.DescribeAnomalyDetectionExecutionsOutput, error)
+ DescribeAnomalyDetectionExecutionsRequest(*lookoutmetrics.DescribeAnomalyDetectionExecutionsInput) (*request.Request, *lookoutmetrics.DescribeAnomalyDetectionExecutionsOutput)
+
+ DescribeAnomalyDetectionExecutionsPages(*lookoutmetrics.DescribeAnomalyDetectionExecutionsInput, func(*lookoutmetrics.DescribeAnomalyDetectionExecutionsOutput, bool) bool) error
+ DescribeAnomalyDetectionExecutionsPagesWithContext(aws.Context, *lookoutmetrics.DescribeAnomalyDetectionExecutionsInput, func(*lookoutmetrics.DescribeAnomalyDetectionExecutionsOutput, bool) bool, ...request.Option) error
+
+ DescribeAnomalyDetector(*lookoutmetrics.DescribeAnomalyDetectorInput) (*lookoutmetrics.DescribeAnomalyDetectorOutput, error)
+ DescribeAnomalyDetectorWithContext(aws.Context, *lookoutmetrics.DescribeAnomalyDetectorInput, ...request.Option) (*lookoutmetrics.DescribeAnomalyDetectorOutput, error)
+ DescribeAnomalyDetectorRequest(*lookoutmetrics.DescribeAnomalyDetectorInput) (*request.Request, *lookoutmetrics.DescribeAnomalyDetectorOutput)
+
+ DescribeMetricSet(*lookoutmetrics.DescribeMetricSetInput) (*lookoutmetrics.DescribeMetricSetOutput, error)
+ DescribeMetricSetWithContext(aws.Context, *lookoutmetrics.DescribeMetricSetInput, ...request.Option) (*lookoutmetrics.DescribeMetricSetOutput, error)
+ DescribeMetricSetRequest(*lookoutmetrics.DescribeMetricSetInput) (*request.Request, *lookoutmetrics.DescribeMetricSetOutput)
+
+ GetAnomalyGroup(*lookoutmetrics.GetAnomalyGroupInput) (*lookoutmetrics.GetAnomalyGroupOutput, error)
+ GetAnomalyGroupWithContext(aws.Context, *lookoutmetrics.GetAnomalyGroupInput, ...request.Option) (*lookoutmetrics.GetAnomalyGroupOutput, error)
+ GetAnomalyGroupRequest(*lookoutmetrics.GetAnomalyGroupInput) (*request.Request, *lookoutmetrics.GetAnomalyGroupOutput)
+
+ GetFeedback(*lookoutmetrics.GetFeedbackInput) (*lookoutmetrics.GetFeedbackOutput, error)
+ GetFeedbackWithContext(aws.Context, *lookoutmetrics.GetFeedbackInput, ...request.Option) (*lookoutmetrics.GetFeedbackOutput, error)
+ GetFeedbackRequest(*lookoutmetrics.GetFeedbackInput) (*request.Request, *lookoutmetrics.GetFeedbackOutput)
+
+ GetFeedbackPages(*lookoutmetrics.GetFeedbackInput, func(*lookoutmetrics.GetFeedbackOutput, bool) bool) error
+ GetFeedbackPagesWithContext(aws.Context, *lookoutmetrics.GetFeedbackInput, func(*lookoutmetrics.GetFeedbackOutput, bool) bool, ...request.Option) error
+
+ GetSampleData(*lookoutmetrics.GetSampleDataInput) (*lookoutmetrics.GetSampleDataOutput, error)
+ GetSampleDataWithContext(aws.Context, *lookoutmetrics.GetSampleDataInput, ...request.Option) (*lookoutmetrics.GetSampleDataOutput, error)
+ GetSampleDataRequest(*lookoutmetrics.GetSampleDataInput) (*request.Request, *lookoutmetrics.GetSampleDataOutput)
+
+ ListAlerts(*lookoutmetrics.ListAlertsInput) (*lookoutmetrics.ListAlertsOutput, error)
+ ListAlertsWithContext(aws.Context, *lookoutmetrics.ListAlertsInput, ...request.Option) (*lookoutmetrics.ListAlertsOutput, error)
+ ListAlertsRequest(*lookoutmetrics.ListAlertsInput) (*request.Request, *lookoutmetrics.ListAlertsOutput)
+
+ ListAlertsPages(*lookoutmetrics.ListAlertsInput, func(*lookoutmetrics.ListAlertsOutput, bool) bool) error
+ ListAlertsPagesWithContext(aws.Context, *lookoutmetrics.ListAlertsInput, func(*lookoutmetrics.ListAlertsOutput, bool) bool, ...request.Option) error
+
+ ListAnomalyDetectors(*lookoutmetrics.ListAnomalyDetectorsInput) (*lookoutmetrics.ListAnomalyDetectorsOutput, error)
+ ListAnomalyDetectorsWithContext(aws.Context, *lookoutmetrics.ListAnomalyDetectorsInput, ...request.Option) (*lookoutmetrics.ListAnomalyDetectorsOutput, error)
+ ListAnomalyDetectorsRequest(*lookoutmetrics.ListAnomalyDetectorsInput) (*request.Request, *lookoutmetrics.ListAnomalyDetectorsOutput)
+
+ ListAnomalyDetectorsPages(*lookoutmetrics.ListAnomalyDetectorsInput, func(*lookoutmetrics.ListAnomalyDetectorsOutput, bool) bool) error
+ ListAnomalyDetectorsPagesWithContext(aws.Context, *lookoutmetrics.ListAnomalyDetectorsInput, func(*lookoutmetrics.ListAnomalyDetectorsOutput, bool) bool, ...request.Option) error
+
+ ListAnomalyGroupSummaries(*lookoutmetrics.ListAnomalyGroupSummariesInput) (*lookoutmetrics.ListAnomalyGroupSummariesOutput, error)
+ ListAnomalyGroupSummariesWithContext(aws.Context, *lookoutmetrics.ListAnomalyGroupSummariesInput, ...request.Option) (*lookoutmetrics.ListAnomalyGroupSummariesOutput, error)
+ ListAnomalyGroupSummariesRequest(*lookoutmetrics.ListAnomalyGroupSummariesInput) (*request.Request, *lookoutmetrics.ListAnomalyGroupSummariesOutput)
+
+ ListAnomalyGroupSummariesPages(*lookoutmetrics.ListAnomalyGroupSummariesInput, func(*lookoutmetrics.ListAnomalyGroupSummariesOutput, bool) bool) error
+ ListAnomalyGroupSummariesPagesWithContext(aws.Context, *lookoutmetrics.ListAnomalyGroupSummariesInput, func(*lookoutmetrics.ListAnomalyGroupSummariesOutput, bool) bool, ...request.Option) error
+
+ ListAnomalyGroupTimeSeries(*lookoutmetrics.ListAnomalyGroupTimeSeriesInput) (*lookoutmetrics.ListAnomalyGroupTimeSeriesOutput, error)
+ ListAnomalyGroupTimeSeriesWithContext(aws.Context, *lookoutmetrics.ListAnomalyGroupTimeSeriesInput, ...request.Option) (*lookoutmetrics.ListAnomalyGroupTimeSeriesOutput, error)
+ ListAnomalyGroupTimeSeriesRequest(*lookoutmetrics.ListAnomalyGroupTimeSeriesInput) (*request.Request, *lookoutmetrics.ListAnomalyGroupTimeSeriesOutput)
+
+ ListAnomalyGroupTimeSeriesPages(*lookoutmetrics.ListAnomalyGroupTimeSeriesInput, func(*lookoutmetrics.ListAnomalyGroupTimeSeriesOutput, bool) bool) error
+ ListAnomalyGroupTimeSeriesPagesWithContext(aws.Context, *lookoutmetrics.ListAnomalyGroupTimeSeriesInput, func(*lookoutmetrics.ListAnomalyGroupTimeSeriesOutput, bool) bool, ...request.Option) error
+
+ ListMetricSets(*lookoutmetrics.ListMetricSetsInput) (*lookoutmetrics.ListMetricSetsOutput, error)
+ ListMetricSetsWithContext(aws.Context, *lookoutmetrics.ListMetricSetsInput, ...request.Option) (*lookoutmetrics.ListMetricSetsOutput, error)
+ ListMetricSetsRequest(*lookoutmetrics.ListMetricSetsInput) (*request.Request, *lookoutmetrics.ListMetricSetsOutput)
+
+ ListMetricSetsPages(*lookoutmetrics.ListMetricSetsInput, func(*lookoutmetrics.ListMetricSetsOutput, bool) bool) error
+ ListMetricSetsPagesWithContext(aws.Context, *lookoutmetrics.ListMetricSetsInput, func(*lookoutmetrics.ListMetricSetsOutput, bool) bool, ...request.Option) error
+
+ ListTagsForResource(*lookoutmetrics.ListTagsForResourceInput) (*lookoutmetrics.ListTagsForResourceOutput, error)
+ ListTagsForResourceWithContext(aws.Context, *lookoutmetrics.ListTagsForResourceInput, ...request.Option) (*lookoutmetrics.ListTagsForResourceOutput, error)
+ ListTagsForResourceRequest(*lookoutmetrics.ListTagsForResourceInput) (*request.Request, *lookoutmetrics.ListTagsForResourceOutput)
+
+ PutFeedback(*lookoutmetrics.PutFeedbackInput) (*lookoutmetrics.PutFeedbackOutput, error)
+ PutFeedbackWithContext(aws.Context, *lookoutmetrics.PutFeedbackInput, ...request.Option) (*lookoutmetrics.PutFeedbackOutput, error)
+ PutFeedbackRequest(*lookoutmetrics.PutFeedbackInput) (*request.Request, *lookoutmetrics.PutFeedbackOutput)
+
+ TagResource(*lookoutmetrics.TagResourceInput) (*lookoutmetrics.TagResourceOutput, error)
+ TagResourceWithContext(aws.Context, *lookoutmetrics.TagResourceInput, ...request.Option) (*lookoutmetrics.TagResourceOutput, error)
+ TagResourceRequest(*lookoutmetrics.TagResourceInput) (*request.Request, *lookoutmetrics.TagResourceOutput)
+
+ UntagResource(*lookoutmetrics.UntagResourceInput) (*lookoutmetrics.UntagResourceOutput, error)
+ UntagResourceWithContext(aws.Context, *lookoutmetrics.UntagResourceInput, ...request.Option) (*lookoutmetrics.UntagResourceOutput, error)
+ UntagResourceRequest(*lookoutmetrics.UntagResourceInput) (*request.Request, *lookoutmetrics.UntagResourceOutput)
+
+ UpdateAnomalyDetector(*lookoutmetrics.UpdateAnomalyDetectorInput) (*lookoutmetrics.UpdateAnomalyDetectorOutput, error)
+ UpdateAnomalyDetectorWithContext(aws.Context, *lookoutmetrics.UpdateAnomalyDetectorInput, ...request.Option) (*lookoutmetrics.UpdateAnomalyDetectorOutput, error)
+ UpdateAnomalyDetectorRequest(*lookoutmetrics.UpdateAnomalyDetectorInput) (*request.Request, *lookoutmetrics.UpdateAnomalyDetectorOutput)
+
+ UpdateMetricSet(*lookoutmetrics.UpdateMetricSetInput) (*lookoutmetrics.UpdateMetricSetOutput, error)
+ UpdateMetricSetWithContext(aws.Context, *lookoutmetrics.UpdateMetricSetInput, ...request.Option) (*lookoutmetrics.UpdateMetricSetOutput, error)
+ UpdateMetricSetRequest(*lookoutmetrics.UpdateMetricSetInput) (*request.Request, *lookoutmetrics.UpdateMetricSetOutput)
+}
+
+var _ LookoutMetricsAPI = (*lookoutmetrics.LookoutMetrics)(nil)
diff --git a/service/lookoutmetrics/service.go b/service/lookoutmetrics/service.go
new file mode 100644
index 00000000000..b7b8d8ca894
--- /dev/null
+++ b/service/lookoutmetrics/service.go
@@ -0,0 +1,104 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package lookoutmetrics
+
+import (
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/client"
+ "github.com/aws/aws-sdk-go/aws/client/metadata"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/aws/signer/v4"
+ "github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/private/protocol/restjson"
+)
+
+// LookoutMetrics provides the API operation methods for making requests to
+// Amazon Lookout for Metrics. See this package's package overview docs
+// for details on the service.
+//
+// LookoutMetrics methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type LookoutMetrics struct {
+ *client.Client
+}
+
+// Used for custom client initialization logic
+var initClient func(*client.Client)
+
+// Used for custom request initialization logic
+var initRequest func(*request.Request)
+
+// Service information constants
+const (
+ ServiceName = "LookoutMetrics" // Name of service.
+ EndpointsID = "lookoutmetrics" // ID to lookup a service endpoint with.
+ ServiceID = "LookoutMetrics" // ServiceID is a unique identifier of a specific service.
+)
+
+// New creates a new instance of the LookoutMetrics client with a session.
+// If additional configuration is needed for the client instance use the optional
+// aws.Config parameter to add your extra config.
+//
+// Example:
+// mySession := session.Must(session.NewSession())
+//
+// // Create a LookoutMetrics client from just a session.
+// svc := lookoutmetrics.New(mySession)
+//
+// // Create a LookoutMetrics client with additional configuration
+// svc := lookoutmetrics.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
+func New(p client.ConfigProvider, cfgs ...*aws.Config) *LookoutMetrics {
+ c := p.ClientConfig(EndpointsID, cfgs...)
+ if c.SigningNameDerived || len(c.SigningName) == 0 {
+ c.SigningName = "lookoutmetrics"
+ }
+ return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
+}
+
+// newClient creates, initializes and returns a new service client instance.
+func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *LookoutMetrics {
+ svc := &LookoutMetrics{
+ Client: client.New(
+ cfg,
+ metadata.ClientInfo{
+ ServiceName: ServiceName,
+ ServiceID: ServiceID,
+ SigningName: signingName,
+ SigningRegion: signingRegion,
+ PartitionID: partitionID,
+ Endpoint: endpoint,
+ APIVersion: "2017-07-25",
+ },
+ handlers,
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(
+ protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
+ )
+
+ // Run custom client initialization if present
+ if initClient != nil {
+ initClient(svc.Client)
+ }
+
+ return svc
+}
+
+// newRequest creates a new request for a LookoutMetrics operation and runs any
+// custom request initialization.
+func (c *LookoutMetrics) newRequest(op *request.Operation, params, data interface{}) *request.Request {
+ req := c.NewRequest(op, params, data)
+
+ // Run custom request initialization if present
+ if initRequest != nil {
+ initRequest(req)
+ }
+
+ return req
+}
diff --git a/service/medialive/api.go b/service/medialive/api.go
index 3cd40ae8853..1d1fc330da8 100644
--- a/service/medialive/api.go
+++ b/service/medialive/api.go
@@ -26893,6 +26893,9 @@ type VideoSelector struct {
// if any conversion will be performed.
ColorSpace *string `locationName:"colorSpace" type:"string" enum:"VideoSelectorColorSpace"`
+ // Color space settings
+ ColorSpaceSettings *VideoSelectorColorSpaceSettings `locationName:"colorSpaceSettings" type:"structure"`
+
// Applies only if colorSpace is a value other than follow. This field controls
// how the value in the colorSpace field will be used. fallback means that when
// the input does include color space data, that data will be used, but when
@@ -26923,6 +26926,12 @@ func (s *VideoSelector) SetColorSpace(v string) *VideoSelector {
return s
}
+// SetColorSpaceSettings sets the ColorSpaceSettings field's value.
+func (s *VideoSelector) SetColorSpaceSettings(v *VideoSelectorColorSpaceSettings) *VideoSelector {
+ s.ColorSpaceSettings = v
+ return s
+}
+
// SetColorSpaceUsage sets the ColorSpaceUsage field's value.
func (s *VideoSelector) SetColorSpaceUsage(v string) *VideoSelector {
s.ColorSpaceUsage = &v
@@ -26935,6 +26944,30 @@ func (s *VideoSelector) SetSelectorSettings(v *VideoSelectorSettings) *VideoSele
return s
}
+// Video Selector Color Space Settings
+type VideoSelectorColorSpaceSettings struct {
+ _ struct{} `type:"structure"`
+
+ // Hdr10 Settings
+ Hdr10Settings *Hdr10Settings `locationName:"hdr10Settings" type:"structure"`
+}
+
+// String returns the string representation
+func (s VideoSelectorColorSpaceSettings) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s VideoSelectorColorSpaceSettings) GoString() string {
+ return s.String()
+}
+
+// SetHdr10Settings sets the Hdr10Settings field's value.
+func (s *VideoSelectorColorSpaceSettings) SetHdr10Settings(v *Hdr10Settings) *VideoSelectorColorSpaceSettings {
+ s.Hdr10Settings = v
+ return s
+}
+
// Video Selector Pid
type VideoSelectorPid struct {
_ struct{} `type:"structure"`
@@ -32067,6 +32100,12 @@ const (
// VideoSelectorColorSpaceFollow is a VideoSelectorColorSpace enum value
VideoSelectorColorSpaceFollow = "FOLLOW"
+ // VideoSelectorColorSpaceHdr10 is a VideoSelectorColorSpace enum value
+ VideoSelectorColorSpaceHdr10 = "HDR10"
+
+ // VideoSelectorColorSpaceHlg2020 is a VideoSelectorColorSpace enum value
+ VideoSelectorColorSpaceHlg2020 = "HLG_2020"
+
// VideoSelectorColorSpaceRec601 is a VideoSelectorColorSpace enum value
VideoSelectorColorSpaceRec601 = "REC_601"
@@ -32078,6 +32117,8 @@ const (
func VideoSelectorColorSpace_Values() []string {
return []string{
VideoSelectorColorSpaceFollow,
+ VideoSelectorColorSpaceHdr10,
+ VideoSelectorColorSpaceHlg2020,
VideoSelectorColorSpaceRec601,
VideoSelectorColorSpaceRec709,
}
diff --git a/service/rekognition/api.go b/service/rekognition/api.go
index 58a0670a3e9..5eb7ccd1eaa 100644
--- a/service/rekognition/api.go
+++ b/service/rekognition/api.go
@@ -61,6 +61,15 @@ func (c *Rekognition) CompareFacesRequest(input *CompareFacesInput) (req *reques
// If the source image contains multiple faces, the service detects the largest
// face and compares it with each face detected in the target image.
//
+// CompareFaces uses machine learning algorithms, which are probabilistic. A
+// false negative is an incorrect prediction that a face in the target image
+// has a low similarity confidence score when compared to the face in the source
+// image. To reduce the probability of false negatives, we recommend that you
+// compare the target image against multiple source images. If you plan to use
+// CompareFaces to make a decision that impacts an individual's rights, privacy,
+// or access to services, we recommend that you pass the result to a human for
+// review and further validation before taking action.
+//
// You pass the input and target images either as base64-encoded image bytes
// or as references to images in an Amazon S3 bucket. If you use the AWS CLI
// to call Amazon Rekognition operations, passing image bytes isn't supported.
@@ -121,8 +130,9 @@ func (c *Rekognition) CompareFacesRequest(input *CompareFacesInput) (req *reques
// Amazon Rekognition is unable to access the S3 object specified in the request.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * AccessDeniedException
// You are not authorized to perform the action.
@@ -249,6 +259,11 @@ func (c *Rekognition) CreateCollectionRequest(input *CreateCollectionInput) (req
// * ResourceAlreadyExistsException
// A collection with the specified ID already exists.
//
+// * ServiceQuotaExceededException
+// The size of the collection or tag list exceeds the allowed limit. For more
+// information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer
+// Guide.
+//
func (c *Rekognition) CreateCollection(input *CreateCollectionInput) (*CreateCollectionOutput, error) {
req, out := c.CreateCollectionRequest(input)
return out, req.Send()
@@ -473,6 +488,11 @@ func (c *Rekognition) CreateProjectVersionRequest(input *CreateProjectVersionInp
// The number of requests exceeded your throughput limit. If you want to increase
// this limit, contact Amazon Rekognition.
//
+// * ServiceQuotaExceededException
+// The size of the collection or tag list exceeds the allowed limit. For more
+// information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer
+// Guide.
+//
func (c *Rekognition) CreateProjectVersion(input *CreateProjectVersionInput) (*CreateProjectVersionOutput, error) {
req, out := c.CreateProjectVersionRequest(input)
return out, req.Send()
@@ -589,6 +609,11 @@ func (c *Rekognition) CreateStreamProcessorRequest(input *CreateStreamProcessorI
// The number of requests exceeded your throughput limit. If you want to increase
// this limit, contact Amazon Rekognition.
//
+// * ServiceQuotaExceededException
+// The size of the collection or tag list exceeds the allowed limit. For more
+// information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer
+// Guide.
+//
func (c *Rekognition) CreateStreamProcessor(input *CreateStreamProcessorInput) (*CreateStreamProcessorOutput, error) {
req, out := c.CreateStreamProcessorRequest(input)
return out, req.Send()
@@ -1724,8 +1749,9 @@ func (c *Rekognition) DetectCustomLabelsRequest(input *DetectCustomLabelsInput)
// the API operation again.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * LimitExceededException
// An Amazon Rekognition service limit was exceeded. For example, if you start
@@ -1853,8 +1879,9 @@ func (c *Rekognition) DetectFacesRequest(input *DetectFacesInput) (req *request.
// the API operation again.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * AccessDeniedException
// You are not authorized to perform the action.
@@ -2022,8 +2049,9 @@ func (c *Rekognition) DetectLabelsRequest(input *DetectLabelsInput) (req *reques
// the API operation again.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * AccessDeniedException
// You are not authorized to perform the action.
@@ -2137,8 +2165,9 @@ func (c *Rekognition) DetectModerationLabelsRequest(input *DetectModerationLabel
// the API operation again.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * AccessDeniedException
// You are not authorized to perform the action.
@@ -2278,8 +2307,9 @@ func (c *Rekognition) DetectProtectiveEquipmentRequest(input *DetectProtectiveEq
// the API operation again.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * AccessDeniedException
// You are not authorized to perform the action.
@@ -2410,8 +2440,9 @@ func (c *Rekognition) DetectTextRequest(input *DetectTextInput) (req *request.Re
// the API operation again.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * AccessDeniedException
// You are not authorized to perform the action.
@@ -4187,8 +4218,9 @@ func (c *Rekognition) IndexFacesRequest(input *IndexFacesInput) (req *request.Re
// the API operation again.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * AccessDeniedException
// You are not authorized to perform the action.
@@ -4211,8 +4243,9 @@ func (c *Rekognition) IndexFacesRequest(input *IndexFacesInput) (req *request.Re
// The provided image format is not supported.
//
// * ServiceQuotaExceededException
-// The size of the collection exceeds the allowed limit. For more information,
-// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The size of the collection or tag list exceeds the allowed limit. For more
+// information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer
+// Guide.
//
func (c *Rekognition) IndexFaces(input *IndexFacesInput) (*IndexFacesOutput, error) {
req, out := c.IndexFacesRequest(input)
@@ -4711,6 +4744,101 @@ func (c *Rekognition) ListStreamProcessorsPagesWithContext(ctx aws.Context, inpu
return p.Err()
}
+const opListTagsForResource = "ListTagsForResource"
+
+// ListTagsForResourceRequest generates a "aws/request.Request" representing the
+// client's request for the ListTagsForResource 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 ListTagsForResource for more information on using the ListTagsForResource
+// 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 ListTagsForResourceRequest method.
+// req, resp := client.ListTagsForResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *Rekognition) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
+ op := &request.Operation{
+ Name: opListTagsForResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ListTagsForResourceInput{}
+ }
+
+ output = &ListTagsForResourceOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListTagsForResource API operation for Amazon Rekognition.
+//
+// Returns a list of tags in an Amazon Rekognition collection, stream processor,
+// or Custom Labels model.
+//
+// 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 Rekognition's
+// API operation ListTagsForResource for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The collection specified in the request cannot be found.
+//
+// * InvalidParameterException
+// Input parameter violated a constraint. Validate your parameter before calling
+// the API operation again.
+//
+// * AccessDeniedException
+// You are not authorized to perform the action.
+//
+// * InternalServerError
+// Amazon Rekognition experienced a service issue. Try your call again.
+//
+// * ThrottlingException
+// Amazon Rekognition is temporarily unable to process the request. Try your
+// call again.
+//
+// * ProvisionedThroughputExceededException
+// The number of requests exceeded your throughput limit. If you want to increase
+// this limit, contact Amazon Rekognition.
+//
+func (c *Rekognition) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ return out, req.Send()
+}
+
+// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListTagsForResource 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 *Rekognition) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opRecognizeCelebrities = "RecognizeCelebrities"
// RecognizeCelebritiesRequest generates a "aws/request.Request" representing the
@@ -4803,8 +4931,9 @@ func (c *Rekognition) RecognizeCelebritiesRequest(input *RecognizeCelebritiesInp
// The provided image format is not supported.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * AccessDeniedException
// You are not authorized to perform the action.
@@ -5055,8 +5184,9 @@ func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput)
// the API operation again.
//
// * ImageTooLargeException
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
//
// * AccessDeniedException
// You are not authorized to perform the action.
@@ -6507,6 +6637,204 @@ func (c *Rekognition) StopStreamProcessorWithContext(ctx aws.Context, input *Sto
return out, req.Send()
}
+const opTagResource = "TagResource"
+
+// TagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the TagResource 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 TagResource for more information on using the TagResource
+// 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 TagResourceRequest method.
+// req, resp := client.TagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *Rekognition) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
+ op := &request.Operation{
+ Name: opTagResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &TagResourceInput{}
+ }
+
+ output = &TagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// TagResource API operation for Amazon Rekognition.
+//
+// Adds one or more key-value tags to an Amazon Rekognition collection, stream
+// processor, or Custom Labels model. For more information, see Tagging AWS
+// Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html).
+//
+// 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 Rekognition's
+// API operation TagResource for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The collection specified in the request cannot be found.
+//
+// * InvalidParameterException
+// Input parameter violated a constraint. Validate your parameter before calling
+// the API operation again.
+//
+// * ServiceQuotaExceededException
+// The size of the collection or tag list exceeds the allowed limit. For more
+// information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer
+// Guide.
+//
+// * AccessDeniedException
+// You are not authorized to perform the action.
+//
+// * InternalServerError
+// Amazon Rekognition experienced a service issue. Try your call again.
+//
+// * ThrottlingException
+// Amazon Rekognition is temporarily unable to process the request. Try your
+// call again.
+//
+// * ProvisionedThroughputExceededException
+// The number of requests exceeded your throughput limit. If you want to increase
+// this limit, contact Amazon Rekognition.
+//
+func (c *Rekognition) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ return out, req.Send()
+}
+
+// TagResourceWithContext is the same as TagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TagResource 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 *Rekognition) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUntagResource = "UntagResource"
+
+// UntagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the UntagResource 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 UntagResource for more information on using the UntagResource
+// 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 UntagResourceRequest method.
+// req, resp := client.UntagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+func (c *Rekognition) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
+ op := &request.Operation{
+ Name: opUntagResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UntagResourceInput{}
+ }
+
+ output = &UntagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UntagResource API operation for Amazon Rekognition.
+//
+// Removes one or more tags from an Amazon Rekognition collection, stream processor,
+// or Custom Labels model.
+//
+// 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 Rekognition's
+// API operation UntagResource for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The collection specified in the request cannot be found.
+//
+// * InvalidParameterException
+// Input parameter violated a constraint. Validate your parameter before calling
+// the API operation again.
+//
+// * AccessDeniedException
+// You are not authorized to perform the action.
+//
+// * InternalServerError
+// Amazon Rekognition experienced a service issue. Try your call again.
+//
+// * ThrottlingException
+// Amazon Rekognition is temporarily unable to process the request. Try your
+// call again.
+//
+// * ProvisionedThroughputExceededException
+// The number of requests exceeded your throughput limit. If you want to increase
+// this limit, contact Amazon Rekognition.
+//
+func (c *Rekognition) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ return out, req.Send()
+}
+
+// UntagResourceWithContext is the same as UntagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UntagResource 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 *Rekognition) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
// You are not authorized to perform the action.
type AccessDeniedException struct {
_ struct{} `type:"structure"`
@@ -7369,6 +7697,9 @@ type CreateCollectionInput struct {
//
// CollectionId is a required field
CollectionId *string `min:"1" type:"string" required:"true"`
+
+ // A set of tags (key-value pairs) that you want to attach to the collection.
+ Tags map[string]*string `type:"map"`
}
// String returns the string representation
@@ -7403,6 +7734,12 @@ func (s *CreateCollectionInput) SetCollectionId(v string) *CreateCollectionInput
return s
}
+// SetTags sets the Tags field's value.
+func (s *CreateCollectionInput) SetTags(v map[string]*string) *CreateCollectionInput {
+ s.Tags = v
+ return s
+}
+
type CreateCollectionOutput struct {
_ struct{} `type:"structure"`
@@ -7525,6 +7862,9 @@ type CreateProjectVersionInput struct {
// ProjectArn is a required field
ProjectArn *string `min:"20" type:"string" required:"true"`
+ // A set of tags (key-value pairs) that you want to attach to the model.
+ Tags map[string]*string `type:"map"`
+
// The dataset to use for testing.
//
// TestingData is a required field
@@ -7609,6 +7949,12 @@ func (s *CreateProjectVersionInput) SetProjectArn(v string) *CreateProjectVersio
return s
}
+// SetTags sets the Tags field's value.
+func (s *CreateProjectVersionInput) SetTags(v map[string]*string) *CreateProjectVersionInput {
+ s.Tags = v
+ return s
+}
+
// SetTestingData sets the TestingData field's value.
func (s *CreateProjectVersionInput) SetTestingData(v *TestingData) *CreateProjectVersionInput {
s.TestingData = v
@@ -7683,6 +8029,9 @@ type CreateStreamProcessorInput struct {
//
// Settings is a required field
Settings *StreamProcessorSettings `type:"structure" required:"true"`
+
+ // A set of tags (key-value pairs) that you want to attach to the stream processor.
+ Tags map[string]*string `type:"map"`
}
// String returns the string representation
@@ -7758,6 +8107,12 @@ func (s *CreateStreamProcessorInput) SetSettings(v *StreamProcessorSettings) *Cr
return s
}
+// SetTags sets the Tags field's value.
+func (s *CreateStreamProcessorInput) SetTags(v map[string]*string) *CreateStreamProcessorInput {
+ s.Tags = v
+ return s
+}
+
type CreateStreamProcessorOutput struct {
_ struct{} `type:"structure"`
@@ -9338,9 +9693,9 @@ type DetectionFilter struct {
// relative to the video frame width.
MinBoundingBoxWidth *float64 `type:"float"`
- // Sets confidence of word detection. Words with detection confidence below
- // this will be excluded from the result. Values should be between 0.5 and 1
- // as Text in Video will not return any result below 0.5.
+ // Sets the confidence of word detection. Words with detection confidence below
+ // this will be excluded from the result. Values should be between 50 and 100
+ // as Text in Video will not return any result below 50.
MinConfidence *float64 `type:"float"`
}
@@ -11701,8 +12056,9 @@ func (s *ImageQuality) SetSharpness(v float64) *ImageQuality {
return s
}
-// The input image size exceeds the allowed limit. For more information, see
-// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+// the image size or resolution exceeds the allowed limit. For more information,
+// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
type ImageTooLargeException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -12805,6 +13161,71 @@ func (s *ListStreamProcessorsOutput) SetStreamProcessors(v []*StreamProcessor) *
return s
}
+type ListTagsForResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // Amazon Resource Name (ARN) of the model, collection, or stream processor
+ // that contains the tags that you want a list of.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `min:"20" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ListTagsForResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListTagsForResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListTagsForResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+type ListTagsForResourceOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A list of key-value tags assigned to the resource.
+ Tags map[string]*string `type:"map"`
+}
+
+// String returns the string representation
+func (s ListTagsForResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListTagsForResourceOutput) GoString() string {
+ return s.String()
+}
+
+// SetTags sets the Tags field's value.
+func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
+ s.Tags = v
+ return s
+}
+
// Provides information about a single type of unsafe content found in an image
// or video. Each type of moderated content has a label within a hierarchical
// taxonomy. For more information, see Detecting Unsafe Content in the Amazon
@@ -14571,8 +14992,9 @@ func (s *SegmentTypeInfo) SetType(v string) *SegmentTypeInfo {
return s
}
-// The size of the collection exceeds the allowed limit. For more information,
-// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+// The size of the collection or tag list exceeds the allowed limit. For more
+// information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer
+// Guide.
type ServiceQuotaExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -16357,6 +16779,76 @@ func (s *Sunglasses) SetValue(v bool) *Sunglasses {
return s
}
+type TagResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // Amazon Resource Name (ARN) of the model, collection, or stream processor
+ // that you want to assign the tags to.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `min:"20" type:"string" required:"true"`
+
+ // The key-value tags to assign to the resource.
+ //
+ // Tags is a required field
+ Tags map[string]*string `type:"map" required:"true"`
+}
+
+// String returns the string representation
+func (s TagResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
+ }
+ if s.Tags == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tags"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
+ s.Tags = v
+ return s
+}
+
+type TagResourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s TagResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TagResourceOutput) GoString() string {
+ return s.String()
+}
+
// Information about a technical cue segment. For more information, see SegmentDetection.
type TechnicalCueSegment struct {
_ struct{} `type:"structure"`
@@ -16808,6 +17300,76 @@ func (s *UnindexedFace) SetReasons(v []*string) *UnindexedFace {
return s
}
+type UntagResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // Amazon Resource Name (ARN) of the model, collection, or stream processor
+ // that you want to remove the tags from.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `min:"20" type:"string" required:"true"`
+
+ // A list of the tags that you want to remove.
+ //
+ // TagKeys is a required field
+ TagKeys []*string `type:"list" required:"true"`
+}
+
+// String returns the string representation
+func (s UntagResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UntagResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UntagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
+ }
+ if s.TagKeys == nil {
+ invalidParams.Add(request.NewErrParamRequired("TagKeys"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTagKeys sets the TagKeys field's value.
+func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
+ s.TagKeys = v
+ return s
+}
+
+type UntagResourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation
+func (s UntagResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UntagResourceOutput) GoString() string {
+ return s.String()
+}
+
// Contains the Amazon S3 bucket location of the validation data for a model
// training job.
//
diff --git a/service/rekognition/errors.go b/service/rekognition/errors.go
index 5e4c3966379..0eb50f3b3f3 100644
--- a/service/rekognition/errors.go
+++ b/service/rekognition/errors.go
@@ -32,8 +32,9 @@ const (
// ErrCodeImageTooLargeException for service response error code
// "ImageTooLargeException".
//
- // The input image size exceeds the allowed limit. For more information, see
- // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+ // The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
+ // the image size or resolution exceeds the allowed limit. For more information,
+ // see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
ErrCodeImageTooLargeException = "ImageTooLargeException"
// ErrCodeInternalServerError for service response error code
@@ -112,8 +113,9 @@ const (
// ErrCodeServiceQuotaExceededException for service response error code
// "ServiceQuotaExceededException".
//
- // The size of the collection exceeds the allowed limit. For more information,
- // see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
+ // The size of the collection or tag list exceeds the allowed limit. For more
+ // information, see Limits in Amazon Rekognition in the Amazon Rekognition Developer
+ // Guide.
ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
// ErrCodeThrottlingException for service response error code
diff --git a/service/rekognition/examples_test.go b/service/rekognition/examples_test.go
index 2006dfe15f3..0c8e18e3d0a 100644
--- a/service/rekognition/examples_test.go
+++ b/service/rekognition/examples_test.go
@@ -106,6 +106,8 @@ func ExampleRekognition_CreateCollection_shared00() {
fmt.Println(rekognition.ErrCodeProvisionedThroughputExceededException, aerr.Error())
case rekognition.ErrCodeResourceAlreadyExistsException:
fmt.Println(rekognition.ErrCodeResourceAlreadyExistsException, aerr.Error())
+ case rekognition.ErrCodeServiceQuotaExceededException:
+ fmt.Println(rekognition.ErrCodeServiceQuotaExceededException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
diff --git a/service/rekognition/rekognitioniface/interface.go b/service/rekognition/rekognitioniface/interface.go
index b58bc8233c3..2414d941146 100644
--- a/service/rekognition/rekognitioniface/interface.go
+++ b/service/rekognition/rekognitioniface/interface.go
@@ -231,6 +231,10 @@ type RekognitionAPI interface {
ListStreamProcessorsPages(*rekognition.ListStreamProcessorsInput, func(*rekognition.ListStreamProcessorsOutput, bool) bool) error
ListStreamProcessorsPagesWithContext(aws.Context, *rekognition.ListStreamProcessorsInput, func(*rekognition.ListStreamProcessorsOutput, bool) bool, ...request.Option) error
+ ListTagsForResource(*rekognition.ListTagsForResourceInput) (*rekognition.ListTagsForResourceOutput, error)
+ ListTagsForResourceWithContext(aws.Context, *rekognition.ListTagsForResourceInput, ...request.Option) (*rekognition.ListTagsForResourceOutput, error)
+ ListTagsForResourceRequest(*rekognition.ListTagsForResourceInput) (*request.Request, *rekognition.ListTagsForResourceOutput)
+
RecognizeCelebrities(*rekognition.RecognizeCelebritiesInput) (*rekognition.RecognizeCelebritiesOutput, error)
RecognizeCelebritiesWithContext(aws.Context, *rekognition.RecognizeCelebritiesInput, ...request.Option) (*rekognition.RecognizeCelebritiesOutput, error)
RecognizeCelebritiesRequest(*rekognition.RecognizeCelebritiesInput) (*request.Request, *rekognition.RecognizeCelebritiesOutput)
@@ -291,6 +295,14 @@ type RekognitionAPI interface {
StopStreamProcessorWithContext(aws.Context, *rekognition.StopStreamProcessorInput, ...request.Option) (*rekognition.StopStreamProcessorOutput, error)
StopStreamProcessorRequest(*rekognition.StopStreamProcessorInput) (*request.Request, *rekognition.StopStreamProcessorOutput)
+ TagResource(*rekognition.TagResourceInput) (*rekognition.TagResourceOutput, error)
+ TagResourceWithContext(aws.Context, *rekognition.TagResourceInput, ...request.Option) (*rekognition.TagResourceOutput, error)
+ TagResourceRequest(*rekognition.TagResourceInput) (*request.Request, *rekognition.TagResourceOutput)
+
+ UntagResource(*rekognition.UntagResourceInput) (*rekognition.UntagResourceOutput, error)
+ UntagResourceWithContext(aws.Context, *rekognition.UntagResourceInput, ...request.Option) (*rekognition.UntagResourceOutput, error)
+ UntagResourceRequest(*rekognition.UntagResourceInput) (*request.Request, *rekognition.UntagResourceOutput)
+
WaitUntilProjectVersionRunning(*rekognition.DescribeProjectVersionsInput) error
WaitUntilProjectVersionRunningWithContext(aws.Context, *rekognition.DescribeProjectVersionsInput, ...request.WaiterOption) error
diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go
index 43848467e78..c41cd063066 100644
--- a/service/sagemaker/api.go
+++ b/service/sagemaker/api.go
@@ -3767,6 +3767,8 @@ func (c *SageMaker) CreateTrainingJobRequest(input *CreateTrainingJobInput) (req
// to set a time limit for training. Use MaxWaitTimeInSeconds to specify
// how long you are willing to wait for a managed spot training job to complete.
//
+// * Environment - The environment variables to set in the Docker container.
+//
// For more information about Amazon SageMaker, see How It Works (https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -28520,7 +28522,13 @@ type CreateDomainInput struct {
// AuthMode is a required field
AuthMode *string `type:"string" required:"true" enum:"AuthMode"`
- // The default user settings.
+ // The default settings to use to create a user profile when UserSettings isn't
+ // specified in the call to the CreateUserProfile (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateUserProfile.html)
+ // API.
+ //
+ // SecurityGroups is aggregated when specified in both calls. For all other
+ // settings in UserSettings, the values specified in CreateUserProfile take
+ // precedence over those specified in CreateDomain.
//
// DefaultUserSettings is a required field
DefaultUserSettings *UserSettings `type:"structure" required:"true"`
@@ -28547,7 +28555,8 @@ type CreateDomainInput struct {
// Tags to associated with the Domain. Each tag consists of a key and an optional
// value. Tag keys must be unique per resource. Tags are searchable using the
- // Search API.
+ // Search (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_Search.html)
+ // API.
Tags []*Tag `type:"list"`
// The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.
@@ -32865,6 +32874,9 @@ type CreateTrainingJobInput struct {
// have network access.
EnableNetworkIsolation *bool `type:"boolean"`
+ // The environment variables to set in the Docker container.
+ Environment map[string]*string `type:"map"`
+
// Associates a SageMaker job as a trial component with an experiment and trial.
// Specified when you call the following APIs:
//
@@ -33155,6 +33167,12 @@ func (s *CreateTrainingJobInput) SetEnableNetworkIsolation(v bool) *CreateTraini
return s
}
+// SetEnvironment sets the Environment field's value.
+func (s *CreateTrainingJobInput) SetEnvironment(v map[string]*string) *CreateTrainingJobInput {
+ s.Environment = v
+ return s
+}
+
// SetExperimentConfig sets the ExperimentConfig field's value.
func (s *CreateTrainingJobInput) SetExperimentConfig(v *ExperimentConfig) *CreateTrainingJobInput {
s.ExperimentConfig = v
@@ -39690,8 +39708,8 @@ type DescribeDomainOutput struct {
// The creation time.
CreationTime *time.Time `type:"timestamp"`
- // Settings which are applied to all UserProfiles in this domain, if settings
- // are not explicitly specified in a given UserProfile.
+ // Settings which are applied to UserProfiles in this domain if settings are
+ // not explicitly specified in a given UserProfile.
DefaultUserSettings *UserSettings `type:"structure"`
// The domain's Amazon Resource Name (ARN).
@@ -44272,6 +44290,9 @@ type DescribeTrainingJobOutput struct {
// have network access.
EnableNetworkIsolation *bool `type:"boolean"`
+ // The environment variables to set in the Docker container.
+ Environment map[string]*string `type:"map"`
+
// Associates a SageMaker job as a trial component with an experiment and trial.
// Specified when you call the following APIs:
//
@@ -44548,6 +44569,12 @@ func (s *DescribeTrainingJobOutput) SetEnableNetworkIsolation(v bool) *DescribeT
return s
}
+// SetEnvironment sets the Environment field's value.
+func (s *DescribeTrainingJobOutput) SetEnvironment(v map[string]*string) *DescribeTrainingJobOutput {
+ s.Environment = v
+ return s
+}
+
// SetExperimentConfig sets the ExperimentConfig field's value.
func (s *DescribeTrainingJobOutput) SetExperimentConfig(v *ExperimentConfig) *DescribeTrainingJobOutput {
s.ExperimentConfig = v
@@ -52098,7 +52125,8 @@ type LabelingJobDataSource struct {
// The Amazon S3 location of the input data objects.
S3DataSource *LabelingJobS3DataSource `type:"structure"`
- // An Amazon SNS data source used for streaming labeling jobs.
+ // An Amazon SNS data source used for streaming labeling jobs. To learn more,
+ // see Send Data to a Streaming Labeling Job (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-streaming-labeling-job.html#sms-streaming-how-it-works-send-data).
SnsDataSource *LabelingJobSnsDataSource `type:"structure"`
}
@@ -52314,20 +52342,17 @@ type LabelingJobOutputConfig struct {
// The AWS Key Management Service ID of the key used to encrypt the output data,
// if any.
//
- // If you use a KMS key ID or an alias of your master key, the Amazon SageMaker
- // execution role must include permissions to call kms:Encrypt. If you don't
- // provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon
- // S3 for your role's account. Amazon SageMaker uses server-side encryption
- // with KMS-managed keys for LabelingJobOutputConfig. If you use a bucket policy
- // with an s3:PutObject permission that only allows objects with server-side
- // encryption, set the condition key of s3:x-amz-server-side-encryption to "aws:kms".
- // For more information, see KMS-Managed Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html)
- // in the Amazon Simple Storage Service Developer Guide.
+ // If you provide your own KMS key ID, you must add the required permissions
+ // to your KMS key described in Encrypt Output Data and Storage Volume with
+ // AWS KMS (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-security-permission.html#sms-security-kms-permissions).
//
- // The KMS key policy must grant permission to the IAM role that you specify
- // in your CreateLabelingJob request. For more information, see Using Key Policies
- // in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html)
- // in the AWS Key Management Service Developer Guide.
+ // If you don't provide a KMS key ID, Amazon SageMaker uses the default AWS
+ // KMS key for Amazon S3 for your role's account to encrypt your output data.
+ //
+ // If you use a bucket policy with an s3:PutObject permission that only allows
+ // objects with server-side encryption, set the condition key of s3:x-amz-server-side-encryption
+ // to "aws:kms". For more information, see KMS-Managed Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html)
+ // in the Amazon Simple Storage Service Developer Guide.
KmsKeyId *string `type:"string"`
// The Amazon S3 location to write output data.
@@ -52337,11 +52362,11 @@ type LabelingJobOutputConfig struct {
// An Amazon Simple Notification Service (Amazon SNS) output topic ARN.
//
- // When workers complete labeling tasks, Ground Truth will send labeling task
- // output data to the SNS output topic you specify here.
+ // If you provide an SnsTopicArn in OutputConfig, when workers complete labeling
+ // tasks, Ground Truth will send labeling task output data to the SNS output
+ // topic you specify here.
//
- // You must provide a value for this parameter if you provide an Amazon SNS
- // input topic in SnsDataSource in InputConfig.
+ // To learn more, see Receive Output Data from a Streaming Labeling Job (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-streaming-labeling-job.html#sms-streaming-how-it-works-output-data).
SnsTopicArn *string `type:"string"`
}
@@ -52386,18 +52411,27 @@ func (s *LabelingJobOutputConfig) SetSnsTopicArn(v string) *LabelingJobOutputCon
return s
}
-// Provides configuration information for labeling jobs.
+// Configure encryption on the storage volume attached to the ML compute instance
+// used to run automated data labeling model training and inference.
type LabelingJobResourceConfig struct {
_ struct{} `type:"structure"`
// The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to
// encrypt data on the storage volume attached to the ML compute instance(s)
- // that run the training job. The VolumeKmsKeyId can be any of the following
- // formats:
+ // that run the training and inference jobs used for automated data labeling.
//
- // * // KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"
+ // You can only specify a VolumeKmsKeyId when you create a labeling job with
+ // automated data labeling enabled using the API operation CreateLabelingJob.
+ // You cannot specify an AWS KMS customer managed CMK to encrypt the storage
+ // volume used for automated data labeling model training and inference when
+ // you create a labeling job using the console. To learn more, see Output Data
+ // and Storage Volume Encryption (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-security.html).
//
- // * // Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ // The VolumeKmsKeyId can be any of the following formats:
+ //
+ // * KMS Key ID "1234abcd-12ab-34cd-56ef-1234567890ab"
+ //
+ // * Amazon Resource Name (ARN) of a KMS Key "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
VolumeKmsKeyId *string `type:"string"`
}
@@ -52481,9 +52515,6 @@ type LabelingJobSnsDataSource struct {
// the input topic you will use to send new data objects to a streaming labeling
// job.
//
- // If you specify an input topic for SnsTopicArn in InputConfig, you must specify
- // a value for SnsTopicArn in OutputConfig.
- //
// SnsTopicArn is a required field
SnsTopicArn *string `type:"string" required:"true"`
}
@@ -69312,10 +69343,11 @@ func (s *ServiceCatalogProvisioningDetails) SetProvisioningParameters(v []*Provi
return s
}
-// Specifies options when sharing an Amazon SageMaker Studio notebook. These
-// settings are specified as part of DefaultUserSettings when the CreateDomain
-// API is called, and as part of UserSettings when the CreateUserProfile API
-// is called.
+// Specifies options for sharing SageMaker Studio notebooks. These settings
+// are specified as part of DefaultUserSettings when the CreateDomain (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateDomain.html)
+// API is called, and as part of UserSettings when the CreateUserProfile (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateUserProfile.html)
+// API is called. When SharingSettings is not specified, notebook sharing isn't
+// allowed.
type SharingSettings struct {
_ struct{} `type:"structure"`
@@ -70922,6 +70954,9 @@ type TrainingJob struct {
// VPC they run in.
EnableNetworkIsolation *bool `type:"boolean"`
+ // The environment variables to set in the Docker container.
+ Environment map[string]*string `type:"map"`
+
// Associates a SageMaker job as a trial component with an experiment and trial.
// Specified when you call the following APIs:
//
@@ -71167,6 +71202,12 @@ func (s *TrainingJob) SetEnableNetworkIsolation(v bool) *TrainingJob {
return s
}
+// SetEnvironment sets the Environment field's value.
+func (s *TrainingJob) SetEnvironment(v map[string]*string) *TrainingJob {
+ s.Environment = v
+ return s
+}
+
// SetExperimentConfig sets the ExperimentConfig field's value.
func (s *TrainingJob) SetExperimentConfig(v *ExperimentConfig) *TrainingJob {
s.ExperimentConfig = v
@@ -76403,8 +76444,9 @@ func (s *UserProfileDetails) SetUserProfileName(v string) *UserProfileDetails {
}
// A collection of settings that apply to users of Amazon SageMaker Studio.
-// These settings are specified when the CreateUserProfile API is called, and
-// as DefaultUserSettings when the CreateDomain API is called.
+// These settings are specified when the CreateUserProfile (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateUserProfile.html)
+// API is called, and as DefaultUserSettings when the CreateDomain (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateDomain.html)
+// API is called.
//
// SecurityGroups is aggregated when specified in both calls. For all other
// settings in UserSettings, the values specified in CreateUserProfile take
@@ -76433,7 +76475,7 @@ type UserSettings struct {
// one less than the maximum number shown.
SecurityGroups []*string `type:"list"`
- // The sharing settings.
+ // Specifies options for sharing SageMaker Studio notebooks.
SharingSettings *SharingSettings `type:"structure"`
// The TensorBoard app settings.
@@ -77325,6 +77367,15 @@ const (
// AutoMLJobSecondaryStatusCandidateDefinitionsGenerated is a AutoMLJobSecondaryStatus enum value
AutoMLJobSecondaryStatusCandidateDefinitionsGenerated = "CandidateDefinitionsGenerated"
+
+ // AutoMLJobSecondaryStatusGeneratingExplainabilityReport is a AutoMLJobSecondaryStatus enum value
+ AutoMLJobSecondaryStatusGeneratingExplainabilityReport = "GeneratingExplainabilityReport"
+
+ // AutoMLJobSecondaryStatusCompleted is a AutoMLJobSecondaryStatus enum value
+ AutoMLJobSecondaryStatusCompleted = "Completed"
+
+ // AutoMLJobSecondaryStatusExplainabilityError is a AutoMLJobSecondaryStatus enum value
+ AutoMLJobSecondaryStatusExplainabilityError = "ExplainabilityError"
)
// AutoMLJobSecondaryStatus_Values returns all elements of the AutoMLJobSecondaryStatus enum
@@ -77340,6 +77391,9 @@ func AutoMLJobSecondaryStatus_Values() []string {
AutoMLJobSecondaryStatusMaxAutoMljobRuntimeReached,
AutoMLJobSecondaryStatusStopping,
AutoMLJobSecondaryStatusCandidateDefinitionsGenerated,
+ AutoMLJobSecondaryStatusGeneratingExplainabilityReport,
+ AutoMLJobSecondaryStatusCompleted,
+ AutoMLJobSecondaryStatusExplainabilityError,
}
}
diff --git a/service/sqs/api.go b/service/sqs/api.go
index e1885a8f2cb..38ef4185f4b 100644
--- a/service/sqs/api.go
+++ b/service/sqs/api.go
@@ -4617,9 +4617,9 @@ type SendMessageBatchResultEntry struct {
// about MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt).
MD5OfMessageAttributes *string `type:"string"`
- // An MD5 digest of the non-URL-encoded message attribute string. You can use
- // this attribute to verify that Amazon SQS received the message correctly.
- // Amazon SQS URL-decodes the message before creating the MD5 digest. For information
+ // An MD5 digest of the non-URL-encoded message body string. You can use this
+ // attribute to verify that Amazon SQS received the message correctly. Amazon
+ // SQS URL-decodes the message before creating the MD5 digest. For information
// about MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt).
//
// MD5OfMessageBody is a required field
@@ -4912,9 +4912,9 @@ type SendMessageOutput struct {
// about MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt).
MD5OfMessageAttributes *string `type:"string"`
- // An MD5 digest of the non-URL-encoded message attribute string. You can use
- // this attribute to verify that Amazon SQS received the message correctly.
- // Amazon SQS URL-decodes the message before creating the MD5 digest. For information
+ // An MD5 digest of the non-URL-encoded message body string. You can use this
+ // attribute to verify that Amazon SQS received the message correctly. Amazon
+ // SQS URL-decodes the message before creating the MD5 digest. For information
// about MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt).
MD5OfMessageBody *string `type:"string"`
diff --git a/service/sqs/doc.go b/service/sqs/doc.go
index 523b40ee38a..854208bcc67 100644
--- a/service/sqs/doc.go
+++ b/service/sqs/doc.go
@@ -24,7 +24,7 @@
//
// * Handle error responses
//
-// Additional Information
+// Additional information
//
// * Amazon SQS Product Page (http://aws.amazon.com/sqs/)
//