aws-sdk-proton 1.22.0 → 1.23.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: bf0851e3b370ed1d5c7fa39b596ba36c07afa142f9096aca557dd38c8df213f9
4
- data.tar.gz: 1eef250394b51fde65193179b55a5e655911d7225d7df281d42f9235cb34c2c5
3
+ metadata.gz: 25b61e4e90787c0af5088986847fca3ccca296c28437cbd20e1e96153c4a4f66
4
+ data.tar.gz: c1cc94abdb336ead2103752e982a0c1c74f67c50e232467477de2081428a1e72
5
5
  SHA512:
6
- metadata.gz: 1af8fe2de9e7ecf950fcdc79ff3900708682c3b63ad6cc9a3d939228d8dad11ff2c247f141678ced8ca86f0e76710fe41b377f52fd957483eafcf5b2f53ee1e4
7
- data.tar.gz: 034dead1a6a7f9192eb23ddcc582a454e9eada1eda958f3fd202172cf2cd55bf5ec54ed4f867d962ace37f92c20b576d3b9765f8d47aad6a1b3143824856f063
6
+ metadata.gz: 1178252ed280264df221289edf0d27edc8fea6df8b45d6177f67bdb237374fe449915dbc08f52796aa2e0bccb62ed64f4d7dcb374e80294bcf02805f6d7e4d22
7
+ data.tar.gz: 12f3bfb8e9bf4fffa68d733810849eb205726077dbf9fb620f9cedae77643e3d0e0c6c04dfb7bd0c4f04142dc5a9aed8f748926873dba93c7640d11a8a9bded4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.23.0 (2023-02-03)
5
+ ------------------
6
+
7
+ * Feature - Add new GetResourcesSummary API
8
+
4
9
  1.22.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.22.0
1
+ 1.23.0
@@ -2583,6 +2583,82 @@ module Aws::Proton
2583
2583
  req.send_request(options)
2584
2584
  end
2585
2585
 
2586
+ # Get counts of Proton resources.
2587
+ #
2588
+ # For infrastructure-provisioning resources (environments, services,
2589
+ # service instances, pipelines), the action returns staleness counts. A
2590
+ # resource is stale when it's behind the recommended version of the
2591
+ # Proton template that it uses and it needs an update to become current.
2592
+ #
2593
+ # The action returns staleness counts (counts of resources that are
2594
+ # up-to-date, behind a template major version, or behind a template
2595
+ # minor version), the total number of resources, and the number of
2596
+ # resources that are in a failed state, grouped by resource type.
2597
+ # Components, environments, and service templates are exceptions—see the
2598
+ # `components`, `environments`, and `serviceTemplates` field
2599
+ # descriptions.
2600
+ #
2601
+ # For context, the action also returns the total number of each type of
2602
+ # Proton template in the Amazon Web Services account.
2603
+ #
2604
+ # For more information, see [Proton dashboard][1] in the *Proton User
2605
+ # Guide*.
2606
+ #
2607
+ #
2608
+ #
2609
+ # [1]: https://docs.aws.amazon.com/proton/latest/userguide/monitoring-dashboard.html
2610
+ #
2611
+ # @return [Types::GetResourcesSummaryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2612
+ #
2613
+ # * {Types::GetResourcesSummaryOutput#counts #counts} => Types::CountsSummary
2614
+ #
2615
+ # @example Response structure
2616
+ #
2617
+ # resp.counts.components.behind_major #=> Integer
2618
+ # resp.counts.components.behind_minor #=> Integer
2619
+ # resp.counts.components.failed #=> Integer
2620
+ # resp.counts.components.total #=> Integer
2621
+ # resp.counts.components.up_to_date #=> Integer
2622
+ # resp.counts.environment_templates.behind_major #=> Integer
2623
+ # resp.counts.environment_templates.behind_minor #=> Integer
2624
+ # resp.counts.environment_templates.failed #=> Integer
2625
+ # resp.counts.environment_templates.total #=> Integer
2626
+ # resp.counts.environment_templates.up_to_date #=> Integer
2627
+ # resp.counts.environments.behind_major #=> Integer
2628
+ # resp.counts.environments.behind_minor #=> Integer
2629
+ # resp.counts.environments.failed #=> Integer
2630
+ # resp.counts.environments.total #=> Integer
2631
+ # resp.counts.environments.up_to_date #=> Integer
2632
+ # resp.counts.pipelines.behind_major #=> Integer
2633
+ # resp.counts.pipelines.behind_minor #=> Integer
2634
+ # resp.counts.pipelines.failed #=> Integer
2635
+ # resp.counts.pipelines.total #=> Integer
2636
+ # resp.counts.pipelines.up_to_date #=> Integer
2637
+ # resp.counts.service_instances.behind_major #=> Integer
2638
+ # resp.counts.service_instances.behind_minor #=> Integer
2639
+ # resp.counts.service_instances.failed #=> Integer
2640
+ # resp.counts.service_instances.total #=> Integer
2641
+ # resp.counts.service_instances.up_to_date #=> Integer
2642
+ # resp.counts.service_templates.behind_major #=> Integer
2643
+ # resp.counts.service_templates.behind_minor #=> Integer
2644
+ # resp.counts.service_templates.failed #=> Integer
2645
+ # resp.counts.service_templates.total #=> Integer
2646
+ # resp.counts.service_templates.up_to_date #=> Integer
2647
+ # resp.counts.services.behind_major #=> Integer
2648
+ # resp.counts.services.behind_minor #=> Integer
2649
+ # resp.counts.services.failed #=> Integer
2650
+ # resp.counts.services.total #=> Integer
2651
+ # resp.counts.services.up_to_date #=> Integer
2652
+ #
2653
+ # @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetResourcesSummary AWS API Documentation
2654
+ #
2655
+ # @overload get_resources_summary(params = {})
2656
+ # @param [Hash] params ({})
2657
+ def get_resources_summary(params = {}, options = {})
2658
+ req = build_request(:get_resources_summary, params)
2659
+ req.send_request(options)
2660
+ end
2661
+
2586
2662
  # Get detailed data for a service.
