From 39a9e81487e9b64d8f95fb159696dad5d681b5f2 Mon Sep 17 00:00:00 2001 From: Alex Woods Date: Tue, 13 Feb 2024 13:12:54 -0800 Subject: [PATCH 1/2] Revert "Revert "Revert "Revert "Prepare for Ruby 3.4 release - add dependencies on previously default gems (base64/bigdecimal) (#2986)"""" This reverts commit e1e8f9d5d5296f68d95b4e260c4e8f7eee4a2ab1. --- .../aws-sdk-code-generator/views/gemspec.rb | 6 ++++- .../templates/gemspec.mustache | 2 +- gems/aws-sdk-core/CHANGELOG.md | 2 ++ gems/aws-sdk-core/aws-sdk-core.gemspec | 1 + services.json | 23 ++++++++----------- 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/gemspec.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/gemspec.rb index 7979f184116..45200464db1 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/gemspec.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/gemspec.rb @@ -78,7 +78,11 @@ def deprecated? @service.deprecated? end - Dependency = Struct.new(:gem, :version) + Dependency = Struct.new(:gem, :version) do + def gem_version + [gem, version].compact.map { |s| "'#{s}'"}.join(', ') + end + end end end diff --git a/build_tools/aws-sdk-code-generator/templates/gemspec.mustache b/build_tools/aws-sdk-code-generator/templates/gemspec.mustache index 0c230025ce7..1813f1ba34a 100644 --- a/build_tools/aws-sdk-code-generator/templates/gemspec.mustache +++ b/build_tools/aws-sdk-code-generator/templates/gemspec.mustache @@ -24,7 +24,7 @@ Gem::Specification.new do |spec| {{/metadata}} {{#dependencies}} - spec.add_dependency('{{gem}}', '{{&version}}') + spec.add_dependency({{{gem_version}}}) {{/dependencies}} spec.required_ruby_version = '>= 2.5' diff --git a/gems/aws-sdk-core/CHANGELOG.md b/gems/aws-sdk-core/CHANGELOG.md index 9a988b5fce2..4c4e2b42f48 100644 --- a/gems/aws-sdk-core/CHANGELOG.md +++ b/gems/aws-sdk-core/CHANGELOG.md @@ -1,6 +1,8 @@ Unreleased Changes ------------------ +* Issue - Add base64 as dependency to prepare for Ruby 3.4 release (#2984). + 3.191.1 (2024-02-07) ------------------ diff --git a/gems/aws-sdk-core/aws-sdk-core.gemspec b/gems/aws-sdk-core/aws-sdk-core.gemspec index 12f78a41c66..64b99af8a1f 100644 --- a/gems/aws-sdk-core/aws-sdk-core.gemspec +++ b/gems/aws-sdk-core/aws-sdk-core.gemspec @@ -16,6 +16,7 @@ Gem::Specification.new do |spec| spec.add_dependency('aws-partitions', '~> 1', '>= 1.651.0') # necessary for new endpoint resolution spec.add_dependency('aws-sigv4', '~> 1.8') # necessary for s3 express auth spec.add_dependency('aws-eventstream', '~> 1', '>= 1.3.0') # necessary for binary eventstream + spec.add_dependency('base64') # necessary for base64 encoding/decoding spec.metadata = { 'source_code_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-core', diff --git a/services.json b/services.json index 1b8fdeb9d05..cf951c2fe60 100644 --- a/services.json +++ b/services.json @@ -365,13 +365,19 @@ "Aws::DynamoDB::Plugins::ExtendedRetries", "Aws::DynamoDB::Plugins::SimpleAttributes", "Aws::DynamoDB::Plugins::CRC32Validation" - ] + ], + "dependencies": { + "bigdecimal": null + } }, "DynamoDBStreams": { "models": "streams.dynamodb/2012-08-10", "addPlugins": [ "Aws::DynamoDBStreams::Plugins::SimpleAttributes" - ] + ], + "dependencies": { + "bigdecimal": null + } }, "EBS": { "models": "ebs/2019-11-02" @@ -381,10 +387,7 @@ "addPlugins": [ "Aws::EC2::Plugins::CopyEncryptedSnapshot", "Aws::EC2::Plugins::RegionValidation" - ], - "dependencies": { - "aws-sigv4": "~> 1.0" - } + ] }, "EC2InstanceConnect": { "models": "ec2-instance-connect/2018-04-02" @@ -924,10 +927,7 @@ "models": "rds/2014-10-31", "addPlugins": [ "Aws::RDS::Plugins::CrossRegionCopying" - ], - "dependencies": { - "aws-sigv4": "~> 1.0" - } + ] }, "RDSDataService": { "models": "rds-data/2018-08-01" @@ -1019,9 +1019,6 @@ }, "S3Control": { "models": "s3control/2018-08-20", - "dependencies": { - "aws-sigv4": "~> 1.1" - }, "addPlugins": [ "Aws::S3Control::Plugins::ARN", "Aws::S3Control::Plugins::Dualstack", From 0e1f0f8720ebb3140ebc4b8838ada7470857409d Mon Sep 17 00:00:00 2001 From: AWS SDK For Ruby Date: Wed, 14 Feb 2024 19:13:36 +0000 Subject: [PATCH 2/2] Updated API models and rebuilt service gems. --- apis/controltower/2018-05-10/api-2.json | 472 +++++++++++++++ apis/controltower/2018-05-10/docs-2.json | 294 +++++++++- .../controltower/2018-05-10/paginators-1.json | 12 + apis/lookoutequipment/2020-12-15/api-2.json | 36 +- apis/lookoutequipment/2020-12-15/docs-2.json | 38 +- .../2020-12-15/endpoint-rule-set-1.json | 40 +- apis/qbusiness/2023-11-27/api-2.json | 93 ++- apis/qbusiness/2023-11-27/docs-2.json | 89 ++- gems/aws-partitions/CHANGELOG.md | 5 + gems/aws-partitions/VERSION | 2 +- gems/aws-partitions/partitions.json | 40 ++ gems/aws-sdk-controltower/CHANGELOG.md | 5 + gems/aws-sdk-controltower/VERSION | 2 +- .../lib/aws-sdk-controltower.rb | 2 +- .../lib/aws-sdk-controltower/client.rb | 403 ++++++++++++- .../lib/aws-sdk-controltower/client_api.rb | 294 ++++++++++ .../lib/aws-sdk-controltower/endpoints.rb | 126 ++++ .../aws-sdk-controltower/plugins/endpoints.rb | 18 + .../lib/aws-sdk-controltower/types.rb | 553 +++++++++++++++++- gems/aws-sdk-controltower/sig/client.rbs | 119 ++++ gems/aws-sdk-controltower/sig/types.rbs | 158 +++++ gems/aws-sdk-core/CHANGELOG.md | 3 + gems/aws-sdk-core/VERSION | 2 +- gems/aws-sdk-core/lib/aws-sdk-sso.rb | 2 +- gems/aws-sdk-core/lib/aws-sdk-sso/client.rb | 2 +- gems/aws-sdk-core/lib/aws-sdk-ssooidc.rb | 2 +- .../lib/aws-sdk-ssooidc/client.rb | 2 +- gems/aws-sdk-core/lib/aws-sdk-sts.rb | 2 +- gems/aws-sdk-core/lib/aws-sdk-sts/client.rb | 2 +- gems/aws-sdk-dynamodb/CHANGELOG.md | 5 + gems/aws-sdk-dynamodb/VERSION | 2 +- .../aws-sdk-dynamodb/aws-sdk-dynamodb.gemspec | 1 + gems/aws-sdk-dynamodb/features/env.rb | 1 + gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb.rb | 3 +- .../lib/aws-sdk-dynamodb/client.rb | 2 +- gems/aws-sdk-dynamodb/spec/spec_helper.rb | 1 + gems/aws-sdk-dynamodbstreams/CHANGELOG.md | 5 + gems/aws-sdk-dynamodbstreams/VERSION | 2 +- .../aws-sdk-dynamodbstreams.gemspec | 1 + gems/aws-sdk-dynamodbstreams/features/env.rb | 1 + .../lib/aws-sdk-dynamodbstreams.rb | 3 +- .../lib/aws-sdk-dynamodbstreams/client.rb | 2 +- .../spec/spec_helper.rb | 1 + gems/aws-sdk-ec2/CHANGELOG.md | 5 + gems/aws-sdk-ec2/VERSION | 2 +- gems/aws-sdk-ec2/aws-sdk-ec2.gemspec | 2 +- gems/aws-sdk-ec2/features/env.rb | 2 +- gems/aws-sdk-ec2/lib/aws-sdk-ec2.rb | 4 +- gems/aws-sdk-ec2/lib/aws-sdk-ec2/client.rb | 2 +- gems/aws-sdk-ec2/spec/spec_helper.rb | 2 +- gems/aws-sdk-lookoutequipment/CHANGELOG.md | 5 + gems/aws-sdk-lookoutequipment/VERSION | 2 +- .../lib/aws-sdk-lookoutequipment.rb | 2 +- .../lib/aws-sdk-lookoutequipment/client.rb | 42 +- .../aws-sdk-lookoutequipment/client_api.rb | 16 + .../endpoint_provider.rb | 2 +- .../lib/aws-sdk-lookoutequipment/types.rb | 127 +++- gems/aws-sdk-lookoutequipment/sig/client.rbs | 21 +- gems/aws-sdk-lookoutequipment/sig/types.rbs | 18 + gems/aws-sdk-qbusiness/CHANGELOG.md | 5 + gems/aws-sdk-qbusiness/VERSION | 2 +- .../lib/aws-sdk-qbusiness.rb | 2 +- .../lib/aws-sdk-qbusiness/client.rb | 59 +- .../lib/aws-sdk-qbusiness/client_api.rb | 45 ++ .../lib/aws-sdk-qbusiness/types.rb | 226 ++++++- gems/aws-sdk-qbusiness/sig/client.rbs | 36 +- gems/aws-sdk-qbusiness/sig/types.rbs | 46 +- gems/aws-sdk-rds/CHANGELOG.md | 5 + gems/aws-sdk-rds/VERSION | 2 +- gems/aws-sdk-rds/aws-sdk-rds.gemspec | 2 +- gems/aws-sdk-rds/features/env.rb | 2 +- gems/aws-sdk-rds/lib/aws-sdk-rds.rb | 4 +- gems/aws-sdk-rds/lib/aws-sdk-rds/client.rb | 2 +- gems/aws-sdk-rds/spec/spec_helper.rb | 2 +- gems/aws-sdk-s3control/CHANGELOG.md | 5 + gems/aws-sdk-s3control/VERSION | 2 +- .../aws-sdk-s3control.gemspec | 1 - gems/aws-sdk-s3control/features/env.rb | 1 - .../lib/aws-sdk-s3control.rb | 3 +- .../lib/aws-sdk-s3control/client.rb | 2 +- gems/aws-sdk-s3control/spec/spec_helper.rb | 1 - 81 files changed, 3379 insertions(+), 178 deletions(-) diff --git a/apis/controltower/2018-05-10/api-2.json b/apis/controltower/2018-05-10/api-2.json index 9f224dd5622..caf37c13dec 100644 --- a/apis/controltower/2018-05-10/api-2.json +++ b/apis/controltower/2018-05-10/api-2.json @@ -48,6 +48,26 @@ ], "idempotent":true }, + "DisableBaseline":{ + "name":"DisableBaseline", + "http":{ + "method":"POST", + "requestUri":"/disable-baseline", + "responseCode":200 + }, + "input":{"shape":"DisableBaselineInput"}, + "output":{"shape":"DisableBaselineOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, "DisableControl":{ "name":"DisableControl", "http":{ @@ -67,6 +87,25 @@ {"shape":"ResourceNotFoundException"} ] }, + "EnableBaseline":{ + "name":"EnableBaseline", + "http":{ + "method":"POST", + "requestUri":"/enable-baseline", + "responseCode":200 + }, + "input":{"shape":"EnableBaselineInput"}, + "output":{"shape":"EnableBaselineOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "EnableControl":{ "name":"EnableControl", "http":{ @@ -86,6 +125,40 @@ {"shape":"ResourceNotFoundException"} ] }, + "GetBaseline":{ + "name":"GetBaseline", + "http":{ + "method":"POST", + "requestUri":"/get-baseline", + "responseCode":200 + }, + "input":{"shape":"GetBaselineInput"}, + "output":{"shape":"GetBaselineOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetBaselineOperation":{ + "name":"GetBaselineOperation", + "http":{ + "method":"POST", + "requestUri":"/get-baseline-operation", + "responseCode":200 + }, + "input":{"shape":"GetBaselineOperationInput"}, + "output":{"shape":"GetBaselineOperationOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "GetControlOperation":{ "name":"GetControlOperation", "http":{ @@ -103,6 +176,23 @@ {"shape":"ResourceNotFoundException"} ] }, + "GetEnabledBaseline":{ + "name":"GetEnabledBaseline", + "http":{ + "method":"POST", + "requestUri":"/get-enabled-baseline", + "responseCode":200 + }, + "input":{"shape":"GetEnabledBaselineInput"}, + "output":{"shape":"GetEnabledBaselineOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "GetEnabledControl":{ "name":"GetEnabledControl", "http":{ @@ -154,6 +244,38 @@ {"shape":"ResourceNotFoundException"} ] }, + "ListBaselines":{ + "name":"ListBaselines", + "http":{ + "method":"POST", + "requestUri":"/list-baselines", + "responseCode":200 + }, + "input":{"shape":"ListBaselinesInput"}, + "output":{"shape":"ListBaselinesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListEnabledBaselines":{ + "name":"ListEnabledBaselines", + "http":{ + "method":"POST", + "requestUri":"/list-enabled-baselines", + "responseCode":200 + }, + "input":{"shape":"ListEnabledBaselinesInput"}, + "output":{"shape":"ListEnabledBaselinesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, "ListEnabledControls":{ "name":"ListEnabledControls", "http":{ @@ -202,6 +324,25 @@ {"shape":"ResourceNotFoundException"} ] }, + "ResetEnabledBaseline":{ + "name":"ResetEnabledBaseline", + "http":{ + "method":"POST", + "requestUri":"/reset-enabled-baseline", + "responseCode":200 + }, + "input":{"shape":"ResetEnabledBaselineInput"}, + "output":{"shape":"ResetEnabledBaselineOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "ResetLandingZone":{ "name":"ResetLandingZone", "http":{ @@ -250,6 +391,25 @@ {"shape":"ResourceNotFoundException"} ] }, + "UpdateEnabledBaseline":{ + "name":"UpdateEnabledBaseline", + "http":{ + "method":"POST", + "requestUri":"/update-enabled-baseline", + "responseCode":200 + }, + "input":{"shape":"UpdateEnabledBaselineInput"}, + "output":{"shape":"UpdateEnabledBaselineOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "UpdateEnabledControl":{ "name":"UpdateEnabledControl", "http":{ @@ -307,6 +467,60 @@ "min":20, "pattern":"^arn:aws[0-9a-zA-Z_\\-:\\/]+$" }, + "BaselineArn":{ + "type":"string", + "pattern":"^arn:[a-z-]+:controltower:[a-z0-9-]*:[0-9]{0,12}:baseline/[A-Z0-9]{16}$" + }, + "BaselineOperation":{ + "type":"structure", + "members":{ + "endTime":{"shape":"Timestamp"}, + "operationIdentifier":{"shape":"OperationIdentifier"}, + "operationType":{"shape":"BaselineOperationType"}, + "startTime":{"shape":"Timestamp"}, + "status":{"shape":"BaselineOperationStatus"}, + "statusMessage":{"shape":"String"} + } + }, + "BaselineOperationStatus":{ + "type":"string", + "enum":[ + "SUCCEEDED", + "FAILED", + "IN_PROGRESS" + ] + }, + "BaselineOperationType":{ + "type":"string", + "enum":[ + "ENABLE_BASELINE", + "DISABLE_BASELINE", + "UPDATE_ENABLED_BASELINE", + "RESET_ENABLED_BASELINE" + ] + }, + "BaselineSummary":{ + "type":"structure", + "required":[ + "arn", + "name" + ], + "members":{ + "arn":{"shape":"String"}, + "description":{"shape":"String"}, + "name":{"shape":"String"} + } + }, + "BaselineVersion":{ + "type":"string", + "max":10, + "min":1, + "pattern":"^\\d+(?:\\.\\d+){0,2}$" + }, + "Baselines":{ + "type":"list", + "member":{"shape":"BaselineSummary"} + }, "ConflictException":{ "type":"structure", "required":["message"], @@ -388,6 +602,20 @@ "operationIdentifier":{"shape":"OperationIdentifier"} } }, + "DisableBaselineInput":{ + "type":"structure", + "required":["enabledBaselineIdentifier"], + "members":{ + "enabledBaselineIdentifier":{"shape":"Arn"} + } + }, + "DisableBaselineOutput":{ + "type":"structure", + "required":["operationIdentifier"], + "members":{ + "operationIdentifier":{"shape":"OperationIdentifier"} + } + }, "DisableControlInput":{ "type":"structure", "required":[ @@ -427,6 +655,32 @@ "driftStatus":{"shape":"DriftStatus"} } }, + "EnableBaselineInput":{ + "type":"structure", + "required":[ + "baselineIdentifier", + "baselineVersion", + "targetIdentifier" + ], + "members":{ + "baselineIdentifier":{"shape":"Arn"}, + "baselineVersion":{"shape":"BaselineVersion"}, + "parameters":{"shape":"EnabledBaselineParameters"}, + "tags":{"shape":"TagMap"}, + "targetIdentifier":{"shape":"Arn"} + } + }, + "EnableBaselineOutput":{ + "type":"structure", + "required":[ + "arn", + "operationIdentifier" + ], + "members":{ + "arn":{"shape":"Arn"}, + "operationIdentifier":{"shape":"OperationIdentifier"} + } + }, "EnableControlInput":{ "type":"structure", "required":[ @@ -448,6 +702,98 @@ "operationIdentifier":{"shape":"OperationIdentifier"} } }, + "EnabledBaselineBaselineIdentifiers":{ + "type":"list", + "member":{"shape":"Arn"}, + "max":5, + "min":1 + }, + "EnabledBaselineDetails":{ + "type":"structure", + "required":[ + "arn", + "baselineIdentifier", + "statusSummary", + "targetIdentifier" + ], + "members":{ + "arn":{"shape":"Arn"}, + "baselineIdentifier":{"shape":"String"}, + "baselineVersion":{"shape":"String"}, + "parameters":{"shape":"EnabledBaselineParameterSummaries"}, + "statusSummary":{"shape":"EnablementStatusSummary"}, + "targetIdentifier":{"shape":"String"} + } + }, + "EnabledBaselineFilter":{ + "type":"structure", + "members":{ + "baselineIdentifiers":{"shape":"EnabledBaselineBaselineIdentifiers"}, + "targetIdentifiers":{"shape":"EnabledBaselineTargetIdentifiers"} + } + }, + "EnabledBaselineParameter":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{"shape":"String"}, + "value":{"shape":"EnabledBaselineParameterDocument"} + } + }, + "EnabledBaselineParameterDocument":{ + "type":"structure", + "members":{ + }, + "document":true + }, + "EnabledBaselineParameterSummaries":{ + "type":"list", + "member":{"shape":"EnabledBaselineParameterSummary"} + }, + "EnabledBaselineParameterSummary":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{"shape":"String"}, + "value":{"shape":"EnabledBaselineParameterDocument"} + } + }, + "EnabledBaselineParameters":{ + "type":"list", + "member":{"shape":"EnabledBaselineParameter"} + }, + "EnabledBaselineSummary":{ + "type":"structure", + "required":[ + "arn", + "baselineIdentifier", + "statusSummary", + "targetIdentifier" + ], + "members":{ + "arn":{"shape":"Arn"}, + "baselineIdentifier":{"shape":"String"}, + "baselineVersion":{"shape":"String"}, + "statusSummary":{"shape":"EnablementStatusSummary"}, + "targetIdentifier":{"shape":"String"} + } + }, + "EnabledBaselineTargetIdentifiers":{ + "type":"list", + "member":{"shape":"Arn"}, + "max":5, + "min":1 + }, + "EnabledBaselines":{ + "type":"list", + "member":{"shape":"EnabledBaselineSummary"} + }, "EnabledControlDetails":{ "type":"structure", "members":{ @@ -519,6 +865,39 @@ "status":{"shape":"EnablementStatus"} } }, + "GetBaselineInput":{ + "type":"structure", + "required":["baselineIdentifier"], + "members":{ + "baselineIdentifier":{"shape":"BaselineArn"} + } + }, + "GetBaselineOperationInput":{ + "type":"structure", + "required":["operationIdentifier"], + "members":{ + "operationIdentifier":{"shape":"OperationIdentifier"} + } + }, + "GetBaselineOperationOutput":{ + "type":"structure", + "required":["baselineOperation"], + "members":{ + "baselineOperation":{"shape":"BaselineOperation"} + } + }, + "GetBaselineOutput":{ + "type":"structure", + "required":[ + "arn", + "name" + ], + "members":{ + "arn":{"shape":"BaselineArn"}, + "description":{"shape":"String"}, + "name":{"shape":"String"} + } + }, "GetControlOperationInput":{ "type":"structure", "required":["operationIdentifier"], @@ -533,6 +912,19 @@ "controlOperation":{"shape":"ControlOperation"} } }, + "GetEnabledBaselineInput":{ + "type":"structure", + "required":["enabledBaselineIdentifier"], + "members":{ + "enabledBaselineIdentifier":{"shape":"Arn"} + } + }, + "GetEnabledBaselineOutput":{ + "type":"structure", + "members":{ + "enabledBaselineDetails":{"shape":"EnabledBaselineDetails"} + } + }, "GetEnabledControlInput":{ "type":"structure", "required":["enabledControlIdentifier"], @@ -665,6 +1057,53 @@ "min":3, "pattern":"^\\d+.\\d+$" }, + "ListBaselinesInput":{ + "type":"structure", + "members":{ + "maxResults":{"shape":"ListBaselinesMaxResults"}, + "nextToken":{"shape":"String"} + } + }, + "ListBaselinesMaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":4 + }, + "ListBaselinesOutput":{ + "type":"structure", + "required":["baselines"], + "members":{ + "baselines":{"shape":"Baselines"}, + "nextToken":{"shape":"String"} + } + }, + "ListEnabledBaselinesInput":{ + "type":"structure", + "members":{ + "filter":{"shape":"EnabledBaselineFilter"}, + "maxResults":{"shape":"ListEnabledBaselinesMaxResults"}, + "nextToken":{"shape":"ListEnabledBaselinesNextToken"} + } + }, + "ListEnabledBaselinesMaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":5 + }, + "ListEnabledBaselinesNextToken":{ + "type":"string", + "pattern":"\\S+" + }, + "ListEnabledBaselinesOutput":{ + "type":"structure", + "required":["enabledBaselines"], + "members":{ + "enabledBaselines":{"shape":"EnabledBaselines"}, + "nextToken":{"shape":"ListEnabledBaselinesNextToken"} + } + }, "ListEnabledControlsInput":{ "type":"structure", "required":["targetIdentifier"], @@ -756,6 +1195,20 @@ "max":50, "min":1 }, + "ResetEnabledBaselineInput":{ + "type":"structure", + "required":["enabledBaselineIdentifier"], + "members":{ + "enabledBaselineIdentifier":{"shape":"Arn"} + } + }, + "ResetEnabledBaselineOutput":{ + "type":"structure", + "required":["operationIdentifier"], + "members":{ + "operationIdentifier":{"shape":"OperationIdentifier"} + } + }, "ResetLandingZoneInput":{ "type":"structure", "required":["landingZoneIdentifier"], @@ -900,6 +1353,25 @@ "members":{ } }, + "UpdateEnabledBaselineInput":{ + "type":"structure", + "required":[ + "baselineVersion", + "enabledBaselineIdentifier" + ], + "members":{ + "baselineVersion":{"shape":"BaselineVersion"}, + "enabledBaselineIdentifier":{"shape":"Arn"}, + "parameters":{"shape":"EnabledBaselineParameters"} + } + }, + "UpdateEnabledBaselineOutput":{ + "type":"structure", + "required":["operationIdentifier"], + "members":{ + "operationIdentifier":{"shape":"OperationIdentifier"} + } + }, "UpdateEnabledControlInput":{ "type":"structure", "required":[ diff --git a/apis/controltower/2018-05-10/docs-2.json b/apis/controltower/2018-05-10/docs-2.json index 2e65d118c42..ba7d53eb9d0 100644 --- a/apis/controltower/2018-05-10/docs-2.json +++ b/apis/controltower/2018-05-10/docs-2.json @@ -4,18 +4,27 @@ "operations": { "CreateLandingZone": "

Creates a new landing zone. This API call starts an asynchronous operation that creates and configures a landing zone, based on the parameters specified in the manifest JSON file.

", "DeleteLandingZone": "

Decommissions a landing zone. This API call starts an asynchronous operation that deletes Amazon Web Services Control Tower resources deployed in accounts managed by Amazon Web Services Control Tower.

", - "DisableControl": "

This API call turns off a control. It starts an asynchronous operation that deletes Amazon Web Services resources on the specified organizational unit and the accounts it contains. The resources will vary according to the control that you specify. For usage examples, see the Amazon Web Services Control Tower User Guide .

", + "DisableBaseline": "

Disable an EnabledBaseline resource on the specified Target. This API starts an asynchronous operation to remove all resources deployed as part of the baseline enablement. The resource will vary depending on the enabled baseline.

", + "DisableControl": "

This API call turns off a control. It starts an asynchronous operation that deletes AWS resources on the specified organizational unit and the accounts it contains. The resources will vary according to the control that you specify. For usage examples, see the Amazon Web Services Control Tower User Guide .

", + "EnableBaseline": "

Enable (apply) a Baseline to a Target. This API starts an asynchronous operation to deploy resources specified by the Baseline to the specified Target.

", "EnableControl": "

This API call activates a control. It starts an asynchronous operation that creates Amazon Web Services resources on the specified organizational unit and the accounts it contains. The resources created will vary according to the control that you specify. For usage examples, see the Amazon Web Services Control Tower User Guide .

", + "GetBaseline": "

Retrieve details about an existing Baseline resource by specifying its identifier.

", + "GetBaselineOperation": "

Returns the details of an asynchronous baseline operation, as initiated by any of these APIs: EnableBaseline, DisableBaseline, UpdateEnabledBaseline, ResetEnabledBaseline. A status message is displayed in case of operation failure.

", "GetControlOperation": "

Returns the status of a particular EnableControl or DisableControl operation. Displays a message in case of error. Details for an operation are available for 90 days. For usage examples, see the Amazon Web Services Control Tower User Guide .

", + "GetEnabledBaseline": "

Retrieve details of an EnabledBaseline resource by specifying its identifier.

", "GetEnabledControl": "

Retrieves details about an enabled control. For usage examples, see the Amazon Web Services Control Tower User Guide .

", "GetLandingZone": "

Returns details about the landing zone. Displays a message in case of error.

", "GetLandingZoneOperation": "

Returns the status of the specified landing zone operation. Details for an operation are available for 60 days.

", + "ListBaselines": "

Returns a summary list of all available baselines.

", + "ListEnabledBaselines": "

Returns a list of summaries describing EnabledBaseline resources. You can filter the list by the corresponding Baseline or Target of the EnabledBaseline resources.

", "ListEnabledControls": "

Lists the controls enabled by Amazon Web Services Control Tower on the specified organizational unit and the accounts it contains. For usage examples, see the Amazon Web Services Control Tower User Guide .

", "ListLandingZones": "

Returns the landing zone ARN for the landing zone deployed in your managed account. This API also creates an ARN for existing accounts that do not yet have a landing zone ARN.

Returns one landing zone ARN.

", "ListTagsForResource": "

Returns a list of tags associated with the resource. For usage examples, see the Amazon Web Services Control Tower User Guide .

", + "ResetEnabledBaseline": "

Re-enables an EnabledBaseline resource. For example, this API can re-apply the existing Baseline after a new member account is moved to the target OU.

", "ResetLandingZone": "

This API call resets a landing zone. It starts an asynchronous operation that resets the landing zone to the parameters specified in its original configuration.

", "TagResource": "

Applies tags to a resource. For usage examples, see the Amazon Web Services Control Tower User Guide .

", "UntagResource": "

Removes tags from a resource. For usage examples, see the Amazon Web Services Control Tower User Guide .

", + "UpdateEnabledBaseline": "

Updates an EnabledBaseline resource's applied parameters or version.

", "UpdateEnabledControl": "

Updates the configuration of an already enabled control.

If the enabled control shows an EnablementStatus of SUCCEEDED, supply parameters that are different from the currently configured parameters. Otherwise, Amazon Web Services Control Tower will not accept the request.

If the enabled control shows an EnablementStatus of FAILED, Amazon Web Services Control Tower will update the control to match any valid parameters that you supply.

If the DriftSummary status for the control shows as DRIFTED, you cannot call this API. Instead, you can update the control by calling DisableControl and again calling EnableControl, or you can run an extending governance operation. For usage examples, see the Amazon Web Services Control Tower User Guide

", "UpdateLandingZone": "

This API call updates the landing zone. It starts an asynchronous operation that updates the landing zone based on the new landing zone version, or on the changed parameters specified in the updated manifest file.

" }, @@ -29,18 +38,73 @@ "base": null, "refs": { "CreateLandingZoneOutput$arn": "

The ARN of the landing zone resource.

", + "DisableBaselineInput$enabledBaselineIdentifier": "

Identifier of the EnabledBaseline resource to be deactivated, in ARN format.

", + "EnableBaselineInput$baselineIdentifier": "

The ARN of the baseline to be enabled.

", + "EnableBaselineInput$targetIdentifier": "

The ARN of the target on which the baseline will be enabled. Only OUs are supported as targets.

", + "EnableBaselineOutput$arn": "

The ARN of the EnabledBaseline resource.

", "EnableControlOutput$arn": "

The ARN of the EnabledControl resource.

", + "EnabledBaselineBaselineIdentifiers$member": null, + "EnabledBaselineDetails$arn": "

The ARN of the EnabledBaseline resource.

", + "EnabledBaselineSummary$arn": "

The ARN of the EnabledBaseline resource

", + "EnabledBaselineTargetIdentifiers$member": null, "EnabledControlDetails$arn": "

The ARN of the enabled control.

", "EnabledControlSummary$arn": "

The ARN of the enabled control.

", + "GetEnabledBaselineInput$enabledBaselineIdentifier": "

Identifier of the EnabledBaseline resource to be retrieved, in ARN format.

", "GetEnabledControlInput$enabledControlIdentifier": "

The controlIdentifier of the enabled control.

", "LandingZoneDetail$arn": "

The ARN of the landing zone.

", "LandingZoneSummary$arn": "

The ARN of the landing zone.

", "ListTagsForResourceInput$resourceArn": "

The ARN of the resource.

", + "ResetEnabledBaselineInput$enabledBaselineIdentifier": "

Specifies the ID of the EnabledBaseline resource to be re-enabled, in ARN format.

", "TagResourceInput$resourceArn": "

The ARN of the resource to be tagged.

", "UntagResourceInput$resourceArn": "

The ARN of the resource.

", + "UpdateEnabledBaselineInput$enabledBaselineIdentifier": "

Specifies the EnabledBaseline resource to be updated.

", "UpdateEnabledControlInput$enabledControlIdentifier": "

The ARN of the enabled control that will be updated.

" } }, + "BaselineArn": { + "base": null, + "refs": { + "GetBaselineInput$baselineIdentifier": "

The ARN of the Baseline resource to be retrieved.

", + "GetBaselineOutput$arn": "

The baseline ARN.

" + } + }, + "BaselineOperation": { + "base": "

An object of shape BaselineOperation, returning details about the specified Baseline operation ID.

", + "refs": { + "GetBaselineOperationOutput$baselineOperation": "

A baselineOperation object that shows information about the specified operation ID.

" + } + }, + "BaselineOperationStatus": { + "base": null, + "refs": { + "BaselineOperation$status": "

An enumerated type (enum) with possible values of SUCCEEDED, FAILED, or IN_PROGRESS.

" + } + }, + "BaselineOperationType": { + "base": null, + "refs": { + "BaselineOperation$operationType": "

An enumerated type (enum) with possible values of ENABLE_BASELINE, DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or RESET_ENABLED_BASELINE.

" + } + }, + "BaselineSummary": { + "base": "

Returns a summary of information about a Baseline object.

", + "refs": { + "Baselines$member": null + } + }, + "BaselineVersion": { + "base": null, + "refs": { + "EnableBaselineInput$baselineVersion": "

The specific version to be enabled of the specified baseline.

", + "UpdateEnabledBaselineInput$baselineVersion": "

Specifies the new Baseline version, to which the EnabledBaseline should be updated.

" + } + }, + "Baselines": { + "base": null, + "refs": { + "ListBaselinesOutput$baselines": "

A list of Baseline object details.

" + } + }, "ConflictException": { "base": "

Updating or deleting the resource can cause an inconsistent state.

", "refs": { @@ -49,8 +113,8 @@ "ControlIdentifier": { "base": null, "refs": { - "DisableControlInput$controlIdentifier": "

The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the landing zone Region deny control. For information on how to find the controlIdentifier, see the overview page.

", - "EnableControlInput$controlIdentifier": "

The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the landing zone Region deny control. For information on how to find the controlIdentifier, see the overview page.

", + "DisableControlInput$controlIdentifier": "

The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny control. For information on how to find the controlIdentifier, see the overview page.

", + "EnableControlInput$controlIdentifier": "

The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny control. For information on how to find the controlIdentifier, see the overview page.

", "EnabledControlDetails$controlIdentifier": "

The control identifier of the enabled control. For information on how to find the controlIdentifier, see the overview page.

", "EnabledControlSummary$controlIdentifier": "

The controlIdentifier of the enabled control.

" } @@ -93,6 +157,16 @@ "refs": { } }, + "DisableBaselineInput": { + "base": null, + "refs": { + } + }, + "DisableBaselineOutput": { + "base": null, + "refs": { + } + }, "DisableControlInput": { "base": null, "refs": { @@ -106,7 +180,7 @@ "Document": { "base": null, "refs": { - "EnabledControlParameter$value": "

The value of a key/value pair. It can be of type array string, number, object, or boolean.

", + "EnabledControlParameter$value": "

The value of a key/value pair.

", "EnabledControlParameterSummary$value": "

The value of a key/value pair.

" } }, @@ -123,6 +197,16 @@ "EnabledControlSummary$driftStatusSummary": "

The drift status of the enabled control.

" } }, + "EnableBaselineInput": { + "base": null, + "refs": { + } + }, + "EnableBaselineOutput": { + "base": null, + "refs": { + } + }, "EnableControlInput": { "base": null, "refs": { @@ -133,6 +217,74 @@ "refs": { } }, + "EnabledBaselineBaselineIdentifiers": { + "base": null, + "refs": { + "EnabledBaselineFilter$baselineIdentifiers": "

Identifiers for the Baseline objects returned as part of the filter operation.

" + } + }, + "EnabledBaselineDetails": { + "base": "

Details of the EnabledBaseline resource.

", + "refs": { + "GetEnabledBaselineOutput$enabledBaselineDetails": "

Details of the EnabledBaseline resource.

" + } + }, + "EnabledBaselineFilter": { + "base": "

A filter applied on the ListEnabledBaseline operation. Allowed filters are baselineIdentifiers and targetIdentifiers. The filter can be applied for either, or both.

", + "refs": { + "ListEnabledBaselinesInput$filter": "

A filter applied on the ListEnabledBaseline operation. Allowed filters are baselineIdentifiers and targetIdentifiers. The filter can be applied for either, or both.

" + } + }, + "EnabledBaselineParameter": { + "base": "

A key-value parameter to an EnabledBaseline resource.

", + "refs": { + "EnabledBaselineParameters$member": null + } + }, + "EnabledBaselineParameterDocument": { + "base": null, + "refs": { + "EnabledBaselineParameter$value": "

A low-level Document object of any type (for example, a Java Object).

", + "EnabledBaselineParameterSummary$value": "

A low-level document object of any type (for example, a Java Object).

" + } + }, + "EnabledBaselineParameterSummaries": { + "base": null, + "refs": { + "EnabledBaselineDetails$parameters": "

Shows the parameters that are applied when enabling this Baseline.

" + } + }, + "EnabledBaselineParameterSummary": { + "base": "

Summary of an applied parameter to an EnabledBaseline resource.

", + "refs": { + "EnabledBaselineParameterSummaries$member": null + } + }, + "EnabledBaselineParameters": { + "base": null, + "refs": { + "EnableBaselineInput$parameters": "

A list of key-value objects that specify enablement parameters, where key is a string and value is a document of any type.

", + "UpdateEnabledBaselineInput$parameters": "

Parameters to apply when making an update.

" + } + }, + "EnabledBaselineSummary": { + "base": "

Returns a summary of information about an EnabledBaseline object.

", + "refs": { + "EnabledBaselines$member": null + } + }, + "EnabledBaselineTargetIdentifiers": { + "base": null, + "refs": { + "EnabledBaselineFilter$targetIdentifiers": "

Identifiers for the targets of the Baseline filter operation.

" + } + }, + "EnabledBaselines": { + "base": null, + "refs": { + "ListEnabledBaselinesOutput$enabledBaselines": "

Retuens a list of summaries of EnabledBaseline resources.

" + } + }, "EnabledControlDetails": { "base": "

Information about the enabled control.

", "refs": { @@ -140,7 +292,7 @@ } }, "EnabledControlParameter": { - "base": "

A set of parameters that configure the behavior of the enabled control. A key/value pair, where Key is of type String and Value is of type Document.

", + "base": "

A key/value pair, where Key is of type String and Value is of type Document.

", "refs": { "EnabledControlParameters$member": null } @@ -160,7 +312,7 @@ "EnabledControlParameters": { "base": null, "refs": { - "EnableControlInput$parameters": "

An array of EnabledControlParameter objects

", + "EnableControlInput$parameters": "

A list of input parameter values, which are specified to configure the control when you enable it.

", "UpdateEnabledControlInput$parameters": "

A key/value pair, where Key is of type String and Value is of type Document.

" } }, @@ -185,10 +337,32 @@ "EnablementStatusSummary": { "base": "

The deployment summary of the enabled control.

", "refs": { + "EnabledBaselineDetails$statusSummary": null, + "EnabledBaselineSummary$statusSummary": null, "EnabledControlDetails$statusSummary": "

The deployment summary of the enabled control.

", "EnabledControlSummary$statusSummary": "

A short description of the status of the enabled control.

" } }, + "GetBaselineInput": { + "base": null, + "refs": { + } + }, + "GetBaselineOperationInput": { + "base": null, + "refs": { + } + }, + "GetBaselineOperationOutput": { + "base": null, + "refs": { + } + }, + "GetBaselineOutput": { + "base": null, + "refs": { + } + }, "GetControlOperationInput": { "base": null, "refs": { @@ -199,6 +373,16 @@ "refs": { } }, + "GetEnabledBaselineInput": { + "base": null, + "refs": { + } + }, + "GetEnabledBaselineOutput": { + "base": null, + "refs": { + } + }, "GetEnabledControlInput": { "base": null, "refs": { @@ -232,7 +416,7 @@ "Integer": { "base": null, "refs": { - "ThrottlingException$retryAfterSeconds": "

The number of seconds to wait before retrying.

" + "ThrottlingException$retryAfterSeconds": "

The number of seconds the caller should wait before retrying.

" } }, "InternalServerException": { @@ -279,7 +463,7 @@ "LandingZoneStatus": { "base": null, "refs": { - "LandingZoneDetail$status": "

The landing zone deployment status.

" + "LandingZoneDetail$status": "

The landing zone deployment status. One of ACTIVE, PROCESSING, FAILED.

" } }, "LandingZoneSummary": { @@ -297,6 +481,45 @@ "UpdateLandingZoneInput$version": "

The landing zone version, for example, 3.2.

" } }, + "ListBaselinesInput": { + "base": null, + "refs": { + } + }, + "ListBaselinesMaxResults": { + "base": null, + "refs": { + "ListBaselinesInput$maxResults": "

The maximum number of results to be shown.

" + } + }, + "ListBaselinesOutput": { + "base": null, + "refs": { + } + }, + "ListEnabledBaselinesInput": { + "base": null, + "refs": { + } + }, + "ListEnabledBaselinesMaxResults": { + "base": null, + "refs": { + "ListEnabledBaselinesInput$maxResults": "

The maximum number of results to be shown.

" + } + }, + "ListEnabledBaselinesNextToken": { + "base": null, + "refs": { + "ListEnabledBaselinesInput$nextToken": "

A pagination token.

", + "ListEnabledBaselinesOutput$nextToken": "

A pagination token.

" + } + }, + "ListEnabledBaselinesOutput": { + "base": null, + "refs": { + } + }, "ListEnabledControlsInput": { "base": null, "refs": { @@ -342,9 +565,9 @@ "Manifest": { "base": null, "refs": { - "CreateLandingZoneInput$manifest": "

The manifest JSON file is a text file that describes your Amazon Web Services resources. For examples, review Launch your landing zone.

", - "LandingZoneDetail$manifest": "

The landing zone manifest JSON text file that specifies the landing zone configurations.

", - "UpdateLandingZoneInput$manifest": "

The manifest JSON file is a text file that describes your Amazon Web Services resources. For examples, review Launch your landing zone.

" + "CreateLandingZoneInput$manifest": "

The manifest.yaml file is a text file that describes your Amazon Web Services resources. For examples, review The manifest file.

", + "LandingZoneDetail$manifest": "

The landing zone manifest.yaml text file that specifies the landing zone configurations.

", + "UpdateLandingZoneInput$manifest": "

The manifest.yaml file is a text file that describes your Amazon Web Services resources. For examples, review The manifest file.

" } }, "MaxResults": { @@ -356,14 +579,20 @@ "OperationIdentifier": { "base": null, "refs": { + "BaselineOperation$operationIdentifier": "

The identifier of the specified operation.

", "CreateLandingZoneOutput$operationIdentifier": "

A unique identifier assigned to a CreateLandingZone operation. You can use this identifier as an input of GetLandingZoneOperation to check the operation's status.

", "DeleteLandingZoneOutput$operationIdentifier": "

>A unique identifier assigned to a DeleteLandingZone operation. You can use this identifier as an input parameter of GetLandingZoneOperation to check the operation's status.

", + "DisableBaselineOutput$operationIdentifier": "

The ID (in UUID format) of the asynchronous DisableBaseline operation. This operationIdentifier is used to track status through calls to the GetBaselineOperation API.

", "DisableControlOutput$operationIdentifier": "

The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.

", + "EnableBaselineOutput$operationIdentifier": "

The ID (in UUID format) of the asynchronous EnableBaseline operation. This operationIdentifier is used to track status through calls to the GetBaselineOperation API.

", "EnableControlOutput$operationIdentifier": "

The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.

", "EnablementStatusSummary$lastOperationIdentifier": "

The last operation identifier for the enabled control.

", + "GetBaselineOperationInput$operationIdentifier": "

The operation ID returned from mutating asynchronous APIs (Enable, Disable, Update, Reset).

", "GetControlOperationInput$operationIdentifier": "

The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.

", "GetLandingZoneOperationInput$operationIdentifier": "

A unique identifier assigned to a landing zone operation.

", + "ResetEnabledBaselineOutput$operationIdentifier": "

The ID (in UUID format) of the asynchronous ResetEnabledBaseline operation. This operationIdentifier is used to track status through calls to the GetBaselineOperation API.

", "ResetLandingZoneOutput$operationIdentifier": "

A unique identifier assigned to a ResetLandingZone operation. You can use this identifier as an input parameter of GetLandingZoneOperation to check the operation's status.

", + "UpdateEnabledBaselineOutput$operationIdentifier": "

The ID (in UUID format) of the asynchronous UpdateEnabledBaseline operation. This operationIdentifier is used to track status through calls to the GetBaselineOperation API.

", "UpdateEnabledControlOutput$operationIdentifier": "

The operation identifier for this UpdateEnabledControl operation.

", "UpdateLandingZoneOutput$operationIdentifier": "

A unique identifier assigned to a UpdateLandingZone operation. You can use this identifier as an input of GetLandingZoneOperation to check the operation's status.

" } @@ -380,6 +609,16 @@ "Region$name": "

The Amazon Web Services Region name.

" } }, + "ResetEnabledBaselineInput": { + "base": null, + "refs": { + } + }, + "ResetEnabledBaselineOutput": { + "base": null, + "refs": { + } + }, "ResetLandingZoneInput": { "base": null, "refs": { @@ -404,14 +643,30 @@ "base": null, "refs": { "AccessDeniedException$message": null, + "BaselineOperation$statusMessage": "

A status message that gives more information about the operation's status, if applicable.

", + "BaselineSummary$arn": "

The full ARN of a Baseline.

", + "BaselineSummary$description": "

A summary description of a Baseline.

", + "BaselineSummary$name": "

The human-readable name of a Baseline.

", "ConflictException$message": null, "ControlOperation$statusMessage": "

If the operation result is FAILED, this string contains a message explaining why the operation failed.

", "DeleteLandingZoneInput$landingZoneIdentifier": "

The unique identifier of the landing zone.

", - "EnabledControlParameter$key": "

The key of a key/value pair. It is of type string.

", + "EnabledBaselineDetails$baselineIdentifier": "

The specific Baseline enabled as part of the EnabledBaseline resource.

", + "EnabledBaselineDetails$baselineVersion": "

The enabled version of the Baseline.

", + "EnabledBaselineDetails$targetIdentifier": "

The target on which to enable the Baseline.

", + "EnabledBaselineParameter$key": "

A string denoting the parameter key.

", + "EnabledBaselineParameterSummary$key": "

A string denoting the parameter key.

", + "EnabledBaselineSummary$baselineIdentifier": "

The specific baseline that is enabled as part of the EnabledBaseline resource.

", + "EnabledBaselineSummary$baselineVersion": "

The enabled version of the baseline.

", + "EnabledBaselineSummary$targetIdentifier": "

The target upon which the baseline is enabled.

", + "EnabledControlParameter$key": "

The key of a key/value pair.

", "EnabledControlParameterSummary$key": "

The key of a key/value pair.

", + "GetBaselineOutput$description": "

A description of the baseline.

", + "GetBaselineOutput$name": "

A user-friendly name for the baseline.

", "GetLandingZoneInput$landingZoneIdentifier": "

The unique identifier of the landing zone.

", "InternalServerException$message": null, "LandingZoneOperationDetail$statusMessage": "

If the operation result is FAILED, this string contains a message explaining why the operation failed.

", + "ListBaselinesInput$nextToken": "

A pagination token.

", + "ListBaselinesOutput$nextToken": "

A pagination token.

", "ListEnabledControlsInput$nextToken": "

The token to continue the list from a previous API call with the same parameters.

", "ListEnabledControlsOutput$nextToken": "

Retrieves the next page of results. If the string is empty, the response is the end of the results.

", "ListLandingZonesInput$nextToken": "

The token to continue the list from a previous API call with the same parameters.

", @@ -421,7 +676,7 @@ "ServiceQuotaExceededException$message": null, "ThrottlingException$message": null, "ThrottlingException$quotaCode": "

The ID of the service quota that was exceeded.

", - "ThrottlingException$serviceCode": "

The ID of the service that is associated with the error.

", + "ThrottlingException$serviceCode": "

The ID of the service that is associated with the error.

", "UpdateLandingZoneInput$landingZoneIdentifier": "

The unique identifier of the landing zone.

", "ValidationException$message": null } @@ -450,6 +705,7 @@ "base": null, "refs": { "CreateLandingZoneInput$tags": "

Tags to be applied to the landing zone.

", + "EnableBaselineInput$tags": "

Tags associated with input to EnableBaseline.

", "EnableControlInput$tags": "

Tags to be applied to the EnabledControl resource.

", "ListTagsForResourceOutput$tags": "

A list of tags, as key:value strings.

", "TagResourceInput$tags": "

Tags to be applied to the resource.

" @@ -495,6 +751,8 @@ "Timestamp": { "base": null, "refs": { + "BaselineOperation$endTime": "

The end time of the operation (if applicable), in ISO 8601 format.

", + "BaselineOperation$startTime": "

The start time of the operation, in ISO 8601 format.

", "LandingZoneOperationDetail$endTime": "

The landing zone operation end time.

", "LandingZoneOperationDetail$startTime": "

The landing zone operation start time.

" } @@ -509,6 +767,16 @@ "refs": { } }, + "UpdateEnabledBaselineInput": { + "base": null, + "refs": { + } + }, + "UpdateEnabledBaselineOutput": { + "base": null, + "refs": { + } + }, "UpdateEnabledControlInput": { "base": null, "refs": { diff --git a/apis/controltower/2018-05-10/paginators-1.json b/apis/controltower/2018-05-10/paginators-1.json index 24f2f2bdf59..10d8dd60fc1 100644 --- a/apis/controltower/2018-05-10/paginators-1.json +++ b/apis/controltower/2018-05-10/paginators-1.json @@ -1,5 +1,17 @@ { "pagination": { + "ListBaselines": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "baselines" + }, + "ListEnabledBaselines": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "enabledBaselines" + }, "ListEnabledControls": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/apis/lookoutequipment/2020-12-15/api-2.json b/apis/lookoutequipment/2020-12-15/api-2.json index 9b17bdc1fd2..2f21783519e 100644 --- a/apis/lookoutequipment/2020-12-15/api-2.json +++ b/apis/lookoutequipment/2020-12-15/api-2.json @@ -1031,7 +1031,8 @@ "DataPreProcessingConfiguration":{"shape":"DataPreProcessingConfiguration"}, "ServerSideKmsKeyId":{"shape":"NameOrArn"}, "Tags":{"shape":"TagList"}, - "OffCondition":{"shape":"OffCondition"} + "OffCondition":{"shape":"OffCondition"}, + "ModelDiagnosticsOutputConfiguration":{"shape":"ModelDiagnosticsOutputConfiguration"} } }, "CreateModelResponse":{ @@ -1129,7 +1130,7 @@ "type":"string", "max":2048, "min":20, - "pattern":"arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\\-]*:[0-9]{12}:dataset\\/.+" + "pattern":"arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\\-]*:[0-9]{12}:dataset\\/[0-9a-zA-Z_-]{1,200}\\/.+" }, "DatasetIdentifier":{ "type":"string", @@ -1409,7 +1410,8 @@ "NextScheduledRetrainingStartDate":{"shape":"Timestamp"}, "AccumulatedInferenceDataStartTime":{"shape":"Timestamp"}, "AccumulatedInferenceDataEndTime":{"shape":"Timestamp"}, - "RetrainingSchedulerStatus":{"shape":"RetrainingSchedulerStatus"} + "RetrainingSchedulerStatus":{"shape":"RetrainingSchedulerStatus"}, + "ModelDiagnosticsOutputConfiguration":{"shape":"ModelDiagnosticsOutputConfiguration"} } }, "DescribeModelVersionRequest":{ @@ -1457,7 +1459,9 @@ "PriorModelMetrics":{"shape":"ModelMetrics"}, "RetrainingAvailableDataInDays":{"shape":"Integer"}, "AutoPromotionResult":{"shape":"AutoPromotionResult"}, - "AutoPromotionResultReason":{"shape":"AutoPromotionResultReason"} + "AutoPromotionResultReason":{"shape":"AutoPromotionResultReason"}, + "ModelDiagnosticsOutputConfiguration":{"shape":"ModelDiagnosticsOutputConfiguration"}, + "ModelDiagnosticsResultsObject":{"shape":"S3Object"} } }, "DescribeResourcePolicyRequest":{ @@ -2162,6 +2166,22 @@ "min":20, "pattern":"arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\\-]*:[0-9]{12}:model\\/.+" }, + "ModelDiagnosticsOutputConfiguration":{ + "type":"structure", + "required":["S3OutputConfiguration"], + "members":{ + "S3OutputConfiguration":{"shape":"ModelDiagnosticsS3OutputConfiguration"}, + "KmsKeyId":{"shape":"NameOrArn"} + } + }, + "ModelDiagnosticsS3OutputConfiguration":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "Bucket":{"shape":"S3Bucket"}, + "Prefix":{"shape":"S3Prefix"} + } + }, "ModelMetrics":{ "type":"string", "max":50000, @@ -2208,7 +2228,8 @@ "LatestScheduledRetrainingModelVersion":{"shape":"ModelVersion"}, "LatestScheduledRetrainingStartTime":{"shape":"Timestamp"}, "NextScheduledRetrainingStartDate":{"shape":"Timestamp"}, - "RetrainingSchedulerStatus":{"shape":"RetrainingSchedulerStatus"} + "RetrainingSchedulerStatus":{"shape":"RetrainingSchedulerStatus"}, + "ModelDiagnosticsOutputConfiguration":{"shape":"ModelDiagnosticsOutputConfiguration"} } }, "ModelVersion":{ @@ -2219,7 +2240,7 @@ "type":"string", "max":2048, "min":20, - "pattern":"^arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\\-]*:[0-9]{12}:model\\/.+\\/.+\\/model-version\\/[0-9]{1,}$" + "pattern":"^arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\\-]*:[0-9]{12}:model\\/[0-9a-zA-Z_-]{1,200}\\/.+\\/model-version\\/[0-9]{1,}$" }, "ModelVersionSourceType":{ "type":"string", @@ -2692,7 +2713,8 @@ "members":{ "ModelName":{"shape":"ModelName"}, "LabelsInputConfiguration":{"shape":"LabelsInputConfiguration"}, - "RoleArn":{"shape":"IamRoleArn"} + "RoleArn":{"shape":"IamRoleArn"}, + "ModelDiagnosticsOutputConfiguration":{"shape":"ModelDiagnosticsOutputConfiguration"} } }, "UpdateRetrainingSchedulerRequest":{ diff --git a/apis/lookoutequipment/2020-12-15/docs-2.json b/apis/lookoutequipment/2020-12-15/docs-2.json index 11ada2f3376..dd35dccf9dc 100644 --- a/apis/lookoutequipment/2020-12-15/docs-2.json +++ b/apis/lookoutequipment/2020-12-15/docs-2.json @@ -582,7 +582,7 @@ "InferenceExecutionSummaries": { "base": null, "refs": { - "ListInferenceExecutionsResponse$InferenceExecutionSummaries": "

