From 5346e32f90b0a30c2e4fef94282e5208e139d530 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Fri, 14 Jan 2022 11:30:53 -0800 Subject: [PATCH] Release v1.42.35 (2022-01-14) (#4243) Release v1.42.35 (2022-01-14) === ### Service Client Updates * `service/application-insights`: Updates service API * `service/config`: Updates service API * `service/honeycode`: Updates service API and documentation * `service/lookoutmetrics`: Updates service API and documentation * `service/ram`: Updates service API, documentation, and paginators --- CHANGELOG.md | 10 + aws/endpoints/defaults.go | 3 + aws/version.go | 2 +- .../2018-11-25/api-2.json | 4 +- models/apis/config/2014-11-12/api-2.json | 8 +- models/apis/honeycode/2020-03-01/api-2.json | 58 +++- models/apis/honeycode/2020-03-01/docs-2.json | 28 +- .../apis/lookoutmetrics/2017-07-25/api-2.json | 36 ++- .../lookoutmetrics/2017-07-25/docs-2.json | 12 + models/apis/ram/2018-01-04/api-2.json | 34 +++ models/apis/ram/2018-01-04/docs-2.json | 18 +- models/apis/ram/2018-01-04/paginators-1.json | 5 + models/endpoints/endpoints.json | 1 + service/applicationinsights/api.go | 8 + service/configservice/api.go | 24 ++ service/honeycode/api.go | 135 ++++++++- service/lookoutmetrics/api.go | 179 +++++++++++ .../lookoutmetricsiface/interface.go | 4 + service/ram/api.go | 284 +++++++++++++++++- service/ram/ramiface/interface.go | 7 + 20 files changed, 840 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fb37c19747..1350ba90200 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +Release v1.42.35 (2022-01-14) +=== + +### Service Client Updates +* `service/application-insights`: Updates service API +* `service/config`: Updates service API +* `service/honeycode`: Updates service API and documentation +* `service/lookoutmetrics`: Updates service API and documentation +* `service/ram`: Updates service API, documentation, and paginators + Release v1.42.34 (2022-01-13) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index c63e8b4ec5c..983cac3bc3e 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -19563,6 +19563,9 @@ var awsPartition = partition{ endpointKey{ Region: "ap-southeast-2", }: endpoint{}, + endpointKey{ + Region: "ap-southeast-3", + }: endpoint{}, endpointKey{ Region: "ca-central-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index 81897e27c95..0bf83e91aca 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.42.34" +const SDKVersion = "1.42.35" diff --git a/models/apis/application-insights/2018-11-25/api-2.json b/models/apis/application-insights/2018-11-25/api-2.json index c9475225c7c..ebbfd6ca25a 100644 --- a/models/apis/application-insights/2018-11-25/api-2.json +++ b/models/apis/application-insights/2018-11-25/api-2.json @@ -1241,7 +1241,9 @@ "SAP_HANA_MULTI_NODE", "SAP_HANA_SINGLE_NODE", "SAP_HANA_HIGH_AVAILABILITY", - "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE" + "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE", + "SHAREPOINT", + "ACTIVE_DIRECTORY" ], "max":50, "min":1 diff --git a/models/apis/config/2014-11-12/api-2.json b/models/apis/config/2014-11-12/api-2.json index f2e365b1c0d..f9448fe66c9 100644 --- a/models/apis/config/2014-11-12/api-2.json +++ b/models/apis/config/2014-11-12/api-2.json @@ -4367,7 +4367,13 @@ "AWS::EFS::AccessPoint", "AWS::EFS::FileSystem", "AWS::EKS::Cluster", - "AWS::OpenSearch::Domain" + "AWS::OpenSearch::Domain", + "AWS::EC2::TransitGateway", + "AWS::Kinesis::Stream", + "AWS::Kinesis::StreamConsumer", + "AWS::CodeDeploy::Application", + "AWS::CodeDeploy::DeploymentConfig", + "AWS::CodeDeploy::DeploymentGroup" ] }, "ResourceTypeList":{ diff --git a/models/apis/honeycode/2020-03-01/api-2.json b/models/apis/honeycode/2020-03-01/api-2.json index 58703ffbcf3..1959b25a4b8 100644 --- a/models/apis/honeycode/2020-03-01/api-2.json +++ b/models/apis/honeycode/2020-03-01/api-2.json @@ -101,7 +101,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ThrottlingException"}, - {"shape":"ValidationException"} + {"shape":"ValidationException"}, + {"shape":"RequestTimeoutException"} ] }, "GetScreenData":{ @@ -139,7 +140,8 @@ {"shape":"ServiceUnavailableException"}, {"shape":"AutomationExecutionException"}, {"shape":"AutomationExecutionTimeoutException"}, - {"shape":"RequestTimeoutException"} + {"shape":"RequestTimeoutException"}, + {"shape":"ServiceQuotaExceededException"} ] }, "ListTableColumns":{ @@ -246,7 +248,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ThrottlingException"}, - {"shape":"ValidationException"} + {"shape":"ValidationException"}, + {"shape":"RequestTimeoutException"}, + {"shape":"ServiceQuotaExceededException"} ] }, "TagResource":{ @@ -463,14 +467,16 @@ "formula":{"shape":"Formula"}, "format":{"shape":"Format"}, "rawValue":{"shape":"RawValue"}, - "formattedValue":{"shape":"FormattedValue"} + "formattedValue":{"shape":"FormattedValue"}, + "formattedValues":{"shape":"FormattedValuesList"} }, "sensitive":true }, "CellInput":{ "type":"structure", "members":{ - "fact":{"shape":"Fact"} + "fact":{"shape":"Fact"}, + "facts":{"shape":"FactList"} } }, "Cells":{ @@ -580,7 +586,8 @@ "members":{ "jobStatus":{"shape":"TableDataImportJobStatus"}, "message":{"shape":"TableDataImportJobMessage"}, - "jobMetadata":{"shape":"TableDataImportJobMetadata"} + "jobMetadata":{"shape":"TableDataImportJobMetadata"}, + "errorCode":{"shape":"ErrorCode"} } }, "DestinationOptions":{ @@ -596,6 +603,25 @@ "pattern":"^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$", "sensitive":true }, + "ErrorCode":{ + "type":"string", + "enum":[ + "ACCESS_DENIED", + "INVALID_URL_ERROR", + "INVALID_IMPORT_OPTIONS_ERROR", + "INVALID_TABLE_ID_ERROR", + "INVALID_TABLE_COLUMN_ID_ERROR", + "TABLE_NOT_FOUND_ERROR", + "FILE_EMPTY_ERROR", + "INVALID_FILE_TYPE_ERROR", + "FILE_PARSING_ERROR", + "FILE_SIZE_LIMIT_ERROR", + "FILE_NOT_FOUND_ERROR", + "UNKNOWN_ERROR", + "RESOURCE_NOT_FOUND_ERROR", + "SYSTEM_LIMIT_ERROR" + ] + }, "ErrorMessage":{"type":"string"}, "Fact":{ "type":"string", @@ -604,6 +630,12 @@ "pattern":"[\\s\\S]*", "sensitive":true }, + "FactList":{ + "type":"list", + "member":{"shape":"Fact"}, + "max":220, + "min":0 + }, "FailedBatchItem":{ "type":"structure", "required":[ @@ -642,7 +674,8 @@ "TEXT", "ACCOUNTING", "CONTACT", - "ROWLINK" + "ROWLINK", + "ROWSET" ] }, "FormattedValue":{ @@ -651,6 +684,12 @@ "min":0, "pattern":"[\\s\\S]*" }, + "FormattedValuesList":{ + "type":"list", + "member":{"shape":"FormattedValue"}, + "max":220, + "min":0 + }, "Formula":{ "type":"string", "max":8192, @@ -1059,7 +1098,8 @@ "type":"string", "max":8000, "min":1, - "pattern":"^https:\\/\\/[^\\n\\r\\x00\\x08\\x0B\\x0C\\x0E\\x1F]*$" + "pattern":"^https:\\/\\/[^\\n\\r\\x00\\x08\\x0B\\x0C\\x0E\\x1F]*$", + "sensitive":true }, "ServiceQuotaExceededException":{ "type":"structure", @@ -1335,6 +1375,8 @@ }, "VariableName":{ "type":"string", + "max":255, + "min":1, "pattern":"^(?!\\s*$).+", "sensitive":true }, diff --git a/models/apis/honeycode/2020-03-01/docs-2.json b/models/apis/honeycode/2020-03-01/docs-2.json index 28beb2ae994..3e9fea1e486 100644 --- a/models/apis/honeycode/2020-03-01/docs-2.json +++ b/models/apis/honeycode/2020-03-01/docs-2.json @@ -103,7 +103,7 @@ } }, "CellInput": { - "base": "

CellInput object contains the data needed to create or update cells in a table.

", + "base": "

CellInput object contains the data needed to create or update cells in a table.

CellInput object has only a facts field or a fact field, but not both. A 400 bad request will be thrown if both fact and facts field are present.

", "refs": { "RowDataInput$value": null } @@ -195,6 +195,12 @@ "ImportJobSubmitter$email": "

The email id of the submitter of the import job, if available.

" } }, + "ErrorCode": { + "base": null, + "refs": { + "DescribeTableDataImportJobResult$errorCode": "

If job status is failed, error code to understand reason for the failure.

" + } + }, "ErrorMessage": { "base": null, "refs": { @@ -213,7 +219,14 @@ "Fact": { "base": null, "refs": { - "CellInput$fact": "

Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas need to start with the equals (=) sign.

" + "CellInput$fact": "

Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas need to start with the equals (=) sign.

", + "FactList$member": null + } + }, + "FactList": { + "base": null, + "refs": { + "CellInput$facts": "

A list representing the values that are entered into a ROWSET cell. Facts list can have either only values or rowIDs, and rowIDs should from the same table.

" } }, "FailedBatchItem": { @@ -251,7 +264,14 @@ "base": null, "refs": { "Cell$formattedValue": "

The formatted value of the cell. This is the value that you see displayed in the cell in the UI.

Note that the formatted value of a cell is always represented as a string irrespective of the data that is stored in the cell. For example, if a cell contains a date, the formatted value of the cell is the string representation of the formatted date being shown in the cell in the UI. See details in the rawValue field below for how cells of different formats will have different raw and formatted values.

", - "DataItem$formattedValue": "

The formatted value of the data. e.g. John Smith.

" + "DataItem$formattedValue": "

The formatted value of the data. e.g. John Smith.

", + "FormattedValuesList$member": null + } + }, + "FormattedValuesList": { + "base": null, + "refs": { + "Cell$formattedValues": "

A list of formatted values of the cell. This field is only returned when the cell is ROWSET format (aka multi-select or multi-record picklist). Values in the list are always represented as strings. The formattedValue field will be empty if this field is returned.

" } }, "Formula": { @@ -433,7 +453,7 @@ "RawValue": { "base": null, "refs": { - "Cell$rawValue": "

The raw value of the data contained in the cell. The raw value depends on the format of the data in the cell. However the attribute in the API return value is always a string containing the raw value.

Cells with format DATE, DATE_TIME or TIME have the raw value as a floating point number where the whole number represents the number of days since 1/1/1900 and the fractional part represents the fraction of the day since midnight. For example, a cell with date 11/3/2020 has the raw value \"44138\". A cell with the time 9:00 AM has the raw value \"0.375\" and a cell with date/time value of 11/3/2020 9:00 AM has the raw value \"44138.375\". Notice that even though the raw value is a number in all three cases, it is still represented as a string.

Cells with format NUMBER, CURRENCY, PERCENTAGE and ACCOUNTING have the raw value of the data as the number representing the data being displayed. For example, the number 1.325 with two decimal places in the format will have it's raw value as \"1.325\" and formatted value as \"1.33\". A currency value for $10 will have the raw value as \"10\" and formatted value as \"$10.00\". A value representing 20% with two decimal places in the format will have its raw value as \"0.2\" and the formatted value as \"20.00%\". An accounting value of -$25 will have \"-25\" as the raw value and \"$ (25.00)\" as the formatted value.

Cells with format TEXT will have the raw text as the raw value. For example, a cell with text \"John Smith\" will have \"John Smith\" as both the raw value and the formatted value.

Cells with format CONTACT will have the name of the contact as a formatted value and the email address of the contact as the raw value. For example, a contact for John Smith will have \"John Smith\" as the formatted value and \"john.smith@example.com\" as the raw value.

Cells with format ROWLINK (aka picklist) will have the first column of the linked row as the formatted value and the row id of the linked row as the raw value. For example, a cell containing a picklist to a table that displays task status might have \"Completed\" as the formatted value and \"row:dfcefaee-5b37-4355-8f28-40c3e4ff5dd4/ca432b2f-b8eb-431d-9fb5-cbe0342f9f03\" as the raw value.

Cells with format AUTO or cells without any format that are auto-detected as one of the formats above will contain the raw and formatted values as mentioned above, based on the auto-detected formats. If there is no auto-detected format, the raw and formatted values will be the same as the data in the cell.

", + "Cell$rawValue": "

The raw value of the data contained in the cell. The raw value depends on the format of the data in the cell. However the attribute in the API return value is always a string containing the raw value.

Cells with format DATE, DATE_TIME or TIME have the raw value as a floating point number where the whole number represents the number of days since 1/1/1900 and the fractional part represents the fraction of the day since midnight. For example, a cell with date 11/3/2020 has the raw value \"44138\". A cell with the time 9:00 AM has the raw value \"0.375\" and a cell with date/time value of 11/3/2020 9:00 AM has the raw value \"44138.375\". Notice that even though the raw value is a number in all three cases, it is still represented as a string.

Cells with format NUMBER, CURRENCY, PERCENTAGE and ACCOUNTING have the raw value of the data as the number representing the data being displayed. For example, the number 1.325 with two decimal places in the format will have it's raw value as \"1.325\" and formatted value as \"1.33\". A currency value for $10 will have the raw value as \"10\" and formatted value as \"$10.00\". A value representing 20% with two decimal places in the format will have its raw value as \"0.2\" and the formatted value as \"20.00%\". An accounting value of -$25 will have \"-25\" as the raw value and \"$ (25.00)\" as the formatted value.

Cells with format TEXT will have the raw text as the raw value. For example, a cell with text \"John Smith\" will have \"John Smith\" as both the raw value and the formatted value.

Cells with format CONTACT will have the name of the contact as a formatted value and the email address of the contact as the raw value. For example, a contact for John Smith will have \"John Smith\" as the formatted value and \"john.smith@example.com\" as the raw value.

Cells with format ROWLINK (aka picklist) will have the first column of the linked row as the formatted value and the row id of the linked row as the raw value. For example, a cell containing a picklist to a table that displays task status might have \"Completed\" as the formatted value and \"row:dfcefaee-5b37-4355-8f28-40c3e4ff5dd4/ca432b2f-b8eb-431d-9fb5-cbe0342f9f03\" as the raw value.

Cells with format ROWSET (aka multi-select or multi-record picklist) will by default have the first column of each of the linked rows as the formatted value in the list, and the rowset id of the linked rows as the raw value. For example, a cell containing a multi-select picklist to a table that contains items might have \"Item A\", \"Item B\" in the formatted value list and \"rows:b742c1f4-6cb0-4650-a845-35eb86fcc2bb/ [fdea123b-8f68-474a-aa8a-5ff87aa333af,6daf41f0-a138-4eee-89da-123086d36ecf]\" as the raw value.

Cells with format ATTACHMENT will have the name of the attachment as the formatted value and the attachment id as the raw value. For example, a cell containing an attachment named \"image.jpeg\" will have \"image.jpeg\" as the formatted value and \"attachment:ca432b2f-b8eb-431d-9fb5-cbe0342f9f03\" as the raw value.

Cells with format AUTO or cells without any format that are auto-detected as one of the formats above will contain the raw and formatted values as mentioned above, based on the auto-detected formats. If there is no auto-detected format, the raw and formatted values will be the same as the data in the cell.

", "DataItem$rawValue": "

The raw value of the data. e.g. jsmith@example.com

", "VariableValue$rawValue": "

Raw value of the variable.

" } diff --git a/models/apis/lookoutmetrics/2017-07-25/api-2.json b/models/apis/lookoutmetrics/2017-07-25/api-2.json index 068bcfbfdae..0dfdf567174 100644 --- a/models/apis/lookoutmetrics/2017-07-25/api-2.json +++ b/models/apis/lookoutmetrics/2017-07-25/api-2.json @@ -100,6 +100,23 @@ {"shape":"InternalServerException"} ] }, + "DeactivateAnomalyDetector":{ + "name":"DeactivateAnomalyDetector", + "http":{ + "method":"POST", + "requestUri":"/DeactivateAnomalyDetector" + }, + "input":{"shape":"DeactivateAnomalyDetectorRequest"}, + "output":{"shape":"DeactivateAnomalyDetectorResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InternalServerException"} + ] + }, "DeleteAlert":{ "name":"DeleteAlert", "http":{ @@ -569,7 +586,8 @@ "enum":[ "ACTIVATION_FAILURE", "BACK_TEST_ACTIVATION_FAILURE", - "DELETION_FAILURE" + "DELETION_FAILURE", + "DEACTIVATION_FAILURE" ] }, "AnomalyDetectorName":{ @@ -589,7 +607,9 @@ "LEARNING", "BACK_TEST_ACTIVATING", "BACK_TEST_ACTIVE", - "BACK_TEST_COMPLETE" + "BACK_TEST_COMPLETE", + "DEACTIVATED", + "DEACTIVATING" ] }, "AnomalyDetectorSummary":{ @@ -830,6 +850,18 @@ "max":63, "pattern":".*\\S.*" }, + "DeactivateAnomalyDetectorRequest":{ + "type":"structure", + "required":["AnomalyDetectorArn"], + "members":{ + "AnomalyDetectorArn":{"shape":"Arn"} + } + }, + "DeactivateAnomalyDetectorResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteAlertRequest":{ "type":"structure", "required":["AlertArn"], diff --git a/models/apis/lookoutmetrics/2017-07-25/docs-2.json b/models/apis/lookoutmetrics/2017-07-25/docs-2.json index 449bde0d7b3..bf4225d9101 100644 --- a/models/apis/lookoutmetrics/2017-07-25/docs-2.json +++ b/models/apis/lookoutmetrics/2017-07-25/docs-2.json @@ -7,6 +7,7 @@ "CreateAlert": "

Creates an alert for an anomaly detector.

", "CreateAnomalyDetector": "

Creates an anomaly detector.

", "CreateMetricSet": "

Creates a dataset.

", + "DeactivateAnomalyDetector": "

Deactivates an anomaly detector.

", "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.

Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.

", @@ -231,6 +232,7 @@ "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.

", + "DeactivateAnomalyDetectorRequest$AnomalyDetectorArn": "

The Amazon Resource Name (ARN) of the anomaly detector.

", "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.

", @@ -389,6 +391,16 @@ "TimestampColumn$ColumnFormat": "

The format of the timestamp column.

" } }, + "DeactivateAnomalyDetectorRequest": { + "base": null, + "refs": { + } + }, + "DeactivateAnomalyDetectorResponse": { + "base": null, + "refs": { + } + }, "DeleteAlertRequest": { "base": null, "refs": { diff --git a/models/apis/ram/2018-01-04/api-2.json b/models/apis/ram/2018-01-04/api-2.json index e891ca433c8..bc2b614e2db 100644 --- a/models/apis/ram/2018-01-04/api-2.json +++ b/models/apis/ram/2018-01-04/api-2.json @@ -279,6 +279,24 @@ {"shape":"ResourceShareInvitationExpiredException"} ] }, + "ListPermissionVersions":{ + "name":"ListPermissionVersions", + "http":{ + "method":"POST", + "requestUri":"/listpermissionversions" + }, + "input":{"shape":"ListPermissionVersionsRequest"}, + "output":{"shape":"ListPermissionVersionsResponse"}, + "errors":[ + {"shape":"MalformedArnException"}, + {"shape":"UnknownResourceException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"InvalidParameterException"} + ] + }, "ListPermissions":{ "name":"ListPermissions", "http":{ @@ -772,6 +790,22 @@ "nextToken":{"shape":"String"} } }, + "ListPermissionVersionsRequest":{ + "type":"structure", + "required":["permissionArn"], + "members":{ + "permissionArn":{"shape":"String"}, + "nextToken":{"shape":"String"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "ListPermissionVersionsResponse":{ + "type":"structure", + "members":{ + "permissions":{"shape":"ResourceSharePermissionList"}, + "nextToken":{"shape":"String"} + } + }, "ListPermissionsRequest":{ "type":"structure", "members":{ diff --git a/models/apis/ram/2018-01-04/docs-2.json b/models/apis/ram/2018-01-04/docs-2.json index 52c9ed395e7..bc7385f5b78 100644 --- a/models/apis/ram/2018-01-04/docs-2.json +++ b/models/apis/ram/2018-01-04/docs-2.json @@ -16,6 +16,7 @@ "GetResourceShareInvitations": "

Retrieves details about invitations that you have received for resource shares.

", "GetResourceShares": "

Retrieves details about the resource shares that you own or that are shared with you.

", "ListPendingInvitationResources": "

Lists the resources in a resource share that is shared with you but for which the invitation is still PENDING. That means that you haven't accepted or rejected the invitation and the invitation hasn't expired.

", + "ListPermissionVersions": "

Lists the available versions of the specified RAM permission.

", "ListPermissions": "

Retrieves a list of available RAM permissions that you can use for the supported resource types.

", "ListPrincipals": "

Lists the principals that you are sharing resources with or that are sharing resources with you.

", "ListResourceSharePermissions": "

Lists the RAM permissions that are associated with a resource share.

", @@ -204,7 +205,7 @@ "Integer": { "base": null, "refs": { - "AssociateResourceSharePermissionRequest$permissionVersion": "

Specifies the version of the RAM permission to associate with the resource share. If you don't specify this parameter, the operation uses the version designated as the default.

", + "AssociateResourceSharePermissionRequest$permissionVersion": "

Specifies the version of the RAM permission to associate with the resource share. If you don't specify this parameter, the operation uses the version designated as the default. You can use the ListPermissionVersions operation to discover the available versions of a permission.

", "GetPermissionRequest$permissionVersion": "

Specifies identifier for the version of the RAM permission to retrieve. If you don't specify this parameter, the operation retrieves the default version.

" } }, @@ -248,6 +249,16 @@ "refs": { } }, + "ListPermissionVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListPermissionVersionsResponse": { + "base": null, + "refs": { + } + }, "ListPermissionsRequest": { "base": null, "refs": { @@ -311,6 +322,7 @@ "GetResourceShareInvitationsRequest$maxResults": "

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", "GetResourceSharesRequest$maxResults": "

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", "ListPendingInvitationResourcesRequest$maxResults": "

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", + "ListPermissionVersionsRequest$maxResults": "

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", "ListPermissionsRequest$maxResults": "

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", "ListPrincipalsRequest$maxResults": "

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", "ListResourceSharePermissionsRequest$maxResults": "

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

", @@ -557,6 +569,7 @@ "ResourceSharePermissionList": { "base": null, "refs": { + "ListPermissionVersionsResponse$permissions": "

An array of objects that contain details for each of the available versions.

", "ListPermissionsResponse$permissions": "

An array of objects with information about the permissions.

", "ListResourceSharePermissionsResponse$permissions": "

An array of objects that describe the permissions associated with the resource share.

" } @@ -652,6 +665,9 @@ "ListPendingInvitationResourcesRequest$resourceShareInvitationArn": "

Specifies the Amazon Resoure Name (ARN) of the invitation. You can use GetResourceShareInvitations to find the ARN of the invitation.

", "ListPendingInvitationResourcesRequest$nextToken": "

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

", "ListPendingInvitationResourcesResponse$nextToken": "

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

", + "ListPermissionVersionsRequest$permissionArn": "

Specifies the Amazon Resoure Name (ARN) of the RAM permission whose versions you want to list. You can use the permissionVersion parameter on the AssociateResourceSharePermission operation to specify a non-default version to attach.

", + "ListPermissionVersionsRequest$nextToken": "

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

", + "ListPermissionVersionsResponse$nextToken": "

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

", "ListPermissionsRequest$resourceType": "

Specifies that you want to list permissions for only the specified resource type. For example, to list only permissions that apply to EC2 subnets, specify ec2:Subnet. You can use the ListResourceTypes operation to get the specific string required.

", "ListPermissionsRequest$nextToken": "

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

", "ListPermissionsResponse$nextToken": "

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

", diff --git a/models/apis/ram/2018-01-04/paginators-1.json b/models/apis/ram/2018-01-04/paginators-1.json index 889569a3082..5e8aa9e9d56 100644 --- a/models/apis/ram/2018-01-04/paginators-1.json +++ b/models/apis/ram/2018-01-04/paginators-1.json @@ -25,6 +25,11 @@ "output_token": "nextToken", "limit_key": "maxResults" }, + "ListPermissionVersions": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, "ListPermissions": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 5d41d51888c..0e3d65e1914 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -11421,6 +11421,7 @@ "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ap-southeast-3" : { }, "ca-central-1" : { "variants" : [ { "hostname" : "storagegateway-fips.ca-central-1.amazonaws.com", diff --git a/service/applicationinsights/api.go b/service/applicationinsights/api.go index 76208b26a6e..6c5fb037e2e 100644 --- a/service/applicationinsights/api.go +++ b/service/applicationinsights/api.go @@ -7517,6 +7517,12 @@ const ( // TierSqlServerFailoverClusterInstance is a Tier enum value TierSqlServerFailoverClusterInstance = "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE" + + // TierSharepoint is a Tier enum value + TierSharepoint = "SHAREPOINT" + + // TierActiveDirectory is a Tier enum value + TierActiveDirectory = "ACTIVE_DIRECTORY" ) // Tier_Values returns all elements of the Tier enum @@ -7538,5 +7544,7 @@ func Tier_Values() []string { TierSapHanaSingleNode, TierSapHanaHighAvailability, TierSqlServerFailoverClusterInstance, + TierSharepoint, + TierActiveDirectory, } } diff --git a/service/configservice/api.go b/service/configservice/api.go index 9e8c48460cc..16b2194cb47 100644 --- a/service/configservice/api.go +++ b/service/configservice/api.go @@ -31081,6 +31081,24 @@ const ( // ResourceTypeAwsOpenSearchDomain is a ResourceType enum value ResourceTypeAwsOpenSearchDomain = "AWS::OpenSearch::Domain" + + // ResourceTypeAwsEc2TransitGateway is a ResourceType enum value + ResourceTypeAwsEc2TransitGateway = "AWS::EC2::TransitGateway" + + // ResourceTypeAwsKinesisStream is a ResourceType enum value + ResourceTypeAwsKinesisStream = "AWS::Kinesis::Stream" + + // ResourceTypeAwsKinesisStreamConsumer is a ResourceType enum value + ResourceTypeAwsKinesisStreamConsumer = "AWS::Kinesis::StreamConsumer" + + // ResourceTypeAwsCodeDeployApplication is a ResourceType enum value + ResourceTypeAwsCodeDeployApplication = "AWS::CodeDeploy::Application" + + // ResourceTypeAwsCodeDeployDeploymentConfig is a ResourceType enum value + ResourceTypeAwsCodeDeployDeploymentConfig = "AWS::CodeDeploy::DeploymentConfig" + + // ResourceTypeAwsCodeDeployDeploymentGroup is a ResourceType enum value + ResourceTypeAwsCodeDeployDeploymentGroup = "AWS::CodeDeploy::DeploymentGroup" ) // ResourceType_Values returns all elements of the ResourceType enum @@ -31195,6 +31213,12 @@ func ResourceType_Values() []string { ResourceTypeAwsEfsFileSystem, ResourceTypeAwsEksCluster, ResourceTypeAwsOpenSearchDomain, + ResourceTypeAwsEc2TransitGateway, + ResourceTypeAwsKinesisStream, + ResourceTypeAwsKinesisStreamConsumer, + ResourceTypeAwsCodeDeployApplication, + ResourceTypeAwsCodeDeployDeploymentConfig, + ResourceTypeAwsCodeDeployDeploymentGroup, } } diff --git a/service/honeycode/api.go b/service/honeycode/api.go index 6458a44bd0a..cf3d4a41327 100644 --- a/service/honeycode/api.go +++ b/service/honeycode/api.go @@ -529,6 +529,9 @@ func (c *Honeycode) DescribeTableDataImportJobRequest(input *DescribeTableDataIm // Request is invalid. The message in the response contains details on why the // request is invalid. // +// * RequestTimeoutException +// The request timed out. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/honeycode-2020-03-01/DescribeTableDataImportJob func (c *Honeycode) DescribeTableDataImportJob(input *DescribeTableDataImportJobInput) (*DescribeTableDataImportJobOutput, error) { req, out := c.DescribeTableDataImportJobRequest(input) @@ -742,6 +745,9 @@ func (c *Honeycode) InvokeScreenAutomationRequest(input *InvokeScreenAutomationI // * RequestTimeoutException // The request timed out. // +// * ServiceQuotaExceededException +// The request caused service quota to be breached. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/honeycode-2020-03-01/InvokeScreenAutomation func (c *Honeycode) InvokeScreenAutomation(input *InvokeScreenAutomationInput) (*InvokeScreenAutomationOutput, error) { req, out := c.InvokeScreenAutomationRequest(input) @@ -1583,6 +1589,12 @@ func (c *Honeycode) StartTableDataImportJobRequest(input *StartTableDataImportJo // Request is invalid. The message in the response contains details on why the // request is invalid. // +// * RequestTimeoutException +// The request timed out. +// +// * ServiceQuotaExceededException +// The request caused service quota to be breached. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/honeycode-2020-03-01/StartTableDataImportJob func (c *Honeycode) StartTableDataImportJob(input *StartTableDataImportJobInput) (*StartTableDataImportJobOutput, error) { req, out := c.StartTableDataImportJobRequest(input) @@ -2709,6 +2721,12 @@ type Cell struct { // raw and formatted values. FormattedValue *string `locationName:"formattedValue" type:"string"` + // A list of formatted values of the cell. This field is only returned when + // the cell is ROWSET format (aka multi-select or multi-record picklist). Values + // in the list are always represented as strings. The formattedValue field will + // be empty if this field is returned. + FormattedValues []*string `locationName:"formattedValues" type:"list"` + // The formula contained in the cell. This field is empty if a cell does not // have a formula. // @@ -2755,6 +2773,20 @@ type Cell struct { // task status might have "Completed" as the formatted value and "row:dfcefaee-5b37-4355-8f28-40c3e4ff5dd4/ca432b2f-b8eb-431d-9fb5-cbe0342f9f03" // as the raw value. // + // Cells with format ROWSET (aka multi-select or multi-record picklist) will + // by default have the first column of each of the linked rows as the formatted + // value in the list, and the rowset id of the linked rows as the raw value. + // For example, a cell containing a multi-select picklist to a table that contains + // items might have "Item A", "Item B" in the formatted value list and "rows:b742c1f4-6cb0-4650-a845-35eb86fcc2bb/ + // [fdea123b-8f68-474a-aa8a-5ff87aa333af,6daf41f0-a138-4eee-89da-123086d36ecf]" + // as the raw value. + // + // Cells with format ATTACHMENT will have the name of the attachment as the + // formatted value and the attachment id as the raw value. For example, a cell + // containing an attachment named "image.jpeg" will have "image.jpeg" as the + // formatted value and "attachment:ca432b2f-b8eb-431d-9fb5-cbe0342f9f03" as + // the raw value. + // // Cells with format AUTO or cells without any format that are auto-detected // as one of the formats above will contain the raw and formatted values as // mentioned above, based on the auto-detected formats. If there is no auto-detected @@ -2793,6 +2825,12 @@ func (s *Cell) SetFormattedValue(v string) *Cell { return s } +// SetFormattedValues sets the FormattedValues field's value. +func (s *Cell) SetFormattedValues(v []*string) *Cell { + s.FormattedValues = v + return s +} + // SetFormula sets the Formula field's value. func (s *Cell) SetFormula(v string) *Cell { s.Formula = &v @@ -2807,6 +2845,9 @@ func (s *Cell) SetRawValue(v string) *Cell { // CellInput object contains the data needed to create or update cells in a // table. +// +// CellInput object has only a facts field or a fact field, but not both. A +// 400 bad request will be thrown if both fact and facts field are present. type CellInput struct { _ struct{} `type:"structure"` @@ -2817,6 +2858,11 @@ type CellInput struct { // replaced with "sensitive" in string returned by CellInput's // String and GoString methods. Fact *string `locationName:"fact" type:"string" sensitive:"true"` + + // A list representing the values that are entered into a ROWSET cell. Facts + // list can have either only values or rowIDs, and rowIDs should from the same + // table. + Facts []*string `locationName:"facts" type:"list"` } // String returns the string representation. @@ -2843,6 +2889,12 @@ func (s *CellInput) SetFact(v string) *CellInput { return s } +// SetFacts sets the Facts field's value. +func (s *CellInput) SetFacts(v []*string) *CellInput { + s.Facts = v + return s +} + // Metadata for column in the table. type ColumnMetadata struct { _ struct{} `type:"structure"` @@ -3190,6 +3242,9 @@ func (s *DescribeTableDataImportJobInput) SetWorkbookId(v string) *DescribeTable type DescribeTableDataImportJobOutput struct { _ struct{} `type:"structure"` + // If job status is failed, error code to understand reason for the failure. + ErrorCode *string `locationName:"errorCode" type:"string" enum:"ErrorCode"` + // The metadata about the job that was submitted for import. // // JobMetadata is a required field @@ -3224,6 +3279,12 @@ func (s DescribeTableDataImportJobOutput) GoString() string { return s.String() } +// SetErrorCode sets the ErrorCode field's value. +func (s *DescribeTableDataImportJobOutput) SetErrorCode(v string) *DescribeTableDataImportJobOutput { + s.ErrorCode = &v + return s +} + // SetJobMetadata sets the JobMetadata field's value. func (s *DescribeTableDataImportJobOutput) SetJobMetadata(v *TableDataImportJobMetadata) *DescribeTableDataImportJobOutput { s.JobMetadata = v @@ -3672,7 +3733,11 @@ type ImportDataSourceConfig struct { _ struct{} `type:"structure"` // The URL from which source data will be downloaded for the import request. - DataSourceUrl *string `locationName:"dataSourceUrl" min:"1" type:"string"` + // + // DataSourceUrl is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ImportDataSourceConfig's + // String and GoString methods. + DataSourceUrl *string `locationName:"dataSourceUrl" min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -6182,6 +6247,70 @@ func (s *VariableValue) SetRawValue(v string) *VariableValue { return s } +const ( + // ErrorCodeAccessDenied is a ErrorCode enum value + ErrorCodeAccessDenied = "ACCESS_DENIED" + + // ErrorCodeInvalidUrlError is a ErrorCode enum value + ErrorCodeInvalidUrlError = "INVALID_URL_ERROR" + + // ErrorCodeInvalidImportOptionsError is a ErrorCode enum value + ErrorCodeInvalidImportOptionsError = "INVALID_IMPORT_OPTIONS_ERROR" + + // ErrorCodeInvalidTableIdError is a ErrorCode enum value + ErrorCodeInvalidTableIdError = "INVALID_TABLE_ID_ERROR" + + // ErrorCodeInvalidTableColumnIdError is a ErrorCode enum value + ErrorCodeInvalidTableColumnIdError = "INVALID_TABLE_COLUMN_ID_ERROR" + + // ErrorCodeTableNotFoundError is a ErrorCode enum value + ErrorCodeTableNotFoundError = "TABLE_NOT_FOUND_ERROR" + + // ErrorCodeFileEmptyError is a ErrorCode enum value + ErrorCodeFileEmptyError = "FILE_EMPTY_ERROR" + + // ErrorCodeInvalidFileTypeError is a ErrorCode enum value + ErrorCodeInvalidFileTypeError = "INVALID_FILE_TYPE_ERROR" + + // ErrorCodeFileParsingError is a ErrorCode enum value + ErrorCodeFileParsingError = "FILE_PARSING_ERROR" + + // ErrorCodeFileSizeLimitError is a ErrorCode enum value + ErrorCodeFileSizeLimitError = "FILE_SIZE_LIMIT_ERROR" + + // ErrorCodeFileNotFoundError is a ErrorCode enum value + ErrorCodeFileNotFoundError = "FILE_NOT_FOUND_ERROR" + + // ErrorCodeUnknownError is a ErrorCode enum value + ErrorCodeUnknownError = "UNKNOWN_ERROR" + + // ErrorCodeResourceNotFoundError is a ErrorCode enum value + ErrorCodeResourceNotFoundError = "RESOURCE_NOT_FOUND_ERROR" + + // ErrorCodeSystemLimitError is a ErrorCode enum value + ErrorCodeSystemLimitError = "SYSTEM_LIMIT_ERROR" +) + +// ErrorCode_Values returns all elements of the ErrorCode enum +func ErrorCode_Values() []string { + return []string{ + ErrorCodeAccessDenied, + ErrorCodeInvalidUrlError, + ErrorCodeInvalidImportOptionsError, + ErrorCodeInvalidTableIdError, + ErrorCodeInvalidTableColumnIdError, + ErrorCodeTableNotFoundError, + ErrorCodeFileEmptyError, + ErrorCodeInvalidFileTypeError, + ErrorCodeFileParsingError, + ErrorCodeFileSizeLimitError, + ErrorCodeFileNotFoundError, + ErrorCodeUnknownError, + ErrorCodeResourceNotFoundError, + ErrorCodeSystemLimitError, + } +} + const ( // FormatAuto is a Format enum value FormatAuto = "AUTO" @@ -6215,6 +6344,9 @@ const ( // FormatRowlink is a Format enum value FormatRowlink = "ROWLINK" + + // FormatRowset is a Format enum value + FormatRowset = "ROWSET" ) // Format_Values returns all elements of the Format enum @@ -6231,6 +6363,7 @@ func Format_Values() []string { FormatAccounting, FormatContact, FormatRowlink, + FormatRowset, } } diff --git a/service/lookoutmetrics/api.go b/service/lookoutmetrics/api.go index b086b53344d..de3f7374b6e 100644 --- a/service/lookoutmetrics/api.go +++ b/service/lookoutmetrics/api.go @@ -513,6 +513,105 @@ func (c *LookoutMetrics) CreateMetricSetWithContext(ctx aws.Context, input *Crea return out, req.Send() } +const opDeactivateAnomalyDetector = "DeactivateAnomalyDetector" + +// DeactivateAnomalyDetectorRequest generates a "aws/request.Request" representing the +// client's request for the DeactivateAnomalyDetector 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 DeactivateAnomalyDetector for more information on using the DeactivateAnomalyDetector +// 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 DeactivateAnomalyDetectorRequest method. +// req, resp := client.DeactivateAnomalyDetectorRequest(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/DeactivateAnomalyDetector +func (c *LookoutMetrics) DeactivateAnomalyDetectorRequest(input *DeactivateAnomalyDetectorInput) (req *request.Request, output *DeactivateAnomalyDetectorOutput) { + op := &request.Operation{ + Name: opDeactivateAnomalyDetector, + HTTPMethod: "POST", + HTTPPath: "/DeactivateAnomalyDetector", + } + + if input == nil { + input = &DeactivateAnomalyDetectorInput{} + } + + output = &DeactivateAnomalyDetectorOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeactivateAnomalyDetector API operation for Amazon Lookout for Metrics. +// +// Deactivates 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 DeactivateAnomalyDetector 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. +// +// * ConflictException +// There was a conflict processing the request. Try your request 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/DeactivateAnomalyDetector +func (c *LookoutMetrics) DeactivateAnomalyDetector(input *DeactivateAnomalyDetectorInput) (*DeactivateAnomalyDetectorOutput, error) { + req, out := c.DeactivateAnomalyDetectorRequest(input) + return out, req.Send() +} + +// DeactivateAnomalyDetectorWithContext is the same as DeactivateAnomalyDetector with the addition of +// the ability to pass a context and additional request options. +// +// See DeactivateAnomalyDetector 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) DeactivateAnomalyDetectorWithContext(ctx aws.Context, input *DeactivateAnomalyDetectorInput, opts ...request.Option) (*DeactivateAnomalyDetectorOutput, error) { + req, out := c.DeactivateAnomalyDetectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteAlert = "DeleteAlert" // DeleteAlertRequest generates a "aws/request.Request" representing the @@ -4701,6 +4800,74 @@ func (s *CsvFormatDescriptor) SetQuoteSymbol(v string) *CsvFormatDescriptor { return s } +type DeactivateAnomalyDetectorInput 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. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeactivateAnomalyDetectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeactivateAnomalyDetectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeactivateAnomalyDetectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeactivateAnomalyDetectorInput"} + 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 *DeactivateAnomalyDetectorInput) SetAnomalyDetectorArn(v string) *DeactivateAnomalyDetectorInput { + s.AnomalyDetectorArn = &v + return s +} + +type DeactivateAnomalyDetectorOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeactivateAnomalyDetectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeactivateAnomalyDetectorOutput) GoString() string { + return s.String() +} + type DeleteAlertInput struct { _ struct{} `type:"structure"` @@ -8962,6 +9129,9 @@ const ( // AnomalyDetectorFailureTypeDeletionFailure is a AnomalyDetectorFailureType enum value AnomalyDetectorFailureTypeDeletionFailure = "DELETION_FAILURE" + + // AnomalyDetectorFailureTypeDeactivationFailure is a AnomalyDetectorFailureType enum value + AnomalyDetectorFailureTypeDeactivationFailure = "DEACTIVATION_FAILURE" ) // AnomalyDetectorFailureType_Values returns all elements of the AnomalyDetectorFailureType enum @@ -8970,6 +9140,7 @@ func AnomalyDetectorFailureType_Values() []string { AnomalyDetectorFailureTypeActivationFailure, AnomalyDetectorFailureTypeBackTestActivationFailure, AnomalyDetectorFailureTypeDeletionFailure, + AnomalyDetectorFailureTypeDeactivationFailure, } } @@ -9000,6 +9171,12 @@ const ( // AnomalyDetectorStatusBackTestComplete is a AnomalyDetectorStatus enum value AnomalyDetectorStatusBackTestComplete = "BACK_TEST_COMPLETE" + + // AnomalyDetectorStatusDeactivated is a AnomalyDetectorStatus enum value + AnomalyDetectorStatusDeactivated = "DEACTIVATED" + + // AnomalyDetectorStatusDeactivating is a AnomalyDetectorStatus enum value + AnomalyDetectorStatusDeactivating = "DEACTIVATING" ) // AnomalyDetectorStatus_Values returns all elements of the AnomalyDetectorStatus enum @@ -9014,6 +9191,8 @@ func AnomalyDetectorStatus_Values() []string { AnomalyDetectorStatusBackTestActivating, AnomalyDetectorStatusBackTestActive, AnomalyDetectorStatusBackTestComplete, + AnomalyDetectorStatusDeactivated, + AnomalyDetectorStatusDeactivating, } } diff --git a/service/lookoutmetrics/lookoutmetricsiface/interface.go b/service/lookoutmetrics/lookoutmetricsiface/interface.go index 5d655ef6d09..6fb66ba61da 100644 --- a/service/lookoutmetrics/lookoutmetricsiface/interface.go +++ b/service/lookoutmetrics/lookoutmetricsiface/interface.go @@ -80,6 +80,10 @@ type LookoutMetricsAPI interface { CreateMetricSetWithContext(aws.Context, *lookoutmetrics.CreateMetricSetInput, ...request.Option) (*lookoutmetrics.CreateMetricSetOutput, error) CreateMetricSetRequest(*lookoutmetrics.CreateMetricSetInput) (*request.Request, *lookoutmetrics.CreateMetricSetOutput) + DeactivateAnomalyDetector(*lookoutmetrics.DeactivateAnomalyDetectorInput) (*lookoutmetrics.DeactivateAnomalyDetectorOutput, error) + DeactivateAnomalyDetectorWithContext(aws.Context, *lookoutmetrics.DeactivateAnomalyDetectorInput, ...request.Option) (*lookoutmetrics.DeactivateAnomalyDetectorOutput, error) + DeactivateAnomalyDetectorRequest(*lookoutmetrics.DeactivateAnomalyDetectorInput) (*request.Request, *lookoutmetrics.DeactivateAnomalyDetectorOutput) + DeleteAlert(*lookoutmetrics.DeleteAlertInput) (*lookoutmetrics.DeleteAlertOutput, error) DeleteAlertWithContext(aws.Context, *lookoutmetrics.DeleteAlertInput, ...request.Option) (*lookoutmetrics.DeleteAlertOutput, error) DeleteAlertRequest(*lookoutmetrics.DeleteAlertInput) (*request.Request, *lookoutmetrics.DeleteAlertOutput) diff --git a/service/ram/api.go b/service/ram/api.go index 5ca2ae761eb..f110ca44eb3 100644 --- a/service/ram/api.go +++ b/service/ram/api.go @@ -1755,6 +1755,161 @@ func (c *RAM) ListPendingInvitationResourcesPagesWithContext(ctx aws.Context, in return p.Err() } +const opListPermissionVersions = "ListPermissionVersions" + +// ListPermissionVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListPermissionVersions 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 ListPermissionVersions for more information on using the ListPermissionVersions +// 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 ListPermissionVersionsRequest method. +// req, resp := client.ListPermissionVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPermissionVersions +func (c *RAM) ListPermissionVersionsRequest(input *ListPermissionVersionsInput) (req *request.Request, output *ListPermissionVersionsOutput) { + op := &request.Operation{ + Name: opListPermissionVersions, + HTTPMethod: "POST", + HTTPPath: "/listpermissionversions", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListPermissionVersionsInput{} + } + + output = &ListPermissionVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPermissionVersions API operation for AWS Resource Access Manager. +// +// Lists the available versions of the specified RAM permission. +// +// 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 AWS Resource Access Manager's +// API operation ListPermissionVersions for usage and error information. +// +// Returned Error Types: +// * MalformedArnException +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * UnknownResourceException +// A specified resource was not found. +// +// * InvalidNextTokenException +// The specified value for NextToken is not valid. +// +// * ServerInternalException +// The service could not respond to the request due to an internal problem. +// +// * ServiceUnavailableException +// The service is not available. +// +// * OperationNotPermittedException +// The requested operation is not permitted. +// +// * InvalidParameterException +// A parameter is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPermissionVersions +func (c *RAM) ListPermissionVersions(input *ListPermissionVersionsInput) (*ListPermissionVersionsOutput, error) { + req, out := c.ListPermissionVersionsRequest(input) + return out, req.Send() +} + +// ListPermissionVersionsWithContext is the same as ListPermissionVersions with the addition of +// the ability to pass a context and additional request options. +// +// See ListPermissionVersions 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 *RAM) ListPermissionVersionsWithContext(ctx aws.Context, input *ListPermissionVersionsInput, opts ...request.Option) (*ListPermissionVersionsOutput, error) { + req, out := c.ListPermissionVersionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListPermissionVersionsPages iterates over the pages of a ListPermissionVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPermissionVersions 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 ListPermissionVersions operation. +// pageNum := 0 +// err := client.ListPermissionVersionsPages(params, +// func(page *ram.ListPermissionVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RAM) ListPermissionVersionsPages(input *ListPermissionVersionsInput, fn func(*ListPermissionVersionsOutput, bool) bool) error { + return c.ListPermissionVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListPermissionVersionsPagesWithContext same as ListPermissionVersionsPages 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 *RAM) ListPermissionVersionsPagesWithContext(ctx aws.Context, input *ListPermissionVersionsInput, fn func(*ListPermissionVersionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPermissionVersionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPermissionVersionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPermissionVersionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListPermissions = "ListPermissions" // ListPermissionsRequest generates a "aws/request.Request" representing the @@ -3309,7 +3464,8 @@ type AssociateResourceSharePermissionInput struct { // Specifies the version of the RAM permission to associate with the resource // share. If you don't specify this parameter, the operation uses the version - // designated as the default. + // designated as the default. You can use the ListPermissionVersions operation + // to discover the available versions of a permission. PermissionVersion *int64 `locationName:"permissionVersion" type:"integer"` // Specifies whether the specified permission should replace or add to the existing @@ -5355,6 +5511,132 @@ func (s *ListPendingInvitationResourcesOutput) SetResources(v []*Resource) *List return s } +type ListPermissionVersionsInput struct { + _ struct{} `type:"structure"` + + // Specifies the total number of results that you want included on each page + // of the response. If you do not include this parameter, it defaults to a value + // that is specific to the operation. If additional items exist beyond the number + // you specify, the NextToken response element is returned with a value (not + // null). Include the specified value as the NextToken request parameter in + // the next call to the operation to get the next part of the results. Note + // that the service might return fewer results than the maximum even when there + // are more results available. You should check NextToken after every operation + // to ensure that you receive all of the results. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // Specifies that you want to receive the next page of results. Valid only if + // you received a NextToken response in the previous request. If you did, it + // indicates that more output is available. Set this parameter to the value + // provided by the previous call's NextToken response to request the next page + // of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // Specifies the Amazon Resoure Name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // of the RAM permission whose versions you want to list. You can use the permissionVersion + // parameter on the AssociateResourceSharePermission operation to specify a + // non-default version to attach. + // + // PermissionArn is a required field + PermissionArn *string `locationName:"permissionArn" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPermissionVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPermissionVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPermissionVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPermissionVersionsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.PermissionArn == nil { + invalidParams.Add(request.NewErrParamRequired("PermissionArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPermissionVersionsInput) SetMaxResults(v int64) *ListPermissionVersionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPermissionVersionsInput) SetNextToken(v string) *ListPermissionVersionsInput { + s.NextToken = &v + return s +} + +// SetPermissionArn sets the PermissionArn field's value. +func (s *ListPermissionVersionsInput) SetPermissionArn(v string) *ListPermissionVersionsInput { + s.PermissionArn = &v + return s +} + +type ListPermissionVersionsOutput struct { + _ struct{} `type:"structure"` + + // If present, this value indicates that more output is available than is included + // in the current response. Use this value in the NextToken request parameter + // in a subsequent call to the operation to get the next part of the output. + // You should repeat this until the NextToken response element comes back as + // null. This indicates that this is the last page of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of objects that contain details for each of the available versions. + Permissions []*ResourceSharePermissionSummary `locationName:"permissions" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPermissionVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPermissionVersionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPermissionVersionsOutput) SetNextToken(v string) *ListPermissionVersionsOutput { + s.NextToken = &v + return s +} + +// SetPermissions sets the Permissions field's value. +func (s *ListPermissionVersionsOutput) SetPermissions(v []*ResourceSharePermissionSummary) *ListPermissionVersionsOutput { + s.Permissions = v + return s +} + type ListPermissionsInput struct { _ struct{} `type:"structure"` diff --git a/service/ram/ramiface/interface.go b/service/ram/ramiface/interface.go index 0122ede8851..6340e769e1e 100644 --- a/service/ram/ramiface/interface.go +++ b/service/ram/ramiface/interface.go @@ -131,6 +131,13 @@ type RAMAPI interface { ListPendingInvitationResourcesPages(*ram.ListPendingInvitationResourcesInput, func(*ram.ListPendingInvitationResourcesOutput, bool) bool) error ListPendingInvitationResourcesPagesWithContext(aws.Context, *ram.ListPendingInvitationResourcesInput, func(*ram.ListPendingInvitationResourcesOutput, bool) bool, ...request.Option) error + ListPermissionVersions(*ram.ListPermissionVersionsInput) (*ram.ListPermissionVersionsOutput, error) + ListPermissionVersionsWithContext(aws.Context, *ram.ListPermissionVersionsInput, ...request.Option) (*ram.ListPermissionVersionsOutput, error) + ListPermissionVersionsRequest(*ram.ListPermissionVersionsInput) (*request.Request, *ram.ListPermissionVersionsOutput) + + ListPermissionVersionsPages(*ram.ListPermissionVersionsInput, func(*ram.ListPermissionVersionsOutput, bool) bool) error + ListPermissionVersionsPagesWithContext(aws.Context, *ram.ListPermissionVersionsInput, func(*ram.ListPermissionVersionsOutput, bool) bool, ...request.Option) error + ListPermissions(*ram.ListPermissionsInput) (*ram.ListPermissionsOutput, error) ListPermissionsWithContext(aws.Context, *ram.ListPermissionsInput, ...request.Option) (*ram.ListPermissionsOutput, error) ListPermissionsRequest(*ram.ListPermissionsInput) (*request.Request, *ram.ListPermissionsOutput)