2587
2663
  #
2588
2664
  # @option params [required, String] :name
@@ -5236,7 +5312,7 @@ module Aws::Proton
5236
5312
  params: params,
5237
5313
  config: config)
5238
5314
  context[:gem_name] = 'aws-sdk-proton'
5239
- context[:gem_version] = '1.22.0'
5315
+ context[:gem_version] = '1.23.0'
5240
5316
  Seahorse::Client::Request.new(handlers, context)
5241
5317
  end
5242
5318
 
@@ -39,6 +39,7 @@ module Aws::Proton
39
39
  ComponentSummary = Shapes::StructureShape.new(name: 'ComponentSummary')
40
40
  ComponentSummaryList = Shapes::ListShape.new(name: 'ComponentSummaryList')
41
41
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
42
+ CountsSummary = Shapes::StructureShape.new(name: 'CountsSummary')
42
43
  CreateComponentInput = Shapes::StructureShape.new(name: 'CreateComponentInput')
43
44
  CreateComponentOutput = Shapes::StructureShape.new(name: 'CreateComponentOutput')
44
45
  CreateEnvironmentAccountConnectionInput = Shapes::StructureShape.new(name: 'CreateEnvironmentAccountConnectionInput')
@@ -125,6 +126,8 @@ module Aws::Proton
125
126
  GetRepositoryOutput = Shapes::StructureShape.new(name: 'GetRepositoryOutput')
126
127
  GetRepositorySyncStatusInput = Shapes::StructureShape.new(name: 'GetRepositorySyncStatusInput')
127
128
  GetRepositorySyncStatusOutput = Shapes::StructureShape.new(name: 'GetRepositorySyncStatusOutput')
129
+ GetResourcesSummaryInput = Shapes::StructureShape.new(name: 'GetResourcesSummaryInput')
130
+ GetResourcesSummaryOutput = Shapes::StructureShape.new(name: 'GetResourcesSummaryOutput')
128
131
  GetServiceInput = Shapes::StructureShape.new(name: 'GetServiceInput')
129
132
  GetServiceInstanceInput = Shapes::StructureShape.new(name: 'GetServiceInstanceInput')
130
133
  GetServiceInstanceOutput = Shapes::StructureShape.new(name: 'GetServiceInstanceOutput')