Provides an array of information about the individual inference executions returned from the ListInferenceExecutions operation, including model used, inference scheduler, data configuration, and so on.

" + "ListInferenceExecutionsResponse$InferenceExecutionSummaries": "

Provides an array of information about the individual inference executions returned from the ListInferenceExecutions operation, including model used, inference scheduler, data configuration, and so on.

If you don't supply the InferenceSchedulerName request parameter, or if you supply the name of an inference scheduler that doesn't exist, ListInferenceExecutions returns an empty array in InferenceExecutionSummaries.

" } }, "InferenceExecutionSummary": { @@ -692,7 +692,7 @@ "base": "

Gives statistics about how many files have been ingested, and which files have not been ingested, for a particular ingestion job.

", "refs": { "DescribeDataIngestionJobResponse$IngestedFilesSummary": null, - "DescribeDatasetResponse$IngestedFilesSummary": "

IngestedFilesSummary associated with the given dataset for the latest successful associated ingestion job id.

" + "DescribeDatasetResponse$IngestedFilesSummary": "

IngestedFilesSummary associated with the given dataset for the latest successful associated ingestion job id.

" } }, "IngestionInputConfiguration": { @@ -762,7 +762,7 @@ "MissingCompleteSensorData$AffectedSensorCount": "

Indicates the number of sensors that have data missing completely.

", "MissingSensorData$AffectedSensorCount": "

Indicates the number of sensors that have atleast some data missing.

", "MissingSensorData$TotalNumberOfMissingValues": "

Indicates the total number of missing values across all the sensors.

", - "SensorsWithShortDateRange$AffectedSensorCount": "

Indicates the number of sensors that have less than 90 days of data.

", + "SensorsWithShortDateRange$AffectedSensorCount": "

Indicates the number of sensors that have less than 14 days of data.

", "UnsupportedTimestamps$TotalNumberOfUnsupportedTimestamps": "

Indicates the total number of unsupported timestamps across the ingested data.

" } }, @@ -818,7 +818,7 @@ "LabelSummary$LabelGroupName": "

The name of the label group.

", "LabelsInputConfiguration$LabelGroupName": "

The name of the label group to be used for label data.

", "ListLabelGroupsRequest$LabelGroupNameBeginsWith": "

The beginning of the name of the label groups to be listed.

", - "ListLabelsRequest$LabelGroupName": "

Retruns the name of the label group.

", + "ListLabelsRequest$LabelGroupName": "

Returns the name of the label group.

", "UpdateLabelGroupRequest$LabelGroupName": "

The name of the label group to be updated.

" } }, @@ -855,7 +855,7 @@ "LabelSummaries": { "base": null, "refs": { - "ListLabelsResponse$LabelSummaries": "

A summary of the items in the label group.

" + "ListLabelsResponse$LabelSummaries": "

A summary of the items in the label group.

If you don't supply the LabelGroupName request parameter, or if you supply the name of a label group that doesn't exist, ListLabels returns an empty array in LabelSummaries.

" } }, "LabelSummary": { @@ -1078,6 +1078,22 @@ "UpdateActiveModelVersionResponse$ModelArn": "

The Amazon Resource Name (ARN) of the machine learning model for which the active model version was set.

" } }, + "ModelDiagnosticsOutputConfiguration": { + "base": "

Output configuration information for the pointwise model diagnostics for an Amazon Lookout for Equipment model.

", + "refs": { + "CreateModelRequest$ModelDiagnosticsOutputConfiguration": "

The Amazon S3 location where you want Amazon Lookout for Equipment to save the pointwise model diagnostics. You must also specify the RoleArn request parameter.

", + "DescribeModelResponse$ModelDiagnosticsOutputConfiguration": "

Configuration information for the model's pointwise model diagnostics.

", + "DescribeModelVersionResponse$ModelDiagnosticsOutputConfiguration": "

The Amazon S3 location where Amazon Lookout for Equipment saves the pointwise model diagnostics for the model version.

", + "ModelSummary$ModelDiagnosticsOutputConfiguration": null, + "UpdateModelRequest$ModelDiagnosticsOutputConfiguration": "

The Amazon S3 location where you want Amazon Lookout for Equipment to save the pointwise model diagnostics for the model. You must also specify the RoleArn request parameter.

" + } + }, + "ModelDiagnosticsS3OutputConfiguration": { + "base": "

The Amazon S3 location for the pointwise model diagnostics for an Amazon Lookout for Equipment model.

", + "refs": { + "ModelDiagnosticsOutputConfiguration$S3OutputConfiguration": "

The Amazon S3 location for the pointwise model diagnostics.

" + } + }, "ModelMetrics": { "base": null, "refs": { @@ -1215,7 +1231,7 @@ "ModelVersionSummaries": { "base": null, "refs": { - "ListModelVersionsResponse$ModelVersionSummaries": "

Provides information on the specified model version, including the created time, model and dataset ARNs, and status.

" + "ListModelVersionsResponse$ModelVersionSummaries": "

Provides information on the specified model version, including the created time, model and dataset ARNs, and status.

If you don't supply the ModelName request parameter, or if you supply the name of a model that doesn't exist, ListModelVersions returns an empty array in ModelVersionSummaries.

" } }, "ModelVersionSummary": { @@ -1250,7 +1266,8 @@ "CreateModelRequest$ServerSideKmsKeyId": "

Provides the identifier of the KMS key used to encrypt model data by Amazon Lookout for Equipment.

", "ImportDatasetRequest$ServerSideKmsKeyId": "

Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment.

", "ImportModelVersionRequest$ServerSideKmsKeyId": "

Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment.

", - "InferenceOutputConfiguration$KmsKeyId": "

The ID number for the KMS key key used to encrypt the inference output.

" + "InferenceOutputConfiguration$KmsKeyId": "

The ID number for the KMS key key used to encrypt the inference output.

", + "ModelDiagnosticsOutputConfiguration$KmsKeyId": "

The Amazon Web Services Key Management Service (KMS) key identifier to encrypt the pointwise model diagnostics files.

" } }, "NextToken": { @@ -1368,6 +1385,7 @@ "InferenceS3OutputConfiguration$Bucket": "

The bucket containing the output results from the inference

", "IngestionS3InputConfiguration$Bucket": "

The name of the S3 bucket used for the input data for the data ingestion.

", "LabelsS3InputConfiguration$Bucket": "

The name of the S3 bucket holding the label data.

", + "ModelDiagnosticsS3OutputConfiguration$Bucket": "

The name of the Amazon S3 bucket where the pointwise model diagnostics are located. You must be the owner of the Amazon S3 bucket.

", "S3Object$Bucket": "

The name of the specific S3 bucket.

" } }, @@ -1380,6 +1398,7 @@ "S3Object": { "base": "

Contains information about an S3 bucket.

