aws-sdk-trustedadvisor 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-trustedadvisor/client.rb +49 -2
- data/lib/aws-sdk-trustedadvisor/client_api.rb +44 -0
- data/lib/aws-sdk-trustedadvisor/endpoints.rb +14 -0
- data/lib/aws-sdk-trustedadvisor/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-trustedadvisor/types.rb +93 -0
- data/lib/aws-sdk-trustedadvisor.rb +2 -2
- data/sig/client.rbs +17 -0
- data/sig/types.rbs +27 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bd23bc8dd57cc57a7a368793f6f990a51e621eebfa2423ca1d305095dbdf9ee
|
4
|
+
data.tar.gz: f9d7c29392afbbc61cb483c32d06fc262dcce1f657a5d41e6fc14dcdab6bbf8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca33ee8086fe6519d8eea422c7bcbcdddf85ad02cac8166eeb2624b1e588340cf0ba9bc9af0a95ff45d8a3a69a1de767d53c3bd3f896e4654a72074a5605bc69
|
7
|
+
data.tar.gz: d0062eada17b5df181e5c41dffa9b3c49e368f5d06db14bc108aeeae094d3c20e416bbbe2ba35a527bf05653e218dd6792e80c0c134d25e4c39bed0d04bbc978
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.5.0 (2024-04-29)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds the BatchUpdateRecommendationResourceExclusion API to support batch updates of Recommendation Resource exclusion statuses and introduces a new exclusion status filter to the ListRecommendationResources and ListOrganizationRecommendationResources APIs.
|
8
|
+
|
4
9
|
1.4.0 (2024-04-25)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
@@ -412,6 +412,43 @@ module Aws::TrustedAdvisor
|
|
412
412
|
|
413
413
|
# @!group API Operations
|
414
414
|
|
415
|
+
# Update one or more exclusion status for a list of recommendation
|
416
|
+
# resources
|
417
|
+
#
|
418
|
+
# @option params [required, Array<Types::RecommendationResourceExclusion>] :recommendation_resource_exclusions
|
419
|
+
# A list of recommendation resource ARNs and exclusion status to update
|
420
|
+
#
|
421
|
+
# @return [Types::BatchUpdateRecommendationResourceExclusionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
422
|
+
#
|
423
|
+
# * {Types::BatchUpdateRecommendationResourceExclusionResponse#batch_update_recommendation_resource_exclusion_errors #batch_update_recommendation_resource_exclusion_errors} => Array<Types::UpdateRecommendationResourceExclusionError>
|
424
|
+
#
|
425
|
+
# @example Request syntax with placeholder values
|
426
|
+
#
|
427
|
+
# resp = client.batch_update_recommendation_resource_exclusion({
|
428
|
+
# recommendation_resource_exclusions: [ # required
|
429
|
+
# {
|
430
|
+
# arn: "RecommendationResourceArn", # required
|
431
|
+
# is_excluded: false, # required
|
432
|
+
# },
|
433
|
+
# ],
|
434
|
+
# })
|
435
|
+
#
|
436
|
+
# @example Response structure
|
437
|
+
#
|
438
|
+
# resp.batch_update_recommendation_resource_exclusion_errors #=> Array
|
439
|
+
# resp.batch_update_recommendation_resource_exclusion_errors[0].arn #=> String
|
440
|
+
# resp.batch_update_recommendation_resource_exclusion_errors[0].error_code #=> String
|
441
|
+
# resp.batch_update_recommendation_resource_exclusion_errors[0].error_message #=> String
|
442
|
+
#
|
443
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/BatchUpdateRecommendationResourceExclusion AWS API Documentation
|
444
|
+
#
|
445
|
+
# @overload batch_update_recommendation_resource_exclusion(params = {})
|
446
|
+
# @param [Hash] params ({})
|
447
|
+
def batch_update_recommendation_resource_exclusion(params = {}, options = {})
|
448
|
+
req = build_request(:batch_update_recommendation_resource_exclusion, params)
|
449
|
+
req.send_request(options)
|
450
|
+
end
|
451
|
+
|
415
452
|
# Get a specific recommendation within an AWS Organizations
|
416
453
|
# organization. This API supports only prioritized recommendations.
|
417
454
|
#
|
@@ -647,6 +684,9 @@ module Aws::TrustedAdvisor
|
|
647
684
|
# @option params [String] :affected_account_id
|
648
685
|
# An account affected by this organization recommendation
|
649
686
|
#
|
687
|
+
# @option params [String] :exclusion_status
|
688
|
+
# The exclusion status of the resource
|
689
|
+
#
|
650
690
|
# @option params [Integer] :max_results
|
651
691
|
# The maximum number of results to return per page.
|
652
692
|
#
|
@@ -675,6 +715,7 @@ module Aws::TrustedAdvisor
|
|
675
715
|
#
|
676
716
|
# resp = client.list_organization_recommendation_resources({
|
677
717
|
# affected_account_id: "AccountId",
|
718
|
+
# exclusion_status: "excluded", # accepts excluded, included
|
678
719
|
# max_results: 1,
|
679
720
|
# next_token: "ListOrganizationRecommendationResourcesRequestNextTokenString",
|
680
721
|
# organization_recommendation_identifier: "OrganizationRecommendationIdentifier", # required
|
@@ -689,6 +730,7 @@ module Aws::TrustedAdvisor
|
|
689
730
|
# resp.organization_recommendation_resource_summaries[0].account_id #=> String
|
690
731
|
# resp.organization_recommendation_resource_summaries[0].arn #=> String
|
691
732
|
# resp.organization_recommendation_resource_summaries[0].aws_resource_id #=> String
|
733
|
+
# resp.organization_recommendation_resource_summaries[0].exclusion_status #=> String, one of "excluded", "included"
|
692
734
|
# resp.organization_recommendation_resource_summaries[0].id #=> String
|
693
735
|
# resp.organization_recommendation_resource_summaries[0].last_updated_at #=> Time
|
694
736
|
# resp.organization_recommendation_resource_summaries[0].metadata #=> Hash
|
@@ -798,6 +840,9 @@ module Aws::TrustedAdvisor
|
|
798
840
|
|
799
841
|
# List Resources of a Recommendation
|
800
842
|
#
|
843
|
+
# @option params [String] :exclusion_status
|
844
|
+
# The exclusion status of the resource
|
845
|
+
#
|
801
846
|
# @option params [Integer] :max_results
|
802
847
|
# The maximum number of results to return per page.
|
803
848
|
#
|
@@ -825,6 +870,7 @@ module Aws::TrustedAdvisor
|
|
825
870
|
# @example Request syntax with placeholder values
|
826
871
|
#
|
827
872
|
# resp = client.list_recommendation_resources({
|
873
|
+
# exclusion_status: "excluded", # accepts excluded, included
|
828
874
|
# max_results: 1,
|
829
875
|
# next_token: "ListRecommendationResourcesRequestNextTokenString",
|
830
876
|
# recommendation_identifier: "AccountRecommendationIdentifier", # required
|
@@ -838,6 +884,7 @@ module Aws::TrustedAdvisor
|
|
838
884
|
# resp.recommendation_resource_summaries #=> Array
|
839
885
|
# resp.recommendation_resource_summaries[0].arn #=> String
|
840
886
|
# resp.recommendation_resource_summaries[0].aws_resource_id #=> String
|
887
|
+
# resp.recommendation_resource_summaries[0].exclusion_status #=> String, one of "excluded", "included"
|
841
888
|
# resp.recommendation_resource_summaries[0].id #=> String
|
842
889
|
# resp.recommendation_resource_summaries[0].last_updated_at #=> Time
|
843
890
|
# resp.recommendation_resource_summaries[0].metadata #=> Hash
|
@@ -944,7 +991,7 @@ module Aws::TrustedAdvisor
|
|
944
991
|
req.send_request(options)
|
945
992
|
end
|
946
993
|
|
947
|
-
# Update the
|
994
|
+
# Update the lifecycle of a Recommendation within an Organization. This
|
948
995
|
# API only supports prioritized recommendations.
|
949
996
|
#
|
950
997
|
# @option params [required, String] :lifecycle_stage
|
@@ -1029,7 +1076,7 @@ module Aws::TrustedAdvisor
|
|
1029
1076
|
params: params,
|
1030
1077
|
config: config)
|
1031
1078
|
context[:gem_name] = 'aws-sdk-trustedadvisor'
|
1032
|
-
context[:gem_version] = '1.
|
1079
|
+
context[:gem_version] = '1.5.0'
|
1033
1080
|
Seahorse::Client::Request.new(handlers, context)
|
1034
1081
|
end
|
1035
1082
|
|
@@ -19,12 +19,16 @@ module Aws::TrustedAdvisor
|
|
19
19
|
AccountRecommendationIdentifier = Shapes::StringShape.new(name: 'AccountRecommendationIdentifier')
|
20
20
|
AccountRecommendationLifecycleSummary = Shapes::StructureShape.new(name: 'AccountRecommendationLifecycleSummary')
|
21
21
|
AccountRecommendationLifecycleSummaryList = Shapes::ListShape.new(name: 'AccountRecommendationLifecycleSummaryList')
|
22
|
+
BatchUpdateRecommendationResourceExclusionRequest = Shapes::StructureShape.new(name: 'BatchUpdateRecommendationResourceExclusionRequest')
|
23
|
+
BatchUpdateRecommendationResourceExclusionResponse = Shapes::StructureShape.new(name: 'BatchUpdateRecommendationResourceExclusionResponse')
|
24
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
22
25
|
CheckArn = Shapes::StringShape.new(name: 'CheckArn')
|
23
26
|
CheckIdentifier = Shapes::StringShape.new(name: 'CheckIdentifier')
|
24
27
|
CheckSummary = Shapes::StructureShape.new(name: 'CheckSummary')
|
25
28
|
CheckSummaryList = Shapes::ListShape.new(name: 'CheckSummaryList')
|
26
29
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
27
30
|
Double = Shapes::FloatShape.new(name: 'Double')
|
31
|
+
ExclusionStatus = Shapes::StringShape.new(name: 'ExclusionStatus')
|
28
32
|
GetOrganizationRecommendationRequest = Shapes::StructureShape.new(name: 'GetOrganizationRecommendationRequest')
|
29
33
|
GetOrganizationRecommendationResponse = Shapes::StructureShape.new(name: 'GetOrganizationRecommendationResponse')
|
30
34
|
GetRecommendationRequest = Shapes::StructureShape.new(name: 'GetRecommendationRequest')
|
@@ -79,6 +83,8 @@ module Aws::TrustedAdvisor
|
|
79
83
|
RecommendationPillarSpecificAggregates = Shapes::StructureShape.new(name: 'RecommendationPillarSpecificAggregates')
|
80
84
|
RecommendationRegionCode = Shapes::StringShape.new(name: 'RecommendationRegionCode')
|
81
85
|
RecommendationResourceArn = Shapes::StringShape.new(name: 'RecommendationResourceArn')
|
86
|
+
RecommendationResourceExclusion = Shapes::StructureShape.new(name: 'RecommendationResourceExclusion')
|
87
|
+
RecommendationResourceExclusionList = Shapes::ListShape.new(name: 'RecommendationResourceExclusionList')
|
82
88
|
RecommendationResourceSummary = Shapes::StructureShape.new(name: 'RecommendationResourceSummary')
|
83
89
|
RecommendationResourceSummaryList = Shapes::ListShape.new(name: 'RecommendationResourceSummaryList')
|
84
90
|
RecommendationResourcesAggregates = Shapes::StructureShape.new(name: 'RecommendationResourcesAggregates')
|
@@ -99,6 +105,8 @@ module Aws::TrustedAdvisor
|
|
99
105
|
UpdateRecommendationLifecycleRequest = Shapes::StructureShape.new(name: 'UpdateRecommendationLifecycleRequest')
|
100
106
|
UpdateRecommendationLifecycleStage = Shapes::StringShape.new(name: 'UpdateRecommendationLifecycleStage')
|
101
107
|
UpdateRecommendationLifecycleStageReasonCode = Shapes::StringShape.new(name: 'UpdateRecommendationLifecycleStageReasonCode')
|
108
|
+
UpdateRecommendationResourceExclusionError = Shapes::StructureShape.new(name: 'UpdateRecommendationResourceExclusionError')
|
109
|
+
UpdateRecommendationResourceExclusionErrorList = Shapes::ListShape.new(name: 'UpdateRecommendationResourceExclusionErrorList')
|
102
110
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
103
111
|
|
104
112
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
@@ -116,6 +124,12 @@ module Aws::TrustedAdvisor
|
|
116
124
|
|
117
125
|
AccountRecommendationLifecycleSummaryList.member = Shapes::ShapeRef.new(shape: AccountRecommendationLifecycleSummary)
|
118
126
|
|
127
|
+
BatchUpdateRecommendationResourceExclusionRequest.add_member(:recommendation_resource_exclusions, Shapes::ShapeRef.new(shape: RecommendationResourceExclusionList, required: true, location_name: "recommendationResourceExclusions"))
|
128
|
+
BatchUpdateRecommendationResourceExclusionRequest.struct_class = Types::BatchUpdateRecommendationResourceExclusionRequest
|
129
|
+
|
130
|
+
BatchUpdateRecommendationResourceExclusionResponse.add_member(:batch_update_recommendation_resource_exclusion_errors, Shapes::ShapeRef.new(shape: UpdateRecommendationResourceExclusionErrorList, required: true, location_name: "batchUpdateRecommendationResourceExclusionErrors"))
|
131
|
+
BatchUpdateRecommendationResourceExclusionResponse.struct_class = Types::BatchUpdateRecommendationResourceExclusionResponse
|
132
|
+
|
119
133
|
CheckSummary.add_member(:arn, Shapes::ShapeRef.new(shape: CheckArn, required: true, location_name: "arn"))
|
120
134
|
CheckSummary.add_member(:aws_services, Shapes::ShapeRef.new(shape: RecommendationAwsServiceList, required: true, location_name: "awsServices"))
|
121
135
|
CheckSummary.add_member(:description, Shapes::ShapeRef.new(shape: String, required: true, location_name: "description"))
|
@@ -169,6 +183,7 @@ module Aws::TrustedAdvisor
|
|
169
183
|
ListOrganizationRecommendationAccountsResponse.struct_class = Types::ListOrganizationRecommendationAccountsResponse
|
170
184
|
|
171
185
|
ListOrganizationRecommendationResourcesRequest.add_member(:affected_account_id, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "affectedAccountId"))
|
186
|
+
ListOrganizationRecommendationResourcesRequest.add_member(:exclusion_status, Shapes::ShapeRef.new(shape: ExclusionStatus, location: "querystring", location_name: "exclusionStatus"))
|
172
187
|
ListOrganizationRecommendationResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListOrganizationRecommendationResourcesRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
|
173
188
|
ListOrganizationRecommendationResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListOrganizationRecommendationResourcesRequestNextTokenString, location: "querystring", location_name: "nextToken"))
|
174
189
|
ListOrganizationRecommendationResourcesRequest.add_member(:organization_recommendation_identifier, Shapes::ShapeRef.new(shape: OrganizationRecommendationIdentifier, required: true, location: "uri", location_name: "organizationRecommendationIdentifier"))
|
@@ -196,6 +211,7 @@ module Aws::TrustedAdvisor
|
|
196
211
|
ListOrganizationRecommendationsResponse.add_member(:organization_recommendation_summaries, Shapes::ShapeRef.new(shape: OrganizationRecommendationSummaryList, required: true, location_name: "organizationRecommendationSummaries"))
|
197
212
|
ListOrganizationRecommendationsResponse.struct_class = Types::ListOrganizationRecommendationsResponse
|
198
213
|
|
214
|
+
ListRecommendationResourcesRequest.add_member(:exclusion_status, Shapes::ShapeRef.new(shape: ExclusionStatus, location: "querystring", location_name: "exclusionStatus"))
|
199
215
|
ListRecommendationResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListRecommendationResourcesRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
|
200
216
|
ListRecommendationResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListRecommendationResourcesRequestNextTokenString, location: "querystring", location_name: "nextToken"))
|
201
217
|
ListRecommendationResourcesRequest.add_member(:recommendation_identifier, Shapes::ShapeRef.new(shape: AccountRecommendationIdentifier, required: true, location: "uri", location_name: "recommendationIdentifier"))
|
@@ -249,6 +265,7 @@ module Aws::TrustedAdvisor
|
|
249
265
|
OrganizationRecommendationResourceSummary.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
|
250
266
|
OrganizationRecommendationResourceSummary.add_member(:arn, Shapes::ShapeRef.new(shape: RecommendationResourceArn, required: true, location_name: "arn"))
|
251
267
|
OrganizationRecommendationResourceSummary.add_member(:aws_resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "awsResourceId"))
|
268
|
+
OrganizationRecommendationResourceSummary.add_member(:exclusion_status, Shapes::ShapeRef.new(shape: ExclusionStatus, location_name: "exclusionStatus"))
|
252
269
|
OrganizationRecommendationResourceSummary.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "id"))
|
253
270
|
OrganizationRecommendationResourceSummary.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "lastUpdatedAt"))
|
254
271
|
OrganizationRecommendationResourceSummary.add_member(:metadata, Shapes::ShapeRef.new(shape: StringMap, required: true, location_name: "metadata"))
|
@@ -311,8 +328,15 @@ module Aws::TrustedAdvisor
|
|
311
328
|
RecommendationPillarSpecificAggregates.add_member(:cost_optimizing, Shapes::ShapeRef.new(shape: RecommendationCostOptimizingAggregates, location_name: "costOptimizing"))
|
312
329
|
RecommendationPillarSpecificAggregates.struct_class = Types::RecommendationPillarSpecificAggregates
|
313
330
|
|
331
|
+
RecommendationResourceExclusion.add_member(:arn, Shapes::ShapeRef.new(shape: RecommendationResourceArn, required: true, location_name: "arn"))
|
332
|
+
RecommendationResourceExclusion.add_member(:is_excluded, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "isExcluded"))
|
333
|
+
RecommendationResourceExclusion.struct_class = Types::RecommendationResourceExclusion
|
334
|
+
|
335
|
+
RecommendationResourceExclusionList.member = Shapes::ShapeRef.new(shape: RecommendationResourceExclusion)
|
336
|
+
|
314
337
|
RecommendationResourceSummary.add_member(:arn, Shapes::ShapeRef.new(shape: RecommendationResourceArn, required: true, location_name: "arn"))
|
315
338
|
RecommendationResourceSummary.add_member(:aws_resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "awsResourceId"))
|
339
|
+
RecommendationResourceSummary.add_member(:exclusion_status, Shapes::ShapeRef.new(shape: ExclusionStatus, location_name: "exclusionStatus"))
|
316
340
|
RecommendationResourceSummary.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "id"))
|
317
341
|
RecommendationResourceSummary.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "lastUpdatedAt"))
|
318
342
|
RecommendationResourceSummary.add_member(:metadata, Shapes::ShapeRef.new(shape: StringMap, required: true, location_name: "metadata"))
|
@@ -367,6 +391,13 @@ module Aws::TrustedAdvisor
|
|
367
391
|
UpdateRecommendationLifecycleRequest.add_member(:update_reason_code, Shapes::ShapeRef.new(shape: UpdateRecommendationLifecycleStageReasonCode, location_name: "updateReasonCode"))
|
368
392
|
UpdateRecommendationLifecycleRequest.struct_class = Types::UpdateRecommendationLifecycleRequest
|
369
393
|
|
394
|
+
UpdateRecommendationResourceExclusionError.add_member(:arn, Shapes::ShapeRef.new(shape: RecommendationResourceArn, location_name: "arn"))
|
395
|
+
UpdateRecommendationResourceExclusionError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "errorCode"))
|
396
|
+
UpdateRecommendationResourceExclusionError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "errorMessage"))
|
397
|
+
UpdateRecommendationResourceExclusionError.struct_class = Types::UpdateRecommendationResourceExclusionError
|
398
|
+
|
399
|
+
UpdateRecommendationResourceExclusionErrorList.member = Shapes::ShapeRef.new(shape: UpdateRecommendationResourceExclusionError)
|
400
|
+
|
370
401
|
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
371
402
|
ValidationException.struct_class = Types::ValidationException
|
372
403
|
|
@@ -388,6 +419,19 @@ module Aws::TrustedAdvisor
|
|
388
419
|
"uid" => "trustedadvisor-2022-09-15",
|
389
420
|
}
|
390
421
|
|
422
|
+
api.add_operation(:batch_update_recommendation_resource_exclusion, Seahorse::Model::Operation.new.tap do |o|
|
423
|
+
o.name = "BatchUpdateRecommendationResourceExclusion"
|
424
|
+
o.http_method = "PUT"
|
425
|
+
o.http_request_uri = "/v1/batch-update-recommendation-resource-exclusion"
|
426
|
+
o.input = Shapes::ShapeRef.new(shape: BatchUpdateRecommendationResourceExclusionRequest)
|
427
|
+
o.output = Shapes::ShapeRef.new(shape: BatchUpdateRecommendationResourceExclusionResponse)
|
428
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
429
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
430
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
431
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
432
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
433
|
+
end)
|
434
|
+
|
391
435
|
api.add_operation(:get_organization_recommendation, Seahorse::Model::Operation.new.tap do |o|
|
392
436
|
o.name = "GetOrganizationRecommendation"
|
393
437
|
o.http_method = "GET"
|
@@ -12,6 +12,20 @@ module Aws::TrustedAdvisor
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
+
class BatchUpdateRecommendationResourceExclusion
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::TrustedAdvisor::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
15
29
|
class GetOrganizationRecommendation
|
16
30
|
def self.build(context)
|
17
31
|
unless context.config.regional_endpoint
|
@@ -58,6 +58,8 @@ module Aws::TrustedAdvisor
|
|
58
58
|
|
59
59
|
def parameters_for_operation(context)
|
60
60
|
case context.operation_name
|
61
|
+
when :batch_update_recommendation_resource_exclusion
|
62
|
+
Aws::TrustedAdvisor::Endpoints::BatchUpdateRecommendationResourceExclusion.build(context)
|
61
63
|
when :get_organization_recommendation
|
62
64
|
Aws::TrustedAdvisor::Endpoints::GetOrganizationRecommendation.build(context)
|
63
65
|
when :get_recommendation
|
@@ -79,6 +79,32 @@ module Aws::TrustedAdvisor
|
|
79
79
|
include Aws::Structure
|
80
80
|
end
|
81
81
|
|
82
|
+
# @!attribute [rw] recommendation_resource_exclusions
|
83
|
+
# A list of recommendation resource ARNs and exclusion status to
|
84
|
+
# update
|
85
|
+
# @return [Array<Types::RecommendationResourceExclusion>]
|
86
|
+
#
|
87
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/BatchUpdateRecommendationResourceExclusionRequest AWS API Documentation
|
88
|
+
#
|
89
|
+
class BatchUpdateRecommendationResourceExclusionRequest < Struct.new(
|
90
|
+
:recommendation_resource_exclusions)
|
91
|
+
SENSITIVE = []
|
92
|
+
include Aws::Structure
|
93
|
+
end
|
94
|
+
|
95
|
+
# @!attribute [rw] batch_update_recommendation_resource_exclusion_errors
|
96
|
+
# A list of recommendation resource ARNs whose exclusion status failed
|
97
|
+
# to update, if any
|
98
|
+
# @return [Array<Types::UpdateRecommendationResourceExclusionError>]
|
99
|
+
#
|
100
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/BatchUpdateRecommendationResourceExclusionResponse AWS API Documentation
|
101
|
+
#
|
102
|
+
class BatchUpdateRecommendationResourceExclusionResponse < Struct.new(
|
103
|
+
:batch_update_recommendation_resource_exclusion_errors)
|
104
|
+
SENSITIVE = []
|
105
|
+
include Aws::Structure
|
106
|
+
end
|
107
|
+
|
82
108
|
# A summary of an AWS Trusted Advisor Check
|
83
109
|
#
|
84
110
|
# @!attribute [rw] arn
|
@@ -316,6 +342,10 @@ module Aws::TrustedAdvisor
|
|
316
342
|
# An account affected by this organization recommendation
|
317
343
|
# @return [String]
|
318
344
|
#
|
345
|
+
# @!attribute [rw] exclusion_status
|
346
|
+
# The exclusion status of the resource
|
347
|
+
# @return [String]
|
348
|
+
#
|
319
349
|
# @!attribute [rw] max_results
|
320
350
|
# The maximum number of results to return per page.
|
321
351
|
# @return [Integer]
|
@@ -342,6 +372,7 @@ module Aws::TrustedAdvisor
|
|
342
372
|
#
|
343
373
|
class ListOrganizationRecommendationResourcesRequest < Struct.new(
|
344
374
|
:affected_account_id,
|
375
|
+
:exclusion_status,
|
345
376
|
:max_results,
|
346
377
|
:next_token,
|
347
378
|
:organization_recommendation_identifier,
|
@@ -448,6 +479,10 @@ module Aws::TrustedAdvisor
|
|
448
479
|
include Aws::Structure
|
449
480
|
end
|
450
481
|
|
482
|
+
# @!attribute [rw] exclusion_status
|
483
|
+
# The exclusion status of the resource
|
484
|
+
# @return [String]
|
485
|
+
#
|
451
486
|
# @!attribute [rw] max_results
|
452
487
|
# The maximum number of results to return per page.
|
453
488
|
# @return [Integer]
|
@@ -473,6 +508,7 @@ module Aws::TrustedAdvisor
|
|
473
508
|
# @see http://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/ListRecommendationResourcesRequest AWS API Documentation
|
474
509
|
#
|
475
510
|
class ListRecommendationResourcesRequest < Struct.new(
|
511
|
+
:exclusion_status,
|
476
512
|
:max_results,
|
477
513
|
:next_token,
|
478
514
|
:recommendation_identifier,
|
@@ -715,6 +751,10 @@ module Aws::TrustedAdvisor
|
|
715
751
|
# The AWS resource identifier
|
716
752
|
# @return [String]
|
717
753
|
#
|
754
|
+
# @!attribute [rw] exclusion_status
|
755
|
+
# The exclusion status of the Recommendation Resource
|
756
|
+
# @return [String]
|
757
|
+
#
|
718
758
|
# @!attribute [rw] id
|
719
759
|
# The ID of the Recommendation Resource
|
720
760
|
# @return [String]
|
@@ -745,6 +785,7 @@ module Aws::TrustedAdvisor
|
|
745
785
|
:account_id,
|
746
786
|
:arn,
|
747
787
|
:aws_resource_id,
|
788
|
+
:exclusion_status,
|
748
789
|
:id,
|
749
790
|
:last_updated_at,
|
750
791
|
:metadata,
|
@@ -991,6 +1032,27 @@ module Aws::TrustedAdvisor
|
|
991
1032
|
include Aws::Structure
|
992
1033
|
end
|
993
1034
|
|
1035
|
+
# The request entry for Recommendation Resource exclusion. Each entry is
|
1036
|
+
# a combination of Recommendation Resource ARN and corresponding
|
1037
|
+
# exclusion status
|
1038
|
+
#
|
1039
|
+
# @!attribute [rw] arn
|
1040
|
+
# The ARN of the Recommendation Resource
|
1041
|
+
# @return [String]
|
1042
|
+
#
|
1043
|
+
# @!attribute [rw] is_excluded
|
1044
|
+
# The exclusion status
|
1045
|
+
# @return [Boolean]
|
1046
|
+
#
|
1047
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/RecommendationResourceExclusion AWS API Documentation
|
1048
|
+
#
|
1049
|
+
class RecommendationResourceExclusion < Struct.new(
|
1050
|
+
:arn,
|
1051
|
+
:is_excluded)
|
1052
|
+
SENSITIVE = []
|
1053
|
+
include Aws::Structure
|
1054
|
+
end
|
1055
|
+
|
994
1056
|
# Summary of a Recommendation Resource
|
995
1057
|
#
|
996
1058
|
# @!attribute [rw] arn
|
@@ -1001,6 +1063,10 @@ module Aws::TrustedAdvisor
|
|
1001
1063
|
# The AWS resource identifier
|
1002
1064
|
# @return [String]
|
1003
1065
|
#
|
1066
|
+
# @!attribute [rw] exclusion_status
|
1067
|
+
# The exclusion status of the Recommendation Resource
|
1068
|
+
# @return [String]
|
1069
|
+
#
|
1004
1070
|
# @!attribute [rw] id
|
1005
1071
|
# The ID of the Recommendation Resource
|
1006
1072
|
# @return [String]
|
@@ -1030,6 +1096,7 @@ module Aws::TrustedAdvisor
|
|
1030
1096
|
class RecommendationResourceSummary < Struct.new(
|
1031
1097
|
:arn,
|
1032
1098
|
:aws_resource_id,
|
1099
|
+
:exclusion_status,
|
1033
1100
|
:id,
|
1034
1101
|
:last_updated_at,
|
1035
1102
|
:metadata,
|
@@ -1230,6 +1297,32 @@ module Aws::TrustedAdvisor
|
|
1230
1297
|
include Aws::Structure
|
1231
1298
|
end
|
1232
1299
|
|
1300
|
+
# The error entry for Recommendation Resource exclusion. Each entry is a
|
1301
|
+
# combination of Recommendation Resource ARN, error code and error
|
1302
|
+
# message
|
1303
|
+
#
|
1304
|
+
# @!attribute [rw] arn
|
1305
|
+
# The ARN of the Recommendation Resource
|
1306
|
+
# @return [String]
|
1307
|
+
#
|
1308
|
+
# @!attribute [rw] error_code
|
1309
|
+
# The error code
|
1310
|
+
# @return [String]
|
1311
|
+
#
|
1312
|
+
# @!attribute [rw] error_message
|
1313
|
+
# The error message
|
1314
|
+
# @return [String]
|
1315
|
+
#
|
1316
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/UpdateRecommendationResourceExclusionError AWS API Documentation
|
1317
|
+
#
|
1318
|
+
class UpdateRecommendationResourceExclusionError < Struct.new(
|
1319
|
+
:arn,
|
1320
|
+
:error_code,
|
1321
|
+
:error_message)
|
1322
|
+
SENSITIVE = []
|
1323
|
+
include Aws::Structure
|
1324
|
+
end
|
1325
|
+
|
1233
1326
|
# Exception that the request failed to satisfy service constraints
|
1234
1327
|
#
|
1235
1328
|
# @!attribute [rw] message
|
@@ -32,7 +32,7 @@ require_relative 'aws-sdk-trustedadvisor/customizations'
|
|
32
32
|
# structure.
|
33
33
|
#
|
34
34
|
# trusted_advisor = Aws::TrustedAdvisor::Client.new
|
35
|
-
# resp = trusted_advisor.
|
35
|
+
# resp = trusted_advisor.batch_update_recommendation_resource_exclusion(params)
|
36
36
|
#
|
37
37
|
# See {Client} for more information.
|
38
38
|
#
|
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-trustedadvisor/customizations'
|
|
52
52
|
# @!group service
|
53
53
|
module Aws::TrustedAdvisor
|
54
54
|
|
55
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.5.0'
|
56
56
|
|
57
57
|
end
|
data/sig/client.rbs
CHANGED
@@ -72,6 +72,21 @@ module Aws
|
|
72
72
|
| (?Hash[Symbol, untyped]) -> instance
|
73
73
|
|
74
74
|
|
75
|
+
interface _BatchUpdateRecommendationResourceExclusionResponseSuccess
|
76
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::BatchUpdateRecommendationResourceExclusionResponse]
|
77
|
+
def batch_update_recommendation_resource_exclusion_errors: () -> ::Array[Types::UpdateRecommendationResourceExclusionError]
|
78
|
+
end
|
79
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TrustedAdvisor/Client.html#batch_update_recommendation_resource_exclusion-instance_method
|
80
|
+
def batch_update_recommendation_resource_exclusion: (
|
81
|
+
recommendation_resource_exclusions: Array[
|
82
|
+
{
|
83
|
+
arn: ::String,
|
84
|
+
is_excluded: bool
|
85
|
+
},
|
86
|
+
]
|
87
|
+
) -> _BatchUpdateRecommendationResourceExclusionResponseSuccess
|
88
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchUpdateRecommendationResourceExclusionResponseSuccess
|
89
|
+
|
75
90
|
interface _GetOrganizationRecommendationResponseSuccess
|
76
91
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetOrganizationRecommendationResponse]
|
77
92
|
def organization_recommendation: () -> Types::OrganizationRecommendation
|
@@ -130,6 +145,7 @@ module Aws
|
|
130
145
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TrustedAdvisor/Client.html#list_organization_recommendation_resources-instance_method
|
131
146
|
def list_organization_recommendation_resources: (
|
132
147
|
?affected_account_id: ::String,
|
148
|
+
?exclusion_status: ("excluded" | "included"),
|
133
149
|
?max_results: ::Integer,
|
134
150
|
?next_token: ::String,
|
135
151
|
organization_recommendation_identifier: ::String,
|
@@ -165,6 +181,7 @@ module Aws
|
|
165
181
|
end
|
166
182
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TrustedAdvisor/Client.html#list_recommendation_resources-instance_method
|
167
183
|
def list_recommendation_resources: (
|
184
|
+
?exclusion_status: ("excluded" | "included"),
|
168
185
|
?max_results: ::Integer,
|
169
186
|
?next_token: ::String,
|
170
187
|
recommendation_identifier: ::String,
|
data/sig/types.rbs
CHANGED
@@ -25,6 +25,16 @@ module Aws::TrustedAdvisor
|
|
25
25
|
SENSITIVE: [:update_reason]
|
26
26
|
end
|
27
27
|
|
28
|
+
class BatchUpdateRecommendationResourceExclusionRequest
|
29
|
+
attr_accessor recommendation_resource_exclusions: ::Array[Types::RecommendationResourceExclusion]
|
30
|
+
SENSITIVE: []
|
31
|
+
end
|
32
|
+
|
33
|
+
class BatchUpdateRecommendationResourceExclusionResponse
|
34
|
+
attr_accessor batch_update_recommendation_resource_exclusion_errors: ::Array[Types::UpdateRecommendationResourceExclusionError]
|
35
|
+
SENSITIVE: []
|
36
|
+
end
|
37
|
+
|
28
38
|
class CheckSummary
|
29
39
|
attr_accessor arn: ::String
|
30
40
|
attr_accessor aws_services: ::Array[::String]
|
@@ -99,6 +109,7 @@ module Aws::TrustedAdvisor
|
|
99
109
|
|
100
110
|
class ListOrganizationRecommendationResourcesRequest
|
101
111
|
attr_accessor affected_account_id: ::String
|
112
|
+
attr_accessor exclusion_status: ("excluded" | "included")
|
102
113
|
attr_accessor max_results: ::Integer
|
103
114
|
attr_accessor next_token: ::String
|
104
115
|
attr_accessor organization_recommendation_identifier: ::String
|
@@ -134,6 +145,7 @@ module Aws::TrustedAdvisor
|
|
134
145
|
end
|
135
146
|
|
136
147
|
class ListRecommendationResourcesRequest
|
148
|
+
attr_accessor exclusion_status: ("excluded" | "included")
|
137
149
|
attr_accessor max_results: ::Integer
|
138
150
|
attr_accessor next_token: ::String
|
139
151
|
attr_accessor recommendation_identifier: ::String
|
@@ -197,6 +209,7 @@ module Aws::TrustedAdvisor
|
|
197
209
|
attr_accessor account_id: ::String
|
198
210
|
attr_accessor arn: ::String
|
199
211
|
attr_accessor aws_resource_id: ::String
|
212
|
+
attr_accessor exclusion_status: ("excluded" | "included")
|
200
213
|
attr_accessor id: ::String
|
201
214
|
attr_accessor last_updated_at: ::Time
|
202
215
|
attr_accessor metadata: ::Hash[::String, ::String]
|
@@ -260,9 +273,16 @@ module Aws::TrustedAdvisor
|
|
260
273
|
SENSITIVE: []
|
261
274
|
end
|
262
275
|
|
276
|
+
class RecommendationResourceExclusion
|
277
|
+
attr_accessor arn: ::String
|
278
|
+
attr_accessor is_excluded: bool
|
279
|
+
SENSITIVE: []
|
280
|
+
end
|
281
|
+
|
263
282
|
class RecommendationResourceSummary
|
264
283
|
attr_accessor arn: ::String
|
265
284
|
attr_accessor aws_resource_id: ::String
|
285
|
+
attr_accessor exclusion_status: ("excluded" | "included")
|
266
286
|
attr_accessor id: ::String
|
267
287
|
attr_accessor last_updated_at: ::Time
|
268
288
|
attr_accessor metadata: ::Hash[::String, ::String]
|
@@ -323,6 +343,13 @@ module Aws::TrustedAdvisor
|
|
323
343
|
SENSITIVE: [:update_reason]
|
324
344
|
end
|
325
345
|
|
346
|
+
class UpdateRecommendationResourceExclusionError
|
347
|
+
attr_accessor arn: ::String
|
348
|
+
attr_accessor error_code: ::String
|
349
|
+
attr_accessor error_message: ::String
|
350
|
+
SENSITIVE: []
|
351
|
+
end
|
352
|
+
|
326
353
|
class ValidationException
|
327
354
|
attr_accessor message: ::String
|
328
355
|
SENSITIVE: []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-trustedadvisor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|