@@ -138,6 +141,7 @@ module Aws::Proton
138
141
  GetTemplateSyncStatusInput = Shapes::StructureShape.new(name: 'GetTemplateSyncStatusInput')
139
142
  GetTemplateSyncStatusOutput = Shapes::StructureShape.new(name: 'GetTemplateSyncStatusOutput')
140
143
  GitBranchName = Shapes::StringShape.new(name: 'GitBranchName')
144
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
141
145
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
142
146
  ListComponentOutputsInput = Shapes::StructureShape.new(name: 'ListComponentOutputsInput')
143
147
  ListComponentOutputsOutput = Shapes::StructureShape.new(name: 'ListComponentOutputsOutput')
@@ -217,6 +221,7 @@ module Aws::Proton
217
221
  RepositorySyncEvent = Shapes::StructureShape.new(name: 'RepositorySyncEvent')
218
222
  RepositorySyncEvents = Shapes::ListShape.new(name: 'RepositorySyncEvents')
219
223
  RepositorySyncStatus = Shapes::StringShape.new(name: 'RepositorySyncStatus')
224
+ ResourceCountsSummary = Shapes::StructureShape.new(name: 'ResourceCountsSummary')
220
225
  ResourceDeploymentStatus = Shapes::StringShape.new(name: 'ResourceDeploymentStatus')
221
226
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
222
227
  ResourceNameOrEmpty = Shapes::StringShape.new(name: 'ResourceNameOrEmpty')
@@ -388,6 +393,15 @@ module Aws::Proton
388
393
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
389
394
  ConflictException.struct_class = Types::ConflictException
390
395
 
396
+ CountsSummary.add_member(:components, Shapes::ShapeRef.new(shape: ResourceCountsSummary, location_name: "components"))
397
+ CountsSummary.add_member(:environment_templates, Shapes::ShapeRef.new(shape: ResourceCountsSummary, location_name: "environmentTemplates"))
398
+ CountsSummary.add_member(:environments, Shapes::ShapeRef.new(shape: ResourceCountsSummary, location_name: "environments"))
399
+ CountsSummary.add_member(:pipelines, Shapes::ShapeRef.new(shape: ResourceCountsSummary, location_name: "pipelines"))
400
+ CountsSummary.add_member(:service_instances, Shapes::ShapeRef.new(shape: ResourceCountsSummary, location_name: "serviceInstances"))
401
+ CountsSummary.add_member(:service_templates, Shapes::ShapeRef.new(shape: ResourceCountsSummary, location_name: "serviceTemplates"))
402
+ CountsSummary.add_member(:services, Shapes::ShapeRef.new(shape: ResourceCountsSummary, location_name: "services"))
403
+ CountsSummary.struct_class = Types::CountsSummary
404
+
391
405
  CreateComponentInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
392
406
  CreateComponentInput.add_member(:environment_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "environmentName"))
393
407
  CreateComponentInput.add_member(:manifest, Shapes::ShapeRef.new(shape: TemplateManifestContents, required: true, location_name: "manifest"))
@@ -758,6 +772,11 @@ module Aws::Proton
758
772
  GetRepositorySyncStatusOutput.add_member(:latest_sync, Shapes::ShapeRef.new(shape: RepositorySyncAttempt, location_name: "latestSync"))
759
773
  GetRepositorySyncStatusOutput.struct_class = Types::GetRepositorySyncStatusOutput
760
774
 
775
+ GetResourcesSummaryInput.struct_class = Types::GetResourcesSummaryInput
776
+
777
+ GetResourcesSummaryOutput.add_member(:counts, Shapes::ShapeRef.new(shape: CountsSummary, required: true, location_name: "counts"))
778
+ GetResourcesSummaryOutput.struct_class = Types::GetResourcesSummaryOutput
779
+
761
780
  GetServiceInput.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
762
781
  GetServiceInput.struct_class = Types::GetServiceInput
763
782
 
@@ -1067,6 +1086,13 @@ module Aws::Proton
1067
1086
 
1068
1087
  RepositorySyncEvents.member = Shapes::ShapeRef.new(shape: RepositorySyncEvent)
1069
1088
 