", "refs": { + "DescribeModelVersionResponse$ModelDiagnosticsResultsObject": "

The Amazon S3 output prefix for where Lookout for Equipment saves the pointwise model diagnostics for the model version.

", "InferenceExecutionSummary$CustomerResultObject": "

The S3 object that the inference execution results were uploaded to.

", "ListOfDiscardedFiles$member": null } @@ -1390,7 +1409,8 @@ "InferenceS3InputConfiguration$Prefix": "

The prefix for the S3 bucket used for the input data for the inference.

", "InferenceS3OutputConfiguration$Prefix": "

The prefix for the S3 bucket used for the output results from the inference.

", "IngestionS3InputConfiguration$Prefix": "

The prefix for the S3 location being used for the input data for the data ingestion.

", - "LabelsS3InputConfiguration$Prefix": "

The prefix for the S3 bucket used for the label data.

" + "LabelsS3InputConfiguration$Prefix": "

The prefix for the S3 bucket used for the label data.

", + "ModelDiagnosticsS3OutputConfiguration$Prefix": "

The Amazon S3 prefix for the location of the pointwise model diagnostics. The prefix specifies the folder and evaluation result file name. (bucket).

When you call CreateModel or UpdateModel, specify the path within the bucket that you want Lookout for Equipment to save the model to. During training, Lookout for Equipment creates the model evaluation model as a compressed JSON file with the name model_diagnostics_results.json.gz.

When you call DescribeModel or DescribeModelVersion, prefix contains the file path and filename of the model evaluation file.

" } }, "SensorName": { @@ -1414,7 +1434,7 @@ "SensorsWithShortDateRange": { "base": "

Entity that comprises information on sensors that have shorter date range.

", "refs": { - "InsufficientSensorData$SensorsWithShortDateRange": "

Parameter that describes the total number of sensors that have a short date range of less than 90 days of data overall.

" + "InsufficientSensorData$SensorsWithShortDateRange": "

Parameter that describes the total number of sensors that have a short date range of less than 14 days of data overall.

" } }, "ServiceQuotaExceededException": { diff --git a/apis/lookoutequipment/2020-12-15/endpoint-rule-set-1.json b/apis/lookoutequipment/2020-12-15/endpoint-rule-set-1.json index 00e0ece3871..e1ad53b092f 100644 --- a/apis/lookoutequipment/2020-12-15/endpoint-rule-set-1.json +++ b/apis/lookoutequipment/2020-12-15/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -83,7 +82,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -96,7 +96,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -110,7 +109,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -133,7 +131,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -168,7 +165,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -179,14 +175,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -200,14 +198,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -216,11 +212,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -231,14 +227,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -252,7 +250,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -272,7 +269,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -283,14 +279,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -301,9 +299,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], diff --git a/apis/qbusiness/2023-11-27/api-2.json b/apis/qbusiness/2023-11-27/api-2.json index 68033b9b208..f07fdceffb9 100644 --- a/apis/qbusiness/2023-11-27/api-2.json +++ b/apis/qbusiness/2023-11-27/api-2.json @@ -1379,6 +1379,12 @@ "type":"boolean", "box":true }, + "BoostingDurationInSeconds":{ + "type":"long", + "box":true, + "max":999999999, + "min":0 + }, "ChatSyncInput":{ "type":"structure", "required":[ @@ -1825,6 +1831,14 @@ "type":"list", "member":{"shape":"DataSource"} }, + "DateAttributeBoostingConfiguration":{ + "type":"structure", + "required":["boostingLevel"], + "members":{ + "boostingDurationInSeconds":{"shape":"BoostingDurationInSeconds"}, + "boostingLevel":{"shape":"DocumentAttributeBoostingLevel"} + } + }, "DeleteApplicationRequest":{ "type":"structure", "required":["applicationId"], @@ -2113,6 +2127,32 @@ "value":{"shape":"DocumentAttributeValue"} } }, + "DocumentAttributeBoostingConfiguration":{ + "type":"structure", + "members":{ + "dateConfiguration":{"shape":"DateAttributeBoostingConfiguration"}, + "numberConfiguration":{"shape":"NumberAttributeBoostingConfiguration"}, + "stringConfiguration":{"shape":"StringAttributeBoostingConfiguration"}, + "stringListConfiguration":{"shape":"StringListAttributeBoostingConfiguration"} + }, + "union":true + }, + "DocumentAttributeBoostingLevel":{ + "type":"string", + "enum":[ + "NONE", + "LOW", + "MEDIUM", + "HIGH", + "VERY_HIGH" + ] + }, + "DocumentAttributeBoostingOverrideMap":{ + "type":"map", + "key":{"shape":"DocumentAttributeKey"}, + "value":{"shape":"DocumentAttributeBoostingConfiguration"}, + "min":1 + }, "DocumentAttributeCondition":{ "type":"structure", "required":[ @@ -3415,7 +3455,11 @@ "FACTUALLY_CORRECT", "COMPLETE", "RELEVANT_SOURCES", - "HELPFUL" + "HELPFUL", + "NOT_BASED_ON_DOCUMENTS", + "NOT_COMPLETE", + "NOT_CONCISE", + "OTHER" ] }, "Messages":{ @@ -3430,6 +3474,7 @@ "type":"structure", "required":["indexId"], "members":{ + "boostingOverride":{"shape":"DocumentAttributeBoostingOverrideMap"}, "indexId":{"shape":"IndexId"} } }, @@ -3438,6 +3483,21 @@ "max":800, "min":1 }, + "NumberAttributeBoostingConfiguration":{ + "type":"structure", + "required":["boostingLevel"], + "members":{ + "boostingLevel":{"shape":"DocumentAttributeBoostingLevel"}, + "boostingType":{"shape":"NumberAttributeBoostingType"} + } + }, + "NumberAttributeBoostingType":{ + "type":"string", + "enum":[ + "PRIORITIZE_LARGER_VALUES", + "PRIORITIZE_SMALLER_VALUES" + ] + }, "OAuth2ClientCredentialConfiguration":{ "type":"structure", "required":[ @@ -3896,6 +3956,37 @@ "max":2048, "min":1 }, + "StringAttributeBoostingConfiguration":{ + "type":"structure", + "required":["boostingLevel"], + "members":{ + "attributeValueBoosting":{"shape":"StringAttributeValueBoosting"}, + "boostingLevel":{"shape":"DocumentAttributeBoostingLevel"} + } + }, + "StringAttributeValueBoosting":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"StringAttributeValueBoostingLevel"}, + "max":10, + "min":1 + }, + "StringAttributeValueBoostingLevel":{ + "type":"string", + "enum":[ + "LOW", + "MEDIUM", + "HIGH", + "VERY_HIGH" + ] + }, + "StringListAttributeBoostingConfiguration":{ + "type":"structure", + "required":["boostingLevel"], + "members":{ + "boostingLevel":{"shape":"DocumentAttributeBoostingLevel"} + } + }, "SubnetId":{ "type":"string", "max":200, diff --git a/apis/qbusiness/2023-11-27/docs-2.json b/apis/qbusiness/2023-11-27/docs-2.json index f8ff1185d51..d37a72f5215 100644 --- a/apis/qbusiness/2023-11-27/docs-2.json +++ b/apis/qbusiness/2023-11-27/docs-2.json @@ -1,13 +1,13 @@ { "version": "2.0", - "service": "

", + "service": "

Amazon Q is in preview release and is subject to change.

This is the Amazon Q (for business use) API Reference. Amazon Q is a fully managed, generative-AI powered enterprise chat assistant that you can deploy within your organization. Amazon Q enhances employee productivity by supporting key tasks such as question-answering, knowledge discovery, writing email messages, summarizing text, drafting document outlines, and brainstorming ideas. Users ask questions of Amazon Q and get answers that are presented in a conversational manner. For an introduction to the service, see the Amazon Q (for business use) Developer Guide .

For an overview of the Amazon Q APIs, see Overview of Amazon Q API operations.

For information about the IAM access control permissions you need to use this API, see IAM roles for Amazon Q in the Amazon Q (for business use) Developer Guide.

You can use the following AWS SDKs to access Amazon Q APIs:

The following resources provide additional information about using the Amazon Q API:

", "operations": { "BatchDeleteDocument": "

Asynchronously deletes one or more documents added using the BatchPutDocument API from an Amazon Q index.

You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch.

", "BatchPutDocument": "

Adds one or more documents to an Amazon Q index.

You use this API to:

You can see the progress of the deletion, and any error messages related to the process, by using CloudWatch.

", "ChatSync": "

Starts or continues a non-streaming Amazon Q conversation.

", "CreateApplication": "

Creates an Amazon Q application.

", "CreateDataSource": "

Creates a data source connector for an Amazon Q application.

CreateDataSource is a synchronous operation. The operation returns 200 if the data source was successfully created. Otherwise, an exception is raised.

", - "CreateIndex": "

Creates an Amazon Q index.

To determine if index creation has completed, check the Status field returned from a call to DescribeIndex. The Status field is set to ACTIVE when the index is ready to use.

Once the index is active, you can index your documents using the BatchPutDocument API or the CreateDataSource API.

", + "CreateIndex": "

Creates an Amazon Q index.

To determine if index creation has completed, check the Status field returned from a call to DescribeIndex. The Status field is set to ACTIVE when the index is ready to use.

Once the index is active, you can index your documents using the BatchPutDocument API or the CreateDataSource API.

", "CreatePlugin": "

Creates an Amazon Q plugin.

", "CreateRetriever": "

Adds a retriever to your Amazon Q application.

", "CreateUser": "

Creates a universally unique identifier (UUID) mapped to a list of local user ids within an application.

", @@ -328,7 +328,7 @@ } }, "AttributeFilter": { - "base": "

Enables filtering of Amazon Q web experience responses based on document attributes or metadata fields.

", + "base": "

Enables filtering of responses based on document attributes or metadata fields.

", "refs": { "AttributeFilter$notFilter": "

Performs a logical NOT operation on all supplied filters.

", "AttributeFilters$member": null, @@ -419,6 +419,12 @@ "ActionReviewPayloadField$required": "

Information about whether the field is required.

" } }, + "BoostingDurationInSeconds": { + "base": null, + "refs": { + "DateAttributeBoostingConfiguration$boostingDurationInSeconds": "

Specifies the duration, in seconds, of a boost applies to a DATE type document attribute.

" + } + }, "ChatSyncInput": { "base": null, "refs": { @@ -681,6 +687,12 @@ "ListDataSourcesResponse$dataSources": "

An array of summary information for one or more data source connector.

" } }, + "DateAttributeBoostingConfiguration": { + "base": "

Provides information on boosting DATE type document attributes.

For more information on how boosting document attributes work in Amazon Q, see Boosting using document attributes.

", + "refs": { + "DocumentAttributeBoostingConfiguration$dateConfiguration": "

Provides information on boosting DATE type document attributes.

" + } + }, "DeleteApplicationRequest": { "base": null, "refs": { @@ -826,8 +838,29 @@ "DocumentAttributes$member": null } }, + "DocumentAttributeBoostingConfiguration": { + "base": "

Provides information on boosting supported Amazon Q document attribute types. When an end user chat query matches document attributes that have been boosted, Amazon Q prioritizes generating responses from content that matches the boosted document attributes.

For STRING and STRING_LIST type document attributes to be used for boosting on the console and the API, they must be enabled for search using the DocumentAttributeConfiguration object of the UpdateIndex API. If you haven't enabled searching on these attributes, you can't boost attributes of these data types on either the console or the API.

For more information on how boosting document attributes work in Amazon Q, see Boosting using document attributes.

", + "refs": { + "DocumentAttributeBoostingOverrideMap$value": null + } + }, + "DocumentAttributeBoostingLevel": { + "base": null, + "refs": { + "DateAttributeBoostingConfiguration$boostingLevel": "

Specifies how much a document attribute is boosted.

", + "NumberAttributeBoostingConfiguration$boostingLevel": "

Specifies the duration, in seconds, of a boost applies to a NUMBER type document attribute.

", + "StringAttributeBoostingConfiguration$boostingLevel": "

Specifies how much a document attribute is boosted.

", + "StringListAttributeBoostingConfiguration$boostingLevel": "

Specifies how much a document attribute is boosted.

" + } + }, + "DocumentAttributeBoostingOverrideMap": { + "base": null, + "refs": { + "NativeIndexConfiguration$boostingOverride": "

Overrides the default boosts applied by Amazon Q to supported document attribute data types.

" + } + }, "DocumentAttributeCondition": { - "base": "

The condition used for the target document attribute or metadata field when ingesting documents into Amazon Q. You use this with DocumentAttributeTarget to apply the condition.

For example, you can create the 'Department' target field and have it prefill department names associated with the documents based on information in the 'Source_URI' field. Set the condition that if the 'Source_URI' field contains 'financial' in its URI value, then prefill the target field 'Department' with the target value 'Finance' for the document.

Amazon Q can't create a target field if it has not already been created as an index field. After you create your index field, you can create a document metadata field using DocumentAttributeTarget. Amazon Q then will map your newly created metadata field to your index field.

", + "base": "

The condition used for the target document attribute or metadata field when ingesting documents into Amazon Q. You use this with DocumentAttributeTarget to apply the condition.

For example, you can create the 'Department' target field and have it prefill department names associated with the documents based on information in the 'Source_URI' field. Set the condition that if the 'Source_URI' field contains 'financial' in its URI value, then prefill the target field 'Department' with the target value 'Finance' for the document.

Amazon Q can't create a target field if it has not already been created as an index field. After you create your index field, you can create a document metadata field using DocumentAttributeTarget. Amazon Q then will map your newly created metadata field to your index field.

", "refs": { "HookConfiguration$invocationCondition": "

The condition used for when a Lambda function should be invoked.

For example, you can specify a condition that if there are empty date-time values, then Amazon Q should invoke a function that inserts the current date-time.

", "InlineDocumentEnrichmentConfiguration$condition": null @@ -850,6 +883,7 @@ "base": null, "refs": { "DocumentAttribute$name": "

The identifier for the attribute.

", + "DocumentAttributeBoostingOverrideMap$key": null, "DocumentAttributeCondition$key": "

The identifier of the document attribute used for the condition.

For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.

Amazon Q currently doesn't support _document_body as an attribute key used for the condition.

", "DocumentAttributeTarget$key": "

The identifier of the target document attribute or metadata field. For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents.

" } @@ -861,7 +895,7 @@ } }, "DocumentAttributeTarget": { - "base": "

The target document attribute or metadata field you want to alter when ingesting documents into Amazon Q.

For example, you can delete all customer identification numbers associated with the documents, stored in the document metadata field called 'Customer_ID' by setting the target key as 'Customer_ID' and the deletion flag to TRUE. This removes all customer ID values in the field 'Customer_ID'. This would scrub personally identifiable information from each document's metadata.

Amazon Q can't create a target field if it has not already been created as an index field. After you create your index field, you can create a document metadata field using DocumentAttributeTarget . Amazon Q will then map your newly created document attribute to your index field.

You can also use this with DocumentAttributeCondition .

", + "base": "

The target document attribute or metadata field you want to alter when ingesting documents into Amazon Q.

For example, you can delete all customer identification numbers associated with the documents, stored in the document metadata field called 'Customer_ID' by setting the target key as 'Customer_ID' and the deletion flag to TRUE. This removes all customer ID values in the field 'Customer_ID'. This would scrub personally identifiable information from each document's metadata.

Amazon Q can't create a target field if it has not already been created as an index field. After you create your index field, you can create a document metadata field using DocumentAttributeTarget . Amazon Q will then map your newly created document attribute to your index field.

You can also use this with DocumentAttributeCondition .

", "refs": { "InlineDocumentEnrichmentConfiguration$target": null } @@ -1172,7 +1206,7 @@ } }, "HookConfiguration": { - "base": "

Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents into Amazon Q.

You can configure your Lambda function using PreExtractionHookConfiguration if you want to apply advanced alterations on the original or raw documents.

If you want to apply advanced alterations on the Amazon Q structured documents, you must configure your Lambda function using PostExtractionHookConfiguration.

You can only invoke one Lambda function. However, this function can invoke other functions it requires.

For more information, see Custom document enrichment.

", + "base": "

Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents into Amazon Q.

You can configure your Lambda function using PreExtractionHookConfiguration if you want to apply advanced alterations on the original or raw documents.

If you want to apply advanced alterations on the Amazon Q structured documents, you must configure your Lambda function using PostExtractionHookConfiguration.

You can only invoke one Lambda function. However, this function can invoke other functions it requires.

For more information, see Custom document enrichment.

", "refs": { "DocumentEnrichmentConfiguration$postExtractionHookConfiguration": null, "DocumentEnrichmentConfiguration$preExtractionHookConfiguration": null @@ -1275,7 +1309,7 @@ } }, "InlineDocumentEnrichmentConfiguration": { - "base": "

Provides the configuration information for applying basic logic to alter document metadata and content when ingesting documents into Amazon Q.

To apply advanced logic, to go beyond what you can do with basic logic, see HookConfiguration .

For more information, see Custom document enrichment.

", + "base": "

Provides the configuration information for applying basic logic to alter document metadata and content when ingesting documents into Amazon Q.

To apply advanced logic, to go beyond what you can do with basic logic, see HookConfiguration .

For more information, see Custom document enrichment.

", "refs": { "InlineDocumentEnrichmentConfigurations$member": null } @@ -1669,6 +1703,18 @@ "ListWebExperiencesResponse$nextToken": "

If the response is truncated, Amazon Q returns this token, which you can use in a later request to list the next set of messages.

" } }, + "NumberAttributeBoostingConfiguration": { + "base": "

Provides information on boosting NUMBER type document attributes.

For more information on how boosting document attributes work in Amazon Q, see Boosting using document attributes.

", + "refs": { + "DocumentAttributeBoostingConfiguration$numberConfiguration": "

Provides information on boosting NUMBER type document attributes.

" + } + }, + "NumberAttributeBoostingType": { + "base": null, + "refs": { + "NumberAttributeBoostingConfiguration$boostingType": "

Specifies how much a document attribute is boosted.

" + } + }, "OAuth2ClientCredentialConfiguration": { "base": "

Information about the OAuth 2.0 authentication credential/token used to configure a plugin.

", "refs": { @@ -1895,7 +1941,7 @@ "RuleType": { "base": null, "refs": { - "Rule$ruleType": "

The type fo rule.

" + "Rule$ruleType": "

The type of rule.

" } }, "Rules": { @@ -2028,6 +2074,7 @@ "SourceAttribution$snippet": "

The content extract from the document on which the generated response is based.

", "SourceAttribution$title": "

The title of the document which is the source for the Amazon Q generated response.

", "SourceAttribution$url": "

The URL of the document which is the source for the Amazon Q generated response.

", + "StringAttributeValueBoosting$key": null, "UpdateUserRequest$userId": "

The email id attached to the user.

", "UserAlias$userId": "

The identifier of the user id associated with the user aliases.

", "UserGroups$member": null, @@ -2036,6 +2083,30 @@ "ValidationExceptionField$name": "

The field name where the invalid entry was detected.

" } }, + "StringAttributeBoostingConfiguration": { + "base": "

Provides information on boosting STRING type document attributes.

For STRING and STRING_LIST type document attributes to be used for boosting on the console and the API, they must be enabled for search using the DocumentAttributeConfiguration object of the UpdateIndex API. If you haven't enabled searching on these attributes, you can't boost attributes of these data types on either the console or the API.

For more information on how boosting document attributes work in Amazon Q, see Boosting using document attributes.

", + "refs": { + "DocumentAttributeBoostingConfiguration$stringConfiguration": "

Provides information on boosting STRING type document attributes.

" + } + }, + "StringAttributeValueBoosting": { + "base": null, + "refs": { + "StringAttributeBoostingConfiguration$attributeValueBoosting": "

Specifies specific values of a STRING type document attribute being boosted.

" + } + }, + "StringAttributeValueBoostingLevel": { + "base": null, + "refs": { + "StringAttributeValueBoosting$value": null + } + }, + "StringListAttributeBoostingConfiguration": { + "base": "

Provides information on boosting STRING_LIST type document attributes.

For STRING and STRING_LIST type document attributes to be used for boosting on the console and the API, they must be enabled for search using the DocumentAttributeConfiguration object of the UpdateIndex API. If you haven't enabled searching on these attributes, you can't boost attributes of these data types on either the console or the API.

For more information on how boosting document attributes work in Amazon Q, see Boosting using document attributes.

", + "refs": { + "DocumentAttributeBoostingConfiguration$stringListConfiguration": "

Provides information on boosting STRING_LIST type document attributes.

" + } + }, "SubnetId": { "base": null, "refs": { @@ -2211,7 +2282,7 @@ "TopicDescription": { "base": null, "refs": { - "TopicConfiguration$description": "

A description for your topic control configuration. Use this outline how the large language model (LLM) should use this topic control configuration.

" + "TopicConfiguration$description": "

A description for your topic control configuration. Use this to outline how the large language model (LLM) should use this topic control configuration.

