aws-sdk-proton 1.21.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 504945b3142df87007b5565863e5c8f8737dfe453bfc752847b8e78b6e731bfe
4
- data.tar.gz: 898e091a63fbf6d1288566f7d129db735b12753ce8668cd7b00cbe99b39503f1
3
+ metadata.gz: 25b61e4e90787c0af5088986847fca3ccca296c28437cbd20e1e96153c4a4f66
4
+ data.tar.gz: c1cc94abdb336ead2103752e982a0c1c74f67c50e232467477de2081428a1e72
5
5
  SHA512:
6
- metadata.gz: 89c15bdd58843b96e2ee8a7bb99cbd7e5e389061022cbe0f0d5f27699e3d9fc235e33f66586c69795cbe73191964afd32db98a7d455bc4a95d2ef3dc67365784
7
- data.tar.gz: 41d55427b954dc3112054fca46813cfd51de2cb630e6868cbb65cc936309427aa452f8b1e8863a5e85cbf286644eff93fef3a7816370183c0dcd2d0a0768fbd5
6
+ metadata.gz: 1178252ed280264df221289edf0d27edc8fea6df8b45d6177f67bdb237374fe449915dbc08f52796aa2e0bccb62ed64f4d7dcb374e80294bcf02805f6d7e4d22
7
+ data.tar.gz: 12f3bfb8e9bf4fffa68d733810849eb205726077dbf9fb620f9cedae77643e3d0e0c6c04dfb7bd0c4f04142dc5a9aed8f748926873dba93c7640d11a8a9bded4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.23.0 (2023-02-03)
5
+ ------------------
6
+
7
+ * Feature - Add new GetResourcesSummary API
8
+
9
+ 1.22.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.21.0 (2022-12-02)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.21.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.21.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"
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::Proton
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://proton-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://proton-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://proton.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://proton.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9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In0sInN1cHBvcnRzRHVh
98
- bFN0YWNrIl19XX1dLCJ0eXBlIjoidHJlZSIsInJ1bGVzIjpbeyJjb25kaXRp
99
- b25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9wcm90b24ue1Jl
100
- Z2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkdWFsU3RhY2tEbnNTdWZmaXh9Iiwi
101
- cHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50
102
- In1dfSx7ImNvbmRpdGlvbnMiOltdLCJlcnJvciI6IkR1YWxTdGFjayBpcyBl
103
- bmFibGVkIGJ1dCB0aGlzIHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1
104
- YWxTdGFjayIsInR5cGUiOiJlcnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwi
105
- ZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9wcm90b24ue1JlZ2lvbn0ue1Bh
106
- cnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
107
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
108
-
109
- JSON
110
50
  end
111
51
  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.21.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.21.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: 2022-12-02 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