1089
+ ResourceCountsSummary.add_member(:behind_major, Shapes::ShapeRef.new(shape: Integer, location_name: "behindMajor"))
1090
+ ResourceCountsSummary.add_member(:behind_minor, Shapes::ShapeRef.new(shape: Integer, location_name: "behindMinor"))
1091
+ ResourceCountsSummary.add_member(:failed, Shapes::ShapeRef.new(shape: Integer, location_name: "failed"))
1092
+ ResourceCountsSummary.add_member(:total, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "total"))
1093
+ ResourceCountsSummary.add_member(:up_to_date, Shapes::ShapeRef.new(shape: Integer, location_name: "upToDate"))
1094
+ ResourceCountsSummary.struct_class = Types::ResourceCountsSummary
1095
+
1070
1096
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
1071
1097
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
1072
1098
 
@@ -1866,6 +1892,18 @@ module Aws::Proton
1866
1892
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1867
1893
  end)
1868
1894
 
1895
+ api.add_operation(:get_resources_summary, Seahorse::Model::Operation.new.tap do |o|
1896
+ o.name = "GetResourcesSummary"
1897
+ o.http_method = "POST"
1898
+ o.http_request_uri = "/"
1899
+ o.input = Shapes::ShapeRef.new(shape: GetResourcesSummaryInput)
1900
+ o.output = Shapes::ShapeRef.new(shape: GetResourcesSummaryOutput)
1901
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1902
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1903
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1904
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1905
+ end)
1906
+
1869
1907
  api.add_operation(:get_service, Seahorse::Model::Operation.new.tap do |o|
1870
1908
  o.name = "GetService"
1871
1909
  o.http_method = "POST"
@@ -15,7 +15,7 @@ module Aws::Proton
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
17
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
19
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
20
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
21
  end
@@ -473,6 +473,20 @@ module Aws::Proton
473
473
  end
474
474
  end
475
475
 
476
+ class GetResourcesSummary
477
+ def self.build(context)
478
+ unless context.config.regional_endpoint
479
+ endpoint = context.config.endpoint.to_s
480
+ end
481
+ Aws::Proton::EndpointParameters.new(
482
+ region: context.config.region,
483
+ use_dual_stack: context.config.use_dualstack_endpoint,
484
+ use_fips: context.config.use_fips_endpoint,
485
+ endpoint: endpoint,
486
+ )
487
+ end
488
+ end
489
+
476
490
  class GetService
477
491
  def self.build(context)
478
492
  unless context.config.regional_endpoint
@@ -122,6 +122,8 @@ module Aws::Proton
122
122
  Aws::Proton::Endpoints::GetRepository.build(context)
123
123
  when :get_repository_sync_status
124
124
  Aws::Proton::Endpoints::GetRepositorySyncStatus.build(context)
125
+ when :get_resources_summary
126
+ Aws::Proton::Endpoints::GetResourcesSummary.build(context)
125
127
  when :get_service
126
128
  Aws::Proton::Endpoints::GetService.build(context)
127
129
  when :get_service_instance
@@ -396,6 +396,65 @@ module Aws::Proton
396
396
  include Aws::Structure
397
397
  end
398
398
 
399
+ # Summary counts of each Proton resource type.
400
+ #
401
+ # @!attribute [rw] components
402
+ # The total number of components in the Amazon Web Services account.
403
+ #
404
+ # The semantics of the `components` field are different from the
405
+ # semantics of results for other infrastructure-provisioning
406
+ # resources. That's because at this time components don't have
407
+ # associated templates, therefore they don't have the concept of
408
+ # staleness. The `components` object will only contain `total` and
409
+ # `failed` members.
410
+ # @return [Types::ResourceCountsSummary]
411
+ #
412
+ # @!attribute [rw] environment_templates
413
+ # The total number of environment templates in the Amazon Web Services
414
+ # account.
415
+ # @return [Types::ResourceCountsSummary]
416
+ #
417
+ # @!attribute [rw] environments
418
+ # The staleness counts for Proton environments in the Amazon Web
419
+ # Services account. The `environments` object will only contain
420
+ # `total` members.
421
+ # @return [Types::ResourceCountsSummary]
422
+ #
423
+ # @!attribute [rw] pipelines
424
+ # The staleness counts for Proton pipelines in the Amazon Web Services
425
+ # account.
426
+ # @return [Types::ResourceCountsSummary]
427
+ #
428
+ # @!attribute [rw] service_instances
429
+ # The staleness counts for Proton service instances in the Amazon Web
430
+ # Services account.
431
+ # @return [Types::ResourceCountsSummary]
432
+ #
433
+ # @!attribute [rw] service_templates
434
+ # The total number of service templates in the Amazon Web Services
435
+ # account. The `serviceTemplates` object will only contain `total`
436
+ # members.
437
+ # @return [Types::ResourceCountsSummary]
438
+ #
439
+ # @!attribute [rw] services
440
+ # The staleness counts for Proton services in the Amazon Web Services
441
+ # account.
442
+ # @return [Types::ResourceCountsSummary]
443
+ #
444
+ # @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/CountsSummary AWS API Documentation
445
+ #
446
+ class CountsSummary < Struct.new(
447
+ :components,
448
+ :environment_templates,
449
+ :environments,
450
+ :pipelines,
451
+ :service_instances,
452
+ :service_templates,
453
+ :services)
454
+ SENSITIVE = []
455
+ include Aws::Structure
456
+ end
457
+
399
458
  # @!attribute [rw] description
400
459
  # An optional customer-provided description of the component.
401
460
  # @return [String]
@@ -2363,6 +2422,24 @@ module Aws::Proton
2363
2422
  include Aws::Structure
2364
2423
  end
2365
2424
 
2425
+ # @api private
2426
+ #
2427
+ # @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetResourcesSummaryInput AWS API Documentation
2428
+ #
2429
+ class GetResourcesSummaryInput < Aws::EmptyStructure; end
2430
+
2431
+ # @!attribute [rw] counts
2432
+ # Summary counts of each Proton resource type.
2433
+ # @return [Types::CountsSummary]
2434
+ #
2435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetResourcesSummaryOutput AWS API Documentation
2436
+ #
2437
+ class GetResourcesSummaryOutput < Struct.new(
2438
+ :counts)
2439
+ SENSITIVE = []
2440
+ include Aws::Structure
2441
+ end
2442
+
2366
2443
  # @!attribute [rw] name
2367
2444
  # The name of the service that you want to get the detailed data for.
2368
2445
  # @return [String]
@@ -3793,6 +3870,45 @@ module Aws::Proton
3793
3870
  include Aws::Structure
3794
3871
  end
3795
3872
 
3873
+ # Summary counts of each Proton resource types.
3874
+ #
3875
+ # @!attribute [rw] behind_major
3876
+ # The number of resources of this type in the Amazon Web Services
3877
+ # account that need a major template version update.
3878
+ # @return [Integer]
3879
+ #
3880
+ # @!attribute [rw] behind_minor
3881
+ # The number of resources of this type in the Amazon Web Services
3882
+ # account that need a minor template version update.
3883
+ # @return [Integer]
3884
+ #
3885
+ # @!attribute [rw] failed
3886
+ # The number of resources of this type in the Amazon Web Services
3887
+ # account that failed to deploy.
3888
+ # @return [Integer]
3889
+ #
3890
+ # @!attribute [rw] total
3891
+ # The total number of resources of this type in the Amazon Web
3892
+ # Services account.
3893
+ # @return [Integer]
3894
+ #
3895
+ # @!attribute [rw] up_to_date
3896
+ # The number of resources of this type in the Amazon Web Services
3897
+ # account that are up-to-date with their template.
3898
+ # @return [Integer]
3899
+ #
3900
+ # @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ResourceCountsSummary AWS API Documentation
3901
+ #
3902
+ class ResourceCountsSummary < Struct.new(
3903
+ :behind_major,
3904
+ :behind_minor,
3905
+ :failed,
3906
+ :total,
3907
+ :up_to_date)
3908
+ SENSITIVE = []
3909
+ include Aws::Structure
3910
+ end
3911
+
3796
3912
  # The requested resource *wasn't* found.
3797
3913
  #
3798
3914
  # @!attribute [rw] message
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-proton/customizations'
53
53
  # @!group service
54
54
  module Aws::Proton
55
55
 
56
- GEM_VERSION = '1.22.0'
56
+ GEM_VERSION = '1.23.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-proton
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.23.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: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core