" } }, "UntagResourceRequest": { diff --git a/gems/aws-partitions/CHANGELOG.md b/gems/aws-partitions/CHANGELOG.md index 65bee747bf4..f2a6a2c60e7 100644 --- a/gems/aws-partitions/CHANGELOG.md +++ b/gems/aws-partitions/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.891.0 (2024-02-14) +------------------ + +* Feature - Updated the partitions source data the determines the AWS service regions and endpoints. + 1.890.0 (2024-02-13) ------------------ diff --git a/gems/aws-partitions/VERSION b/gems/aws-partitions/VERSION index 84b7f894528..a937c71dbc4 100644 --- a/gems/aws-partitions/VERSION +++ b/gems/aws-partitions/VERSION @@ -1 +1 @@ -1.890.0 +1.891.0 diff --git a/gems/aws-partitions/partitions.json b/gems/aws-partitions/partitions.json index 8ed378172ba..4a8041be452 100644 --- a/gems/aws-partitions/partitions.json +++ b/gems/aws-partitions/partitions.json @@ -11569,9 +11569,12 @@ "endpoints" : { "ap-northeast-1" : { }, "ap-northeast-2" : { }, + "ap-northeast-3" : { }, "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ap-southeast-4" : { }, + "ca-central-1" : { }, "eu-central-1" : { }, "eu-north-1" : { }, "eu-west-1" : { }, @@ -13288,6 +13291,13 @@ } } }, + "private-networks" : { + "endpoints" : { + "us-east-1" : { }, + "us-east-2" : { }, + "us-west-2" : { } + } + }, "profile" : { "endpoints" : { "af-south-1" : { }, @@ -26236,6 +26246,16 @@ } } }, + "api.pricing" : { + "defaults" : { + "credentialScope" : { + "service" : "pricing" + } + }, + "endpoints" : { + "us-iso-east-1" : { } + } + }, "api.sagemaker" : { "endpoints" : { "us-iso-east-1" : { } @@ -26267,6 +26287,11 @@ "us-iso-west-1" : { } } }, + "arc-zonal-shift" : { + "endpoints" : { + "us-iso-east-1" : { } + } + }, "athena" : { "endpoints" : { "us-iso-east-1" : { } @@ -27046,6 +27071,16 @@ } } }, + "api.pricing" : { + "defaults" : { + "credentialScope" : { + "service" : "pricing" + } + }, + "endpoints" : { + "us-isob-east-1" : { } + } + }, "api.sagemaker" : { "endpoints" : { "us-isob-east-1" : { } @@ -27069,6 +27104,11 @@ "us-isob-east-1" : { } } }, + "arc-zonal-shift" : { + "endpoints" : { + "us-isob-east-1" : { } + } + }, "autoscaling" : { "defaults" : { "protocols" : [ "http", "https" ] diff --git a/gems/aws-sdk-controltower/CHANGELOG.md b/gems/aws-sdk-controltower/CHANGELOG.md index 1ce95374cdc..2e92530d653 100644 --- a/gems/aws-sdk-controltower/CHANGELOG.md +++ b/gems/aws-sdk-controltower/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.18.0 (2024-02-14) +------------------ + +* Feature - Adds support for new Baseline and EnabledBaseline APIs for automating multi-account governance. + 1.17.0 (2024-01-26) ------------------ diff --git a/gems/aws-sdk-controltower/VERSION b/gems/aws-sdk-controltower/VERSION index 092afa15df4..84cc529467b 100644 --- a/gems/aws-sdk-controltower/VERSION +++ b/gems/aws-sdk-controltower/VERSION @@ -1 +1 @@ -1.17.0 +1.18.0 diff --git a/gems/aws-sdk-controltower/lib/aws-sdk-controltower.rb b/gems/aws-sdk-controltower/lib/aws-sdk-controltower.rb index 1aa0fd3e75d..93b87286670 100644 --- a/gems/aws-sdk-controltower/lib/aws-sdk-controltower.rb +++ b/gems/aws-sdk-controltower/lib/aws-sdk-controltower.rb @@ -52,6 +52,6 @@ # @!group service module Aws::ControlTower - GEM_VERSION = '1.17.0' + GEM_VERSION = '1.18.0' end diff --git a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/client.rb b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/client.rb index 12bdf7d831a..0e1bf0f2279 100644 --- a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/client.rb +++ b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/client.rb @@ -393,9 +393,8 @@ def initialize(*args) # parameters specified in the manifest JSON file. # # @option params [required, Hash,Array,String,Numeric,Boolean] :manifest - # The manifest JSON file is a text file that describes your Amazon Web - # Services resources. For examples, review [Launch your landing - # zone][1]. + # The manifest.yaml file is a text file that describes your Amazon Web + # Services resources. For examples, review [The manifest file][1]. # # Document type used to carry open content # (Hash,Array,String,Numeric,Boolean). A document type value is @@ -404,7 +403,7 @@ def initialize(*args) # # # - # [1]: https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch + # [1]: https://docs.aws.amazon.com/controltower/latest/userguide/the-manifest-file # # @option params [Hash] :tags # Tags to be applied to the landing zone. @@ -472,11 +471,43 @@ def delete_landing_zone(params = {}, options = {}) req.send_request(options) end + # Disable an `EnabledBaseline` resource on the specified Target. This + # API starts an asynchronous operation to remove all resources deployed + # as part of the baseline enablement. The resource will vary depending + # on the enabled baseline. + # + # @option params [required, String] :enabled_baseline_identifier + # Identifier of the `EnabledBaseline` resource to be deactivated, in ARN + # format. + # + # @return [Types::DisableBaselineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::DisableBaselineOutput#operation_identifier #operation_identifier} => String + # + # @example Request syntax with placeholder values + # + # resp = client.disable_baseline({ + # enabled_baseline_identifier: "Arn", # required + # }) + # + # @example Response structure + # + # resp.operation_identifier #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DisableBaseline AWS API Documentation + # + # @overload disable_baseline(params = {}) + # @param [Hash] params ({}) + def disable_baseline(params = {}, options = {}) + req = build_request(:disable_baseline, params) + req.send_request(options) + end + # This API call turns off a control. It starts an asynchronous operation - # that deletes Amazon Web Services resources on the specified - # organizational unit and the accounts it contains. The resources will - # vary according to the control that you specify. For usage examples, - # see [ *the Amazon Web Services Control Tower User Guide* ][1]. + # that deletes AWS resources on the specified organizational unit and + # the accounts it contains. The resources will vary according to the + # control that you specify. For usage examples, see [ *the Amazon Web + # Services Control Tower User Guide* ][1]. # # # @@ -484,9 +515,9 @@ def delete_landing_zone(params = {}, options = {}) # # @option params [required, String] :control_identifier # The ARN of the control. Only **Strongly recommended** and **Elective** - # controls are permitted, with the exception of the **landing zone - # Region deny** control. For information on how to find the - # `controlIdentifier`, see [the overview page][1]. + # controls are permitted, with the exception of the **Region deny** + # control. For information on how to find the `controlIdentifier`, see + # [the overview page][1]. # # # @@ -524,6 +555,64 @@ def disable_control(params = {}, options = {}) req.send_request(options) end + # Enable (apply) a `Baseline` to a Target. This API starts an + # asynchronous operation to deploy resources specified by the `Baseline` + # to the specified Target. + # + # @option params [required, String] :baseline_identifier + # The ARN of the baseline to be enabled. + # + # @option params [required, String] :baseline_version + # The specific version to be enabled of the specified baseline. + # + # @option params [Array] :parameters + # A list of `key-value` objects that specify enablement parameters, + # where `key` is a string and `value` is a document of any type. + # + # @option params [Hash] :tags + # Tags associated with input to `EnableBaseline`. + # + # @option params [required, String] :target_identifier + # The ARN of the target on which the baseline will be enabled. Only OUs + # are supported as targets. + # + # @return [Types::EnableBaselineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::EnableBaselineOutput#arn #arn} => String + # * {Types::EnableBaselineOutput#operation_identifier #operation_identifier} => String + # + # @example Request syntax with placeholder values + # + # resp = client.enable_baseline({ + # baseline_identifier: "Arn", # required + # baseline_version: "BaselineVersion", # required + # parameters: [ + # { + # key: "String", # required + # value: { # required + # }, + # }, + # ], + # tags: { + # "TagKey" => "TagValue", + # }, + # target_identifier: "Arn", # required + # }) + # + # @example Response structure + # + # resp.arn #=> String + # resp.operation_identifier #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableBaseline AWS API Documentation + # + # @overload enable_baseline(params = {}) + # @param [Hash] params ({}) + def enable_baseline(params = {}, options = {}) + req = build_request(:enable_baseline, params) + req.send_request(options) + end + # This API call activates a control. It starts an asynchronous operation # that creates Amazon Web Services resources on the specified # organizational unit and the accounts it contains. The resources @@ -537,16 +626,17 @@ def disable_control(params = {}, options = {}) # # @option params [required, String] :control_identifier # The ARN of the control. Only **Strongly recommended** and **Elective** - # controls are permitted, with the exception of the **landing zone - # Region deny** control. For information on how to find the - # `controlIdentifier`, see [the overview page][1]. + # controls are permitted, with the exception of the **Region deny** + # control. For information on how to find the `controlIdentifier`, see + # [the overview page][1]. # # # # [1]: https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html # # @option params [Array] :parameters - # An array of `EnabledControlParameter` objects + # A list of input parameter values, which are specified to configure the + # control when you enable it. # # @option params [Hash] :tags # Tags to be applied to the `EnabledControl` resource. @@ -595,6 +685,76 @@ def enable_control(params = {}, options = {}) req.send_request(options) end + # Retrieve details about an existing `Baseline` resource by specifying + # its identifier. + # + # @option params [required, String] :baseline_identifier + # The ARN of the `Baseline` resource to be retrieved. + # + # @return [Types::GetBaselineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetBaselineOutput#arn #arn} => String + # * {Types::GetBaselineOutput#description #description} => String + # * {Types::GetBaselineOutput#name #name} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_baseline({ + # baseline_identifier: "BaselineArn", # required + # }) + # + # @example Response structure + # + # resp.arn #=> String + # resp.description #=> String + # resp.name #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaseline AWS API Documentation + # + # @overload get_baseline(params = {}) + # @param [Hash] params ({}) + def get_baseline(params = {}, options = {}) + req = build_request(:get_baseline, params) + req.send_request(options) + end + + # Returns the details of an asynchronous baseline operation, as + # initiated by any of these APIs: `EnableBaseline`, `DisableBaseline`, + # `UpdateEnabledBaseline`, `ResetEnabledBaseline`. A status message is + # displayed in case of operation failure. + # + # @option params [required, String] :operation_identifier + # The operation ID returned from mutating asynchronous APIs (Enable, + # Disable, Update, Reset). + # + # @return [Types::GetBaselineOperationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetBaselineOperationOutput#baseline_operation #baseline_operation} => Types::BaselineOperation + # + # @example Request syntax with placeholder values + # + # resp = client.get_baseline_operation({ + # operation_identifier: "OperationIdentifier", # required + # }) + # + # @example Response structure + # + # resp.baseline_operation.end_time #=> Time + # resp.baseline_operation.operation_identifier #=> String + # resp.baseline_operation.operation_type #=> String, one of "ENABLE_BASELINE", "DISABLE_BASELINE", "UPDATE_ENABLED_BASELINE", "RESET_ENABLED_BASELINE" + # resp.baseline_operation.start_time #=> Time + # resp.baseline_operation.status #=> String, one of "SUCCEEDED", "FAILED", "IN_PROGRESS" + # resp.baseline_operation.status_message #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaselineOperation AWS API Documentation + # + # @overload get_baseline_operation(params = {}) + # @param [Hash] params ({}) + def get_baseline_operation(params = {}, options = {}) + req = build_request(:get_baseline_operation, params) + req.send_request(options) + end + # Returns the status of a particular `EnableControl` or `DisableControl` # operation. Displays a message in case of error. Details for an # operation are available for 90 days. For usage examples, see [ *the @@ -635,6 +795,43 @@ def get_control_operation(params = {}, options = {}) req.send_request(options) end + # Retrieve details of an `EnabledBaseline` resource by specifying its + # identifier. + # + # @option params [required, String] :enabled_baseline_identifier + # Identifier of the `EnabledBaseline` resource to be retrieved, in ARN + # format. + # + # @return [Types::GetEnabledBaselineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetEnabledBaselineOutput#enabled_baseline_details #enabled_baseline_details} => Types::EnabledBaselineDetails + # + # @example Request syntax with placeholder values + # + # resp = client.get_enabled_baseline({ + # enabled_baseline_identifier: "Arn", # required + # }) + # + # @example Response structure + # + # resp.enabled_baseline_details.arn #=> String + # resp.enabled_baseline_details.baseline_identifier #=> String + # resp.enabled_baseline_details.baseline_version #=> String + # resp.enabled_baseline_details.parameters #=> Array + # resp.enabled_baseline_details.parameters[0].key #=> String + # resp.enabled_baseline_details.status_summary.last_operation_identifier #=> String + # resp.enabled_baseline_details.status_summary.status #=> String, one of "SUCCEEDED", "FAILED", "UNDER_CHANGE" + # resp.enabled_baseline_details.target_identifier #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledBaseline AWS API Documentation + # + # @overload get_enabled_baseline(params = {}) + # @param [Hash] params ({}) + def get_enabled_baseline(params = {}, options = {}) + req = build_request(:get_enabled_baseline, params) + req.send_request(options) + end + # Retrieves details about an enabled control. For usage examples, see [ # *the Amazon Web Services Control Tower User Guide* ][1]. # @@ -743,6 +940,98 @@ def get_landing_zone_operation(params = {}, options = {}) req.send_request(options) end + # Returns a summary list of all available baselines. + # + # @option params [Integer] :max_results + # The maximum number of results to be shown. + # + # @option params [String] :next_token + # A pagination token. + # + # @return [Types::ListBaselinesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListBaselinesOutput#baselines #baselines} => Array<Types::BaselineSummary> + # * {Types::ListBaselinesOutput#next_token #next_token} => String + # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # + # @example Request syntax with placeholder values + # + # resp = client.list_baselines({ + # max_results: 1, + # next_token: "String", + # }) + # + # @example Response structure + # + # resp.baselines #=> Array + # resp.baselines[0].arn #=> String + # resp.baselines[0].description #=> String + # resp.baselines[0].name #=> String + # resp.next_token #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListBaselines AWS API Documentation + # + # @overload list_baselines(params = {}) + # @param [Hash] params ({}) + def list_baselines(params = {}, options = {}) + req = build_request(:list_baselines, params) + req.send_request(options) + end + + # Returns a list of summaries describing `EnabledBaseline` resources. + # You can filter the list by the corresponding `Baseline` or `Target` of + # the `EnabledBaseline` resources. + # + # @option params [Types::EnabledBaselineFilter] :filter + # A filter applied on the `ListEnabledBaseline` operation. Allowed + # filters are `baselineIdentifiers` and `targetIdentifiers`. The filter + # can be applied for either, or both. + # + # @option params [Integer] :max_results + # The maximum number of results to be shown. + # + # @option params [String] :next_token + # A pagination token. + # + # @return [Types::ListEnabledBaselinesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListEnabledBaselinesOutput#enabled_baselines #enabled_baselines} => Array<Types::EnabledBaselineSummary> + # * {Types::ListEnabledBaselinesOutput#next_token #next_token} => String + # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # + # @example Request syntax with placeholder values + # + # resp = client.list_enabled_baselines({ + # filter: { + # baseline_identifiers: ["Arn"], + # target_identifiers: ["Arn"], + # }, + # max_results: 1, + # next_token: "ListEnabledBaselinesNextToken", + # }) + # + # @example Response structure + # + # resp.enabled_baselines #=> Array + # resp.enabled_baselines[0].arn #=> String + # resp.enabled_baselines[0].baseline_identifier #=> String + # resp.enabled_baselines[0].baseline_version #=> String + # resp.enabled_baselines[0].status_summary.last_operation_identifier #=> String + # resp.enabled_baselines[0].status_summary.status #=> String, one of "SUCCEEDED", "FAILED", "UNDER_CHANGE" + # resp.enabled_baselines[0].target_identifier #=> String + # resp.next_token #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListEnabledBaselines AWS API Documentation + # + # @overload list_enabled_baselines(params = {}) + # @param [Hash] params ({}) + def list_enabled_baselines(params = {}, options = {}) + req = build_request(:list_enabled_baselines, params) + req.send_request(options) + end + # Lists the controls enabled by Amazon Web Services Control Tower on the # specified organizational unit and the accounts it contains. For usage # examples, see [ *the Amazon Web Services Control Tower User Guide* @@ -879,6 +1168,37 @@ def list_tags_for_resource(params = {}, options = {}) req.send_request(options) end + # Re-enables an `EnabledBaseline` resource. For example, this API can + # re-apply the existing `Baseline` after a new member account is moved + # to the target OU. + # + # @option params [required, String] :enabled_baseline_identifier + # Specifies the ID of the `EnabledBaseline` resource to be re-enabled, + # in ARN format. + # + # @return [Types::ResetEnabledBaselineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ResetEnabledBaselineOutput#operation_identifier #operation_identifier} => String + # + # @example Request syntax with placeholder values + # + # resp = client.reset_enabled_baseline({ + # enabled_baseline_identifier: "Arn", # required + # }) + # + # @example Response structure + # + # resp.operation_identifier #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetEnabledBaseline AWS API Documentation + # + # @overload reset_enabled_baseline(params = {}) + # @param [Hash] params ({}) + def reset_enabled_baseline(params = {}, options = {}) + req = build_request(:reset_enabled_baseline, params) + req.send_request(options) + end + # This API call resets a landing zone. It starts an asynchronous # operation that resets the landing zone to the parameters specified in # its original configuration. @@ -973,6 +1293,50 @@ def untag_resource(params = {}, options = {}) req.send_request(options) end + # Updates an `EnabledBaseline` resource's applied parameters or + # version. + # + # @option params [required, String] :baseline_version + # Specifies the new `Baseline` version, to which the `EnabledBaseline` + # should be updated. + # + # @option params [required, String] :enabled_baseline_identifier + # Specifies the `EnabledBaseline` resource to be updated. + # + # @option params [Array] :parameters + # Parameters to apply when making an update. + # + # @return [Types::UpdateEnabledBaselineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::UpdateEnabledBaselineOutput#operation_identifier #operation_identifier} => String + # + # @example Request syntax with placeholder values + # + # resp = client.update_enabled_baseline({ + # baseline_version: "BaselineVersion", # required + # enabled_baseline_identifier: "Arn", # required + # parameters: [ + # { + # key: "String", # required + # value: { # required + # }, + # }, + # ], + # }) + # + # @example Response structure + # + # resp.operation_identifier #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UpdateEnabledBaseline AWS API Documentation + # + # @overload update_enabled_baseline(params = {}) + # @param [Hash] params ({}) + def update_enabled_baseline(params = {}, options = {}) + req = build_request(:update_enabled_baseline, params) + req.send_request(options) + end + # Updates the configuration of an already enabled control. # # If the enabled control shows an `EnablementStatus` of SUCCEEDED, @@ -1040,9 +1404,8 @@ def update_enabled_control(params = {}, options = {}) # The unique identifier of the landing zone. # # @option params [required, Hash,Array,String,Numeric,Boolean] :manifest - # The manifest JSON file is a text file that describes your Amazon Web - # Services resources. For examples, review [Launch your landing - # zone][1]. + # The `manifest.yaml` file is a text file that describes your Amazon Web + # Services resources. For examples, review [The manifest file][1]. # # Document type used to carry open content # (Hash,Array,String,Numeric,Boolean). A document type value is @@ -1051,7 +1414,7 @@ def update_enabled_control(params = {}, options = {}) # # # - # [1]: https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch + # [1]: https://docs.aws.amazon.com/controltower/latest/userguide/the-manifest-file # # @option params [required, String] :version # The landing zone version, for example, 3.2. @@ -1095,7 +1458,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-controltower' - context[:gem_version] = '1.17.0' + context[:gem_version] = '1.18.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/client_api.rb b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/client_api.rb index 104fbc7c617..cd68f48b171 100644 --- a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/client_api.rb +++ b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/client_api.rb @@ -15,6 +15,13 @@ module ClientApi AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException') Arn = Shapes::StringShape.new(name: 'Arn') + BaselineArn = Shapes::StringShape.new(name: 'BaselineArn') + BaselineOperation = Shapes::StructureShape.new(name: 'BaselineOperation') + BaselineOperationStatus = Shapes::StringShape.new(name: 'BaselineOperationStatus') + BaselineOperationType = Shapes::StringShape.new(name: 'BaselineOperationType') + BaselineSummary = Shapes::StructureShape.new(name: 'BaselineSummary') + BaselineVersion = Shapes::StringShape.new(name: 'BaselineVersion') + Baselines = Shapes::ListShape.new(name: 'Baselines') ConflictException = Shapes::StructureShape.new(name: 'ConflictException') ControlIdentifier = Shapes::StringShape.new(name: 'ControlIdentifier') ControlOperation = Shapes::StructureShape.new(name: 'ControlOperation') @@ -24,13 +31,28 @@ module ClientApi CreateLandingZoneOutput = Shapes::StructureShape.new(name: 'CreateLandingZoneOutput') DeleteLandingZoneInput = Shapes::StructureShape.new(name: 'DeleteLandingZoneInput') DeleteLandingZoneOutput = Shapes::StructureShape.new(name: 'DeleteLandingZoneOutput') + DisableBaselineInput = Shapes::StructureShape.new(name: 'DisableBaselineInput') + DisableBaselineOutput = Shapes::StructureShape.new(name: 'DisableBaselineOutput') DisableControlInput = Shapes::StructureShape.new(name: 'DisableControlInput') DisableControlOutput = Shapes::StructureShape.new(name: 'DisableControlOutput') Document = Shapes::DocumentShape.new(name: 'Document', document: true) DriftStatus = Shapes::StringShape.new(name: 'DriftStatus') DriftStatusSummary = Shapes::StructureShape.new(name: 'DriftStatusSummary') + EnableBaselineInput = Shapes::StructureShape.new(name: 'EnableBaselineInput') + EnableBaselineOutput = Shapes::StructureShape.new(name: 'EnableBaselineOutput') EnableControlInput = Shapes::StructureShape.new(name: 'EnableControlInput') EnableControlOutput = Shapes::StructureShape.new(name: 'EnableControlOutput') + EnabledBaselineBaselineIdentifiers = Shapes::ListShape.new(name: 'EnabledBaselineBaselineIdentifiers') + EnabledBaselineDetails = Shapes::StructureShape.new(name: 'EnabledBaselineDetails') + EnabledBaselineFilter = Shapes::StructureShape.new(name: 'EnabledBaselineFilter') + EnabledBaselineParameter = Shapes::StructureShape.new(name: 'EnabledBaselineParameter') + EnabledBaselineParameterDocument = Shapes::DocumentShape.new(name: 'EnabledBaselineParameterDocument', document: true) + EnabledBaselineParameterSummaries = Shapes::ListShape.new(name: 'EnabledBaselineParameterSummaries') + EnabledBaselineParameterSummary = Shapes::StructureShape.new(name: 'EnabledBaselineParameterSummary') + EnabledBaselineParameters = Shapes::ListShape.new(name: 'EnabledBaselineParameters') + EnabledBaselineSummary = Shapes::StructureShape.new(name: 'EnabledBaselineSummary') + EnabledBaselineTargetIdentifiers = Shapes::ListShape.new(name: 'EnabledBaselineTargetIdentifiers') + EnabledBaselines = Shapes::ListShape.new(name: 'EnabledBaselines') EnabledControlDetails = Shapes::StructureShape.new(name: 'EnabledControlDetails') EnabledControlParameter = Shapes::StructureShape.new(name: 'EnabledControlParameter') EnabledControlParameterSummaries = Shapes::ListShape.new(name: 'EnabledControlParameterSummaries') @@ -40,8 +62,14 @@ module ClientApi EnabledControls = Shapes::ListShape.new(name: 'EnabledControls') EnablementStatus = Shapes::StringShape.new(name: 'EnablementStatus') EnablementStatusSummary = Shapes::StructureShape.new(name: 'EnablementStatusSummary') + GetBaselineInput = Shapes::StructureShape.new(name: 'GetBaselineInput') + GetBaselineOperationInput = Shapes::StructureShape.new(name: 'GetBaselineOperationInput') + GetBaselineOperationOutput = Shapes::StructureShape.new(name: 'GetBaselineOperationOutput') + GetBaselineOutput = Shapes::StructureShape.new(name: 'GetBaselineOutput') GetControlOperationInput = Shapes::StructureShape.new(name: 'GetControlOperationInput') GetControlOperationOutput = Shapes::StructureShape.new(name: 'GetControlOperationOutput') + GetEnabledBaselineInput = Shapes::StructureShape.new(name: 'GetEnabledBaselineInput') + GetEnabledBaselineOutput = Shapes::StructureShape.new(name: 'GetEnabledBaselineOutput') GetEnabledControlInput = Shapes::StructureShape.new(name: 'GetEnabledControlInput') GetEnabledControlOutput = Shapes::StructureShape.new(name: 'GetEnabledControlOutput') GetLandingZoneInput = Shapes::StructureShape.new(name: 'GetLandingZoneInput') @@ -59,6 +87,13 @@ module ClientApi LandingZoneStatus = Shapes::StringShape.new(name: 'LandingZoneStatus') LandingZoneSummary = Shapes::StructureShape.new(name: 'LandingZoneSummary') LandingZoneVersion = Shapes::StringShape.new(name: 'LandingZoneVersion') + ListBaselinesInput = Shapes::StructureShape.new(name: 'ListBaselinesInput') + ListBaselinesMaxResults = Shapes::IntegerShape.new(name: 'ListBaselinesMaxResults') + ListBaselinesOutput = Shapes::StructureShape.new(name: 'ListBaselinesOutput') + ListEnabledBaselinesInput = Shapes::StructureShape.new(name: 'ListEnabledBaselinesInput') + ListEnabledBaselinesMaxResults = Shapes::IntegerShape.new(name: 'ListEnabledBaselinesMaxResults') + ListEnabledBaselinesNextToken = Shapes::StringShape.new(name: 'ListEnabledBaselinesNextToken') + ListEnabledBaselinesOutput = Shapes::StructureShape.new(name: 'ListEnabledBaselinesOutput') ListEnabledControlsInput = Shapes::StructureShape.new(name: 'ListEnabledControlsInput') ListEnabledControlsOutput = Shapes::StructureShape.new(name: 'ListEnabledControlsOutput') ListLandingZonesInput = Shapes::StructureShape.new(name: 'ListLandingZonesInput') @@ -72,6 +107,8 @@ module ClientApi OperationIdentifier = Shapes::StringShape.new(name: 'OperationIdentifier') Region = Shapes::StructureShape.new(name: 'Region') RegionName = Shapes::StringShape.new(name: 'RegionName') + ResetEnabledBaselineInput = Shapes::StructureShape.new(name: 'ResetEnabledBaselineInput') + ResetEnabledBaselineOutput = Shapes::StructureShape.new(name: 'ResetEnabledBaselineOutput') ResetLandingZoneInput = Shapes::StructureShape.new(name: 'ResetLandingZoneInput') ResetLandingZoneOutput = Shapes::StructureShape.new(name: 'ResetLandingZoneOutput') ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException') @@ -90,6 +127,8 @@ module ClientApi Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601") UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput') UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput') + UpdateEnabledBaselineInput = Shapes::StructureShape.new(name: 'UpdateEnabledBaselineInput') + UpdateEnabledBaselineOutput = Shapes::StructureShape.new(name: 'UpdateEnabledBaselineOutput') UpdateEnabledControlInput = Shapes::StructureShape.new(name: 'UpdateEnabledControlInput') UpdateEnabledControlOutput = Shapes::StructureShape.new(name: 'UpdateEnabledControlOutput') UpdateLandingZoneInput = Shapes::StructureShape.new(name: 'UpdateLandingZoneInput') @@ -99,6 +138,21 @@ module ClientApi AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message")) AccessDeniedException.struct_class = Types::AccessDeniedException + BaselineOperation.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime")) + BaselineOperation.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, location_name: "operationIdentifier")) + BaselineOperation.add_member(:operation_type, Shapes::ShapeRef.new(shape: BaselineOperationType, location_name: "operationType")) + BaselineOperation.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime")) + BaselineOperation.add_member(:status, Shapes::ShapeRef.new(shape: BaselineOperationStatus, location_name: "status")) + BaselineOperation.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage")) + BaselineOperation.struct_class = Types::BaselineOperation + + BaselineSummary.add_member(:arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "arn")) + BaselineSummary.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description")) + BaselineSummary.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name")) + BaselineSummary.struct_class = Types::BaselineSummary + + Baselines.member = Shapes::ShapeRef.new(shape: BaselineSummary) + ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message")) ConflictException.struct_class = Types::ConflictException @@ -124,6 +178,12 @@ module ClientApi DeleteLandingZoneOutput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier")) DeleteLandingZoneOutput.struct_class = Types::DeleteLandingZoneOutput + DisableBaselineInput.add_member(:enabled_baseline_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "enabledBaselineIdentifier")) + DisableBaselineInput.struct_class = Types::DisableBaselineInput + + DisableBaselineOutput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier")) + DisableBaselineOutput.struct_class = Types::DisableBaselineOutput + DisableControlInput.add_member(:control_identifier, Shapes::ShapeRef.new(shape: ControlIdentifier, required: true, location_name: "controlIdentifier")) DisableControlInput.add_member(:target_identifier, Shapes::ShapeRef.new(shape: TargetIdentifier, required: true, location_name: "targetIdentifier")) DisableControlInput.struct_class = Types::DisableControlInput @@ -134,6 +194,17 @@ module ClientApi DriftStatusSummary.add_member(:drift_status, Shapes::ShapeRef.new(shape: DriftStatus, location_name: "driftStatus")) DriftStatusSummary.struct_class = Types::DriftStatusSummary + EnableBaselineInput.add_member(:baseline_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "baselineIdentifier")) + EnableBaselineInput.add_member(:baseline_version, Shapes::ShapeRef.new(shape: BaselineVersion, required: true, location_name: "baselineVersion")) + EnableBaselineInput.add_member(:parameters, Shapes::ShapeRef.new(shape: EnabledBaselineParameters, location_name: "parameters")) + EnableBaselineInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags")) + EnableBaselineInput.add_member(:target_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "targetIdentifier")) + EnableBaselineInput.struct_class = Types::EnableBaselineInput + + EnableBaselineOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn")) + EnableBaselineOutput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier")) + EnableBaselineOutput.struct_class = Types::EnableBaselineOutput + EnableControlInput.add_member(:control_identifier, Shapes::ShapeRef.new(shape: ControlIdentifier, required: true, location_name: "controlIdentifier")) EnableControlInput.add_member(:parameters, Shapes::ShapeRef.new(shape: EnabledControlParameters, location_name: "parameters")) EnableControlInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags")) @@ -144,6 +215,43 @@ module ClientApi EnableControlOutput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier")) EnableControlOutput.struct_class = Types::EnableControlOutput + EnabledBaselineBaselineIdentifiers.member = Shapes::ShapeRef.new(shape: Arn) + + EnabledBaselineDetails.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn")) + EnabledBaselineDetails.add_member(:baseline_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "baselineIdentifier")) + EnabledBaselineDetails.add_member(:baseline_version, Shapes::ShapeRef.new(shape: String, location_name: "baselineVersion")) + EnabledBaselineDetails.add_member(:parameters, Shapes::ShapeRef.new(shape: EnabledBaselineParameterSummaries, location_name: "parameters")) + EnabledBaselineDetails.add_member(:status_summary, Shapes::ShapeRef.new(shape: EnablementStatusSummary, required: true, location_name: "statusSummary")) + EnabledBaselineDetails.add_member(:target_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "targetIdentifier")) + EnabledBaselineDetails.struct_class = Types::EnabledBaselineDetails + + EnabledBaselineFilter.add_member(:baseline_identifiers, Shapes::ShapeRef.new(shape: EnabledBaselineBaselineIdentifiers, location_name: "baselineIdentifiers")) + EnabledBaselineFilter.add_member(:target_identifiers, Shapes::ShapeRef.new(shape: EnabledBaselineTargetIdentifiers, location_name: "targetIdentifiers")) + EnabledBaselineFilter.struct_class = Types::EnabledBaselineFilter + + EnabledBaselineParameter.add_member(:key, Shapes::ShapeRef.new(shape: String, required: true, location_name: "key")) + EnabledBaselineParameter.add_member(:value, Shapes::ShapeRef.new(shape: EnabledBaselineParameterDocument, required: true, location_name: "value")) + EnabledBaselineParameter.struct_class = Types::EnabledBaselineParameter + + EnabledBaselineParameterSummaries.member = Shapes::ShapeRef.new(shape: EnabledBaselineParameterSummary) + + EnabledBaselineParameterSummary.add_member(:key, Shapes::ShapeRef.new(shape: String, required: true, location_name: "key")) + EnabledBaselineParameterSummary.add_member(:value, Shapes::ShapeRef.new(shape: EnabledBaselineParameterDocument, required: true, location_name: "value")) + EnabledBaselineParameterSummary.struct_class = Types::EnabledBaselineParameterSummary + + EnabledBaselineParameters.member = Shapes::ShapeRef.new(shape: EnabledBaselineParameter) + + EnabledBaselineSummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn")) + EnabledBaselineSummary.add_member(:baseline_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "baselineIdentifier")) + EnabledBaselineSummary.add_member(:baseline_version, Shapes::ShapeRef.new(shape: String, location_name: "baselineVersion")) + EnabledBaselineSummary.add_member(:status_summary, Shapes::ShapeRef.new(shape: EnablementStatusSummary, required: true, location_name: "statusSummary")) + EnabledBaselineSummary.add_member(:target_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "targetIdentifier")) + EnabledBaselineSummary.struct_class = Types::EnabledBaselineSummary + + EnabledBaselineTargetIdentifiers.member = Shapes::ShapeRef.new(shape: Arn) + + EnabledBaselines.member = Shapes::ShapeRef.new(shape: EnabledBaselineSummary) + EnabledControlDetails.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn")) EnabledControlDetails.add_member(:control_identifier, Shapes::ShapeRef.new(shape: ControlIdentifier, location_name: "controlIdentifier")) EnabledControlDetails.add_member(:drift_status_summary, Shapes::ShapeRef.new(shape: DriftStatusSummary, location_name: "driftStatusSummary")) @@ -178,12 +286,32 @@ module ClientApi EnablementStatusSummary.add_member(:status, Shapes::ShapeRef.new(shape: EnablementStatus, location_name: "status")) EnablementStatusSummary.struct_class = Types::EnablementStatusSummary + GetBaselineInput.add_member(:baseline_identifier, Shapes::ShapeRef.new(shape: BaselineArn, required: true, location_name: "baselineIdentifier")) + GetBaselineInput.struct_class = Types::GetBaselineInput + + GetBaselineOperationInput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier")) + GetBaselineOperationInput.struct_class = Types::GetBaselineOperationInput + + GetBaselineOperationOutput.add_member(:baseline_operation, Shapes::ShapeRef.new(shape: BaselineOperation, required: true, location_name: "baselineOperation")) + GetBaselineOperationOutput.struct_class = Types::GetBaselineOperationOutput + + GetBaselineOutput.add_member(:arn, Shapes::ShapeRef.new(shape: BaselineArn, required: true, location_name: "arn")) + GetBaselineOutput.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description")) + GetBaselineOutput.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name")) + GetBaselineOutput.struct_class = Types::GetBaselineOutput + GetControlOperationInput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier")) GetControlOperationInput.struct_class = Types::GetControlOperationInput GetControlOperationOutput.add_member(:control_operation, Shapes::ShapeRef.new(shape: ControlOperation, required: true, location_name: "controlOperation")) GetControlOperationOutput.struct_class = Types::GetControlOperationOutput + GetEnabledBaselineInput.add_member(:enabled_baseline_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "enabledBaselineIdentifier")) + GetEnabledBaselineInput.struct_class = Types::GetEnabledBaselineInput + + GetEnabledBaselineOutput.add_member(:enabled_baseline_details, Shapes::ShapeRef.new(shape: EnabledBaselineDetails, location_name: "enabledBaselineDetails")) + GetEnabledBaselineOutput.struct_class = Types::GetEnabledBaselineOutput + GetEnabledControlInput.add_member(:enabled_control_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "enabledControlIdentifier")) GetEnabledControlInput.struct_class = Types::GetEnabledControlInput @@ -226,6 +354,23 @@ module ClientApi LandingZoneSummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn")) LandingZoneSummary.struct_class = Types::LandingZoneSummary + ListBaselinesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListBaselinesMaxResults, location_name: "maxResults")) + ListBaselinesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken")) + ListBaselinesInput.struct_class = Types::ListBaselinesInput + + ListBaselinesOutput.add_member(:baselines, Shapes::ShapeRef.new(shape: Baselines, required: true, location_name: "baselines")) + ListBaselinesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken")) + ListBaselinesOutput.struct_class = Types::ListBaselinesOutput + + ListEnabledBaselinesInput.add_member(:filter, Shapes::ShapeRef.new(shape: EnabledBaselineFilter, location_name: "filter")) + ListEnabledBaselinesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListEnabledBaselinesMaxResults, location_name: "maxResults")) + ListEnabledBaselinesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: ListEnabledBaselinesNextToken, location_name: "nextToken")) + ListEnabledBaselinesInput.struct_class = Types::ListEnabledBaselinesInput + + ListEnabledBaselinesOutput.add_member(:enabled_baselines, Shapes::ShapeRef.new(shape: EnabledBaselines, required: true, location_name: "enabledBaselines")) + ListEnabledBaselinesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: ListEnabledBaselinesNextToken, location_name: "nextToken")) + ListEnabledBaselinesOutput.struct_class = Types::ListEnabledBaselinesOutput + ListEnabledControlsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults")) ListEnabledControlsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken")) ListEnabledControlsInput.add_member(:target_identifier, Shapes::ShapeRef.new(shape: TargetIdentifier, required: true, location_name: "targetIdentifier")) @@ -254,6 +399,12 @@ module ClientApi Region.add_member(:name, Shapes::ShapeRef.new(shape: RegionName, location_name: "name")) Region.struct_class = Types::Region + ResetEnabledBaselineInput.add_member(:enabled_baseline_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "enabledBaselineIdentifier")) + ResetEnabledBaselineInput.struct_class = Types::ResetEnabledBaselineInput + + ResetEnabledBaselineOutput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier")) + ResetEnabledBaselineOutput.struct_class = Types::ResetEnabledBaselineOutput + ResetLandingZoneInput.add_member(:landing_zone_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "landingZoneIdentifier")) ResetLandingZoneInput.struct_class = Types::ResetLandingZoneInput @@ -291,6 +442,14 @@ module ClientApi UntagResourceOutput.struct_class = Types::UntagResourceOutput + UpdateEnabledBaselineInput.add_member(:baseline_version, Shapes::ShapeRef.new(shape: BaselineVersion, required: true, location_name: "baselineVersion")) + UpdateEnabledBaselineInput.add_member(:enabled_baseline_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "enabledBaselineIdentifier")) + UpdateEnabledBaselineInput.add_member(:parameters, Shapes::ShapeRef.new(shape: EnabledBaselineParameters, location_name: "parameters")) + UpdateEnabledBaselineInput.struct_class = Types::UpdateEnabledBaselineInput + + UpdateEnabledBaselineOutput.add_member(:operation_identifier, Shapes::ShapeRef.new(shape: OperationIdentifier, required: true, location_name: "operationIdentifier")) + UpdateEnabledBaselineOutput.struct_class = Types::UpdateEnabledBaselineOutput + UpdateEnabledControlInput.add_member(:enabled_control_identifier, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "enabledControlIdentifier")) UpdateEnabledControlInput.add_member(:parameters, Shapes::ShapeRef.new(shape: EnabledControlParameters, required: true, location_name: "parameters")) UpdateEnabledControlInput.struct_class = Types::UpdateEnabledControlInput @@ -354,6 +513,21 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) end) + api.add_operation(:disable_baseline, Seahorse::Model::Operation.new.tap do |o| + o.name = "DisableBaseline" + o.http_method = "POST" + o.http_request_uri = "/disable-baseline" + o.input = Shapes::ShapeRef.new(shape: DisableBaselineInput) + o.output = Shapes::ShapeRef.new(shape: DisableBaselineOutput) + o.errors << Shapes::ShapeRef.new(shape: ValidationException) + o.errors << Shapes::ShapeRef.new(shape: ConflictException) + o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerException) + o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) + o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) + o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + end) + api.add_operation(:disable_control, Seahorse::Model::Operation.new.tap do |o| o.name = "DisableControl" o.http_method = "POST" @@ -369,6 +543,21 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) end) + api.add_operation(:enable_baseline, Seahorse::Model::Operation.new.tap do |o| + o.name = "EnableBaseline" + o.http_method = "POST" + o.http_request_uri = "/enable-baseline" + o.input = Shapes::ShapeRef.new(shape: EnableBaselineInput) + o.output = Shapes::ShapeRef.new(shape: EnableBaselineOutput) + o.errors << Shapes::ShapeRef.new(shape: ValidationException) + o.errors << Shapes::ShapeRef.new(shape: ConflictException) + o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerException) + o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) + o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) + o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + end) + api.add_operation(:enable_control, Seahorse::Model::Operation.new.tap do |o| o.name = "EnableControl" o.http_method = "POST" @@ -384,6 +573,32 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) end) + api.add_operation(:get_baseline, Seahorse::Model::Operation.new.tap do |o| + o.name = "GetBaseline" + o.http_method = "POST" + o.http_request_uri = "/get-baseline" + o.input = Shapes::ShapeRef.new(shape: GetBaselineInput) + o.output = Shapes::ShapeRef.new(shape: GetBaselineOutput) + o.errors << Shapes::ShapeRef.new(shape: ValidationException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerException) + o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) + o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) + o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + end) + + api.add_operation(:get_baseline_operation, Seahorse::Model::Operation.new.tap do |o| + o.name = "GetBaselineOperation" + o.http_method = "POST" + o.http_request_uri = "/get-baseline-operation" + o.input = Shapes::ShapeRef.new(shape: GetBaselineOperationInput) + o.output = Shapes::ShapeRef.new(shape: GetBaselineOperationOutput) + o.errors << Shapes::ShapeRef.new(shape: ValidationException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerException) + o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) + o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) + o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + end) + api.add_operation(:get_control_operation, Seahorse::Model::Operation.new.tap do |o| o.name = "GetControlOperation" o.http_method = "POST" @@ -397,6 +612,19 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) end) + api.add_operation(:get_enabled_baseline, Seahorse::Model::Operation.new.tap do |o| + o.name = "GetEnabledBaseline" + o.http_method = "POST" + o.http_request_uri = "/get-enabled-baseline" + o.input = Shapes::ShapeRef.new(shape: GetEnabledBaselineInput) + o.output = Shapes::ShapeRef.new(shape: GetEnabledBaselineOutput) + o.errors << Shapes::ShapeRef.new(shape: ValidationException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerException) + o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) + o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) + o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + end) + api.add_operation(:get_enabled_control, Seahorse::Model::Operation.new.tap do |o| o.name = "GetEnabledControl" o.http_method = "POST" @@ -436,6 +664,42 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) end) + api.add_operation(:list_baselines, Seahorse::Model::Operation.new.tap do |o| + o.name = "ListBaselines" + o.http_method = "POST" + o.http_request_uri = "/list-baselines" + o.input = Shapes::ShapeRef.new(shape: ListBaselinesInput) + o.output = Shapes::ShapeRef.new(shape: ListBaselinesOutput) + o.errors << Shapes::ShapeRef.new(shape: ValidationException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerException) + o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) + o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_token" => "next_token" + } + ) + end) + + api.add_operation(:list_enabled_baselines, Seahorse::Model::Operation.new.tap do |o| + o.name = "ListEnabledBaselines" + o.http_method = "POST" + o.http_request_uri = "/list-enabled-baselines" + o.input = Shapes::ShapeRef.new(shape: ListEnabledBaselinesInput) + o.output = Shapes::ShapeRef.new(shape: ListEnabledBaselinesOutput) + o.errors << Shapes::ShapeRef.new(shape: ValidationException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerException) + o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) + o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_token" => "next_token" + } + ) + end) + api.add_operation(:list_enabled_controls, Seahorse::Model::Operation.new.tap do |o| o.name = "ListEnabledControls" o.http_method = "POST" @@ -484,6 +748,21 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) end) + api.add_operation(:reset_enabled_baseline, Seahorse::Model::Operation.new.tap do |o| + o.name = "ResetEnabledBaseline" + o.http_method = "POST" + o.http_request_uri = "/reset-enabled-baseline" + o.input = Shapes::ShapeRef.new(shape: ResetEnabledBaselineInput) + o.output = Shapes::ShapeRef.new(shape: ResetEnabledBaselineOutput) + o.errors << Shapes::ShapeRef.new(shape: ValidationException) + o.errors << Shapes::ShapeRef.new(shape: ConflictException) + o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerException) + o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) + o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) + o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + end) + api.add_operation(:reset_landing_zone, Seahorse::Model::Operation.new.tap do |o| o.name = "ResetLandingZone" o.http_method = "POST" @@ -520,6 +799,21 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) end) + api.add_operation(:update_enabled_baseline, Seahorse::Model::Operation.new.tap do |o| + o.name = "UpdateEnabledBaseline" + o.http_method = "POST" + o.http_request_uri = "/update-enabled-baseline" + o.input = Shapes::ShapeRef.new(shape: UpdateEnabledBaselineInput) + o.output = Shapes::ShapeRef.new(shape: UpdateEnabledBaselineOutput) + o.errors << Shapes::ShapeRef.new(shape: ValidationException) + o.errors << Shapes::ShapeRef.new(shape: ConflictException) + o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerException) + o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException) + o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) + o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) + end) + api.add_operation(:update_enabled_control, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateEnabledControl" o.http_method = "POST" diff --git a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/endpoints.rb b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/endpoints.rb index 93856c1d4bf..4a65be9653b 100644 --- a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/endpoints.rb +++ b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/endpoints.rb @@ -40,6 +40,20 @@ def self.build(context) end end + class DisableBaseline + def self.build(context) + unless context.config.regional_endpoint + endpoint = context.config.endpoint.to_s + end + Aws::ControlTower::EndpointParameters.new( + region: context.config.region, + use_dual_stack: context.config.use_dualstack_endpoint, + use_fips: context.config.use_fips_endpoint, + endpoint: endpoint, + ) + end + end + class DisableControl def self.build(context) unless context.config.regional_endpoint @@ -54,6 +68,20 @@ def self.build(context) end end + class EnableBaseline + def self.build(context) + unless context.config.regional_endpoint + endpoint = context.config.endpoint.to_s + end + Aws::ControlTower::EndpointParameters.new( + region: context.config.region, + use_dual_stack: context.config.use_dualstack_endpoint, + use_fips: context.config.use_fips_endpoint, + endpoint: endpoint, + ) + end + end + class EnableControl def self.build(context) unless context.config.regional_endpoint @@ -68,6 +96,34 @@ def self.build(context) end end + class GetBaseline + def self.build(context) + unless context.config.regional_endpoint + endpoint = context.config.endpoint.to_s + end + Aws::ControlTower::EndpointParameters.new( + region: context.config.region, + use_dual_stack: context.config.use_dualstack_endpoint, + use_fips: context.config.use_fips_endpoint, + endpoint: endpoint, + ) + end + end + + class GetBaselineOperation + def self.build(context) + unless context.config.regional_endpoint + endpoint = context.config.endpoint.to_s + end + Aws::ControlTower::EndpointParameters.new( + region: context.config.region, + use_dual_stack: context.config.use_dualstack_endpoint, + use_fips: context.config.use_fips_endpoint, + endpoint: endpoint, + ) + end + end + class GetControlOperation def self.build(context) unless context.config.regional_endpoint @@ -82,6 +138,20 @@ def self.build(context) end end + class GetEnabledBaseline + def self.build(context) + unless context.config.regional_endpoint + endpoint = context.config.endpoint.to_s + end + Aws::ControlTower::EndpointParameters.new( + region: context.config.region, + use_dual_stack: context.config.use_dualstack_endpoint, + use_fips: context.config.use_fips_endpoint, + endpoint: endpoint, + ) + end + end + class GetEnabledControl def self.build(context) unless context.config.regional_endpoint @@ -124,6 +194,34 @@ def self.build(context) end end + class ListBaselines + def self.build(context) + unless context.config.regional_endpoint + endpoint = context.config.endpoint.to_s + end + Aws::ControlTower::EndpointParameters.new( + region: context.config.region, + use_dual_stack: context.config.use_dualstack_endpoint, + use_fips: context.config.use_fips_endpoint, + endpoint: endpoint, + ) + end + end + + class ListEnabledBaselines + def self.build(context) + unless context.config.regional_endpoint + endpoint = context.config.endpoint.to_s + end + Aws::ControlTower::EndpointParameters.new( + region: context.config.region, + use_dual_stack: context.config.use_dualstack_endpoint, + use_fips: context.config.use_fips_endpoint, + endpoint: endpoint, + ) + end + end + class ListEnabledControls def self.build(context) unless context.config.regional_endpoint @@ -166,6 +264,20 @@ def self.build(context) end end + class ResetEnabledBaseline + def self.build(context) + unless context.config.regional_endpoint + endpoint = context.config.endpoint.to_s + end + Aws::ControlTower::EndpointParameters.new( + region: context.config.region, + use_dual_stack: context.config.use_dualstack_endpoint, + use_fips: context.config.use_fips_endpoint, + endpoint: endpoint, + ) + end + end + class ResetLandingZone def self.build(context) unless context.config.regional_endpoint @@ -208,6 +320,20 @@ def self.build(context) end end + class UpdateEnabledBaseline + def self.build(context) + unless context.config.regional_endpoint + endpoint = context.config.endpoint.to_s + end + Aws::ControlTower::EndpointParameters.new( + region: context.config.region, + use_dual_stack: context.config.use_dualstack_endpoint, + use_fips: context.config.use_fips_endpoint, + endpoint: endpoint, + ) + end + end + class UpdateEnabledControl def self.build(context) unless context.config.regional_endpoint diff --git a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/plugins/endpoints.rb b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/plugins/endpoints.rb index 915916075d3..1954b6924ef 100644 --- a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/plugins/endpoints.rb +++ b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/plugins/endpoints.rb @@ -62,30 +62,48 @@ def parameters_for_operation(context) Aws::ControlTower::Endpoints::CreateLandingZone.build(context) when :delete_landing_zone Aws::ControlTower::Endpoints::DeleteLandingZone.build(context) + when :disable_baseline + Aws::ControlTower::Endpoints::DisableBaseline.build(context) when :disable_control Aws::ControlTower::Endpoints::DisableControl.build(context) + when :enable_baseline + Aws::ControlTower::Endpoints::EnableBaseline.build(context) when :enable_control Aws::ControlTower::Endpoints::EnableControl.build(context) + when :get_baseline + Aws::ControlTower::Endpoints::GetBaseline.build(context) + when :get_baseline_operation + Aws::ControlTower::Endpoints::GetBaselineOperation.build(context) when :get_control_operation Aws::ControlTower::Endpoints::GetControlOperation.build(context) + when :get_enabled_baseline + Aws::ControlTower::Endpoints::GetEnabledBaseline.build(context) when :get_enabled_control Aws::ControlTower::Endpoints::GetEnabledControl.build(context) when :get_landing_zone Aws::ControlTower::Endpoints::GetLandingZone.build(context) when :get_landing_zone_operation Aws::ControlTower::Endpoints::GetLandingZoneOperation.build(context) + when :list_baselines + Aws::ControlTower::Endpoints::ListBaselines.build(context) + when :list_enabled_baselines + Aws::ControlTower::Endpoints::ListEnabledBaselines.build(context) when :list_enabled_controls Aws::ControlTower::Endpoints::ListEnabledControls.build(context) when :list_landing_zones Aws::ControlTower::Endpoints::ListLandingZones.build(context) when :list_tags_for_resource Aws::ControlTower::Endpoints::ListTagsForResource.build(context) + when :reset_enabled_baseline + Aws::ControlTower::Endpoints::ResetEnabledBaseline.build(context) when :reset_landing_zone Aws::ControlTower::Endpoints::ResetLandingZone.build(context) when :tag_resource Aws::ControlTower::Endpoints::TagResource.build(context) when :untag_resource Aws::ControlTower::Endpoints::UntagResource.build(context) + when :update_enabled_baseline + Aws::ControlTower::Endpoints::UpdateEnabledBaseline.build(context) when :update_enabled_control Aws::ControlTower::Endpoints::UpdateEnabledControl.build(context) when :update_landing_zone diff --git a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/types.rb b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/types.rb index 541907cbb59..320be5302ed 100644 --- a/gems/aws-sdk-controltower/lib/aws-sdk-controltower/types.rb +++ b/gems/aws-sdk-controltower/lib/aws-sdk-controltower/types.rb @@ -23,6 +23,74 @@ class AccessDeniedException < Struct.new( include Aws::Structure end + # An object of shape `BaselineOperation`, returning details about the + # specified `Baseline` operation ID. + # + # @!attribute [rw] end_time + # The end time of the operation (if applicable), in ISO 8601 format. + # @return [Time] + # + # @!attribute [rw] operation_identifier + # The identifier of the specified operation. + # @return [String] + # + # @!attribute [rw] operation_type + # An enumerated type (`enum`) with possible values of + # `ENABLE_BASELINE`, `DISABLE_BASELINE`, `UPDATE_ENABLED_BASELINE`, or + # `RESET_ENABLED_BASELINE`. + # @return [String] + # + # @!attribute [rw] start_time + # The start time of the operation, in ISO 8601 format. + # @return [Time] + # + # @!attribute [rw] status + # An enumerated type (`enum`) with possible values of `SUCCEEDED`, + # `FAILED`, or `IN_PROGRESS`. + # @return [String] + # + # @!attribute [rw] status_message + # A status message that gives more information about the operation's + # status, if applicable. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/BaselineOperation AWS API Documentation + # + class BaselineOperation < Struct.new( + :end_time, + :operation_identifier, + :operation_type, + :start_time, + :status, + :status_message) + SENSITIVE = [] + include Aws::Structure + end + + # Returns a summary of information about a `Baseline` object. + # + # @!attribute [rw] arn + # The full ARN of a Baseline. + # @return [String] + # + # @!attribute [rw] description + # A summary description of a Baseline. + # @return [String] + # + # @!attribute [rw] name + # The human-readable name of a Baseline. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/BaselineSummary AWS API Documentation + # + class BaselineSummary < Struct.new( + :arn, + :description, + :name) + SENSITIVE = [] + include Aws::Structure + end + # Updating or deleting the resource can cause an inconsistent state. # # @!attribute [rw] message @@ -72,13 +140,12 @@ class ControlOperation < Struct.new( end # @!attribute [rw] manifest - # The manifest JSON file is a text file that describes your Amazon Web - # Services resources. For examples, review [Launch your landing - # zone][1]. + # The manifest.yaml file is a text file that describes your Amazon Web + # Services resources. For examples, review [The manifest file][1]. # # # - # [1]: https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch + # [1]: https://docs.aws.amazon.com/controltower/latest/userguide/the-manifest-file # @return [Hash,Array,String,Numeric,Boolean] # # @!attribute [rw] tags @@ -144,11 +211,38 @@ class DeleteLandingZoneOutput < Struct.new( include Aws::Structure end + # @!attribute [rw] enabled_baseline_identifier + # Identifier of the `EnabledBaseline` resource to be deactivated, in + # ARN format. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DisableBaselineInput AWS API Documentation + # + class DisableBaselineInput < Struct.new( + :enabled_baseline_identifier) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] operation_identifier + # The ID (in UUID format) of the asynchronous `DisableBaseline` + # operation. This `operationIdentifier` is used to track status + # through calls to the `GetBaselineOperation` API. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DisableBaselineOutput AWS API Documentation + # + class DisableBaselineOutput < Struct.new( + :operation_identifier) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] control_identifier # The ARN of the control. Only **Strongly recommended** and # **Elective** controls are permitted, with the exception of the - # **landing zone Region deny** control. For information on how to find - # the `controlIdentifier`, see [the overview page][1]. + # **Region deny** control. For information on how to find the + # `controlIdentifier`, see [the overview page][1]. # # # @@ -223,11 +317,64 @@ class DriftStatusSummary < Struct.new( include Aws::Structure end + # @!attribute [rw] baseline_identifier + # The ARN of the baseline to be enabled. + # @return [String] + # + # @!attribute [rw] baseline_version + # The specific version to be enabled of the specified baseline. + # @return [String] + # + # @!attribute [rw] parameters + # A list of `key-value` objects that specify enablement parameters, + # where `key` is a string and `value` is a document of any type. + # @return [Array] + # + # @!attribute [rw] tags + # Tags associated with input to `EnableBaseline`. + # @return [Hash] + # + # @!attribute [rw] target_identifier + # The ARN of the target on which the baseline will be enabled. Only + # OUs are supported as targets. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableBaselineInput AWS API Documentation + # + class EnableBaselineInput < Struct.new( + :baseline_identifier, + :baseline_version, + :parameters, + :tags, + :target_identifier) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] arn + # The ARN of the `EnabledBaseline` resource. + # @return [String] + # + # @!attribute [rw] operation_identifier + # The ID (in UUID format) of the asynchronous `EnableBaseline` + # operation. This `operationIdentifier` is used to track status + # through calls to the `GetBaselineOperation` API. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableBaselineOutput AWS API Documentation + # + class EnableBaselineOutput < Struct.new( + :arn, + :operation_identifier) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] control_identifier # The ARN of the control. Only **Strongly recommended** and # **Elective** controls are permitted, with the exception of the - # **landing zone Region deny** control. For information on how to find - # the `controlIdentifier`, see [the overview page][1]. + # **Region deny** control. For information on how to find the + # `controlIdentifier`, see [the overview page][1]. # # # @@ -235,7 +382,8 @@ class DriftStatusSummary < Struct.new( # @return [String] # # @!attribute [rw] parameters - # An array of `EnabledControlParameter` objects + # A list of input parameter values, which are specified to configure + # the control when you enable it. # @return [Array] # # @!attribute [rw] tags @@ -280,6 +428,143 @@ class EnableControlOutput < Struct.new( include Aws::Structure end + # Details of the `EnabledBaseline` resource. + # + # @!attribute [rw] arn + # The ARN of the `EnabledBaseline` resource. + # @return [String] + # + # @!attribute [rw] baseline_identifier + # The specific `Baseline` enabled as part of the `EnabledBaseline` + # resource. + # @return [String] + # + # @!attribute [rw] baseline_version + # The enabled version of the `Baseline`. + # @return [String] + # + # @!attribute [rw] parameters + # Shows the parameters that are applied when enabling this `Baseline`. + # @return [Array] + # + # @!attribute [rw] status_summary + # The deployment summary of the enabled control. + # @return [Types::EnablementStatusSummary] + # + # @!attribute [rw] target_identifier + # The target on which to enable the `Baseline`. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnabledBaselineDetails AWS API Documentation + # + class EnabledBaselineDetails < Struct.new( + :arn, + :baseline_identifier, + :baseline_version, + :parameters, + :status_summary, + :target_identifier) + SENSITIVE = [] + include Aws::Structure + end + + # A filter applied on the `ListEnabledBaseline` operation. Allowed + # filters are `baselineIdentifiers` and `targetIdentifiers`. The filter + # can be applied for either, or both. + # + # @!attribute [rw] baseline_identifiers + # Identifiers for the `Baseline` objects returned as part of the + # filter operation. + # @return [Array] + # + # @!attribute [rw] target_identifiers + # Identifiers for the targets of the `Baseline` filter operation. + # @return [Array] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnabledBaselineFilter AWS API Documentation + # + class EnabledBaselineFilter < Struct.new( + :baseline_identifiers, + :target_identifiers) + SENSITIVE = [] + include Aws::Structure + end + + # A key-value parameter to an `EnabledBaseline` resource. + # + # @!attribute [rw] key + # A string denoting the parameter key. + # @return [String] + # + # @!attribute [rw] value + # A low-level `Document` object of any type (for example, a Java + # Object). + # @return [Hash,Array,String,Numeric,Boolean] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnabledBaselineParameter AWS API Documentation + # + class EnabledBaselineParameter < Struct.new( + :key, + :value) + SENSITIVE = [] + include Aws::Structure + end + + # Summary of an applied parameter to an `EnabledBaseline` resource. + # + # @!attribute [rw] key + # A string denoting the parameter key. + # @return [String] + # + # @!attribute [rw] value + # A low-level document object of any type (for example, a Java + # Object). + # @return [Hash,Array,String,Numeric,Boolean] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnabledBaselineParameterSummary AWS API Documentation + # + class EnabledBaselineParameterSummary < Struct.new( + :key, + :value) + SENSITIVE = [] + include Aws::Structure + end + + # Returns a summary of information about an `EnabledBaseline` object. + # + # @!attribute [rw] arn + # The ARN of the `EnabledBaseline` resource + # @return [String] + # + # @!attribute [rw] baseline_identifier + # The specific baseline that is enabled as part of the + # `EnabledBaseline` resource. + # @return [String] + # + # @!attribute [rw] baseline_version + # The enabled version of the baseline. + # @return [String] + # + # @!attribute [rw] status_summary + # The deployment summary of the enabled control. + # @return [Types::EnablementStatusSummary] + # + # @!attribute [rw] target_identifier + # The target upon which the baseline is enabled. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnabledBaselineSummary AWS API Documentation + # + class EnabledBaselineSummary < Struct.new( + :arn, + :baseline_identifier, + :baseline_version, + :status_summary, + :target_identifier) + SENSITIVE = [] + include Aws::Structure + end + # Information about the enabled control. # # @!attribute [rw] arn @@ -334,17 +619,15 @@ class EnabledControlDetails < Struct.new( include Aws::Structure end - # A set of parameters that configure the behavior of the enabled - # control. A key/value pair, where `Key` is of type `String` and `Value` - # is of type `Document`. + # A key/value pair, where `Key` is of type `String` and `Value` is of + # type `Document`. # # @!attribute [rw] key - # The key of a key/value pair. It is of type `string`. + # The key of a key/value pair. # @return [String] # # @!attribute [rw] value - # The value of a key/value pair. It can be of type `array` `string`, - # `number`, `object`, or `boolean`. + # The value of a key/value pair. # @return [Hash,Array,String,Numeric,Boolean] # # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnabledControlParameter AWS API Documentation @@ -438,6 +721,66 @@ class EnablementStatusSummary < Struct.new( include Aws::Structure end + # @!attribute [rw] baseline_identifier + # The ARN of the `Baseline` resource to be retrieved. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaselineInput AWS API Documentation + # + class GetBaselineInput < Struct.new( + :baseline_identifier) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] operation_identifier + # The operation ID returned from mutating asynchronous APIs (Enable, + # Disable, Update, Reset). + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaselineOperationInput AWS API Documentation + # + class GetBaselineOperationInput < Struct.new( + :operation_identifier) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] baseline_operation + # A `baselineOperation` object that shows information about the + # specified operation ID. + # @return [Types::BaselineOperation] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaselineOperationOutput AWS API Documentation + # + class GetBaselineOperationOutput < Struct.new( + :baseline_operation) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] arn + # The baseline ARN. + # @return [String] + # + # @!attribute [rw] description + # A description of the baseline. + # @return [String] + # + # @!attribute [rw] name + # A user-friendly name for the baseline. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaselineOutput AWS API Documentation + # + class GetBaselineOutput < Struct.new( + :arn, + :description, + :name) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] operation_identifier # The ID of the asynchronous operation, which is used to track status. # The operation is available for 90 days. @@ -463,6 +806,31 @@ class GetControlOperationOutput < Struct.new( include Aws::Structure end + # @!attribute [rw] enabled_baseline_identifier + # Identifier of the `EnabledBaseline` resource to be retrieved, in ARN + # format. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledBaselineInput AWS API Documentation + # + class GetEnabledBaselineInput < Struct.new( + :enabled_baseline_identifier) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] enabled_baseline_details + # Details of the `EnabledBaseline` resource. + # @return [Types::EnabledBaselineDetails] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledBaselineOutput AWS API Documentation + # + class GetEnabledBaselineOutput < Struct.new( + :enabled_baseline_details) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] enabled_control_identifier # The `controlIdentifier` of the enabled control. # @return [String] @@ -563,12 +931,13 @@ class InternalServerException < Struct.new( # @return [String] # # @!attribute [rw] manifest - # The landing zone manifest JSON text file that specifies the landing - # zone configurations. + # The landing zone `manifest.yaml` text file that specifies the + # landing zone configurations. # @return [Hash,Array,String,Numeric,Boolean] # # @!attribute [rw] status - # The landing zone deployment status. + # The landing zone deployment status. One of `ACTIVE`, `PROCESSING`, + # `FAILED`. # @return [String] # # @!attribute [rw] version @@ -680,6 +1049,81 @@ class LandingZoneSummary < Struct.new( include Aws::Structure end + # @!attribute [rw] max_results + # The maximum number of results to be shown. + # @return [Integer] + # + # @!attribute [rw] next_token + # A pagination token. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListBaselinesInput AWS API Documentation + # + class ListBaselinesInput < Struct.new( + :max_results, + :next_token) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] baselines + # A list of `Baseline` object details. + # @return [Array] + # + # @!attribute [rw] next_token + # A pagination token. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListBaselinesOutput AWS API Documentation + # + class ListBaselinesOutput < Struct.new( + :baselines, + :next_token) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] filter + # A filter applied on the `ListEnabledBaseline` operation. Allowed + # filters are `baselineIdentifiers` and `targetIdentifiers`. The + # filter can be applied for either, or both. + # @return [Types::EnabledBaselineFilter] + # + # @!attribute [rw] max_results + # The maximum number of results to be shown. + # @return [Integer] + # + # @!attribute [rw] next_token + # A pagination token. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListEnabledBaselinesInput AWS API Documentation + # + class ListEnabledBaselinesInput < Struct.new( + :filter, + :max_results, + :next_token) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] enabled_baselines + # Retuens a list of summaries of `EnabledBaseline` resources. + # @return [Array] + # + # @!attribute [rw] next_token + # A pagination token. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListEnabledBaselinesOutput AWS API Documentation + # + class ListEnabledBaselinesOutput < Struct.new( + :enabled_baselines, + :next_token) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] max_results # How many results to return per API call. # @return [Integer] @@ -811,6 +1255,33 @@ class Region < Struct.new( include Aws::Structure end + # @!attribute [rw] enabled_baseline_identifier + # Specifies the ID of the `EnabledBaseline` resource to be re-enabled, + # in ARN format. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetEnabledBaselineInput AWS API Documentation + # + class ResetEnabledBaselineInput < Struct.new( + :enabled_baseline_identifier) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] operation_identifier + # The ID (in UUID format) of the asynchronous `ResetEnabledBaseline` + # operation. This `operationIdentifier` is used to track status + # through calls to the `GetBaselineOperation` API. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetEnabledBaselineOutput AWS API Documentation + # + class ResetEnabledBaselineOutput < Struct.new( + :operation_identifier) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] landing_zone_identifier # The unique identifier of the landing zone. # @return [String] @@ -895,7 +1366,7 @@ class TagResourceOutput < Aws::EmptyStructure; end # @return [String] # # @!attribute [rw] retry_after_seconds - # The number of seconds to wait before retrying. + # The number of seconds the caller should wait before retrying. # @return [Integer] # # @!attribute [rw] service_code @@ -934,6 +1405,43 @@ class UntagResourceInput < Struct.new( # class UntagResourceOutput < Aws::EmptyStructure; end + # @!attribute [rw] baseline_version + # Specifies the new `Baseline` version, to which the `EnabledBaseline` + # should be updated. + # @return [String] + # + # @!attribute [rw] enabled_baseline_identifier + # Specifies the `EnabledBaseline` resource to be updated. + # @return [String] + # + # @!attribute [rw] parameters + # Parameters to apply when making an update. + # @return [Array] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UpdateEnabledBaselineInput AWS API Documentation + # + class UpdateEnabledBaselineInput < Struct.new( + :baseline_version, + :enabled_baseline_identifier, + :parameters) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] operation_identifier + # The ID (in UUID format) of the asynchronous `UpdateEnabledBaseline` + # operation. This `operationIdentifier` is used to track status + # through calls to the `GetBaselineOperation` API. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UpdateEnabledBaselineOutput AWS API Documentation + # + class UpdateEnabledBaselineOutput < Struct.new( + :operation_identifier) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] enabled_control_identifier # The ARN of the enabled control that will be updated. # @return [String] @@ -969,13 +1477,12 @@ class UpdateEnabledControlOutput < Struct.new( # @return [String] # # @!attribute [rw] manifest - # The manifest JSON file is a text file that describes your Amazon Web - # Services resources. For examples, review [Launch your landing - # zone][1]. + # The `manifest.yaml` file is a text file that describes your Amazon + # Web Services resources. For examples, review [The manifest file][1]. # # # - # [1]: https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch + # [1]: https://docs.aws.amazon.com/controltower/latest/userguide/the-manifest-file # @return [Hash,Array,String,Numeric,Boolean] # # @!attribute [rw] version diff --git a/gems/aws-sdk-controltower/sig/client.rbs b/gems/aws-sdk-controltower/sig/client.rbs index 1dcd958a60b..29487746ee9 100644 --- a/gems/aws-sdk-controltower/sig/client.rbs +++ b/gems/aws-sdk-controltower/sig/client.rbs @@ -96,6 +96,16 @@ module Aws ) -> _DeleteLandingZoneResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteLandingZoneResponseSuccess + interface _DisableBaselineResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::DisableBaselineOutput] + def operation_identifier: () -> ::String + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#disable_baseline-instance_method + def disable_baseline: ( + enabled_baseline_identifier: ::String + ) -> _DisableBaselineResponseSuccess + | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisableBaselineResponseSuccess + interface _DisableControlResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::DisableControlOutput] def operation_identifier: () -> ::String @@ -107,6 +117,27 @@ module Aws ) -> _DisableControlResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisableControlResponseSuccess + interface _EnableBaselineResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::EnableBaselineOutput] + def arn: () -> ::String + def operation_identifier: () -> ::String + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#enable_baseline-instance_method + def enable_baseline: ( + baseline_identifier: ::String, + baseline_version: ::String, + ?parameters: Array[ + { + key: ::String, + value: { + } + }, + ], + ?tags: Hash[::String, ::String], + target_identifier: ::String + ) -> _EnableBaselineResponseSuccess + | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _EnableBaselineResponseSuccess + interface _EnableControlResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::EnableControlOutput] def arn: () -> ::String @@ -127,6 +158,28 @@ module Aws ) -> _EnableControlResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _EnableControlResponseSuccess + interface _GetBaselineResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::GetBaselineOutput] + def arn: () -> ::String + def description: () -> ::String + def name: () -> ::String + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#get_baseline-instance_method + def get_baseline: ( + baseline_identifier: ::String + ) -> _GetBaselineResponseSuccess + | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetBaselineResponseSuccess + + interface _GetBaselineOperationResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::GetBaselineOperationOutput] + def baseline_operation: () -> Types::BaselineOperation + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#get_baseline_operation-instance_method + def get_baseline_operation: ( + operation_identifier: ::String + ) -> _GetBaselineOperationResponseSuccess + | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetBaselineOperationResponseSuccess + interface _GetControlOperationResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::GetControlOperationOutput] def control_operation: () -> Types::ControlOperation @@ -137,6 +190,16 @@ module Aws ) -> _GetControlOperationResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetControlOperationResponseSuccess + interface _GetEnabledBaselineResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::GetEnabledBaselineOutput] + def enabled_baseline_details: () -> Types::EnabledBaselineDetails + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#get_enabled_baseline-instance_method + def get_enabled_baseline: ( + enabled_baseline_identifier: ::String + ) -> _GetEnabledBaselineResponseSuccess + | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEnabledBaselineResponseSuccess + interface _GetEnabledControlResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::GetEnabledControlOutput] def enabled_control_details: () -> Types::EnabledControlDetails @@ -167,6 +230,34 @@ module Aws ) -> _GetLandingZoneOperationResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLandingZoneOperationResponseSuccess + interface _ListBaselinesResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::ListBaselinesOutput] + def baselines: () -> ::Array[Types::BaselineSummary] + def next_token: () -> ::String + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#list_baselines-instance_method + def list_baselines: ( + ?max_results: ::Integer, + ?next_token: ::String + ) -> _ListBaselinesResponseSuccess + | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBaselinesResponseSuccess + + interface _ListEnabledBaselinesResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::ListEnabledBaselinesOutput] + def enabled_baselines: () -> ::Array[Types::EnabledBaselineSummary] + def next_token: () -> ::String + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#list_enabled_baselines-instance_method + def list_enabled_baselines: ( + ?filter: { + baseline_identifiers: Array[::String]?, + target_identifiers: Array[::String]? + }, + ?max_results: ::Integer, + ?next_token: ::String + ) -> _ListEnabledBaselinesResponseSuccess + | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEnabledBaselinesResponseSuccess + interface _ListEnabledControlsResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::ListEnabledControlsOutput] def enabled_controls: () -> ::Array[Types::EnabledControlSummary] @@ -202,6 +293,16 @@ module Aws ) -> _ListTagsForResourceResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess + interface _ResetEnabledBaselineResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::ResetEnabledBaselineOutput] + def operation_identifier: () -> ::String + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#reset_enabled_baseline-instance_method + def reset_enabled_baseline: ( + enabled_baseline_identifier: ::String + ) -> _ResetEnabledBaselineResponseSuccess + | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ResetEnabledBaselineResponseSuccess + interface _ResetLandingZoneResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::ResetLandingZoneOutput] def operation_identifier: () -> ::String @@ -232,6 +333,24 @@ module Aws ) -> _UntagResourceResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess + interface _UpdateEnabledBaselineResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::UpdateEnabledBaselineOutput] + def operation_identifier: () -> ::String + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ControlTower/Client.html#update_enabled_baseline-instance_method + def update_enabled_baseline: ( + baseline_version: ::String, + enabled_baseline_identifier: ::String, + ?parameters: Array[ + { + key: ::String, + value: { + } + }, + ] + ) -> _UpdateEnabledBaselineResponseSuccess + | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEnabledBaselineResponseSuccess + interface _UpdateEnabledControlResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::UpdateEnabledControlOutput] def operation_identifier: () -> ::String diff --git a/gems/aws-sdk-controltower/sig/types.rbs b/gems/aws-sdk-controltower/sig/types.rbs index 47534198ba8..7dee5d2ee43 100644 --- a/gems/aws-sdk-controltower/sig/types.rbs +++ b/gems/aws-sdk-controltower/sig/types.rbs @@ -13,6 +13,23 @@ module Aws::ControlTower SENSITIVE: [] end + class BaselineOperation + attr_accessor end_time: ::Time + attr_accessor operation_identifier: ::String + attr_accessor operation_type: ("ENABLE_BASELINE" | "DISABLE_BASELINE" | "UPDATE_ENABLED_BASELINE" | "RESET_ENABLED_BASELINE") + attr_accessor start_time: ::Time + attr_accessor status: ("SUCCEEDED" | "FAILED" | "IN_PROGRESS") + attr_accessor status_message: ::String + SENSITIVE: [] + end + + class BaselineSummary + attr_accessor arn: ::String + attr_accessor description: ::String + attr_accessor name: ::String + SENSITIVE: [] + end + class ConflictException attr_accessor message: ::String SENSITIVE: [] @@ -50,6 +67,16 @@ module Aws::ControlTower SENSITIVE: [] end + class DisableBaselineInput + attr_accessor enabled_baseline_identifier: ::String + SENSITIVE: [] + end + + class DisableBaselineOutput + attr_accessor operation_identifier: ::String + SENSITIVE: [] + end + class DisableControlInput attr_accessor control_identifier: ::String attr_accessor target_identifier: ::String @@ -66,6 +93,21 @@ module Aws::ControlTower SENSITIVE: [] end + class EnableBaselineInput + attr_accessor baseline_identifier: ::String + attr_accessor baseline_version: ::String + attr_accessor parameters: ::Array[Types::EnabledBaselineParameter] + attr_accessor tags: ::Hash[::String, ::String] + attr_accessor target_identifier: ::String + SENSITIVE: [] + end + + class EnableBaselineOutput + attr_accessor arn: ::String + attr_accessor operation_identifier: ::String + SENSITIVE: [] + end + class EnableControlInput attr_accessor control_identifier: ::String attr_accessor parameters: ::Array[Types::EnabledControlParameter] @@ -80,6 +122,43 @@ module Aws::ControlTower SENSITIVE: [] end + class EnabledBaselineDetails + attr_accessor arn: ::String + attr_accessor baseline_identifier: ::String + attr_accessor baseline_version: ::String + attr_accessor parameters: ::Array[Types::EnabledBaselineParameterSummary] + attr_accessor status_summary: Types::EnablementStatusSummary + attr_accessor target_identifier: ::String + SENSITIVE: [] + end + + class EnabledBaselineFilter + attr_accessor baseline_identifiers: ::Array[::String] + attr_accessor target_identifiers: ::Array[::String] + SENSITIVE: [] + end + + class EnabledBaselineParameter + attr_accessor key: ::String + attr_accessor value: untyped + SENSITIVE: [] + end + + class EnabledBaselineParameterSummary + attr_accessor key: ::String + attr_accessor value: untyped + SENSITIVE: [] + end + + class EnabledBaselineSummary + attr_accessor arn: ::String + attr_accessor baseline_identifier: ::String + attr_accessor baseline_version: ::String + attr_accessor status_summary: Types::EnablementStatusSummary + attr_accessor target_identifier: ::String + SENSITIVE: [] + end + class EnabledControlDetails attr_accessor arn: ::String attr_accessor control_identifier: ::String @@ -118,6 +197,28 @@ module Aws::ControlTower SENSITIVE: [] end + class GetBaselineInput + attr_accessor baseline_identifier: ::String + SENSITIVE: [] + end + + class GetBaselineOperationInput + attr_accessor operation_identifier: ::String + SENSITIVE: [] + end + + class GetBaselineOperationOutput + attr_accessor baseline_operation: Types::BaselineOperation + SENSITIVE: [] + end + + class GetBaselineOutput + attr_accessor arn: ::String + attr_accessor description: ::String + attr_accessor name: ::String + SENSITIVE: [] + end + class GetControlOperationInput attr_accessor operation_identifier: ::String SENSITIVE: [] @@ -128,6 +229,16 @@ module Aws::ControlTower SENSITIVE: [] end + class GetEnabledBaselineInput + attr_accessor enabled_baseline_identifier: ::String + SENSITIVE: [] + end + + class GetEnabledBaselineOutput + attr_accessor enabled_baseline_details: Types::EnabledBaselineDetails + SENSITIVE: [] + end + class GetEnabledControlInput attr_accessor enabled_control_identifier: ::String SENSITIVE: [] @@ -192,6 +303,31 @@ module Aws::ControlTower SENSITIVE: [] end + class ListBaselinesInput + attr_accessor max_results: ::Integer + attr_accessor next_token: ::String + SENSITIVE: [] + end + + class ListBaselinesOutput + attr_accessor baselines: ::Array[Types::BaselineSummary] + attr_accessor next_token: ::String + SENSITIVE: [] + end + + class ListEnabledBaselinesInput + attr_accessor filter: Types::EnabledBaselineFilter + attr_accessor max_results: ::Integer + attr_accessor next_token: ::String + SENSITIVE: [] + end + + class ListEnabledBaselinesOutput + attr_accessor enabled_baselines: ::Array[Types::EnabledBaselineSummary] + attr_accessor next_token: ::String + SENSITIVE: [] + end + class ListEnabledControlsInput attr_accessor max_results: ::Integer attr_accessor next_token: ::String @@ -232,6 +368,16 @@ module Aws::ControlTower SENSITIVE: [] end + class ResetEnabledBaselineInput + attr_accessor enabled_baseline_identifier: ::String + SENSITIVE: [] + end + + class ResetEnabledBaselineOutput + attr_accessor operation_identifier: ::String + SENSITIVE: [] + end + class ResetLandingZoneInput attr_accessor landing_zone_identifier: ::String SENSITIVE: [] @@ -278,6 +424,18 @@ module Aws::ControlTower class UntagResourceOutput < Aws::EmptyStructure end + class UpdateEnabledBaselineInput + attr_accessor baseline_version: ::String + attr_accessor enabled_baseline_identifier: ::String + attr_accessor parameters: ::Array[Types::EnabledBaselineParameter] + SENSITIVE: [] + end + + class UpdateEnabledBaselineOutput + attr_accessor operation_identifier: ::String + SENSITIVE: [] + end + class UpdateEnabledControlInput attr_accessor enabled_control_identifier: ::String attr_accessor parameters: ::Array[Types::EnabledControlParameter] diff --git a/gems/aws-sdk-core/CHANGELOG.md b/gems/aws-sdk-core/CHANGELOG.md index 4c4e2b42f48..c12404a9113 100644 --- a/gems/aws-sdk-core/CHANGELOG.md +++ b/gems/aws-sdk-core/CHANGELOG.md @@ -1,6 +1,9 @@ Unreleased Changes ------------------ +3.191.2 (2024-02-14) +------------------ + * Issue - Add base64 as dependency to prepare for Ruby 3.4 release (#2984). 3.191.1 (2024-02-07) diff --git a/gems/aws-sdk-core/VERSION b/gems/aws-sdk-core/VERSION index 2944d86876b..8fffe10c80f 100644 --- a/gems/aws-sdk-core/VERSION +++ b/gems/aws-sdk-core/VERSION @@ -1 +1 @@ -3.191.1 +3.191.2 diff --git a/gems/aws-sdk-core/lib/aws-sdk-sso.rb b/gems/aws-sdk-core/lib/aws-sdk-sso.rb index 74f6244bb18..10478ed08cd 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-sso.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-sso.rb @@ -54,6 +54,6 @@ # @!group service module Aws::SSO - GEM_VERSION = '3.191.1' + GEM_VERSION = '3.191.2' end diff --git a/gems/aws-sdk-core/lib/aws-sdk-sso/client.rb b/gems/aws-sdk-core/lib/aws-sdk-sso/client.rb index acffb0cbf06..4503c83b476 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-sso/client.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-sso/client.rb @@ -605,7 +605,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-core' - context[:gem_version] = '3.191.1' + context[:gem_version] = '3.191.2' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-core/lib/aws-sdk-ssooidc.rb b/gems/aws-sdk-core/lib/aws-sdk-ssooidc.rb index 33c71aeea21..ffa6f94d988 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-ssooidc.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-ssooidc.rb @@ -54,6 +54,6 @@ # @!group service module Aws::SSOOIDC - GEM_VERSION = '3.191.1' + GEM_VERSION = '3.191.2' end diff --git a/gems/aws-sdk-core/lib/aws-sdk-ssooidc/client.rb b/gems/aws-sdk-core/lib/aws-sdk-ssooidc/client.rb index 960af30e6c7..874ad909b9b 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-ssooidc/client.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-ssooidc/client.rb @@ -910,7 +910,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-core' - context[:gem_version] = '3.191.1' + context[:gem_version] = '3.191.2' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-core/lib/aws-sdk-sts.rb b/gems/aws-sdk-core/lib/aws-sdk-sts.rb index b3362943cfd..17414040580 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-sts.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-sts.rb @@ -54,6 +54,6 @@ # @!group service module Aws::STS - GEM_VERSION = '3.191.1' + GEM_VERSION = '3.191.2' end diff --git a/gems/aws-sdk-core/lib/aws-sdk-sts/client.rb b/gems/aws-sdk-core/lib/aws-sdk-sts/client.rb index 0d0192ba862..a1286a60b0f 100644 --- a/gems/aws-sdk-core/lib/aws-sdk-sts/client.rb +++ b/gems/aws-sdk-core/lib/aws-sdk-sts/client.rb @@ -2352,7 +2352,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-core' - context[:gem_version] = '3.191.1' + context[:gem_version] = '3.191.2' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-dynamodb/CHANGELOG.md b/gems/aws-sdk-dynamodb/CHANGELOG.md index 8f232817074..c1d38b7123f 100644 --- a/gems/aws-sdk-dynamodb/CHANGELOG.md +++ b/gems/aws-sdk-dynamodb/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.103.0 (2024-02-14) +------------------ + +* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. + 1.102.0 (2024-02-02) ------------------ diff --git a/gems/aws-sdk-dynamodb/VERSION b/gems/aws-sdk-dynamodb/VERSION index 1c55b869e98..e402df2ddc9 100644 --- a/gems/aws-sdk-dynamodb/VERSION +++ b/gems/aws-sdk-dynamodb/VERSION @@ -1 +1 @@ -1.102.0 +1.103.0 diff --git a/gems/aws-sdk-dynamodb/aws-sdk-dynamodb.gemspec b/gems/aws-sdk-dynamodb/aws-sdk-dynamodb.gemspec index 6321e84970f..1ffa080beed 100644 --- a/gems/aws-sdk-dynamodb/aws-sdk-dynamodb.gemspec +++ b/gems/aws-sdk-dynamodb/aws-sdk-dynamodb.gemspec @@ -25,6 +25,7 @@ Gem::Specification.new do |spec| 'changelog_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-dynamodb/CHANGELOG.md' } + spec.add_dependency('bigdecimal') spec.add_dependency('aws-sdk-core', '~> 3', '>= 3.191.0') spec.add_dependency('aws-sigv4', '~> 1.1') diff --git a/gems/aws-sdk-dynamodb/features/env.rb b/gems/aws-sdk-dynamodb/features/env.rb index 8b71fe12114..61992e39acd 100644 --- a/gems/aws-sdk-dynamodb/features/env.rb +++ b/gems/aws-sdk-dynamodb/features/env.rb @@ -9,6 +9,7 @@ $:.unshift(File.expand_path('../../lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/features', __FILE__)) +$:.unshift(File.expand_path('../../../bigdecimal/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) diff --git a/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb.rb b/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb.rb index fc2b3a5c0d7..e8c68c5badd 100644 --- a/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb.rb +++ b/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb.rb @@ -8,6 +8,7 @@ # WARNING ABOUT GENERATED CODE +require 'bigdecimal' require 'aws-sdk-core' require 'aws-sigv4' @@ -54,6 +55,6 @@ # @!group service module Aws::DynamoDB - GEM_VERSION = '1.102.0' + GEM_VERSION = '1.103.0' end diff --git a/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/client.rb b/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/client.rb index 79961def061..0ba24f8c566 100644 --- a/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/client.rb +++ b/gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/client.rb @@ -7924,7 +7924,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-dynamodb' - context[:gem_version] = '1.102.0' + context[:gem_version] = '1.103.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-dynamodb/spec/spec_helper.rb b/gems/aws-sdk-dynamodb/spec/spec_helper.rb index 23832f81a8a..50f410b0847 100644 --- a/gems/aws-sdk-dynamodb/spec/spec_helper.rb +++ b/gems/aws-sdk-dynamodb/spec/spec_helper.rb @@ -10,6 +10,7 @@ require_relative '../../aws-sdk-core/spec/shared_spec_helper' $:.unshift(File.expand_path('../../lib', __FILE__)) +$:.unshift(File.expand_path('../../../bigdecimal/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) diff --git a/gems/aws-sdk-dynamodbstreams/CHANGELOG.md b/gems/aws-sdk-dynamodbstreams/CHANGELOG.md index 00d6bfbe193..297d88f7f36 100644 --- a/gems/aws-sdk-dynamodbstreams/CHANGELOG.md +++ b/gems/aws-sdk-dynamodbstreams/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.54.0 (2024-02-14) +------------------ + +* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. + 1.53.0 (2024-01-26) ------------------ diff --git a/gems/aws-sdk-dynamodbstreams/VERSION b/gems/aws-sdk-dynamodbstreams/VERSION index 3f4830156cb..b7921ae87bc 100644 --- a/gems/aws-sdk-dynamodbstreams/VERSION +++ b/gems/aws-sdk-dynamodbstreams/VERSION @@ -1 +1 @@ -1.53.0 +1.54.0 diff --git a/gems/aws-sdk-dynamodbstreams/aws-sdk-dynamodbstreams.gemspec b/gems/aws-sdk-dynamodbstreams/aws-sdk-dynamodbstreams.gemspec index 9c6960b191c..1e9481d0520 100644 --- a/gems/aws-sdk-dynamodbstreams/aws-sdk-dynamodbstreams.gemspec +++ b/gems/aws-sdk-dynamodbstreams/aws-sdk-dynamodbstreams.gemspec @@ -25,6 +25,7 @@ Gem::Specification.new do |spec| 'changelog_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-dynamodbstreams/CHANGELOG.md' } + spec.add_dependency('bigdecimal') spec.add_dependency('aws-sdk-core', '~> 3', '>= 3.191.0') spec.add_dependency('aws-sigv4', '~> 1.1') diff --git a/gems/aws-sdk-dynamodbstreams/features/env.rb b/gems/aws-sdk-dynamodbstreams/features/env.rb index 25ac877b57a..5174abdb177 100644 --- a/gems/aws-sdk-dynamodbstreams/features/env.rb +++ b/gems/aws-sdk-dynamodbstreams/features/env.rb @@ -9,6 +9,7 @@ $:.unshift(File.expand_path('../../lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/features', __FILE__)) +$:.unshift(File.expand_path('../../../bigdecimal/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) diff --git a/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams.rb b/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams.rb index 88eae744fa8..cdba37a9a2e 100644 --- a/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams.rb +++ b/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams.rb @@ -8,6 +8,7 @@ # WARNING ABOUT GENERATED CODE +require 'bigdecimal' require 'aws-sdk-core' require 'aws-sigv4' @@ -52,6 +53,6 @@ # @!group service module Aws::DynamoDBStreams - GEM_VERSION = '1.53.0' + GEM_VERSION = '1.54.0' end diff --git a/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/client.rb b/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/client.rb index ccdfd14ffe1..d16fae96fda 100644 --- a/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/client.rb +++ b/gems/aws-sdk-dynamodbstreams/lib/aws-sdk-dynamodbstreams/client.rb @@ -854,7 +854,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-dynamodbstreams' - context[:gem_version] = '1.53.0' + context[:gem_version] = '1.54.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-dynamodbstreams/spec/spec_helper.rb b/gems/aws-sdk-dynamodbstreams/spec/spec_helper.rb index eef3c6cd1fe..b2302b01a04 100644 --- a/gems/aws-sdk-dynamodbstreams/spec/spec_helper.rb +++ b/gems/aws-sdk-dynamodbstreams/spec/spec_helper.rb @@ -10,6 +10,7 @@ require_relative '../../aws-sdk-core/spec/shared_spec_helper' $:.unshift(File.expand_path('../../lib', __FILE__)) +$:.unshift(File.expand_path('../../../bigdecimal/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) diff --git a/gems/aws-sdk-ec2/CHANGELOG.md b/gems/aws-sdk-ec2/CHANGELOG.md index 55091870aed..31b3b6697fc 100644 --- a/gems/aws-sdk-ec2/CHANGELOG.md +++ b/gems/aws-sdk-ec2/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.438.0 (2024-02-14) +------------------ + +* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. + 1.437.0 (2024-01-29) ------------------ diff --git a/gems/aws-sdk-ec2/VERSION b/gems/aws-sdk-ec2/VERSION index 42184493588..782fae348d3 100644 --- a/gems/aws-sdk-ec2/VERSION +++ b/gems/aws-sdk-ec2/VERSION @@ -1 +1 @@ -1.437.0 +1.438.0 diff --git a/gems/aws-sdk-ec2/aws-sdk-ec2.gemspec b/gems/aws-sdk-ec2/aws-sdk-ec2.gemspec index 80e8913c9dc..9b2bd5ccb0a 100644 --- a/gems/aws-sdk-ec2/aws-sdk-ec2.gemspec +++ b/gems/aws-sdk-ec2/aws-sdk-ec2.gemspec @@ -25,8 +25,8 @@ Gem::Specification.new do |spec| 'changelog_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-ec2/CHANGELOG.md' } - spec.add_dependency('aws-sigv4', '~> 1.1') spec.add_dependency('aws-sdk-core', '~> 3', '>= 3.191.0') + spec.add_dependency('aws-sigv4', '~> 1.1') spec.required_ruby_version = '>= 2.5' end diff --git a/gems/aws-sdk-ec2/features/env.rb b/gems/aws-sdk-ec2/features/env.rb index 3cc52819206..851d65be2a9 100644 --- a/gems/aws-sdk-ec2/features/env.rb +++ b/gems/aws-sdk-ec2/features/env.rb @@ -9,8 +9,8 @@ $:.unshift(File.expand_path('../../lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/features', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) +$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) require 'features_helper' require 'aws-sdk-ec2' diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2.rb index 4a5de1b699e..3efa9346512 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2.rb @@ -8,8 +8,8 @@ # WARNING ABOUT GENERATED CODE -require 'aws-sigv4' require 'aws-sdk-core' +require 'aws-sigv4' require_relative 'aws-sdk-ec2/types' require_relative 'aws-sdk-ec2/client_api' @@ -76,6 +76,6 @@ # @!group service module Aws::EC2 - GEM_VERSION = '1.437.0' + GEM_VERSION = '1.438.0' end diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client.rb index 54dd09b991f..2294d4fe14a 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client.rb @@ -58776,7 +58776,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-ec2' - context[:gem_version] = '1.437.0' + context[:gem_version] = '1.438.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-ec2/spec/spec_helper.rb b/gems/aws-sdk-ec2/spec/spec_helper.rb index 4246e2e1dca..53874687d22 100644 --- a/gems/aws-sdk-ec2/spec/spec_helper.rb +++ b/gems/aws-sdk-ec2/spec/spec_helper.rb @@ -10,8 +10,8 @@ require_relative '../../aws-sdk-core/spec/shared_spec_helper' $:.unshift(File.expand_path('../../lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) +$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) require 'rspec' require 'webmock/rspec' diff --git a/gems/aws-sdk-lookoutequipment/CHANGELOG.md b/gems/aws-sdk-lookoutequipment/CHANGELOG.md index 5414c838d14..55bf9f77fa2 100644 --- a/gems/aws-sdk-lookoutequipment/CHANGELOG.md +++ b/gems/aws-sdk-lookoutequipment/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.28.0 (2024-02-14) +------------------ + +* Feature - This feature allows customers to see pointwise model diagnostics results for their models. + 1.27.0 (2024-01-26) ------------------ diff --git a/gems/aws-sdk-lookoutequipment/VERSION b/gems/aws-sdk-lookoutequipment/VERSION index 5db08bf2dc5..cfc730712d5 100644 --- a/gems/aws-sdk-lookoutequipment/VERSION +++ b/gems/aws-sdk-lookoutequipment/VERSION @@ -1 +1 @@ -1.27.0 +1.28.0 diff --git a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment.rb b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment.rb index 1ba0036c892..b29df7cd16d 100644 --- a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment.rb +++ b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment.rb @@ -52,6 +52,6 @@ # @!group service module Aws::LookoutEquipment - GEM_VERSION = '1.27.0' + GEM_VERSION = '1.28.0' end diff --git a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb index c9304092ed1..51a83b490b5 100644 --- a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb +++ b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client.rb @@ -805,6 +805,11 @@ def create_label_group(params = {}, options = {}) # off. As long as this condition is met, Lookout for Equipment will not # use data from this asset for training, evaluation, or inference. # + # @option params [Types::ModelDiagnosticsOutputConfiguration] :model_diagnostics_output_configuration + # The Amazon S3 location where you want Amazon Lookout for Equipment to + # save the pointwise model diagnostics. You must also specify the + # `RoleArn` request parameter. + # # @return [Types::CreateModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateModelResponse#model_arn #model_arn} => String @@ -842,6 +847,13 @@ def create_label_group(params = {}, options = {}) # }, # ], # off_condition: "OffCondition", + # model_diagnostics_output_configuration: { + # s3_output_configuration: { # required + # bucket: "S3Bucket", # required + # prefix: "S3Prefix", + # }, + # kms_key_id: "NameOrArn", + # }, # }) # # @example Response structure @@ -1483,6 +1495,7 @@ def describe_label_group(params = {}, options = {}) # * {Types::DescribeModelResponse#accumulated_inference_data_start_time #accumulated_inference_data_start_time} => Time # * {Types::DescribeModelResponse#accumulated_inference_data_end_time #accumulated_inference_data_end_time} => Time # * {Types::DescribeModelResponse#retraining_scheduler_status #retraining_scheduler_status} => String + # * {Types::DescribeModelResponse#model_diagnostics_output_configuration #model_diagnostics_output_configuration} => Types::ModelDiagnosticsOutputConfiguration # # @example Request syntax with placeholder values # @@ -1534,6 +1547,9 @@ def describe_label_group(params = {}, options = {}) # resp.accumulated_inference_data_start_time #=> Time # resp.accumulated_inference_data_end_time #=> Time # resp.retraining_scheduler_status #=> String, one of "PENDING", "RUNNING", "STOPPING", "STOPPED" + # resp.model_diagnostics_output_configuration.s3_output_configuration.bucket #=> String + # resp.model_diagnostics_output_configuration.s3_output_configuration.prefix #=> String + # resp.model_diagnostics_output_configuration.kms_key_id #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DescribeModel AWS API Documentation # @@ -1586,6 +1602,8 @@ def describe_model(params = {}, options = {}) # * {Types::DescribeModelVersionResponse#retraining_available_data_in_days #retraining_available_data_in_days} => Integer # * {Types::DescribeModelVersionResponse#auto_promotion_result #auto_promotion_result} => String # * {Types::DescribeModelVersionResponse#auto_promotion_result_reason #auto_promotion_result_reason} => String + # * {Types::DescribeModelVersionResponse#model_diagnostics_output_configuration #model_diagnostics_output_configuration} => Types::ModelDiagnosticsOutputConfiguration + # * {Types::DescribeModelVersionResponse#model_diagnostics_results_object #model_diagnostics_results_object} => Types::S3Object # # @example Request syntax with placeholder values # @@ -1630,6 +1648,11 @@ def describe_model(params = {}, options = {}) # resp.retraining_available_data_in_days #=> Integer # resp.auto_promotion_result #=> String, one of "MODEL_PROMOTED", "MODEL_NOT_PROMOTED", "RETRAINING_INTERNAL_ERROR", "RETRAINING_CUSTOMER_ERROR", "RETRAINING_CANCELLED" # resp.auto_promotion_result_reason #=> String + # resp.model_diagnostics_output_configuration.s3_output_configuration.bucket #=> String + # resp.model_diagnostics_output_configuration.s3_output_configuration.prefix #=> String + # resp.model_diagnostics_output_configuration.kms_key_id #=> String + # resp.model_diagnostics_results_object.bucket #=> String + # resp.model_diagnostics_results_object.key #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DescribeModelVersion AWS API Documentation # @@ -2243,7 +2266,7 @@ def list_label_groups(params = {}, options = {}) # Provides a list of labels. # # @option params [required, String] :label_group_name - # Retruns the name of the label group. + # Returns the name of the label group. # # @option params [Time,DateTime,Date,Integer,String] :interval_start_time # Returns all the labels with a end time equal to or later than the @@ -2442,6 +2465,9 @@ def list_model_versions(params = {}, options = {}) # resp.model_summaries[0].latest_scheduled_retraining_start_time #=> Time # resp.model_summaries[0].next_scheduled_retraining_start_date #=> Time # resp.model_summaries[0].retraining_scheduler_status #=> String, one of "PENDING", "RUNNING", "STOPPING", "STOPPED" + # resp.model_summaries[0].model_diagnostics_output_configuration.s3_output_configuration.bucket #=> String + # resp.model_summaries[0].model_diagnostics_output_configuration.s3_output_configuration.prefix #=> String + # resp.model_summaries[0].model_diagnostics_output_configuration.kms_key_id #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListModels AWS API Documentation # @@ -3139,6 +3165,11 @@ def update_label_group(params = {}, options = {}) # @option params [String] :role_arn # The ARN of the model to update. # + # @option params [Types::ModelDiagnosticsOutputConfiguration] :model_diagnostics_output_configuration + # The Amazon S3 location where you want Amazon Lookout for Equipment to + # save the pointwise model diagnostics for the model. You must also + # specify the `RoleArn` request parameter. + # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @@ -3163,6 +3194,13 @@ def update_label_group(params = {}, options = {}) # label_group_name: "LabelGroupName", # }, # role_arn: "IamRoleArn", + # model_diagnostics_output_configuration: { + # s3_output_configuration: { # required + # bucket: "S3Bucket", # required + # prefix: "S3Prefix", + # }, + # kms_key_id: "NameOrArn", + # }, # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateModel AWS API Documentation @@ -3256,7 +3294,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-lookoutequipment' - context[:gem_version] = '1.27.0' + context[:gem_version] = '1.28.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client_api.rb b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client_api.rb index 6de2c7518d2..229204456a9 100644 --- a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client_api.rb +++ b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/client_api.rb @@ -160,6 +160,8 @@ module ClientApi MissingCompleteSensorData = Shapes::StructureShape.new(name: 'MissingCompleteSensorData') MissingSensorData = Shapes::StructureShape.new(name: 'MissingSensorData') ModelArn = Shapes::StringShape.new(name: 'ModelArn') + ModelDiagnosticsOutputConfiguration = Shapes::StructureShape.new(name: 'ModelDiagnosticsOutputConfiguration') + ModelDiagnosticsS3OutputConfiguration = Shapes::StructureShape.new(name: 'ModelDiagnosticsS3OutputConfiguration') ModelMetrics = Shapes::StringShape.new(name: 'ModelMetrics') ModelName = Shapes::StringShape.new(name: 'ModelName') ModelPromoteMode = Shapes::StringShape.new(name: 'ModelPromoteMode') @@ -310,6 +312,7 @@ module ClientApi CreateModelRequest.add_member(:server_side_kms_key_id, Shapes::ShapeRef.new(shape: NameOrArn, location_name: "ServerSideKmsKeyId")) CreateModelRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateModelRequest.add_member(:off_condition, Shapes::ShapeRef.new(shape: OffCondition, location_name: "OffCondition")) + CreateModelRequest.add_member(:model_diagnostics_output_configuration, Shapes::ShapeRef.new(shape: ModelDiagnosticsOutputConfiguration, location_name: "ModelDiagnosticsOutputConfiguration")) CreateModelRequest.struct_class = Types::CreateModelRequest CreateModelResponse.add_member(:model_arn, Shapes::ShapeRef.new(shape: ModelArn, location_name: "ModelArn")) @@ -507,6 +510,7 @@ module ClientApi DescribeModelResponse.add_member(:accumulated_inference_data_start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "AccumulatedInferenceDataStartTime")) DescribeModelResponse.add_member(:accumulated_inference_data_end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "AccumulatedInferenceDataEndTime")) DescribeModelResponse.add_member(:retraining_scheduler_status, Shapes::ShapeRef.new(shape: RetrainingSchedulerStatus, location_name: "RetrainingSchedulerStatus")) + DescribeModelResponse.add_member(:model_diagnostics_output_configuration, Shapes::ShapeRef.new(shape: ModelDiagnosticsOutputConfiguration, location_name: "ModelDiagnosticsOutputConfiguration")) DescribeModelResponse.struct_class = Types::DescribeModelResponse DescribeModelVersionRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "ModelName")) @@ -545,6 +549,8 @@ module ClientApi DescribeModelVersionResponse.add_member(:retraining_available_data_in_days, Shapes::ShapeRef.new(shape: Integer, location_name: "RetrainingAvailableDataInDays")) DescribeModelVersionResponse.add_member(:auto_promotion_result, Shapes::ShapeRef.new(shape: AutoPromotionResult, location_name: "AutoPromotionResult")) DescribeModelVersionResponse.add_member(:auto_promotion_result_reason, Shapes::ShapeRef.new(shape: AutoPromotionResultReason, location_name: "AutoPromotionResultReason")) + DescribeModelVersionResponse.add_member(:model_diagnostics_output_configuration, Shapes::ShapeRef.new(shape: ModelDiagnosticsOutputConfiguration, location_name: "ModelDiagnosticsOutputConfiguration")) + DescribeModelVersionResponse.add_member(:model_diagnostics_results_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "ModelDiagnosticsResultsObject")) DescribeModelVersionResponse.struct_class = Types::DescribeModelVersionResponse DescribeResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn")) @@ -861,6 +867,14 @@ module ClientApi MissingSensorData.add_member(:total_number_of_missing_values, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "TotalNumberOfMissingValues")) MissingSensorData.struct_class = Types::MissingSensorData + ModelDiagnosticsOutputConfiguration.add_member(:s3_output_configuration, Shapes::ShapeRef.new(shape: ModelDiagnosticsS3OutputConfiguration, required: true, location_name: "S3OutputConfiguration")) + ModelDiagnosticsOutputConfiguration.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: NameOrArn, location_name: "KmsKeyId")) + ModelDiagnosticsOutputConfiguration.struct_class = Types::ModelDiagnosticsOutputConfiguration + + ModelDiagnosticsS3OutputConfiguration.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, required: true, location_name: "Bucket")) + ModelDiagnosticsS3OutputConfiguration.add_member(:prefix, Shapes::ShapeRef.new(shape: S3Prefix, location_name: "Prefix")) + ModelDiagnosticsS3OutputConfiguration.struct_class = Types::ModelDiagnosticsS3OutputConfiguration + ModelSummaries.member = Shapes::ShapeRef.new(shape: ModelSummary) ModelSummary.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, location_name: "ModelName")) @@ -876,6 +890,7 @@ module ClientApi ModelSummary.add_member(:latest_scheduled_retraining_start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LatestScheduledRetrainingStartTime")) ModelSummary.add_member(:next_scheduled_retraining_start_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "NextScheduledRetrainingStartDate")) ModelSummary.add_member(:retraining_scheduler_status, Shapes::ShapeRef.new(shape: RetrainingSchedulerStatus, location_name: "RetrainingSchedulerStatus")) + ModelSummary.add_member(:model_diagnostics_output_configuration, Shapes::ShapeRef.new(shape: ModelDiagnosticsOutputConfiguration, location_name: "ModelDiagnosticsOutputConfiguration")) ModelSummary.struct_class = Types::ModelSummary ModelVersionSummaries.member = Shapes::ShapeRef.new(shape: ModelVersionSummary) @@ -1045,6 +1060,7 @@ module ClientApi UpdateModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "ModelName")) UpdateModelRequest.add_member(:labels_input_configuration, Shapes::ShapeRef.new(shape: LabelsInputConfiguration, location_name: "LabelsInputConfiguration")) UpdateModelRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "RoleArn")) + UpdateModelRequest.add_member(:model_diagnostics_output_configuration, Shapes::ShapeRef.new(shape: ModelDiagnosticsOutputConfiguration, location_name: "ModelDiagnosticsOutputConfiguration")) UpdateModelRequest.struct_class = Types::UpdateModelRequest UpdateRetrainingSchedulerRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "ModelName")) diff --git a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/endpoint_provider.rb b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/endpoint_provider.rb index 86034d6ef88..89de0a2011e 100644 --- a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/endpoint_provider.rb +++ b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/endpoint_provider.rb @@ -32,7 +32,7 @@ def resolve_endpoint(parameters) raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both" end if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) + if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true) return Aws::Endpoints::Endpoint.new(url: "https://lookoutequipment-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) end raise ArgumentError, "FIPS is enabled but this partition does not support FIPS" diff --git a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/types.rb b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/types.rb index 992a9ffc9ab..89bf8f10c66 100644 --- a/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/types.rb +++ b/gems/aws-sdk-lookoutequipment/lib/aws-sdk-lookoutequipment/types.rb @@ -470,6 +470,12 @@ class CreateLabelResponse < Struct.new( # not use data from this asset for training, evaluation, or inference. # @return [String] # + # @!attribute [rw] model_diagnostics_output_configuration + # The Amazon S3 location where you want Amazon Lookout for Equipment + # to save the pointwise model diagnostics. You must also specify the + # `RoleArn` request parameter. + # @return [Types::ModelDiagnosticsOutputConfiguration] + # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/CreateModelRequest AWS API Documentation # class CreateModelRequest < Struct.new( @@ -486,7 +492,8 @@ class CreateModelRequest < Struct.new( :data_pre_processing_configuration, :server_side_kms_key_id, :tags, - :off_condition) + :off_condition, + :model_diagnostics_output_configuration) SENSITIVE = [] include Aws::Structure end @@ -1513,6 +1520,11 @@ class DescribeModelRequest < Struct.new( # Indicates the status of the retraining scheduler. # @return [String] # + # @!attribute [rw] model_diagnostics_output_configuration + # Configuration information for the model's pointwise model + # diagnostics. + # @return [Types::ModelDiagnosticsOutputConfiguration] + # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DescribeModelResponse AWS API Documentation # class DescribeModelResponse < Struct.new( @@ -1555,7 +1567,8 @@ class DescribeModelResponse < Struct.new( :next_scheduled_retraining_start_date, :accumulated_inference_data_start_time, :accumulated_inference_data_end_time, - :retraining_scheduler_status) + :retraining_scheduler_status, + :model_diagnostics_output_configuration) SENSITIVE = [] include Aws::Structure end @@ -1750,6 +1763,16 @@ class DescribeModelVersionRequest < Struct.new( # than the previous model. # @return [String] # + # @!attribute [rw] model_diagnostics_output_configuration + # The Amazon S3 location where Amazon Lookout for Equipment saves the + # pointwise model diagnostics for the model version. + # @return [Types::ModelDiagnosticsOutputConfiguration] + # + # @!attribute [rw] model_diagnostics_results_object + # The Amazon S3 output prefix for where Lookout for Equipment saves + # the pointwise model diagnostics for the model version. + # @return [Types::S3Object] + # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/DescribeModelVersionResponse AWS API Documentation # class DescribeModelVersionResponse < Struct.new( @@ -1784,7 +1807,9 @@ class DescribeModelVersionResponse < Struct.new( :prior_model_metrics, :retraining_available_data_in_days, :auto_promotion_result, - :auto_promotion_result_reason) + :auto_promotion_result_reason, + :model_diagnostics_output_configuration, + :model_diagnostics_results_object) SENSITIVE = [] include Aws::Structure end @@ -2502,7 +2527,7 @@ class IngestionS3InputConfiguration < Struct.new( # # @!attribute [rw] sensors_with_short_date_range # Parameter that describes the total number of sensors that have a - # short date range of less than 90 days of data overall. + # short date range of less than 14 days of data overall. # @return [Types::SensorsWithShortDateRange] # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/InsufficientSensorData AWS API Documentation @@ -2898,6 +2923,13 @@ class ListInferenceExecutionsRequest < Struct.new( # executions returned from the `ListInferenceExecutions` operation, # including model used, inference scheduler, data configuration, and # so on. + # + # If you don't supply the `InferenceSchedulerName` request parameter, + # or if you supply the name of an inference scheduler that doesn't + # exist, `ListInferenceExecutions` returns an empty array in + # `InferenceExecutionSummaries`. + # + # # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListInferenceExecutionsResponse AWS API Documentation @@ -3004,7 +3036,7 @@ class ListLabelGroupsResponse < Struct.new( end # @!attribute [rw] label_group_name - # Retruns the name of the label group. + # Returns the name of the label group. # @return [String] # # @!attribute [rw] interval_start_time @@ -3055,6 +3087,12 @@ class ListLabelsRequest < Struct.new( # # @!attribute [rw] label_summaries # A summary of the items in the label group. + # + # If you don't supply the `LabelGroupName` request parameter, or if + # you supply the name of a label group that doesn't exist, + # `ListLabels` returns an empty array in `LabelSummaries`. + # + # # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListLabelsResponse AWS API Documentation @@ -3137,6 +3175,12 @@ class ListModelVersionsRequest < Struct.new( # @!attribute [rw] model_version_summaries # Provides information on the specified model version, including the # created time, model and dataset ARNs, and status. + # + # If you don't supply the `ModelName` request parameter, or if you + # supply the name of a model that doesn't exist, `ListModelVersions` + # returns an empty array in `ModelVersionSummaries`. + # + # # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ListModelVersionsResponse AWS API Documentation @@ -3366,6 +3410,60 @@ class MissingSensorData < Struct.new( include Aws::Structure end + # Output configuration information for the pointwise model diagnostics + # for an Amazon Lookout for Equipment model. + # + # @!attribute [rw] s3_output_configuration + # The Amazon S3 location for the pointwise model diagnostics. + # @return [Types::ModelDiagnosticsS3OutputConfiguration] + # + # @!attribute [rw] kms_key_id + # The Amazon Web Services Key Management Service (KMS) key identifier + # to encrypt the pointwise model diagnostics files. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ModelDiagnosticsOutputConfiguration AWS API Documentation + # + class ModelDiagnosticsOutputConfiguration < Struct.new( + :s3_output_configuration, + :kms_key_id) + SENSITIVE = [] + include Aws::Structure + end + + # The Amazon S3 location for the pointwise model diagnostics for an + # Amazon Lookout for Equipment model. + # + # @!attribute [rw] bucket + # The name of the Amazon S3 bucket where the pointwise model + # diagnostics are located. You must be the owner of the Amazon S3 + # bucket. + # @return [String] + # + # @!attribute [rw] prefix + # The Amazon S3 prefix for the location of the pointwise model + # diagnostics. The prefix specifies the folder and evaluation result + # file name. (`bucket`). + # + # When you call `CreateModel` or `UpdateModel`, specify the path + # within the bucket that you want Lookout for Equipment to save the + # model to. During training, Lookout for Equipment creates the model + # evaluation model as a compressed JSON file with the name + # `model_diagnostics_results.json.gz`. + # + # When you call `DescribeModel` or `DescribeModelVersion`, `prefix` + # contains the file path and filename of the model evaluation file. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ModelDiagnosticsS3OutputConfiguration AWS API Documentation + # + class ModelDiagnosticsS3OutputConfiguration < Struct.new( + :bucket, + :prefix) + SENSITIVE = [] + include Aws::Structure + end + # Provides information about the specified machine learning model, # including dataset and model names and ARNs, as well as status. # @@ -3433,6 +3531,11 @@ class MissingSensorData < Struct.new( # Indicates the status of the retraining scheduler. # @return [String] # + # @!attribute [rw] model_diagnostics_output_configuration + # Output configuration information for the pointwise model diagnostics + # for an Amazon Lookout for Equipment model. + # @return [Types::ModelDiagnosticsOutputConfiguration] + # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/ModelSummary AWS API Documentation # class ModelSummary < Struct.new( @@ -3448,7 +3551,8 @@ class ModelSummary < Struct.new( :latest_scheduled_retraining_model_version, :latest_scheduled_retraining_start_time, :next_scheduled_retraining_start_date, - :retraining_scheduler_status) + :retraining_scheduler_status, + :model_diagnostics_output_configuration) SENSITIVE = [] include Aws::Structure end @@ -3761,7 +3865,7 @@ class SensorStatisticsSummary < Struct.new( # range. # # @!attribute [rw] affected_sensor_count - # Indicates the number of sensors that have less than 90 days of data. + # Indicates the number of sensors that have less than 14 days of data. # @return [Integer] # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/SensorsWithShortDateRange AWS API Documentation @@ -4241,12 +4345,19 @@ class UpdateLabelGroupRequest < Struct.new( # The ARN of the model to update. # @return [String] # + # @!attribute [rw] model_diagnostics_output_configuration + # The Amazon S3 location where you want Amazon Lookout for Equipment + # to save the pointwise model diagnostics for the model. You must also + # specify the `RoleArn` request parameter. + # @return [Types::ModelDiagnosticsOutputConfiguration] + # # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateModelRequest AWS API Documentation # class UpdateModelRequest < Struct.new( :model_name, :labels_input_configuration, - :role_arn) + :role_arn, + :model_diagnostics_output_configuration) SENSITIVE = [] include Aws::Structure end diff --git a/gems/aws-sdk-lookoutequipment/sig/client.rbs b/gems/aws-sdk-lookoutequipment/sig/client.rbs index 34e8eb764ee..6d4546dfc4d 100644 --- a/gems/aws-sdk-lookoutequipment/sig/client.rbs +++ b/gems/aws-sdk-lookoutequipment/sig/client.rbs @@ -209,7 +209,14 @@ module Aws value: ::String }, ], - ?off_condition: ::String + ?off_condition: ::String, + ?model_diagnostics_output_configuration: { + s3_output_configuration: { + bucket: ::String, + prefix: ::String? + }, + kms_key_id: ::String? + } ) -> _CreateModelResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateModelResponseSuccess @@ -418,6 +425,7 @@ module Aws def accumulated_inference_data_start_time: () -> ::Time def accumulated_inference_data_end_time: () -> ::Time def retraining_scheduler_status: () -> ("PENDING" | "RUNNING" | "STOPPING" | "STOPPED") + def model_diagnostics_output_configuration: () -> Types::ModelDiagnosticsOutputConfiguration end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LookoutEquipment/Client.html#describe_model-instance_method def describe_model: ( @@ -459,6 +467,8 @@ module Aws def retraining_available_data_in_days: () -> ::Integer def auto_promotion_result: () -> ("MODEL_PROMOTED" | "MODEL_NOT_PROMOTED" | "RETRAINING_INTERNAL_ERROR" | "RETRAINING_CUSTOMER_ERROR" | "RETRAINING_CANCELLED") def auto_promotion_result_reason: () -> ::String + def model_diagnostics_output_configuration: () -> Types::ModelDiagnosticsOutputConfiguration + def model_diagnostics_results_object: () -> Types::S3Object end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LookoutEquipment/Client.html#describe_model_version-instance_method def describe_model_version: ( @@ -899,7 +909,14 @@ module Aws }?, label_group_name: ::String? }, - ?role_arn: ::String + ?role_arn: ::String, + ?model_diagnostics_output_configuration: { + s3_output_configuration: { + bucket: ::String, + prefix: ::String? + }, + kms_key_id: ::String? + } ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure] | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure] diff --git a/gems/aws-sdk-lookoutequipment/sig/types.rbs b/gems/aws-sdk-lookoutequipment/sig/types.rbs index 13ba1aadbe5..d6415c1d4a3 100644 --- a/gems/aws-sdk-lookoutequipment/sig/types.rbs +++ b/gems/aws-sdk-lookoutequipment/sig/types.rbs @@ -113,6 +113,7 @@ module Aws::LookoutEquipment attr_accessor server_side_kms_key_id: ::String attr_accessor tags: ::Array[Types::Tag] attr_accessor off_condition: ::String + attr_accessor model_diagnostics_output_configuration: Types::ModelDiagnosticsOutputConfiguration SENSITIVE: [] end @@ -360,6 +361,7 @@ module Aws::LookoutEquipment attr_accessor accumulated_inference_data_start_time: ::Time attr_accessor accumulated_inference_data_end_time: ::Time attr_accessor retraining_scheduler_status: ("PENDING" | "RUNNING" | "STOPPING" | "STOPPED") + attr_accessor model_diagnostics_output_configuration: Types::ModelDiagnosticsOutputConfiguration SENSITIVE: [] end @@ -402,6 +404,8 @@ module Aws::LookoutEquipment attr_accessor retraining_available_data_in_days: ::Integer attr_accessor auto_promotion_result: ("MODEL_PROMOTED" | "MODEL_NOT_PROMOTED" | "RETRAINING_INTERNAL_ERROR" | "RETRAINING_CUSTOMER_ERROR" | "RETRAINING_CANCELLED") attr_accessor auto_promotion_result_reason: ::String + attr_accessor model_diagnostics_output_configuration: Types::ModelDiagnosticsOutputConfiguration + attr_accessor model_diagnostics_results_object: Types::S3Object SENSITIVE: [] end @@ -813,6 +817,18 @@ module Aws::LookoutEquipment SENSITIVE: [] end + class ModelDiagnosticsOutputConfiguration + attr_accessor s3_output_configuration: Types::ModelDiagnosticsS3OutputConfiguration + attr_accessor kms_key_id: ::String + SENSITIVE: [] + end + + class ModelDiagnosticsS3OutputConfiguration + attr_accessor bucket: ::String + attr_accessor prefix: ::String + SENSITIVE: [] + end + class ModelSummary attr_accessor model_name: ::String attr_accessor model_arn: ::String @@ -827,6 +843,7 @@ module Aws::LookoutEquipment attr_accessor latest_scheduled_retraining_start_time: ::Time attr_accessor next_scheduled_retraining_start_date: ::Time attr_accessor retraining_scheduler_status: ("PENDING" | "RUNNING" | "STOPPING" | "STOPPED") + attr_accessor model_diagnostics_output_configuration: Types::ModelDiagnosticsOutputConfiguration SENSITIVE: [] end @@ -1050,6 +1067,7 @@ module Aws::LookoutEquipment attr_accessor model_name: ::String attr_accessor labels_input_configuration: Types::LabelsInputConfiguration attr_accessor role_arn: ::String + attr_accessor model_diagnostics_output_configuration: Types::ModelDiagnosticsOutputConfiguration SENSITIVE: [] end diff --git a/gems/aws-sdk-qbusiness/CHANGELOG.md b/gems/aws-sdk-qbusiness/CHANGELOG.md index 71da34a1d1b..e791d4a837e 100644 --- a/gems/aws-sdk-qbusiness/CHANGELOG.md +++ b/gems/aws-sdk-qbusiness/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.2.0 (2024-02-14) +------------------ + +* Feature - This release adds the metadata-boosting feature, which allows customers to easily fine-tune the underlying ranking of retrieved RAG passages in order to optimize Q&A answer relevance. It also adds new feedback reasons for the PutFeedback API. + 1.1.0 (2024-01-26) ------------------ diff --git a/gems/aws-sdk-qbusiness/VERSION b/gems/aws-sdk-qbusiness/VERSION index 9084fa2f716..26aaba0e866 100644 --- a/gems/aws-sdk-qbusiness/VERSION +++ b/gems/aws-sdk-qbusiness/VERSION @@ -1 +1 @@ -1.1.0 +1.2.0 diff --git a/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness.rb b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness.rb index 48879082a3f..79fce362cb1 100644 --- a/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness.rb +++ b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness.rb @@ -52,6 +52,6 @@ # @!group service module Aws::QBusiness - GEM_VERSION = '1.1.0' + GEM_VERSION = '1.2.0' end diff --git a/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/client.rb b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/client.rb index 78f82f11713..672b2648b66 100644 --- a/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/client.rb +++ b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/client.rb @@ -1068,8 +1068,8 @@ def create_data_source(params = {}, options = {}) # # # - # [1]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_BatchPutDocument.html - # [2]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_CreateDataSource.html + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_BatchPutDocument.html + # [2]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_CreateDataSource.html # # @option params [required, String] :application_id # The identifier of the Amazon Q application using the index. @@ -1258,6 +1258,27 @@ def create_plugin(params = {}, options = {}) # index_id: "KendraIndexId", # required # }, # native_index_configuration: { + # boosting_override: { + # "DocumentAttributeKey" => { + # date_configuration: { + # boosting_duration_in_seconds: 1, + # boosting_level: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH, VERY_HIGH + # }, + # number_configuration: { + # boosting_level: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH, VERY_HIGH + # boosting_type: "PRIORITIZE_LARGER_VALUES", # accepts PRIORITIZE_LARGER_VALUES, PRIORITIZE_SMALLER_VALUES + # }, + # string_configuration: { + # attribute_value_boosting: { + # "String" => "LOW", # accepts LOW, MEDIUM, HIGH, VERY_HIGH + # }, + # boosting_level: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH, VERY_HIGH + # }, + # string_list_configuration: { + # boosting_level: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH, VERY_HIGH + # }, + # }, + # }, # index_id: "IndexId", # required # }, # }, @@ -2114,6 +2135,15 @@ def get_plugin(params = {}, options = {}) # # resp.application_id #=> String # resp.configuration.kendra_index_configuration.index_id #=> String + # resp.configuration.native_index_configuration.boosting_override #=> Hash + # resp.configuration.native_index_configuration.boosting_override["DocumentAttributeKey"].date_configuration.boosting_duration_in_seconds #=> Integer + # resp.configuration.native_index_configuration.boosting_override["DocumentAttributeKey"].date_configuration.boosting_level #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH", "VERY_HIGH" + # resp.configuration.native_index_configuration.boosting_override["DocumentAttributeKey"].number_configuration.boosting_level #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH", "VERY_HIGH" + # resp.configuration.native_index_configuration.boosting_override["DocumentAttributeKey"].number_configuration.boosting_type #=> String, one of "PRIORITIZE_LARGER_VALUES", "PRIORITIZE_SMALLER_VALUES" + # resp.configuration.native_index_configuration.boosting_override["DocumentAttributeKey"].string_configuration.attribute_value_boosting #=> Hash + # resp.configuration.native_index_configuration.boosting_override["DocumentAttributeKey"].string_configuration.attribute_value_boosting["String"] #=> String, one of "LOW", "MEDIUM", "HIGH", "VERY_HIGH" + # resp.configuration.native_index_configuration.boosting_override["DocumentAttributeKey"].string_configuration.boosting_level #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH", "VERY_HIGH" + # resp.configuration.native_index_configuration.boosting_override["DocumentAttributeKey"].string_list_configuration.boosting_level #=> String, one of "NONE", "LOW", "MEDIUM", "HIGH", "VERY_HIGH" # resp.configuration.native_index_configuration.index_id #=> String # resp.created_at #=> Time # resp.display_name #=> String @@ -2912,7 +2942,7 @@ def list_web_experiences(params = {}, options = {}) # message_id: "SystemMessageId", # required # message_usefulness: { # comment: "MessageUsefulnessComment", - # reason: "NOT_FACTUALLY_CORRECT", # accepts NOT_FACTUALLY_CORRECT, HARMFUL_OR_UNSAFE, INCORRECT_OR_MISSING_SOURCES, NOT_HELPFUL, FACTUALLY_CORRECT, COMPLETE, RELEVANT_SOURCES, HELPFUL + # reason: "NOT_FACTUALLY_CORRECT", # accepts NOT_FACTUALLY_CORRECT, HARMFUL_OR_UNSAFE, INCORRECT_OR_MISSING_SOURCES, NOT_HELPFUL, FACTUALLY_CORRECT, COMPLETE, RELEVANT_SOURCES, HELPFUL, NOT_BASED_ON_DOCUMENTS, NOT_COMPLETE, NOT_CONCISE, OTHER # submitted_at: Time.now, # required # usefulness: "USEFUL", # required, accepts USEFUL, NOT_USEFUL # }, @@ -3582,6 +3612,27 @@ def update_plugin(params = {}, options = {}) # index_id: "KendraIndexId", # required # }, # native_index_configuration: { + # boosting_override: { + # "DocumentAttributeKey" => { + # date_configuration: { + # boosting_duration_in_seconds: 1, + # boosting_level: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH, VERY_HIGH + # }, + # number_configuration: { + # boosting_level: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH, VERY_HIGH + # boosting_type: "PRIORITIZE_LARGER_VALUES", # accepts PRIORITIZE_LARGER_VALUES, PRIORITIZE_SMALLER_VALUES + # }, + # string_configuration: { + # attribute_value_boosting: { + # "String" => "LOW", # accepts LOW, MEDIUM, HIGH, VERY_HIGH + # }, + # boosting_level: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH, VERY_HIGH + # }, + # string_list_configuration: { + # boosting_level: "NONE", # required, accepts NONE, LOW, MEDIUM, HIGH, VERY_HIGH + # }, + # }, + # }, # index_id: "IndexId", # required # }, # }, @@ -3733,7 +3784,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-qbusiness' - context[:gem_version] = '1.1.0' + context[:gem_version] = '1.2.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/client_api.rb b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/client_api.rb index 5893fd0acae..9326cf90eb0 100644 --- a/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/client_api.rb +++ b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/client_api.rb @@ -60,6 +60,7 @@ module ClientApi BlockedPhrasesConfiguration = Shapes::StructureShape.new(name: 'BlockedPhrasesConfiguration') BlockedPhrasesConfigurationUpdate = Shapes::StructureShape.new(name: 'BlockedPhrasesConfigurationUpdate') Boolean = Shapes::BooleanShape.new(name: 'Boolean') + BoostingDurationInSeconds = Shapes::IntegerShape.new(name: 'BoostingDurationInSeconds') ChatSyncInput = Shapes::StructureShape.new(name: 'ChatSyncInput') ChatSyncOutput = Shapes::StructureShape.new(name: 'ChatSyncOutput') ClientToken = Shapes::StringShape.new(name: 'ClientToken') @@ -100,6 +101,7 @@ module ClientApi DataSourceUserId = Shapes::StringShape.new(name: 'DataSourceUserId') DataSourceVpcConfiguration = Shapes::StructureShape.new(name: 'DataSourceVpcConfiguration') DataSources = Shapes::ListShape.new(name: 'DataSources') + DateAttributeBoostingConfiguration = Shapes::StructureShape.new(name: 'DateAttributeBoostingConfiguration') DeleteApplicationRequest = Shapes::StructureShape.new(name: 'DeleteApplicationRequest') DeleteApplicationResponse = Shapes::StructureShape.new(name: 'DeleteApplicationResponse') DeleteChatControlsConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteChatControlsConfigurationRequest') @@ -125,6 +127,9 @@ module ClientApi Description = Shapes::StringShape.new(name: 'Description') Document = Shapes::StructureShape.new(name: 'Document') DocumentAttribute = Shapes::StructureShape.new(name: 'DocumentAttribute') + DocumentAttributeBoostingConfiguration = Shapes::UnionShape.new(name: 'DocumentAttributeBoostingConfiguration') + DocumentAttributeBoostingLevel = Shapes::StringShape.new(name: 'DocumentAttributeBoostingLevel') + DocumentAttributeBoostingOverrideMap = Shapes::MapShape.new(name: 'DocumentAttributeBoostingOverrideMap') DocumentAttributeCondition = Shapes::StructureShape.new(name: 'DocumentAttributeCondition') DocumentAttributeConfiguration = Shapes::StructureShape.new(name: 'DocumentAttributeConfiguration') DocumentAttributeConfigurations = Shapes::ListShape.new(name: 'DocumentAttributeConfigurations') @@ -255,6 +260,8 @@ module ClientApi MetricValue = Shapes::StringShape.new(name: 'MetricValue') NativeIndexConfiguration = Shapes::StructureShape.new(name: 'NativeIndexConfiguration') NextToken = Shapes::StringShape.new(name: 'NextToken') + NumberAttributeBoostingConfiguration = Shapes::StructureShape.new(name: 'NumberAttributeBoostingConfiguration') + NumberAttributeBoostingType = Shapes::StringShape.new(name: 'NumberAttributeBoostingType') OAuth2ClientCredentialConfiguration = Shapes::StructureShape.new(name: 'OAuth2ClientCredentialConfiguration') Plugin = Shapes::StructureShape.new(name: 'Plugin') PluginArn = Shapes::StringShape.new(name: 'PluginArn') @@ -305,6 +312,10 @@ module ClientApi StopDataSourceSyncJobRequest = Shapes::StructureShape.new(name: 'StopDataSourceSyncJobRequest') StopDataSourceSyncJobResponse = Shapes::StructureShape.new(name: 'StopDataSourceSyncJobResponse') String = Shapes::StringShape.new(name: 'String') + StringAttributeBoostingConfiguration = Shapes::StructureShape.new(name: 'StringAttributeBoostingConfiguration') + StringAttributeValueBoosting = Shapes::MapShape.new(name: 'StringAttributeValueBoosting') + StringAttributeValueBoostingLevel = Shapes::StringShape.new(name: 'StringAttributeValueBoostingLevel') + StringListAttributeBoostingConfiguration = Shapes::StructureShape.new(name: 'StringListAttributeBoostingConfiguration') SubnetId = Shapes::StringShape.new(name: 'SubnetId') SubnetIds = Shapes::ListShape.new(name: 'SubnetIds') SyncSchedule = Shapes::StringShape.new(name: 'SyncSchedule') @@ -655,6 +666,10 @@ module ClientApi DataSources.member = Shapes::ShapeRef.new(shape: DataSource) + DateAttributeBoostingConfiguration.add_member(:boosting_duration_in_seconds, Shapes::ShapeRef.new(shape: BoostingDurationInSeconds, location_name: "boostingDurationInSeconds")) + DateAttributeBoostingConfiguration.add_member(:boosting_level, Shapes::ShapeRef.new(shape: DocumentAttributeBoostingLevel, required: true, location_name: "boostingLevel")) + DateAttributeBoostingConfiguration.struct_class = Types::DateAttributeBoostingConfiguration + DeleteApplicationRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId")) DeleteApplicationRequest.struct_class = Types::DeleteApplicationRequest @@ -735,6 +750,21 @@ module ClientApi DocumentAttribute.add_member(:value, Shapes::ShapeRef.new(shape: DocumentAttributeValue, required: true, location_name: "value")) DocumentAttribute.struct_class = Types::DocumentAttribute + DocumentAttributeBoostingConfiguration.add_member(:date_configuration, Shapes::ShapeRef.new(shape: DateAttributeBoostingConfiguration, location_name: "dateConfiguration")) + DocumentAttributeBoostingConfiguration.add_member(:number_configuration, Shapes::ShapeRef.new(shape: NumberAttributeBoostingConfiguration, location_name: "numberConfiguration")) + DocumentAttributeBoostingConfiguration.add_member(:string_configuration, Shapes::ShapeRef.new(shape: StringAttributeBoostingConfiguration, location_name: "stringConfiguration")) + DocumentAttributeBoostingConfiguration.add_member(:string_list_configuration, Shapes::ShapeRef.new(shape: StringListAttributeBoostingConfiguration, location_name: "stringListConfiguration")) + DocumentAttributeBoostingConfiguration.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown')) + DocumentAttributeBoostingConfiguration.add_member_subclass(:date_configuration, Types::DocumentAttributeBoostingConfiguration::DateConfiguration) + DocumentAttributeBoostingConfiguration.add_member_subclass(:number_configuration, Types::DocumentAttributeBoostingConfiguration::NumberConfiguration) + DocumentAttributeBoostingConfiguration.add_member_subclass(:string_configuration, Types::DocumentAttributeBoostingConfiguration::StringConfiguration) + DocumentAttributeBoostingConfiguration.add_member_subclass(:string_list_configuration, Types::DocumentAttributeBoostingConfiguration::StringListConfiguration) + DocumentAttributeBoostingConfiguration.add_member_subclass(:unknown, Types::DocumentAttributeBoostingConfiguration::Unknown) + DocumentAttributeBoostingConfiguration.struct_class = Types::DocumentAttributeBoostingConfiguration + + DocumentAttributeBoostingOverrideMap.key = Shapes::ShapeRef.new(shape: DocumentAttributeKey) + DocumentAttributeBoostingOverrideMap.value = Shapes::ShapeRef.new(shape: DocumentAttributeBoostingConfiguration) + DocumentAttributeCondition.add_member(:key, Shapes::ShapeRef.new(shape: DocumentAttributeKey, required: true, location_name: "key")) DocumentAttributeCondition.add_member(:operator, Shapes::ShapeRef.new(shape: DocumentEnrichmentConditionOperator, required: true, location_name: "operator")) DocumentAttributeCondition.add_member(:value, Shapes::ShapeRef.new(shape: DocumentAttributeValue, location_name: "value")) @@ -1151,9 +1181,14 @@ module ClientApi Messages.member = Shapes::ShapeRef.new(shape: Message) + NativeIndexConfiguration.add_member(:boosting_override, Shapes::ShapeRef.new(shape: DocumentAttributeBoostingOverrideMap, location_name: "boostingOverride")) NativeIndexConfiguration.add_member(:index_id, Shapes::ShapeRef.new(shape: IndexId, required: true, location_name: "indexId")) NativeIndexConfiguration.struct_class = Types::NativeIndexConfiguration + NumberAttributeBoostingConfiguration.add_member(:boosting_level, Shapes::ShapeRef.new(shape: DocumentAttributeBoostingLevel, required: true, location_name: "boostingLevel")) + NumberAttributeBoostingConfiguration.add_member(:boosting_type, Shapes::ShapeRef.new(shape: NumberAttributeBoostingType, location_name: "boostingType")) + NumberAttributeBoostingConfiguration.struct_class = Types::NumberAttributeBoostingConfiguration + OAuth2ClientCredentialConfiguration.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn")) OAuth2ClientCredentialConfiguration.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, required: true, location_name: "secretArn")) OAuth2ClientCredentialConfiguration.struct_class = Types::OAuth2ClientCredentialConfiguration @@ -1295,6 +1330,16 @@ module ClientApi StopDataSourceSyncJobResponse.struct_class = Types::StopDataSourceSyncJobResponse + StringAttributeBoostingConfiguration.add_member(:attribute_value_boosting, Shapes::ShapeRef.new(shape: StringAttributeValueBoosting, location_name: "attributeValueBoosting")) + StringAttributeBoostingConfiguration.add_member(:boosting_level, Shapes::ShapeRef.new(shape: DocumentAttributeBoostingLevel, required: true, location_name: "boostingLevel")) + StringAttributeBoostingConfiguration.struct_class = Types::StringAttributeBoostingConfiguration + + StringAttributeValueBoosting.key = Shapes::ShapeRef.new(shape: String) + StringAttributeValueBoosting.value = Shapes::ShapeRef.new(shape: StringAttributeValueBoostingLevel) + + StringListAttributeBoostingConfiguration.add_member(:boosting_level, Shapes::ShapeRef.new(shape: DocumentAttributeBoostingLevel, required: true, location_name: "boostingLevel")) + StringListAttributeBoostingConfiguration.struct_class = Types::StringListAttributeBoostingConfiguration + SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId) Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key")) diff --git a/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/types.rb b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/types.rb index 750ec8273e9..bd13ba29b47 100644 --- a/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/types.rb +++ b/gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/types.rb @@ -312,8 +312,8 @@ class AttachmentsConfiguration < Struct.new( include Aws::Structure end - # Enables filtering of Amazon Q web experience responses based on - # document attributes or metadata fields. + # Enables filtering of responses based on document attributes or + # metadata fields. # # @!attribute [rw] and_all_filters # Performs a logical `AND` operation on all supplied filters. @@ -1386,6 +1386,33 @@ class DataSourceVpcConfiguration < Struct.new( include Aws::Structure end + # Provides information on boosting `DATE` type document attributes. + # + # For more information on how boosting document attributes work in + # Amazon Q, see [Boosting using document attributes][1]. + # + # + # + # [1]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html + # + # @!attribute [rw] boosting_duration_in_seconds + # Specifies the duration, in seconds, of a boost applies to a `DATE` + # type document attribute. + # @return [Integer] + # + # @!attribute [rw] boosting_level + # Specifies how much a document attribute is boosted. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/DateAttributeBoostingConfiguration AWS API Documentation + # + class DateAttributeBoostingConfiguration < Struct.new( + :boosting_duration_in_seconds, + :boosting_level) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] application_id # The identifier of the Amazon Q application. # @return [String] @@ -1707,6 +1734,69 @@ class DocumentAttribute < Struct.new( include Aws::Structure end + # Provides information on boosting supported Amazon Q document attribute + # types. When an end user chat query matches document attributes that + # have been boosted, Amazon Q prioritizes generating responses from + # content that matches the boosted document attributes. + # + # For `STRING` and `STRING_LIST` type document attributes to be used for + # boosting on the console and the API, they must be enabled for search + # using the [DocumentAttributeConfiguration][1] object of the + # [UpdateIndex][2] API. If you haven't enabled searching on these + # attributes, you can't boost attributes of these data types on either + # the console or the API. + # + # + # + # For more information on how boosting document attributes work in + # Amazon Q, see [Boosting using document attributes][3]. + # + # + # + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeConfiguration.html + # [2]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_UpdateIndex.html + # [3]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html + # + # @note DocumentAttributeBoostingConfiguration is a union - when making an API calls you must set exactly one of the members. + # + # @note DocumentAttributeBoostingConfiguration is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of DocumentAttributeBoostingConfiguration corresponding to the set member. + # + # @!attribute [rw] date_configuration + # Provides information on boosting `DATE` type document attributes. + # @return [Types::DateAttributeBoostingConfiguration] + # + # @!attribute [rw] number_configuration + # Provides information on boosting `NUMBER` type document attributes. + # @return [Types::NumberAttributeBoostingConfiguration] + # + # @!attribute [rw] string_configuration + # Provides information on boosting `STRING` type document attributes. + # @return [Types::StringAttributeBoostingConfiguration] + # + # @!attribute [rw] string_list_configuration + # Provides information on boosting `STRING_LIST` type document + # attributes. + # @return [Types::StringListAttributeBoostingConfiguration] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/DocumentAttributeBoostingConfiguration AWS API Documentation + # + class DocumentAttributeBoostingConfiguration < Struct.new( + :date_configuration, + :number_configuration, + :string_configuration, + :string_list_configuration, + :unknown) + SENSITIVE = [] + include Aws::Structure + include Aws::Structure::Union + + class DateConfiguration < DocumentAttributeBoostingConfiguration; end + class NumberConfiguration < DocumentAttributeBoostingConfiguration; end + class StringConfiguration < DocumentAttributeBoostingConfiguration; end + class StringListConfiguration < DocumentAttributeBoostingConfiguration; end + class Unknown < DocumentAttributeBoostingConfiguration; end + end + # The condition used for the target document attribute or metadata field # when ingesting documents into Amazon Q. You use this with [ # `DocumentAttributeTarget` ][1] to apply the condition. @@ -1726,7 +1816,7 @@ class DocumentAttribute < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_DocumentAttributeTarget.html + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html # # @!attribute [rw] key # The identifier of the document attribute used for the condition. @@ -1818,8 +1908,8 @@ class DocumentAttributeConfiguration < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_DocumentAttributeTarget.html - # [2]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_DocumentAttributeCondition.html + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html + # [2]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeCondition.html # # @!attribute [rw] attribute_value_operator # `TRUE` to delete the existing target value for your specified target @@ -1996,7 +2086,7 @@ class DocumentDetails < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_CustomDocumentEnrichmentConfiguration.html + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentEnrichmentConfiguration.html # [2]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html # @return [Types::HookConfiguration] # @@ -2020,7 +2110,7 @@ class DocumentDetails < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_CustomDocumentEnrichmentConfiguration.html + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentEnrichmentConfiguration.html # [2]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html # @return [Types::HookConfiguration] # @@ -2881,7 +2971,7 @@ class GroupSummary < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_CustomDocumentEnrichmentConfiguration.html + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentEnrichmentConfiguration.html # [2]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html # # @!attribute [rw] invocation_condition @@ -3004,7 +3094,7 @@ class IndexStatistics < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_HookConfiguration.html + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_HookConfiguration.html # [2]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html # # @!attribute [rw] condition @@ -3027,7 +3117,7 @@ class IndexStatistics < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_DocumentAttributeTarget.html + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html # @return [Types::DocumentAttributeCondition] # # @!attribute [rw] document_content_operator @@ -3056,8 +3146,8 @@ class IndexStatistics < Struct.new( # # # - # [1]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_DocumentAttributeTarget.html - # [2]: https://docs.aws.amazon.com/enterpriseq/latest/APIReference/API_DocumentAttributeCondition.html + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html + # [2]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeCondition.html # @return [Types::DocumentAttributeTarget] # # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/InlineDocumentEnrichmentConfiguration AWS API Documentation @@ -3831,6 +3921,11 @@ class MessageUsefulnessFeedback < Struct.new( # Configuration information for an Amazon Q index. # + # @!attribute [rw] boosting_override + # Overrides the default boosts applied by Amazon Q to supported + # document attribute data types. + # @return [Hash] + # # @!attribute [rw] index_id # The identifier for the Amazon Q index. # @return [String] @@ -3838,11 +3933,39 @@ class MessageUsefulnessFeedback < Struct.new( # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/NativeIndexConfiguration AWS API Documentation # class NativeIndexConfiguration < Struct.new( + :boosting_override, :index_id) SENSITIVE = [] include Aws::Structure end + # Provides information on boosting `NUMBER` type document attributes. + # + # For more information on how boosting document attributes work in + # Amazon Q, see [Boosting using document attributes][1]. + # + # + # + # [1]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html + # + # @!attribute [rw] boosting_level + # Specifies the duration, in seconds, of a boost applies to a `NUMBER` + # type document attribute. + # @return [String] + # + # @!attribute [rw] boosting_type + # Specifies how much a document attribute is boosted. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/NumberAttributeBoostingConfiguration AWS API Documentation + # + class NumberAttributeBoostingConfiguration < Struct.new( + :boosting_level, + :boosting_type) + SENSITIVE = [] + include Aws::Structure + end + # Information about the OAuth 2.0 authentication credential/token used # to configure a plugin. # @@ -4224,7 +4347,7 @@ class Unknown < RetrieverConfiguration; end # @return [Types::RuleConfiguration] # # @!attribute [rw] rule_type - # The type fo rule. + # The type of rule. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/Rule AWS API Documentation @@ -4451,6 +4574,77 @@ class StopDataSourceSyncJobRequest < Struct.new( # class StopDataSourceSyncJobResponse < Aws::EmptyStructure; end + # Provides information on boosting `STRING` type document attributes. + # + # For `STRING` and `STRING_LIST` type document attributes to be used for + # boosting on the console and the API, they must be enabled for search + # using the [DocumentAttributeConfiguration][1] object of the + # [UpdateIndex][2] API. If you haven't enabled searching on these + # attributes, you can't boost attributes of these data types on either + # the console or the API. + # + # + # + # For more information on how boosting document attributes work in + # Amazon Q, see [Boosting using document attributes][3]. + # + # + # + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeConfiguration.html + # [2]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_UpdateIndex.html + # [3]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html + # + # @!attribute [rw] attribute_value_boosting + # Specifies specific values of a `STRING` type document attribute + # being boosted. + # @return [Hash] + # + # @!attribute [rw] boosting_level + # Specifies how much a document attribute is boosted. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/StringAttributeBoostingConfiguration AWS API Documentation + # + class StringAttributeBoostingConfiguration < Struct.new( + :attribute_value_boosting, + :boosting_level) + SENSITIVE = [] + include Aws::Structure + end + + # Provides information on boosting `STRING_LIST` type document + # attributes. + # + # For `STRING` and `STRING_LIST` type document attributes to be used for + # boosting on the console and the API, they must be enabled for search + # using the [DocumentAttributeConfiguration][1] object of the + # [UpdateIndex][2] API. If you haven't enabled searching on these + # attributes, you can't boost attributes of these data types on either + # the console or the API. + # + # + # + # For more information on how boosting document attributes work in + # Amazon Q, see [Boosting using document attributes][3]. + # + # + # + # [1]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeConfiguration.html + # [2]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_UpdateIndex.html + # [3]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html + # + # @!attribute [rw] boosting_level + # Specifies how much a document attribute is boosted. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/StringListAttributeBoostingConfiguration AWS API Documentation + # + class StringListAttributeBoostingConfiguration < Struct.new( + :boosting_level) + SENSITIVE = [] + include Aws::Structure + end + # A list of key/value pairs that identify an index, FAQ, or data source. # Tag keys and values can consist of Unicode letters, digits, white # space, and any of the following symbols: \_ . : / = + - @. @@ -4556,9 +4750,9 @@ class ThrottlingException < Struct.new( # The topic specific controls configured for an Amazon Q application. # # @!attribute [rw] description - # A description for your topic control configuration. Use this outline - # how the large language model (LLM) should use this topic control - # configuration. + # A description for your topic control configuration. Use this to + # outline how the large language model (LLM) should use this topic + # control configuration. # @return [String] # # @!attribute [rw] example_chat_messages diff --git a/gems/aws-sdk-qbusiness/sig/client.rbs b/gems/aws-sdk-qbusiness/sig/client.rbs index 8a830faf237..520f3d9de4c 100644 --- a/gems/aws-sdk-qbusiness/sig/client.rbs +++ b/gems/aws-sdk-qbusiness/sig/client.rbs @@ -494,6 +494,23 @@ module Aws index_id: ::String }?, native_index_configuration: { + boosting_override: Hash[::String, { + date_configuration: { + boosting_duration_in_seconds: ::Integer?, + boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + }?, + number_configuration: { + boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH"), + boosting_type: ("PRIORITIZE_LARGER_VALUES" | "PRIORITIZE_SMALLER_VALUES")? + }?, + string_configuration: { + attribute_value_boosting: Hash[::String, ("LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH")]?, + boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + }?, + string_list_configuration: { + boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + }? + }]?, index_id: ::String }? }, @@ -993,7 +1010,7 @@ module Aws message_id: ::String, ?message_usefulness: { comment: ::String?, - reason: ("NOT_FACTUALLY_CORRECT" | "HARMFUL_OR_UNSAFE" | "INCORRECT_OR_MISSING_SOURCES" | "NOT_HELPFUL" | "FACTUALLY_CORRECT" | "COMPLETE" | "RELEVANT_SOURCES" | "HELPFUL")?, + reason: ("NOT_FACTUALLY_CORRECT" | "HARMFUL_OR_UNSAFE" | "INCORRECT_OR_MISSING_SOURCES" | "NOT_HELPFUL" | "FACTUALLY_CORRECT" | "COMPLETE" | "RELEVANT_SOURCES" | "HELPFUL" | "NOT_BASED_ON_DOCUMENTS" | "NOT_COMPLETE" | "NOT_CONCISE" | "OTHER")?, submitted_at: ::Time, usefulness: ("USEFUL" | "NOT_USEFUL") }, @@ -1307,6 +1324,23 @@ module Aws index_id: ::String }?, native_index_configuration: { + boosting_override: Hash[::String, { + date_configuration: { + boosting_duration_in_seconds: ::Integer?, + boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + }?, + number_configuration: { + boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH"), + boosting_type: ("PRIORITIZE_LARGER_VALUES" | "PRIORITIZE_SMALLER_VALUES")? + }?, + string_configuration: { + attribute_value_boosting: Hash[::String, ("LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH")]?, + boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + }?, + string_list_configuration: { + boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + }? + }]?, index_id: ::String }? }, diff --git a/gems/aws-sdk-qbusiness/sig/types.rbs b/gems/aws-sdk-qbusiness/sig/types.rbs index 2f86b2227af..1e06ba284c3 100644 --- a/gems/aws-sdk-qbusiness/sig/types.rbs +++ b/gems/aws-sdk-qbusiness/sig/types.rbs @@ -354,6 +354,12 @@ module Aws::QBusiness SENSITIVE: [] end + class DateAttributeBoostingConfiguration + attr_accessor boosting_duration_in_seconds: ::Integer + attr_accessor boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + SENSITIVE: [] + end + class DeleteApplicationRequest attr_accessor application_id: ::String SENSITIVE: [] @@ -468,6 +474,26 @@ module Aws::QBusiness SENSITIVE: [] end + class DocumentAttributeBoostingConfiguration + attr_accessor date_configuration: Types::DateAttributeBoostingConfiguration + attr_accessor number_configuration: Types::NumberAttributeBoostingConfiguration + attr_accessor string_configuration: Types::StringAttributeBoostingConfiguration + attr_accessor string_list_configuration: Types::StringListAttributeBoostingConfiguration + attr_accessor unknown: untyped + SENSITIVE: [] + + class DateConfiguration < DocumentAttributeBoostingConfiguration + end + class NumberConfiguration < DocumentAttributeBoostingConfiguration + end + class StringConfiguration < DocumentAttributeBoostingConfiguration + end + class StringListConfiguration < DocumentAttributeBoostingConfiguration + end + class Unknown < DocumentAttributeBoostingConfiguration + end + end + class DocumentAttributeCondition attr_accessor key: ::String attr_accessor operator: ("GREATER_THAN" | "GREATER_THAN_OR_EQUALS" | "LESS_THAN" | "LESS_THAN_OR_EQUALS" | "EQUALS" | "NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "EXISTS" | "NOT_EXISTS" | "BEGINS_WITH") @@ -994,17 +1020,24 @@ module Aws::QBusiness class MessageUsefulnessFeedback attr_accessor comment: ::String - attr_accessor reason: ("NOT_FACTUALLY_CORRECT" | "HARMFUL_OR_UNSAFE" | "INCORRECT_OR_MISSING_SOURCES" | "NOT_HELPFUL" | "FACTUALLY_CORRECT" | "COMPLETE" | "RELEVANT_SOURCES" | "HELPFUL") + attr_accessor reason: ("NOT_FACTUALLY_CORRECT" | "HARMFUL_OR_UNSAFE" | "INCORRECT_OR_MISSING_SOURCES" | "NOT_HELPFUL" | "FACTUALLY_CORRECT" | "COMPLETE" | "RELEVANT_SOURCES" | "HELPFUL" | "NOT_BASED_ON_DOCUMENTS" | "NOT_COMPLETE" | "NOT_CONCISE" | "OTHER") attr_accessor submitted_at: ::Time attr_accessor usefulness: ("USEFUL" | "NOT_USEFUL") SENSITIVE: [] end class NativeIndexConfiguration + attr_accessor boosting_override: ::Hash[::String, Types::DocumentAttributeBoostingConfiguration] attr_accessor index_id: ::String SENSITIVE: [] end + class NumberAttributeBoostingConfiguration + attr_accessor boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + attr_accessor boosting_type: ("PRIORITIZE_LARGER_VALUES" | "PRIORITIZE_SMALLER_VALUES") + SENSITIVE: [] + end + class OAuth2ClientCredentialConfiguration attr_accessor role_arn: ::String attr_accessor secret_arn: ::String @@ -1192,6 +1225,17 @@ module Aws::QBusiness class StopDataSourceSyncJobResponse < Aws::EmptyStructure end + class StringAttributeBoostingConfiguration + attr_accessor attribute_value_boosting: ::Hash[::String, ("LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH")] + attr_accessor boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + SENSITIVE: [] + end + + class StringListAttributeBoostingConfiguration + attr_accessor boosting_level: ("NONE" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH") + SENSITIVE: [] + end + class Tag attr_accessor key: ::String attr_accessor value: ::String diff --git a/gems/aws-sdk-rds/CHANGELOG.md b/gems/aws-sdk-rds/CHANGELOG.md index 80bf1222f45..e67a848113d 100644 --- a/gems/aws-sdk-rds/CHANGELOG.md +++ b/gems/aws-sdk-rds/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.216.0 (2024-02-14) +------------------ + +* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. + 1.215.0 (2024-01-29) ------------------ diff --git a/gems/aws-sdk-rds/VERSION b/gems/aws-sdk-rds/VERSION index 4332d91a8f6..ec8b441059d 100644 --- a/gems/aws-sdk-rds/VERSION +++ b/gems/aws-sdk-rds/VERSION @@ -1 +1 @@ -1.215.0 +1.216.0 diff --git a/gems/aws-sdk-rds/aws-sdk-rds.gemspec b/gems/aws-sdk-rds/aws-sdk-rds.gemspec index 7bedc53594e..7c49f2c9cb6 100644 --- a/gems/aws-sdk-rds/aws-sdk-rds.gemspec +++ b/gems/aws-sdk-rds/aws-sdk-rds.gemspec @@ -25,8 +25,8 @@ Gem::Specification.new do |spec| 'changelog_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-rds/CHANGELOG.md' } - spec.add_dependency('aws-sigv4', '~> 1.1') spec.add_dependency('aws-sdk-core', '~> 3', '>= 3.191.0') + spec.add_dependency('aws-sigv4', '~> 1.1') spec.required_ruby_version = '>= 2.5' end diff --git a/gems/aws-sdk-rds/features/env.rb b/gems/aws-sdk-rds/features/env.rb index b543014f2cc..290d21c02de 100644 --- a/gems/aws-sdk-rds/features/env.rb +++ b/gems/aws-sdk-rds/features/env.rb @@ -9,8 +9,8 @@ $:.unshift(File.expand_path('../../lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/features', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) +$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) require 'features_helper' require 'aws-sdk-rds' diff --git a/gems/aws-sdk-rds/lib/aws-sdk-rds.rb b/gems/aws-sdk-rds/lib/aws-sdk-rds.rb index 920435f80cd..1b7d481d5b6 100644 --- a/gems/aws-sdk-rds/lib/aws-sdk-rds.rb +++ b/gems/aws-sdk-rds/lib/aws-sdk-rds.rb @@ -8,8 +8,8 @@ # WARNING ABOUT GENERATED CODE -require 'aws-sigv4' require 'aws-sdk-core' +require 'aws-sigv4' require_relative 'aws-sdk-rds/types' require_relative 'aws-sdk-rds/client_api' @@ -78,6 +78,6 @@ # @!group service module Aws::RDS - GEM_VERSION = '1.215.0' + GEM_VERSION = '1.216.0' end diff --git a/gems/aws-sdk-rds/lib/aws-sdk-rds/client.rb b/gems/aws-sdk-rds/lib/aws-sdk-rds/client.rb index 17e0aee8758..8bd8b93f657 100644 --- a/gems/aws-sdk-rds/lib/aws-sdk-rds/client.rb +++ b/gems/aws-sdk-rds/lib/aws-sdk-rds/client.rb @@ -30413,7 +30413,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-rds' - context[:gem_version] = '1.215.0' + context[:gem_version] = '1.216.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-rds/spec/spec_helper.rb b/gems/aws-sdk-rds/spec/spec_helper.rb index 5af36654437..28fed77d372 100644 --- a/gems/aws-sdk-rds/spec/spec_helper.rb +++ b/gems/aws-sdk-rds/spec/spec_helper.rb @@ -10,8 +10,8 @@ require_relative '../../aws-sdk-core/spec/shared_spec_helper' $:.unshift(File.expand_path('../../lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) +$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) require 'rspec' require 'webmock/rspec' diff --git a/gems/aws-sdk-s3control/CHANGELOG.md b/gems/aws-sdk-s3control/CHANGELOG.md index 8cab9a82260..21ba7a6a856 100644 --- a/gems/aws-sdk-s3control/CHANGELOG.md +++ b/gems/aws-sdk-s3control/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.78.0 (2024-02-14) +------------------ + +* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. + 1.77.0 (2024-01-26) ------------------ diff --git a/gems/aws-sdk-s3control/VERSION b/gems/aws-sdk-s3control/VERSION index 79e15fd4937..54227249d1f 100644 --- a/gems/aws-sdk-s3control/VERSION +++ b/gems/aws-sdk-s3control/VERSION @@ -1 +1 @@ -1.77.0 +1.78.0 diff --git a/gems/aws-sdk-s3control/aws-sdk-s3control.gemspec b/gems/aws-sdk-s3control/aws-sdk-s3control.gemspec index 2163da9b69c..04f177d6806 100644 --- a/gems/aws-sdk-s3control/aws-sdk-s3control.gemspec +++ b/gems/aws-sdk-s3control/aws-sdk-s3control.gemspec @@ -25,7 +25,6 @@ Gem::Specification.new do |spec| 'changelog_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-s3control/CHANGELOG.md' } - spec.add_dependency('aws-sigv4', '~> 1.1') spec.add_dependency('aws-sdk-core', '~> 3', '>= 3.191.0') spec.required_ruby_version = '>= 2.5' diff --git a/gems/aws-sdk-s3control/features/env.rb b/gems/aws-sdk-s3control/features/env.rb index 74fadd1b9b4..0a41ba5cc23 100644 --- a/gems/aws-sdk-s3control/features/env.rb +++ b/gems/aws-sdk-s3control/features/env.rb @@ -9,7 +9,6 @@ $:.unshift(File.expand_path('../../lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/features', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) require 'features_helper' diff --git a/gems/aws-sdk-s3control/lib/aws-sdk-s3control.rb b/gems/aws-sdk-s3control/lib/aws-sdk-s3control.rb index f937191aa01..3f255b24639 100644 --- a/gems/aws-sdk-s3control/lib/aws-sdk-s3control.rb +++ b/gems/aws-sdk-s3control/lib/aws-sdk-s3control.rb @@ -8,7 +8,6 @@ # WARNING ABOUT GENERATED CODE -require 'aws-sigv4' require 'aws-sdk-core' require_relative 'aws-sdk-s3control/types' @@ -52,6 +51,6 @@ # @!group service module Aws::S3Control - GEM_VERSION = '1.77.0' + GEM_VERSION = '1.78.0' end diff --git a/gems/aws-sdk-s3control/lib/aws-sdk-s3control/client.rb b/gems/aws-sdk-s3control/lib/aws-sdk-s3control/client.rb index e0df621db4e..19661436be2 100644 --- a/gems/aws-sdk-s3control/lib/aws-sdk-s3control/client.rb +++ b/gems/aws-sdk-s3control/lib/aws-sdk-s3control/client.rb @@ -7579,7 +7579,7 @@ def build_request(operation_name, params = {}) params: params, config: config) context[:gem_name] = 'aws-sdk-s3control' - context[:gem_version] = '1.77.0' + context[:gem_version] = '1.78.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-s3control/spec/spec_helper.rb b/gems/aws-sdk-s3control/spec/spec_helper.rb index b6887600018..97e5ede920b 100644 --- a/gems/aws-sdk-s3control/spec/spec_helper.rb +++ b/gems/aws-sdk-s3control/spec/spec_helper.rb @@ -10,7 +10,6 @@ require_relative '../../aws-sdk-core/spec/shared_spec_helper' $:.unshift(File.expand_path('../../lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) $:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) require 'rspec'