aws-sdk-trustedadvisor 1.3.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9035a143f9762785f39859da21b5576ba476042f93858e8e3b1d73d163d479a7
4
- data.tar.gz: f185b1c8e991948486a59bb4e83672bc3be76ef01b1076f6e78f61962d479ee1
3
+ metadata.gz: 8bd23bc8dd57cc57a7a368793f6f990a51e621eebfa2423ca1d305095dbdf9ee
4
+ data.tar.gz: f9d7c29392afbbc61cb483c32d06fc262dcce1f657a5d41e6fc14dcdab6bbf8a
5
5
  SHA512:
6
- metadata.gz: 30f8cfa2cd82b82f90ce37a9a6c5e76444f10fa68aa3e822c495f6478107cb7a315f9f516701642216023e142884f4869dfabf11302d1f34112bb6f46067443b
7
- data.tar.gz: 8d40be0bb706979f0df82215fcfd525b4f9db140af3c3c751cc4e6ab2d0f93e53db6862ba55ebd687b63618d6019a42c1f964b42b7b0bdf17ac6b1ea77f34402
6
+ metadata.gz: ca33ee8086fe6519d8eea422c7bcbcdddf85ad02cac8166eeb2624b1e588340cf0ba9bc9af0a95ff45d8a3a69a1de767d53c3bd3f896e4654a72074a5605bc69
7
+ data.tar.gz: d0062eada17b5df181e5c41dffa9b3c49e368f5d06db14bc108aeeae094d3c20e416bbbe2ba35a527bf05653e218dd6792e80c0c134d25e4c39bed0d04bbc978
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.4.0 (2024-04-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.3.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.5.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::TrustedAdvisor
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::TrustedAdvisor
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -337,57 +346,109 @@ module Aws::TrustedAdvisor
337
346
  # @option options [Aws::TrustedAdvisor::EndpointProvider] :endpoint_provider
338
347
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::TrustedAdvisor::EndpointParameters`
339
348
  #
340
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
341
- # requests through. Formatted like 'http://proxy.com:123'.
349
+ # @option options [Float] :http_continue_timeout (1)
350
+ # The number of seconds to wait for a 100-continue response before sending the
351
+ # request body. This option has no effect unless the request has "Expect"
352
+ # header set to "100-continue". Defaults to `nil` which disables this
353
+ # behaviour. This value can safely be set per request on the session.
354
+ #
355
+ # @option options [Float] :http_idle_timeout (5)
356
+ # The number of seconds a connection is allowed to sit idle before it
357
+ # is considered stale. Stale connections are closed and removed from the
358
+ # pool before making a request.
359
+ #
360
+ # @option options [Float] :http_open_timeout (15)
361
+ # The default number of seconds to wait for response data.
362
+ # This value can safely be set per-request on the session.
363
+ #
364
+ # @option options [URI::HTTP,String] :http_proxy
365
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
366
+ #
367
+ # @option options [Float] :http_read_timeout (60)
368
+ # The default number of seconds to wait for response data.
369
+ # This value can safely be set per-request on the session.
370
+ #
371
+ # @option options [Boolean] :http_wire_trace (false)
372
+ # When `true`, HTTP debug output will be sent to the `:logger`.
373
+ #
374
+ # @option options [Proc] :on_chunk_received
375
+ # When a Proc object is provided, it will be used as callback when each chunk
376
+ # of the response body is received. It provides three arguments: the chunk,
377
+ # the number of bytes received, and the total number of
378
+ # bytes in the response (or nil if the server did not send a `content-length`).
379
+ #
380
+ # @option options [Proc] :on_chunk_sent
381
+ # When a Proc object is provided, it will be used as callback when each chunk
382
+ # of the request body is sent. It provides three arguments: the chunk,
383
+ # the number of bytes read from the body, and the total number of
384
+ # bytes in the body.
385
+ #
386
+ # @option options [Boolean] :raise_response_errors (true)
387
+ # When `true`, response errors are raised.
388
+ #
389
+ # @option options [String] :ssl_ca_bundle
390
+ # Full path to the SSL certificate authority bundle file that should be used when
391
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
392
+ # `:ssl_ca_directory` the the system default will be used if available.
393
+ #
394
+ # @option options [String] :ssl_ca_directory
395
+ # Full path of the directory that contains the unbundled SSL certificate
396
+ # authority files for verifying peer certificates. If you do
397
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
398
+ # default will be used if available.
342
399
  #
343
- # @option options [Float] :http_open_timeout (15) The number of
344
- # seconds to wait when opening a HTTP session before raising a
345
- # `Timeout::Error`.
400
+ # @option options [String] :ssl_ca_store
401
+ # Sets the X509::Store to verify peer certificate.
346
402
  #
347
- # @option options [Float] :http_read_timeout (60) The default
348
- # number of seconds to wait for response data. This value can
349
- # safely be set per-request on the session.
403
+ # @option options [Float] :ssl_timeout
404
+ # Sets the SSL timeout in seconds
350
405
  #
351
- # @option options [Float] :http_idle_timeout (5) The number of
352
- # seconds a connection is allowed to sit idle before it is
353
- # considered stale. Stale connections are closed and removed
354
- # from the pool before making a request.
406
+ # @option options [Boolean] :ssl_verify_peer (true)
407
+ # When `true`, SSL peer certificates are verified when establishing a connection.
355
408
  #
356
- # @option options [Float] :http_continue_timeout (1) The number of
357
- # seconds to wait for a 100-continue response before sending the
358
- # request body. This option has no effect unless the request has
359
- # "Expect" header set to "100-continue". Defaults to `nil` which
360
- # disables this behaviour. This value can safely be set per
361
- # request on the session.
409
+ def initialize(*args)
410
+ super
411
+ end
412
+
413
+ # @!group API Operations
414
+
415
+ # Update one or more exclusion status for a list of recommendation
416
+ # resources
362
417
  #
363
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
364
- # in seconds.
418
+ # @option params [required, Array<Types::RecommendationResourceExclusion>] :recommendation_resource_exclusions
419
+ # A list of recommendation resource ARNs and exclusion status to update
365
420
  #
366
- # @option options [Boolean] :http_wire_trace (false) When `true`,
367
- # HTTP debug output will be sent to the `:logger`.
421
+ # @return [Types::BatchUpdateRecommendationResourceExclusionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
368
422
  #
369
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
370
- # SSL peer certificates are verified when establishing a
371
- # connection.
423
+ # * {Types::BatchUpdateRecommendationResourceExclusionResponse#batch_update_recommendation_resource_exclusion_errors #batch_update_recommendation_resource_exclusion_errors} => Array&lt;Types::UpdateRecommendationResourceExclusionError&gt;
372
424
  #
373
- # @option options [String] :ssl_ca_bundle Full path to the SSL
374
- # certificate authority bundle file that should be used when
375
- # verifying peer certificates. If you do not pass
376
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
377
- # will be used if available.
425
+ # @example Request syntax with placeholder values
378
426
  #
379
- # @option options [String] :ssl_ca_directory Full path of the
380
- # directory that contains the unbundled SSL certificate
381
- # authority files for verifying peer certificates. If you do
382
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
383
- # system default will be used if available.
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
+ # })
384
435
  #
385
- def initialize(*args)
386
- super
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)
387
450
  end
388
451
 
389
- # @!group API Operations
390
-
391
452
  # Get a specific recommendation within an AWS Organizations
392
453
  # organization. This API supports only prioritized recommendations.
393
454
  #
@@ -623,6 +684,9 @@ module Aws::TrustedAdvisor
623
684
  # @option params [String] :affected_account_id
624
685
  # An account affected by this organization recommendation
625
686
  #
687
+ # @option params [String] :exclusion_status
688
+ # The exclusion status of the resource
689
+ #
626
690
  # @option params [Integer] :max_results
627
691
  # The maximum number of results to return per page.
628
692
  #
@@ -651,6 +715,7 @@ module Aws::TrustedAdvisor
651
715
  #
652
716
  # resp = client.list_organization_recommendation_resources({
653
717
  # affected_account_id: "AccountId",
718
+ # exclusion_status: "excluded", # accepts excluded, included
654
719
  # max_results: 1,
655
720
  # next_token: "ListOrganizationRecommendationResourcesRequestNextTokenString",
656
721
  # organization_recommendation_identifier: "OrganizationRecommendationIdentifier", # required
@@ -665,6 +730,7 @@ module Aws::TrustedAdvisor
665
730
  # resp.organization_recommendation_resource_summaries[0].account_id #=> String
666
731
  # resp.organization_recommendation_resource_summaries[0].arn #=> String
667
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"
668
734
  # resp.organization_recommendation_resource_summaries[0].id #=> String
669
735
  # resp.organization_recommendation_resource_summaries[0].last_updated_at #=> Time
670
736
  # resp.organization_recommendation_resource_summaries[0].metadata #=> Hash
@@ -774,6 +840,9 @@ module Aws::TrustedAdvisor
774
840
 
775
841
  # List Resources of a Recommendation
776
842
  #
843
+ # @option params [String] :exclusion_status
844
+ # The exclusion status of the resource
845
+ #
777
846
  # @option params [Integer] :max_results
778
847
  # The maximum number of results to return per page.
779
848
  #
@@ -801,6 +870,7 @@ module Aws::TrustedAdvisor
801
870
  # @example Request syntax with placeholder values
802
871
  #
803
872
  # resp = client.list_recommendation_resources({
873
+ # exclusion_status: "excluded", # accepts excluded, included
804
874
  # max_results: 1,
805
875
  # next_token: "ListRecommendationResourcesRequestNextTokenString",
806
876
  # recommendation_identifier: "AccountRecommendationIdentifier", # required
@@ -814,6 +884,7 @@ module Aws::TrustedAdvisor
814
884
  # resp.recommendation_resource_summaries #=> Array
815
885
  # resp.recommendation_resource_summaries[0].arn #=> String
816
886
  # resp.recommendation_resource_summaries[0].aws_resource_id #=> String
887
+ # resp.recommendation_resource_summaries[0].exclusion_status #=> String, one of "excluded", "included"
817
888
  # resp.recommendation_resource_summaries[0].id #=> String
818
889
  # resp.recommendation_resource_summaries[0].last_updated_at #=> Time
819
890
  # resp.recommendation_resource_summaries[0].metadata #=> Hash
@@ -920,7 +991,7 @@ module Aws::TrustedAdvisor
920
991
  req.send_request(options)
921
992
  end
922
993
 
923
- # Update the lifecyle of a Recommendation within an Organization. This
994
+ # Update the lifecycle of a Recommendation within an Organization. This
924
995
  # API only supports prioritized recommendations.
925
996
  #
926
997
  # @option params [required, String] :lifecycle_stage
@@ -1005,7 +1076,7 @@ module Aws::TrustedAdvisor
1005
1076
  params: params,
1006
1077
  config: config)
1007
1078
  context[:gem_name] = 'aws-sdk-trustedadvisor'
1008
- context[:gem_version] = '1.3.0'
1079
+ context[:gem_version] = '1.5.0'
1009
1080
  Seahorse::Client::Request.new(handlers, context)
1010
1081
  end
1011
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.get_organization_recommendation(params)
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.3.0'
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.3.0
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-01-26 00:00:00.000000000 Z
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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.191.0
22
+ version: 3.193.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.191.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement