aws-sdk-proton 1.22.0 → 1.24.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-proton/client.rb +525 -4
- data/lib/aws-sdk-proton/client_api.rb +277 -0
- data/lib/aws-sdk-proton/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-proton/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-proton/endpoints.rb +126 -0
- data/lib/aws-sdk-proton/plugins/endpoints.rb +18 -0
- data/lib/aws-sdk-proton/types.rb +630 -2
- data/lib/aws-sdk-proton.rb +1 -1
- metadata +2 -2
@@ -457,6 +457,7 @@ module Aws::Proton
|
|
457
457
|
# resp.component.deployment_status_message #=> String
|
458
458
|
# resp.component.description #=> String
|
459
459
|
# resp.component.environment_name #=> String
|
460
|
+
# resp.component.last_client_request_token #=> String
|
460
461
|
# resp.component.last_deployment_attempted_at #=> Time
|
461
462
|
# resp.component.last_deployment_succeeded_at #=> Time
|
462
463
|
# resp.component.last_modified_at #=> Time
|
@@ -587,6 +588,7 @@ module Aws::Proton
|
|
587
588
|
# resp.service_instance.deployment_status #=> String, one of "IN_PROGRESS", "FAILED", "SUCCEEDED", "DELETE_IN_PROGRESS", "DELETE_FAILED", "DELETE_COMPLETE", "CANCELLING", "CANCELLED"
|
588
589
|
# resp.service_instance.deployment_status_message #=> String
|
589
590
|
# resp.service_instance.environment_name #=> String
|
591
|
+
# resp.service_instance.last_client_request_token #=> String
|
590
592
|
# resp.service_instance.last_deployment_attempted_at #=> Time
|
591
593
|
# resp.service_instance.last_deployment_succeeded_at #=> Time
|
592
594
|
# resp.service_instance.name #=> String
|
@@ -672,6 +674,12 @@ module Aws::Proton
|
|
672
674
|
#
|
673
675
|
# [1]: https://docs.aws.amazon.com/proton/latest/userguide/ag-components.html
|
674
676
|
#
|
677
|
+
# @option params [String] :client_token
|
678
|
+
# The client token for the created component.
|
679
|
+
#
|
680
|
+
# **A suitable default value is auto-generated.** You should normally
|
681
|
+
# not need to pass this option.**
|
682
|
+
#
|
675
683
|
# @option params [String] :description
|
676
684
|
# An optional customer-provided description of the component.
|
677
685
|
#
|
@@ -732,6 +740,7 @@ module Aws::Proton
|
|
732
740
|
# @example Request syntax with placeholder values
|
733
741
|
#
|
734
742
|
# resp = client.create_component({
|
743
|
+
# client_token: "ClientToken",
|
735
744
|
# description: "Description",
|
736
745
|
# environment_name: "ResourceName",
|
737
746
|
# manifest: "TemplateManifestContents", # required
|
@@ -756,6 +765,7 @@ module Aws::Proton
|
|
756
765
|
# resp.component.deployment_status_message #=> String
|
757
766
|
# resp.component.description #=> String
|
758
767
|
# resp.component.environment_name #=> String
|
768
|
+
# resp.component.last_client_request_token #=> String
|
759
769
|
# resp.component.last_deployment_attempted_at #=> Time
|
760
770
|
# resp.component.last_deployment_succeeded_at #=> Time
|
761
771
|
# resp.component.last_modified_at #=> Time
|
@@ -1463,6 +1473,137 @@ module Aws::Proton
|
|
1463
1473
|
req.send_request(options)
|
1464
1474
|
end
|
1465
1475
|
|
1476
|
+
# Create a service instance.
|
1477
|
+
#
|
1478
|
+
# @option params [String] :client_token
|
1479
|
+
# The client token of the service instance to create.
|
1480
|
+
#
|
1481
|
+
# **A suitable default value is auto-generated.** You should normally
|
1482
|
+
# not need to pass this option.**
|
1483
|
+
#
|
1484
|
+
# @option params [required, String] :name
|
1485
|
+
# The name of the service instance to create.
|
1486
|
+
#
|
1487
|
+
# @option params [required, String] :service_name
|
1488
|
+
# The name of the service the service instance is added to.
|
1489
|
+
#
|
1490
|
+
# @option params [required, String] :spec
|
1491
|
+
# The spec for the service instance you want to create.
|
1492
|
+
#
|
1493
|
+
# @option params [Array<Types::Tag>] :tags
|
1494
|
+
# An optional list of metadata items that you can associate with the
|
1495
|
+
# Proton service instance. A tag is a key-value pair.
|
1496
|
+
#
|
1497
|
+
# For more information, see [Proton resources and tagging][1] in the
|
1498
|
+
# *Proton User Guide*.
|
1499
|
+
#
|
1500
|
+
#
|
1501
|
+
#
|
1502
|
+
# [1]: https://docs.aws.amazon.com/proton/latest/userguide/resources.html
|
1503
|
+
#
|
1504
|
+
# @option params [String] :template_major_version
|
1505
|
+
# To create a new major and minor version of the service template,
|
1506
|
+
# *exclude* `major Version`.
|
1507
|
+
#
|
1508
|
+
# @option params [String] :template_minor_version
|
1509
|
+
# To create a new minor version of the service template, include a
|
1510
|
+
# `major Version`.
|
1511
|
+
#
|
1512
|
+
# @return [Types::CreateServiceInstanceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1513
|
+
#
|
1514
|
+
# * {Types::CreateServiceInstanceOutput#service_instance #service_instance} => Types::ServiceInstance
|
1515
|
+
#
|
1516
|
+
# @example Request syntax with placeholder values
|
1517
|
+
#
|
1518
|
+
# resp = client.create_service_instance({
|
1519
|
+
# client_token: "ClientToken",
|
1520
|
+
# name: "ResourceName", # required
|
1521
|
+
# service_name: "ResourceName", # required
|
1522
|
+
# spec: "SpecContents", # required
|
1523
|
+
# tags: [
|
1524
|
+
# {
|
1525
|
+
# key: "TagKey", # required
|
1526
|
+
# value: "TagValue", # required
|
1527
|
+
# },
|
1528
|
+
# ],
|
1529
|
+
# template_major_version: "TemplateVersionPart",
|
1530
|
+
# template_minor_version: "TemplateVersionPart",
|
1531
|
+
# })
|
1532
|
+
#
|
1533
|
+
# @example Response structure
|
1534
|
+
#
|
1535
|
+
# resp.service_instance.arn #=> String
|
1536
|
+
# resp.service_instance.created_at #=> Time
|
1537
|
+
# resp.service_instance.deployment_status #=> String, one of "IN_PROGRESS", "FAILED", "SUCCEEDED", "DELETE_IN_PROGRESS", "DELETE_FAILED", "DELETE_COMPLETE", "CANCELLING", "CANCELLED"
|
1538
|
+
# resp.service_instance.deployment_status_message #=> String
|
1539
|
+
# resp.service_instance.environment_name #=> String
|
1540
|
+
# resp.service_instance.last_client_request_token #=> String
|
1541
|
+
# resp.service_instance.last_deployment_attempted_at #=> Time
|
1542
|
+
# resp.service_instance.last_deployment_succeeded_at #=> Time
|
1543
|
+
# resp.service_instance.name #=> String
|
1544
|
+
# resp.service_instance.service_name #=> String
|
1545
|
+
# resp.service_instance.spec #=> String
|
1546
|
+
# resp.service_instance.template_major_version #=> String
|
1547
|
+
# resp.service_instance.template_minor_version #=> String
|
1548
|
+
# resp.service_instance.template_name #=> String
|
1549
|
+
#
|
1550
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/CreateServiceInstance AWS API Documentation
|
1551
|
+
#
|
1552
|
+
# @overload create_service_instance(params = {})
|
1553
|
+
# @param [Hash] params ({})
|
1554
|
+
def create_service_instance(params = {}, options = {})
|
1555
|
+
req = build_request(:create_service_instance, params)
|
1556
|
+
req.send_request(options)
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
# Create the Proton Ops configuration file.
|
1560
|
+
#
|
1561
|
+
# @option params [required, String] :branch
|
1562
|
+
# The repository branch for your Proton Ops file.
|
1563
|
+
#
|
1564
|
+
# @option params [required, String] :file_path
|
1565
|
+
# The path to the Proton Ops file.
|
1566
|
+
#
|
1567
|
+
# @option params [required, String] :repository_name
|
1568
|
+
# The repository name.
|
1569
|
+
#
|
1570
|
+
# @option params [required, String] :repository_provider
|
1571
|
+
# The provider type for your repository.
|
1572
|
+
#
|
1573
|
+
# @option params [required, String] :service_name
|
1574
|
+
# The name of the service the Proton Ops file is for.
|
1575
|
+
#
|
1576
|
+
# @return [Types::CreateServiceSyncConfigOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1577
|
+
#
|
1578
|
+
# * {Types::CreateServiceSyncConfigOutput#service_sync_config #service_sync_config} => Types::ServiceSyncConfig
|
1579
|
+
#
|
1580
|
+
# @example Request syntax with placeholder values
|
1581
|
+
#
|
1582
|
+
# resp = client.create_service_sync_config({
|
1583
|
+
# branch: "GitBranchName", # required
|
1584
|
+
# file_path: "OpsFilePath", # required
|
1585
|
+
# repository_name: "RepositoryName", # required
|
1586
|
+
# repository_provider: "GITHUB", # required, accepts GITHUB, GITHUB_ENTERPRISE, BITBUCKET
|
1587
|
+
# service_name: "ResourceName", # required
|
1588
|
+
# })
|
1589
|
+
#
|
1590
|
+
# @example Response structure
|
1591
|
+
#
|
1592
|
+
# resp.service_sync_config.branch #=> String
|
1593
|
+
# resp.service_sync_config.file_path #=> String
|
1594
|
+
# resp.service_sync_config.repository_name #=> String
|
1595
|
+
# resp.service_sync_config.repository_provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
1596
|
+
# resp.service_sync_config.service_name #=> String
|
1597
|
+
#
|
1598
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/CreateServiceSyncConfig AWS API Documentation
|
1599
|
+
#
|
1600
|
+
# @overload create_service_sync_config(params = {})
|
1601
|
+
# @param [Hash] params ({})
|
1602
|
+
def create_service_sync_config(params = {}, options = {})
|
1603
|
+
req = build_request(:create_service_sync_config, params)
|
1604
|
+
req.send_request(options)
|
1605
|
+
end
|
1606
|
+
|
1466
1607
|
# Create a service template. The administrator creates a service
|
1467
1608
|
# template to define standardized infrastructure and an optional CI/CD
|
1468
1609
|
# service pipeline. Developers, in turn, select the service template
|
@@ -1769,6 +1910,7 @@ module Aws::Proton
|
|
1769
1910
|
# resp.component.deployment_status_message #=> String
|
1770
1911
|
# resp.component.description #=> String
|
1771
1912
|
# resp.component.environment_name #=> String
|
1913
|
+
# resp.component.last_client_request_token #=> String
|
1772
1914
|
# resp.component.last_deployment_attempted_at #=> Time
|
1773
1915
|
# resp.component.last_deployment_succeeded_at #=> Time
|
1774
1916
|
# resp.component.last_modified_at #=> Time
|
@@ -2078,6 +2220,39 @@ module Aws::Proton
|
|
2078
2220
|
req.send_request(options)
|
2079
2221
|
end
|
2080
2222
|
|
2223
|
+
# Delete the Proton Ops file.
|
2224
|
+
#
|
2225
|
+
# @option params [required, String] :service_name
|
2226
|
+
# The name of the service that you want to delete the service sync
|
2227
|
+
# configuration for.
|
2228
|
+
#
|
2229
|
+
# @return [Types::DeleteServiceSyncConfigOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2230
|
+
#
|
2231
|
+
# * {Types::DeleteServiceSyncConfigOutput#service_sync_config #service_sync_config} => Types::ServiceSyncConfig
|
2232
|
+
#
|
2233
|
+
# @example Request syntax with placeholder values
|
2234
|
+
#
|
2235
|
+
# resp = client.delete_service_sync_config({
|
2236
|
+
# service_name: "ResourceName", # required
|
2237
|
+
# })
|
2238
|
+
#
|
2239
|
+
# @example Response structure
|
2240
|
+
#
|
2241
|
+
# resp.service_sync_config.branch #=> String
|
2242
|
+
# resp.service_sync_config.file_path #=> String
|
2243
|
+
# resp.service_sync_config.repository_name #=> String
|
2244
|
+
# resp.service_sync_config.repository_provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
2245
|
+
# resp.service_sync_config.service_name #=> String
|
2246
|
+
#
|
2247
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/DeleteServiceSyncConfig AWS API Documentation
|
2248
|
+
#
|
2249
|
+
# @overload delete_service_sync_config(params = {})
|
2250
|
+
# @param [Hash] params ({})
|
2251
|
+
def delete_service_sync_config(params = {}, options = {})
|
2252
|
+
req = build_request(:delete_service_sync_config, params)
|
2253
|
+
req.send_request(options)
|
2254
|
+
end
|
2255
|
+
|
2081
2256
|
# If no other major or minor versions of the service template exist,
|
2082
2257
|
# delete the service template.
|
2083
2258
|
#
|
@@ -2268,6 +2443,7 @@ module Aws::Proton
|
|
2268
2443
|
# resp.component.deployment_status_message #=> String
|
2269
2444
|
# resp.component.description #=> String
|
2270
2445
|
# resp.component.environment_name #=> String
|
2446
|
+
# resp.component.last_client_request_token #=> String
|
2271
2447
|
# resp.component.last_deployment_attempted_at #=> Time
|
2272
2448
|
# resp.component.last_deployment_succeeded_at #=> Time
|
2273
2449
|
# resp.component.last_modified_at #=> Time
|
@@ -2561,7 +2737,7 @@ module Aws::Proton
|
|
2561
2737
|
# branch: "GitBranchName", # required
|
2562
2738
|
# repository_name: "RepositoryName", # required
|
2563
2739
|
# repository_provider: "GITHUB", # required, accepts GITHUB, GITHUB_ENTERPRISE, BITBUCKET
|
2564
|
-
# sync_type: "TEMPLATE_SYNC", # required, accepts TEMPLATE_SYNC
|
2740
|
+
# sync_type: "TEMPLATE_SYNC", # required, accepts TEMPLATE_SYNC, SERVICE_SYNC
|
2565
2741
|
# })
|
2566
2742
|
#
|
2567
2743
|
# @example Response structure
|
@@ -2583,6 +2759,82 @@ module Aws::Proton
|
|
2583
2759
|
req.send_request(options)
|
2584
2760
|
end
|
2585
2761
|
|
2762
|
+
# Get counts of Proton resources.
|
2763
|
+
#
|
2764
|
+
# For infrastructure-provisioning resources (environments, services,
|
2765
|
+
# service instances, pipelines), the action returns staleness counts. A
|
2766
|
+
# resource is stale when it's behind the recommended version of the
|
2767
|
+
# Proton template that it uses and it needs an update to become current.
|
2768
|
+
#
|
2769
|
+
# The action returns staleness counts (counts of resources that are
|
2770
|
+
# up-to-date, behind a template major version, or behind a template
|
2771
|
+
# minor version), the total number of resources, and the number of
|
2772
|
+
# resources that are in a failed state, grouped by resource type.
|
2773
|
+
# Components, environments, and service templates return less
|
2774
|
+
# information - see the `components`, `environments`, and
|
2775
|
+
# `serviceTemplates` field descriptions.
|
2776
|
+
#
|
2777
|
+
# For context, the action also returns the total number of each type of
|
2778
|
+
# Proton template in the Amazon Web Services account.
|
2779
|
+
#
|
2780
|
+
# For more information, see [Proton dashboard][1] in the *Proton User
|
2781
|
+
# Guide*.
|
2782
|
+
#
|
2783
|
+
#
|
2784
|
+
#
|
2785
|
+
# [1]: https://docs.aws.amazon.com/proton/latest/userguide/monitoring-dashboard.html
|
2786
|
+
#
|
2787
|
+
# @return [Types::GetResourcesSummaryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2788
|
+
#
|
2789
|
+
# * {Types::GetResourcesSummaryOutput#counts #counts} => Types::CountsSummary
|
2790
|
+
#
|
2791
|
+
# @example Response structure
|
2792
|
+
#
|
2793
|
+
# resp.counts.components.behind_major #=> Integer
|
2794
|
+
# resp.counts.components.behind_minor #=> Integer
|
2795
|
+
# resp.counts.components.failed #=> Integer
|
2796
|
+
# resp.counts.components.total #=> Integer
|
2797
|
+
# resp.counts.components.up_to_date #=> Integer
|
2798
|
+
# resp.counts.environment_templates.behind_major #=> Integer
|
2799
|
+
# resp.counts.environment_templates.behind_minor #=> Integer
|
2800
|
+
# resp.counts.environment_templates.failed #=> Integer
|
2801
|
+
# resp.counts.environment_templates.total #=> Integer
|
2802
|
+
# resp.counts.environment_templates.up_to_date #=> Integer
|
2803
|
+
# resp.counts.environments.behind_major #=> Integer
|
2804
|
+
# resp.counts.environments.behind_minor #=> Integer
|
2805
|
+
# resp.counts.environments.failed #=> Integer
|
2806
|
+
# resp.counts.environments.total #=> Integer
|
2807
|
+
# resp.counts.environments.up_to_date #=> Integer
|
2808
|
+
# resp.counts.pipelines.behind_major #=> Integer
|
2809
|
+
# resp.counts.pipelines.behind_minor #=> Integer
|
2810
|
+
# resp.counts.pipelines.failed #=> Integer
|
2811
|
+
# resp.counts.pipelines.total #=> Integer
|
2812
|
+
# resp.counts.pipelines.up_to_date #=> Integer
|
2813
|
+
# resp.counts.service_instances.behind_major #=> Integer
|
2814
|
+
# resp.counts.service_instances.behind_minor #=> Integer
|
2815
|
+
# resp.counts.service_instances.failed #=> Integer
|
2816
|
+
# resp.counts.service_instances.total #=> Integer
|
2817
|
+
# resp.counts.service_instances.up_to_date #=> Integer
|
2818
|
+
# resp.counts.service_templates.behind_major #=> Integer
|
2819
|
+
# resp.counts.service_templates.behind_minor #=> Integer
|
2820
|
+
# resp.counts.service_templates.failed #=> Integer
|
2821
|
+
# resp.counts.service_templates.total #=> Integer
|
2822
|
+
# resp.counts.service_templates.up_to_date #=> Integer
|
2823
|
+
# resp.counts.services.behind_major #=> Integer
|
2824
|
+
# resp.counts.services.behind_minor #=> Integer
|
2825
|
+
# resp.counts.services.failed #=> Integer
|
2826
|
+
# resp.counts.services.total #=> Integer
|
2827
|
+
# resp.counts.services.up_to_date #=> Integer
|
2828
|
+
#
|
2829
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetResourcesSummary AWS API Documentation
|
2830
|
+
#
|
2831
|
+
# @overload get_resources_summary(params = {})
|
2832
|
+
# @param [Hash] params ({})
|
2833
|
+
def get_resources_summary(params = {}, options = {})
|
2834
|
+
req = build_request(:get_resources_summary, params)
|
2835
|
+
req.send_request(options)
|
2836
|
+
end
|
2837
|
+
|
2586
2838
|
# Get detailed data for a service.
|
2587
2839
|
#
|
2588
2840
|
# @option params [required, String] :name
|
@@ -2649,7 +2901,7 @@ module Aws::Proton
|
|
2649
2901
|
# for.
|
2650
2902
|
#
|
2651
2903
|
# @option params [required, String] :service_name
|
2652
|
-
# The name of the service that the service instance
|
2904
|
+
# The name of the service that you want the service instance input for.
|
2653
2905
|
#
|
2654
2906
|
# @return [Types::GetServiceInstanceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2655
2907
|
#
|
@@ -2669,6 +2921,7 @@ module Aws::Proton
|
|
2669
2921
|
# resp.service_instance.deployment_status #=> String, one of "IN_PROGRESS", "FAILED", "SUCCEEDED", "DELETE_IN_PROGRESS", "DELETE_FAILED", "DELETE_COMPLETE", "CANCELLING", "CANCELLED"
|
2670
2922
|
# resp.service_instance.deployment_status_message #=> String
|
2671
2923
|
# resp.service_instance.environment_name #=> String
|
2924
|
+
# resp.service_instance.last_client_request_token #=> String
|
2672
2925
|
# resp.service_instance.last_deployment_attempted_at #=> Time
|
2673
2926
|
# resp.service_instance.last_deployment_succeeded_at #=> Time
|
2674
2927
|
# resp.service_instance.name #=> String
|
@@ -2692,6 +2945,162 @@ module Aws::Proton
|
|
2692
2945
|
req.send_request(options)
|
2693
2946
|
end
|
2694
2947
|
|
2948
|
+
# Get the status of the synced service instance.
|
2949
|
+
#
|
2950
|
+
# @option params [required, String] :service_instance_name
|
2951
|
+
# The name of the service instance that you want the sync status input
|
2952
|
+
# for.
|
2953
|
+
#
|
2954
|
+
# @option params [required, String] :service_name
|
2955
|
+
# The name of the service that the service instance belongs to.
|
2956
|
+
#
|
2957
|
+
# @return [Types::GetServiceInstanceSyncStatusOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2958
|
+
#
|
2959
|
+
# * {Types::GetServiceInstanceSyncStatusOutput#desired_state #desired_state} => Types::Revision
|
2960
|
+
# * {Types::GetServiceInstanceSyncStatusOutput#latest_successful_sync #latest_successful_sync} => Types::ResourceSyncAttempt
|
2961
|
+
# * {Types::GetServiceInstanceSyncStatusOutput#latest_sync #latest_sync} => Types::ResourceSyncAttempt
|
2962
|
+
#
|
2963
|
+
# @example Request syntax with placeholder values
|
2964
|
+
#
|
2965
|
+
# resp = client.get_service_instance_sync_status({
|
2966
|
+
# service_instance_name: "ResourceName", # required
|
2967
|
+
# service_name: "ResourceName", # required
|
2968
|
+
# })
|
2969
|
+
#
|
2970
|
+
# @example Response structure
|
2971
|
+
#
|
2972
|
+
# resp.desired_state.branch #=> String
|
2973
|
+
# resp.desired_state.directory #=> String
|
2974
|
+
# resp.desired_state.repository_name #=> String
|
2975
|
+
# resp.desired_state.repository_provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
2976
|
+
# resp.desired_state.sha #=> String
|
2977
|
+
# resp.latest_successful_sync.events #=> Array
|
2978
|
+
# resp.latest_successful_sync.events[0].event #=> String
|
2979
|
+
# resp.latest_successful_sync.events[0].external_id #=> String
|
2980
|
+
# resp.latest_successful_sync.events[0].time #=> Time
|
2981
|
+
# resp.latest_successful_sync.events[0].type #=> String
|
2982
|
+
# resp.latest_successful_sync.initial_revision.branch #=> String
|
2983
|
+
# resp.latest_successful_sync.initial_revision.directory #=> String
|
2984
|
+
# resp.latest_successful_sync.initial_revision.repository_name #=> String
|
2985
|
+
# resp.latest_successful_sync.initial_revision.repository_provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
2986
|
+
# resp.latest_successful_sync.initial_revision.sha #=> String
|
2987
|
+
# resp.latest_successful_sync.started_at #=> Time
|
2988
|
+
# resp.latest_successful_sync.status #=> String, one of "INITIATED", "IN_PROGRESS", "SUCCEEDED", "FAILED"
|
2989
|
+
# resp.latest_successful_sync.target #=> String
|
2990
|
+
# resp.latest_successful_sync.target_revision.branch #=> String
|
2991
|
+
# resp.latest_successful_sync.target_revision.directory #=> String
|
2992
|
+
# resp.latest_successful_sync.target_revision.repository_name #=> String
|
2993
|
+
# resp.latest_successful_sync.target_revision.repository_provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
2994
|
+
# resp.latest_successful_sync.target_revision.sha #=> String
|
2995
|
+
# resp.latest_sync.events #=> Array
|
2996
|
+
# resp.latest_sync.events[0].event #=> String
|
2997
|
+
# resp.latest_sync.events[0].external_id #=> String
|
2998
|
+
# resp.latest_sync.events[0].time #=> Time
|
2999
|
+
# resp.latest_sync.events[0].type #=> String
|
3000
|
+
# resp.latest_sync.initial_revision.branch #=> String
|
3001
|
+
# resp.latest_sync.initial_revision.directory #=> String
|
3002
|
+
# resp.latest_sync.initial_revision.repository_name #=> String
|
3003
|
+
# resp.latest_sync.initial_revision.repository_provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
3004
|
+
# resp.latest_sync.initial_revision.sha #=> String
|
3005
|
+
# resp.latest_sync.started_at #=> Time
|
3006
|
+
# resp.latest_sync.status #=> String, one of "INITIATED", "IN_PROGRESS", "SUCCEEDED", "FAILED"
|
3007
|
+
# resp.latest_sync.target #=> String
|
3008
|
+
# resp.latest_sync.target_revision.branch #=> String
|
3009
|
+
# resp.latest_sync.target_revision.directory #=> String
|
3010
|
+
# resp.latest_sync.target_revision.repository_name #=> String
|
3011
|
+
# resp.latest_sync.target_revision.repository_provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
3012
|
+
# resp.latest_sync.target_revision.sha #=> String
|
3013
|
+
#
|
3014
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetServiceInstanceSyncStatus AWS API Documentation
|
3015
|
+
#
|
3016
|
+
# @overload get_service_instance_sync_status(params = {})
|
3017
|
+
# @param [Hash] params ({})
|
3018
|
+
def get_service_instance_sync_status(params = {}, options = {})
|
3019
|
+
req = build_request(:get_service_instance_sync_status, params)
|
3020
|
+
req.send_request(options)
|
3021
|
+
end
|
3022
|
+
|
3023
|
+
# Get detailed data for the service sync blocker summary.
|
3024
|
+
#
|
3025
|
+
# @option params [String] :service_instance_name
|
3026
|
+
# The name of the service instance that you want to get the service sync
|
3027
|
+
# blocker summary for. If given bothe the instance name and the service
|
3028
|
+
# name, only the instance is blocked.
|
3029
|
+
#
|
3030
|
+
# @option params [required, String] :service_name
|
3031
|
+
# The name of the service that you want to get the service sync blocker
|
3032
|
+
# summary for. If given only the service name, all instances are
|
3033
|
+
# blocked.
|
3034
|
+
#
|
3035
|
+
# @return [Types::GetServiceSyncBlockerSummaryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3036
|
+
#
|
3037
|
+
# * {Types::GetServiceSyncBlockerSummaryOutput#service_sync_blocker_summary #service_sync_blocker_summary} => Types::ServiceSyncBlockerSummary
|
3038
|
+
#
|
3039
|
+
# @example Request syntax with placeholder values
|
3040
|
+
#
|
3041
|
+
# resp = client.get_service_sync_blocker_summary({
|
3042
|
+
# service_instance_name: "ResourceName",
|
3043
|
+
# service_name: "ResourceName", # required
|
3044
|
+
# })
|
3045
|
+
#
|
3046
|
+
# @example Response structure
|
3047
|
+
#
|
3048
|
+
# resp.service_sync_blocker_summary.latest_blockers #=> Array
|
3049
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].contexts #=> Array
|
3050
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].contexts[0].key #=> String
|
3051
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].contexts[0].value #=> String
|
3052
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].created_at #=> Time
|
3053
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].created_reason #=> String
|
3054
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].id #=> String
|
3055
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].resolved_at #=> Time
|
3056
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].resolved_reason #=> String
|
3057
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].status #=> String, one of "ACTIVE", "RESOLVED"
|
3058
|
+
# resp.service_sync_blocker_summary.latest_blockers[0].type #=> String, one of "AUTOMATED"
|
3059
|
+
# resp.service_sync_blocker_summary.service_instance_name #=> String
|
3060
|
+
# resp.service_sync_blocker_summary.service_name #=> String
|
3061
|
+
#
|
3062
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetServiceSyncBlockerSummary AWS API Documentation
|
3063
|
+
#
|
3064
|
+
# @overload get_service_sync_blocker_summary(params = {})
|
3065
|
+
# @param [Hash] params ({})
|
3066
|
+
def get_service_sync_blocker_summary(params = {}, options = {})
|
3067
|
+
req = build_request(:get_service_sync_blocker_summary, params)
|
3068
|
+
req.send_request(options)
|
3069
|
+
end
|
3070
|
+
|
3071
|
+
# Get detailed information for the service sync configuration.
|
3072
|
+
#
|
3073
|
+
# @option params [required, String] :service_name
|
3074
|
+
# The name of the service that you want to get the service sync
|
3075
|
+
# configuration for.
|
3076
|
+
#
|
3077
|
+
# @return [Types::GetServiceSyncConfigOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3078
|
+
#
|
3079
|
+
# * {Types::GetServiceSyncConfigOutput#service_sync_config #service_sync_config} => Types::ServiceSyncConfig
|
3080
|
+
#
|
3081
|
+
# @example Request syntax with placeholder values
|
3082
|
+
#
|
3083
|
+
# resp = client.get_service_sync_config({
|
3084
|
+
# service_name: "ResourceName", # required
|
3085
|
+
# })
|
3086
|
+
#
|
3087
|
+
# @example Response structure
|
3088
|
+
#
|
3089
|
+
# resp.service_sync_config.branch #=> String
|
3090
|
+
# resp.service_sync_config.file_path #=> String
|
3091
|
+
# resp.service_sync_config.repository_name #=> String
|
3092
|
+
# resp.service_sync_config.repository_provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
3093
|
+
# resp.service_sync_config.service_name #=> String
|
3094
|
+
#
|
3095
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetServiceSyncConfig AWS API Documentation
|
3096
|
+
#
|
3097
|
+
# @overload get_service_sync_config(params = {})
|
3098
|
+
# @param [Hash] params ({})
|
3099
|
+
def get_service_sync_config(params = {}, options = {})
|
3100
|
+
req = build_request(:get_service_sync_config, params)
|
3101
|
+
req.send_request(options)
|
3102
|
+
end
|
3103
|
+
|
2695
3104
|
# Get detailed data for a service template.
|
2696
3105
|
#
|
2697
3106
|
# @option params [required, String] :name
|
@@ -3422,6 +3831,7 @@ module Aws::Proton
|
|
3422
3831
|
# resp.next_token #=> String
|
3423
3832
|
# resp.repositories #=> Array
|
3424
3833
|
# resp.repositories[0].arn #=> String
|
3834
|
+
# resp.repositories[0].connection_arn #=> String
|
3425
3835
|
# resp.repositories[0].name #=> String
|
3426
3836
|
# resp.repositories[0].provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
3427
3837
|
#
|
@@ -3463,7 +3873,7 @@ module Aws::Proton
|
|
3463
3873
|
# next_token: "EmptyNextToken",
|
3464
3874
|
# repository_name: "RepositoryName", # required
|
3465
3875
|
# repository_provider: "GITHUB", # required, accepts GITHUB, GITHUB_ENTERPRISE, BITBUCKET
|
3466
|
-
# sync_type: "TEMPLATE_SYNC", # required, accepts TEMPLATE_SYNC
|
3876
|
+
# sync_type: "TEMPLATE_SYNC", # required, accepts TEMPLATE_SYNC, SERVICE_SYNC
|
3467
3877
|
# })
|
3468
3878
|
#
|
3469
3879
|
# @example Response structure
|
@@ -4200,6 +4610,12 @@ module Aws::Proton
|
|
4200
4610
|
#
|
4201
4611
|
# [1]: https://docs.aws.amazon.com/proton/latest/userguide/ag-components.html
|
4202
4612
|
#
|
4613
|
+
# @option params [String] :client_token
|
4614
|
+
# The client token for the updated component.
|
4615
|
+
#
|
4616
|
+
# **A suitable default value is auto-generated.** You should normally
|
4617
|
+
# not need to pass this option.**
|
4618
|
+
#
|
4203
4619
|
# @option params [required, String] :deployment_type
|
4204
4620
|
# The deployment type. It defines the mode for updating a component, as
|
4205
4621
|
# follows:
|
@@ -4262,6 +4678,7 @@ module Aws::Proton
|
|
4262
4678
|
# @example Request syntax with placeholder values
|
4263
4679
|
#
|
4264
4680
|
# resp = client.update_component({
|
4681
|
+
# client_token: "ClientToken",
|
4265
4682
|
# deployment_type: "NONE", # required, accepts NONE, CURRENT_VERSION
|
4266
4683
|
# description: "Description",
|
4267
4684
|
# name: "ResourceName", # required
|
@@ -4279,6 +4696,7 @@ module Aws::Proton
|
|
4279
4696
|
# resp.component.deployment_status_message #=> String
|
4280
4697
|
# resp.component.description #=> String
|
4281
4698
|
# resp.component.environment_name #=> String
|
4699
|
+
# resp.component.last_client_request_token #=> String
|
4282
4700
|
# resp.component.last_deployment_attempted_at #=> Time
|
4283
4701
|
# resp.component.last_deployment_succeeded_at #=> Time
|
4284
4702
|
# resp.component.last_modified_at #=> Time
|
@@ -4803,6 +5221,12 @@ module Aws::Proton
|
|
4803
5221
|
#
|
4804
5222
|
# [1]: https://docs.aws.amazon.com/proton/latest/userguide/ag-components.html
|
4805
5223
|
#
|
5224
|
+
# @option params [String] :client_token
|
5225
|
+
# The client token of the service instance to update.
|
5226
|
+
#
|
5227
|
+
# **A suitable default value is auto-generated.** You should normally
|
5228
|
+
# not need to pass this option.**
|
5229
|
+
#
|
4806
5230
|
# @option params [required, String] :deployment_type
|
4807
5231
|
# The deployment type. It defines the mode for updating a service
|
4808
5232
|
# instance, as follows:
|
@@ -4864,6 +5288,7 @@ module Aws::Proton
|
|
4864
5288
|
# @example Request syntax with placeholder values
|
4865
5289
|
#
|
4866
5290
|
# resp = client.update_service_instance({
|
5291
|
+
# client_token: "ClientToken",
|
4867
5292
|
# deployment_type: "NONE", # required, accepts NONE, CURRENT_VERSION, MINOR_VERSION, MAJOR_VERSION
|
4868
5293
|
# name: "ResourceName", # required
|
4869
5294
|
# service_name: "ResourceName", # required
|
@@ -4879,6 +5304,7 @@ module Aws::Proton
|
|
4879
5304
|
# resp.service_instance.deployment_status #=> String, one of "IN_PROGRESS", "FAILED", "SUCCEEDED", "DELETE_IN_PROGRESS", "DELETE_FAILED", "DELETE_COMPLETE", "CANCELLING", "CANCELLED"
|
4880
5305
|
# resp.service_instance.deployment_status_message #=> String
|
4881
5306
|
# resp.service_instance.environment_name #=> String
|
5307
|
+
# resp.service_instance.last_client_request_token #=> String
|
4882
5308
|
# resp.service_instance.last_deployment_attempted_at #=> Time
|
4883
5309
|
# resp.service_instance.last_deployment_succeeded_at #=> Time
|
4884
5310
|
# resp.service_instance.name #=> String
|
@@ -5028,6 +5454,101 @@ module Aws::Proton
|
|
5028
5454
|
req.send_request(options)
|
5029
5455
|
end
|
5030
5456
|
|
5457
|
+
# Update the service sync blocker by resolving it.
|
5458
|
+
#
|
5459
|
+
# @option params [required, String] :id
|
5460
|
+
# The ID of the service sync blocker.
|
5461
|
+
#
|
5462
|
+
# @option params [required, String] :resolved_reason
|
5463
|
+
# The reason the service sync blocker was resolved.
|
5464
|
+
#
|
5465
|
+
# @return [Types::UpdateServiceSyncBlockerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5466
|
+
#
|
5467
|
+
# * {Types::UpdateServiceSyncBlockerOutput#service_instance_name #service_instance_name} => String
|
5468
|
+
# * {Types::UpdateServiceSyncBlockerOutput#service_name #service_name} => String
|
5469
|
+
# * {Types::UpdateServiceSyncBlockerOutput#service_sync_blocker #service_sync_blocker} => Types::SyncBlocker
|
5470
|
+
#
|
5471
|
+
# @example Request syntax with placeholder values
|
5472
|
+
#
|
5473
|
+
# resp = client.update_service_sync_blocker({
|
5474
|
+
# id: "String", # required
|
5475
|
+
# resolved_reason: "String", # required
|
5476
|
+
# })
|
5477
|
+
#
|
5478
|
+
# @example Response structure
|
5479
|
+
#
|
5480
|
+
# resp.service_instance_name #=> String
|
5481
|
+
# resp.service_name #=> String
|
5482
|
+
# resp.service_sync_blocker.contexts #=> Array
|
5483
|
+
# resp.service_sync_blocker.contexts[0].key #=> String
|
5484
|
+
# resp.service_sync_blocker.contexts[0].value #=> String
|
5485
|
+
# resp.service_sync_blocker.created_at #=> Time
|
5486
|
+
# resp.service_sync_blocker.created_reason #=> String
|
5487
|
+
# resp.service_sync_blocker.id #=> String
|
5488
|
+
# resp.service_sync_blocker.resolved_at #=> Time
|
5489
|
+
# resp.service_sync_blocker.resolved_reason #=> String
|
5490
|
+
# resp.service_sync_blocker.status #=> String, one of "ACTIVE", "RESOLVED"
|
5491
|
+
# resp.service_sync_blocker.type #=> String, one of "AUTOMATED"
|
5492
|
+
#
|
5493
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceSyncBlocker AWS API Documentation
|
5494
|
+
#
|
5495
|
+
# @overload update_service_sync_blocker(params = {})
|
5496
|
+
# @param [Hash] params ({})
|
5497
|
+
def update_service_sync_blocker(params = {}, options = {})
|
5498
|
+
req = build_request(:update_service_sync_blocker, params)
|
5499
|
+
req.send_request(options)
|
5500
|
+
end
|
5501
|
+
|
5502
|
+
# Update the Proton Ops config file.
|
5503
|
+
#
|
5504
|
+
# @option params [required, String] :branch
|
5505
|
+
# The name of the code repository branch where the Proton Ops file is
|
5506
|
+
# found.
|
5507
|
+
#
|
5508
|
+
# @option params [required, String] :file_path
|
5509
|
+
# The path to the Proton Ops file.
|
5510
|
+
#
|
5511
|
+
# @option params [required, String] :repository_name
|
5512
|
+
# The name of the repository where the Proton Ops file is found.
|
5513
|
+
#
|
5514
|
+
# @option params [required, String] :repository_provider
|
5515
|
+
# The name of the repository provider where the Proton Ops file is
|
5516
|
+
# found.
|
5517
|
+
#
|
5518
|
+
# @option params [required, String] :service_name
|
5519
|
+
# The name of the service the Proton Ops file is for.
|
5520
|
+
#
|
5521
|
+
# @return [Types::UpdateServiceSyncConfigOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5522
|
+
#
|
5523
|
+
# * {Types::UpdateServiceSyncConfigOutput#service_sync_config #service_sync_config} => Types::ServiceSyncConfig
|
5524
|
+
#
|
5525
|
+
# @example Request syntax with placeholder values
|
5526
|
+
#
|
5527
|
+
# resp = client.update_service_sync_config({
|
5528
|
+
# branch: "GitBranchName", # required
|
5529
|
+
# file_path: "OpsFilePath", # required
|
5530
|
+
# repository_name: "RepositoryName", # required
|
5531
|
+
# repository_provider: "GITHUB", # required, accepts GITHUB, GITHUB_ENTERPRISE, BITBUCKET
|
5532
|
+
# service_name: "ResourceName", # required
|
5533
|
+
# })
|
5534
|
+
#
|
5535
|
+
# @example Response structure
|
5536
|
+
#
|
5537
|
+
# resp.service_sync_config.branch #=> String
|
5538
|
+
# resp.service_sync_config.file_path #=> String
|
5539
|
+
# resp.service_sync_config.repository_name #=> String
|
5540
|
+
# resp.service_sync_config.repository_provider #=> String, one of "GITHUB", "GITHUB_ENTERPRISE", "BITBUCKET"
|
5541
|
+
# resp.service_sync_config.service_name #=> String
|
5542
|
+
#
|
5543
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceSyncConfig AWS API Documentation
|
5544
|
+
#
|
5545
|
+
# @overload update_service_sync_config(params = {})
|
5546
|
+
# @param [Hash] params ({})
|
5547
|
+
def update_service_sync_config(params = {}, options = {})
|
5548
|
+
req = build_request(:update_service_sync_config, params)
|
5549
|
+
req.send_request(options)
|
5550
|
+
end
|
5551
|
+
|
5031
5552
|
# Update a service template.
|
5032
5553
|
#
|
5033
5554
|
# @option params [String] :description
|
@@ -5236,7 +5757,7 @@ module Aws::Proton
|
|
5236
5757
|
params: params,
|
5237
5758
|
config: config)
|
5238
5759
|
context[:gem_name] = 'aws-sdk-proton'
|
5239
|
-
context[:gem_version] = '1.
|
5760
|
+
context[:gem_version] = '1.24.0'
|
5240
5761
|
Seahorse::Client::Request.new(handlers, context)
|
5241
5762
|
end
|
5242
5763
|
|