aws-sdk-codestarconnections 1.36.0 → 1.37.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.
@@ -483,6 +483,7 @@ module Aws::CodeStarconnections
483
483
  # already be connected to the VPC.
484
484
  #
485
485
  # @option params [Array<Types::Tag>] :tags
486
+ # Tags for the host to be created.
486
487
  #
487
488
  # @return [Types::CreateHostOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
488
489
  #
@@ -525,6 +526,133 @@ module Aws::CodeStarconnections
525
526
  req.send_request(options)
526
527
  end
527
528
 
529
+ # Creates a link to a specified external Git repository. A repository
530
+ # link allows Git sync to monitor and sync changes to files in a
531
+ # specified Git repository.
532
+ #
533
+ # @option params [required, String] :connection_arn
534
+ # The Amazon Resource Name (ARN) of the connection to be associated with
535
+ # the repository link.
536
+ #
537
+ # @option params [required, String] :owner_id
538
+ # The owner ID for the repository associated with a specific sync
539
+ # configuration, such as the owner ID in GitHub.
540
+ #
541
+ # @option params [required, String] :repository_name
542
+ # The name of the repository to be associated with the repository link.
543
+ #
544
+ # @option params [String] :encryption_key_arn
545
+ # The Amazon Resource Name (ARN) encryption key for the repository to be
546
+ # associated with the repository link.
547
+ #
548
+ # @option params [Array<Types::Tag>] :tags
549
+ # The tags for the repository to be associated with the repository link.
550
+ #
551
+ # @return [Types::CreateRepositoryLinkOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
552
+ #
553
+ # * {Types::CreateRepositoryLinkOutput#repository_link_info #repository_link_info} => Types::RepositoryLinkInfo
554
+ #
555
+ # @example Request syntax with placeholder values
556
+ #
557
+ # resp = client.create_repository_link({
558
+ # connection_arn: "ConnectionArn", # required
559
+ # owner_id: "OwnerId", # required
560
+ # repository_name: "RepositoryName", # required
561
+ # encryption_key_arn: "KmsKeyArn",
562
+ # tags: [
563
+ # {
564
+ # key: "TagKey", # required
565
+ # value: "TagValue", # required
566
+ # },
567
+ # ],
568
+ # })
569
+ #
570
+ # @example Response structure
571
+ #
572
+ # resp.repository_link_info.connection_arn #=> String
573
+ # resp.repository_link_info.encryption_key_arn #=> String
574
+ # resp.repository_link_info.owner_id #=> String
575
+ # resp.repository_link_info.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
576
+ # resp.repository_link_info.repository_link_arn #=> String
577
+ # resp.repository_link_info.repository_link_id #=> String
578
+ # resp.repository_link_info.repository_name #=> String
579
+ #
580
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateRepositoryLink AWS API Documentation
581
+ #
582
+ # @overload create_repository_link(params = {})
583
+ # @param [Hash] params ({})
584
+ def create_repository_link(params = {}, options = {})
585
+ req = build_request(:create_repository_link, params)
586
+ req.send_request(options)
587
+ end
588
+
589
+ # Creates a sync configuration which allows Amazon Web Services to sync
590
+ # content from a Git repository to update a specified Amazon Web
591
+ # Services resource. Parameters for the sync configuration are
592
+ # determined by the sync type.
593
+ #
594
+ # @option params [required, String] :branch
595
+ # The branch in the repository from which changes will be synced.
596
+ #
597
+ # @option params [required, String] :config_file
598
+ # The file name of the configuration file that manages syncing between
599
+ # the connection and the repository. This configuration file is stored
600
+ # in the repository.
601
+ #
602
+ # @option params [required, String] :repository_link_id
603
+ # The ID of the repository link created for the connection. A repository
604
+ # link allows Git sync to monitor and sync changes to files in a
605
+ # specified Git repository.
606
+ #
607
+ # @option params [required, String] :resource_name
608
+ # The name of the Amazon Web Services resource (for example, a
609
+ # CloudFormation stack in the case of CFN\_STACK\_SYNC) that will be
610
+ # synchronized from the linked repository.
611
+ #
612
+ # @option params [required, String] :role_arn
613
+ # The ARN of the IAM role that grants permission for Amazon Web Services
614
+ # to use Git sync to update a given Amazon Web Services resource on your
615
+ # behalf.
616
+ #
617
+ # @option params [required, String] :sync_type
618
+ # The type of sync configuration.
619
+ #
620
+ # @return [Types::CreateSyncConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
621
+ #
622
+ # * {Types::CreateSyncConfigurationOutput#sync_configuration #sync_configuration} => Types::SyncConfiguration
623
+ #
624
+ # @example Request syntax with placeholder values
625
+ #
626
+ # resp = client.create_sync_configuration({
627
+ # branch: "BranchName", # required
628
+ # config_file: "DeploymentFilePath", # required
629
+ # repository_link_id: "RepositoryLinkId", # required
630
+ # resource_name: "ResourceName", # required
631
+ # role_arn: "IamRoleArn", # required
632
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
633
+ # })
634
+ #
635
+ # @example Response structure
636
+ #
637
+ # resp.sync_configuration.branch #=> String
638
+ # resp.sync_configuration.config_file #=> String
639
+ # resp.sync_configuration.owner_id #=> String
640
+ # resp.sync_configuration.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
641
+ # resp.sync_configuration.repository_link_id #=> String
642
+ # resp.sync_configuration.repository_name #=> String
643
+ # resp.sync_configuration.resource_name #=> String
644
+ # resp.sync_configuration.role_arn #=> String
645
+ # resp.sync_configuration.sync_type #=> String, one of "CFN_STACK_SYNC"
646
+ #
647
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateSyncConfiguration AWS API Documentation
648
+ #
649
+ # @overload create_sync_configuration(params = {})
650
+ # @param [Hash] params ({})
651
+ def create_sync_configuration(params = {}, options = {})
652
+ req = build_request(:create_sync_configuration, params)
653
+ req.send_request(options)
654
+ end
655
+
528
656
  # The connection to be deleted.
529
657
  #
530
658
  # @option params [required, String] :connection_arn
@@ -579,6 +707,57 @@ module Aws::CodeStarconnections
579
707
  req.send_request(options)
580
708
  end
581
709
 
710
+ # Deletes the association between your connection and a specified
711
+ # external Git repository.
712
+ #
713
+ # @option params [required, String] :repository_link_id
714
+ # The ID of the repository link to be deleted.
715
+ #
716
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
717
+ #
718
+ # @example Request syntax with placeholder values
719
+ #
720
+ # resp = client.delete_repository_link({
721
+ # repository_link_id: "RepositoryLinkId", # required
722
+ # })
723
+ #
724
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteRepositoryLink AWS API Documentation
725
+ #
726
+ # @overload delete_repository_link(params = {})
727
+ # @param [Hash] params ({})
728
+ def delete_repository_link(params = {}, options = {})
729
+ req = build_request(:delete_repository_link, params)
730
+ req.send_request(options)
731
+ end
732
+
733
+ # Deletes the sync configuration for a specified repository and
734
+ # connection.
735
+ #
736
+ # @option params [required, String] :sync_type
737
+ # The type of sync configuration to be deleted.
738
+ #
739
+ # @option params [required, String] :resource_name
740
+ # The name of the Amazon Web Services resource associated with the sync
741
+ # configuration to be deleted.
742
+ #
743
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
744
+ #
745
+ # @example Request syntax with placeholder values
746
+ #
747
+ # resp = client.delete_sync_configuration({
748
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
749
+ # resource_name: "ResourceName", # required
750
+ # })
751
+ #
752
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteSyncConfiguration AWS API Documentation
753
+ #
754
+ # @overload delete_sync_configuration(params = {})
755
+ # @param [Hash] params ({})
756
+ def delete_sync_configuration(params = {}, options = {})
757
+ req = build_request(:delete_sync_configuration, params)
758
+ req.send_request(options)
759
+ end
760
+
582
761
  # Returns the connection ARN and details such as status, owner, and
583
762
  # provider type.
584
763
  #
@@ -655,6 +834,258 @@ module Aws::CodeStarconnections
655
834
  req.send_request(options)
656
835
  end
657
836
 
837
+ # Returns details about a repository link. A repository link allows Git
838
+ # sync to monitor and sync changes from files in a specified Git
839
+ # repository.
840
+ #
841
+ # @option params [required, String] :repository_link_id
842
+ # The ID of the repository link to get.
843
+ #
844
+ # @return [Types::GetRepositoryLinkOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
845
+ #
846
+ # * {Types::GetRepositoryLinkOutput#repository_link_info #repository_link_info} => Types::RepositoryLinkInfo
847
+ #
848
+ # @example Request syntax with placeholder values
849
+ #
850
+ # resp = client.get_repository_link({
851
+ # repository_link_id: "RepositoryLinkId", # required
852
+ # })
853
+ #
854
+ # @example Response structure
855
+ #
856
+ # resp.repository_link_info.connection_arn #=> String
857
+ # resp.repository_link_info.encryption_key_arn #=> String
858
+ # resp.repository_link_info.owner_id #=> String
859
+ # resp.repository_link_info.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
860
+ # resp.repository_link_info.repository_link_arn #=> String
861
+ # resp.repository_link_info.repository_link_id #=> String
862
+ # resp.repository_link_info.repository_name #=> String
863
+ #
864
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetRepositoryLink AWS API Documentation
865
+ #
866
+ # @overload get_repository_link(params = {})
867
+ # @param [Hash] params ({})
868
+ def get_repository_link(params = {}, options = {})
869
+ req = build_request(:get_repository_link, params)
870
+ req.send_request(options)
871
+ end
872
+
873
+ # Returns details about the sync status for a repository. A repository
874
+ # sync uses Git sync to push and pull changes from your remote
875
+ # repository.
876
+ #
877
+ # @option params [required, String] :branch
878
+ # The branch of the repository link for the requested repository sync
879
+ # status.
880
+ #
881
+ # @option params [required, String] :repository_link_id
882
+ # The repository link ID for the requested repository sync status.
883
+ #
884
+ # @option params [required, String] :sync_type
885
+ # The sync type of the requested sync status.
886
+ #
887
+ # @return [Types::GetRepositorySyncStatusOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
888
+ #
889
+ # * {Types::GetRepositorySyncStatusOutput#latest_sync #latest_sync} => Types::RepositorySyncAttempt
890
+ #
891
+ # @example Request syntax with placeholder values
892
+ #
893
+ # resp = client.get_repository_sync_status({
894
+ # branch: "BranchName", # required
895
+ # repository_link_id: "RepositoryLinkId", # required
896
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
897
+ # })
898
+ #
899
+ # @example Response structure
900
+ #
901
+ # resp.latest_sync.started_at #=> Time
902
+ # resp.latest_sync.status #=> String, one of "FAILED", "INITIATED", "IN_PROGRESS", "SUCCEEDED", "QUEUED"
903
+ # resp.latest_sync.events #=> Array
904
+ # resp.latest_sync.events[0].event #=> String
905
+ # resp.latest_sync.events[0].external_id #=> String
906
+ # resp.latest_sync.events[0].time #=> Time
907
+ # resp.latest_sync.events[0].type #=> String
908
+ #
909
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetRepositorySyncStatus AWS API Documentation
910
+ #
911
+ # @overload get_repository_sync_status(params = {})
912
+ # @param [Hash] params ({})
913
+ def get_repository_sync_status(params = {}, options = {})
914
+ req = build_request(:get_repository_sync_status, params)
915
+ req.send_request(options)
916
+ end
917
+
918
+ # Returns the status of the sync with the Git repository for a specific
919
+ # Amazon Web Services resource.
920
+ #
921
+ # @option params [required, String] :resource_name
922
+ # The name of the Amazon Web Services resource for the sync status with
923
+ # the Git repository.
924
+ #
925
+ # @option params [required, String] :sync_type
926
+ # The sync type for the sync status with the Git repository.
927
+ #
928
+ # @return [Types::GetResourceSyncStatusOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
929
+ #
930
+ # * {Types::GetResourceSyncStatusOutput#desired_state #desired_state} => Types::Revision
931
+ # * {Types::GetResourceSyncStatusOutput#latest_successful_sync #latest_successful_sync} => Types::ResourceSyncAttempt
932
+ # * {Types::GetResourceSyncStatusOutput#latest_sync #latest_sync} => Types::ResourceSyncAttempt
933
+ #
934
+ # @example Request syntax with placeholder values
935
+ #
936
+ # resp = client.get_resource_sync_status({
937
+ # resource_name: "ResourceName", # required
938
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
939
+ # })
940
+ #
941
+ # @example Response structure
942
+ #
943
+ # resp.desired_state.branch #=> String
944
+ # resp.desired_state.directory #=> String
945
+ # resp.desired_state.owner_id #=> String
946
+ # resp.desired_state.repository_name #=> String
947
+ # resp.desired_state.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
948
+ # resp.desired_state.sha #=> String
949
+ # resp.latest_successful_sync.events #=> Array
950
+ # resp.latest_successful_sync.events[0].event #=> String
951
+ # resp.latest_successful_sync.events[0].external_id #=> String
952
+ # resp.latest_successful_sync.events[0].time #=> Time
953
+ # resp.latest_successful_sync.events[0].type #=> String
954
+ # resp.latest_successful_sync.initial_revision.branch #=> String
955
+ # resp.latest_successful_sync.initial_revision.directory #=> String
956
+ # resp.latest_successful_sync.initial_revision.owner_id #=> String
957
+ # resp.latest_successful_sync.initial_revision.repository_name #=> String
958
+ # resp.latest_successful_sync.initial_revision.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
959
+ # resp.latest_successful_sync.initial_revision.sha #=> String
960
+ # resp.latest_successful_sync.started_at #=> Time
961
+ # resp.latest_successful_sync.status #=> String, one of "FAILED", "INITIATED", "IN_PROGRESS", "SUCCEEDED"
962
+ # resp.latest_successful_sync.target_revision.branch #=> String
963
+ # resp.latest_successful_sync.target_revision.directory #=> String
964
+ # resp.latest_successful_sync.target_revision.owner_id #=> String
965
+ # resp.latest_successful_sync.target_revision.repository_name #=> String
966
+ # resp.latest_successful_sync.target_revision.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
967
+ # resp.latest_successful_sync.target_revision.sha #=> String
968
+ # resp.latest_successful_sync.target #=> String
969
+ # resp.latest_sync.events #=> Array
970
+ # resp.latest_sync.events[0].event #=> String
971
+ # resp.latest_sync.events[0].external_id #=> String
972
+ # resp.latest_sync.events[0].time #=> Time
973
+ # resp.latest_sync.events[0].type #=> String
974
+ # resp.latest_sync.initial_revision.branch #=> String
975
+ # resp.latest_sync.initial_revision.directory #=> String
976
+ # resp.latest_sync.initial_revision.owner_id #=> String
977
+ # resp.latest_sync.initial_revision.repository_name #=> String
978
+ # resp.latest_sync.initial_revision.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
979
+ # resp.latest_sync.initial_revision.sha #=> String
980
+ # resp.latest_sync.started_at #=> Time
981
+ # resp.latest_sync.status #=> String, one of "FAILED", "INITIATED", "IN_PROGRESS", "SUCCEEDED"
982
+ # resp.latest_sync.target_revision.branch #=> String
983
+ # resp.latest_sync.target_revision.directory #=> String
984
+ # resp.latest_sync.target_revision.owner_id #=> String
985
+ # resp.latest_sync.target_revision.repository_name #=> String
986
+ # resp.latest_sync.target_revision.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
987
+ # resp.latest_sync.target_revision.sha #=> String
988
+ # resp.latest_sync.target #=> String
989
+ #
990
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetResourceSyncStatus AWS API Documentation
991
+ #
992
+ # @overload get_resource_sync_status(params = {})
993
+ # @param [Hash] params ({})
994
+ def get_resource_sync_status(params = {}, options = {})
995
+ req = build_request(:get_resource_sync_status, params)
996
+ req.send_request(options)
997
+ end
998
+
999
+ # Returns a list of the most recent sync blockers.
1000
+ #
1001
+ # @option params [required, String] :sync_type
1002
+ # The sync type for the sync blocker summary.
1003
+ #
1004
+ # @option params [required, String] :resource_name
1005
+ # The name of the Amazon Web Services resource currently blocked from
1006
+ # automatically being synced from a Git repository.
1007
+ #
1008
+ # @return [Types::GetSyncBlockerSummaryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1009
+ #
1010
+ # * {Types::GetSyncBlockerSummaryOutput#sync_blocker_summary #sync_blocker_summary} => Types::SyncBlockerSummary
1011
+ #
1012
+ # @example Request syntax with placeholder values
1013
+ #
1014
+ # resp = client.get_sync_blocker_summary({
1015
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1016
+ # resource_name: "ResourceName", # required
1017
+ # })
1018
+ #
1019
+ # @example Response structure
1020
+ #
1021
+ # resp.sync_blocker_summary.resource_name #=> String
1022
+ # resp.sync_blocker_summary.parent_resource_name #=> String
1023
+ # resp.sync_blocker_summary.latest_blockers #=> Array
1024
+ # resp.sync_blocker_summary.latest_blockers[0].id #=> String
1025
+ # resp.sync_blocker_summary.latest_blockers[0].type #=> String, one of "AUTOMATED"
1026
+ # resp.sync_blocker_summary.latest_blockers[0].status #=> String, one of "ACTIVE", "RESOLVED"
1027
+ # resp.sync_blocker_summary.latest_blockers[0].created_reason #=> String
1028
+ # resp.sync_blocker_summary.latest_blockers[0].created_at #=> Time
1029
+ # resp.sync_blocker_summary.latest_blockers[0].contexts #=> Array
1030
+ # resp.sync_blocker_summary.latest_blockers[0].contexts[0].key #=> String
1031
+ # resp.sync_blocker_summary.latest_blockers[0].contexts[0].value #=> String
1032
+ # resp.sync_blocker_summary.latest_blockers[0].resolved_reason #=> String
1033
+ # resp.sync_blocker_summary.latest_blockers[0].resolved_at #=> Time
1034
+ #
1035
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetSyncBlockerSummary AWS API Documentation
1036
+ #
1037
+ # @overload get_sync_blocker_summary(params = {})
1038
+ # @param [Hash] params ({})
1039
+ def get_sync_blocker_summary(params = {}, options = {})
1040
+ req = build_request(:get_sync_blocker_summary, params)
1041
+ req.send_request(options)
1042
+ end
1043
+
1044
+ # Returns details about a sync configuration, including the sync type
1045
+ # and resource name. A sync configuration allows the configuration to
1046
+ # sync (push and pull) changes from the remote repository for a
1047
+ # specified branch in a Git repository.
1048
+ #
1049
+ # @option params [required, String] :sync_type
1050
+ # The sync type for the sync configuration for which you want to
1051
+ # retrieve information.
1052
+ #
1053
+ # @option params [required, String] :resource_name
1054
+ # The name of the Amazon Web Services resource for the sync
1055
+ # configuration for which you want to retrieve information.
1056
+ #
1057
+ # @return [Types::GetSyncConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1058
+ #
1059
+ # * {Types::GetSyncConfigurationOutput#sync_configuration #sync_configuration} => Types::SyncConfiguration
1060
+ #
1061
+ # @example Request syntax with placeholder values
1062
+ #
1063
+ # resp = client.get_sync_configuration({
1064
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1065
+ # resource_name: "ResourceName", # required
1066
+ # })
1067
+ #
1068
+ # @example Response structure
1069
+ #
1070
+ # resp.sync_configuration.branch #=> String
1071
+ # resp.sync_configuration.config_file #=> String
1072
+ # resp.sync_configuration.owner_id #=> String
1073
+ # resp.sync_configuration.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
1074
+ # resp.sync_configuration.repository_link_id #=> String
1075
+ # resp.sync_configuration.repository_name #=> String
1076
+ # resp.sync_configuration.resource_name #=> String
1077
+ # resp.sync_configuration.role_arn #=> String
1078
+ # resp.sync_configuration.sync_type #=> String, one of "CFN_STACK_SYNC"
1079
+ #
1080
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetSyncConfiguration AWS API Documentation
1081
+ #
1082
+ # @overload get_sync_configuration(params = {})
1083
+ # @param [Hash] params ({})
1084
+ def get_sync_configuration(params = {}, options = {})
1085
+ req = build_request(:get_sync_configuration, params)
1086
+ req.send_request(options)
1087
+ end
1088
+
658
1089
  # Lists the connections associated with your account.
659
1090
  #
660
1091
  # @option params [String] :provider_type_filter
@@ -761,6 +1192,148 @@ module Aws::CodeStarconnections
761
1192
  req.send_request(options)
762
1193
  end
763
1194
 
1195
+ # Lists the repository links created for connections in your account.
1196
+ #
1197
+ # @option params [Integer] :max_results
1198
+ # A non-zero, non-negative integer used to limit the number of returned
1199
+ # results.
1200
+ #
1201
+ # @option params [String] :next_token
1202
+ # An enumeration token that, when provided in a request, returns the
1203
+ # next batch of the results.
1204
+ #
1205
+ # @return [Types::ListRepositoryLinksOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1206
+ #
1207
+ # * {Types::ListRepositoryLinksOutput#repository_links #repository_links} => Array&lt;Types::RepositoryLinkInfo&gt;
1208
+ # * {Types::ListRepositoryLinksOutput#next_token #next_token} => String
1209
+ #
1210
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1211
+ #
1212
+ # @example Request syntax with placeholder values
1213
+ #
1214
+ # resp = client.list_repository_links({
1215
+ # max_results: 1,
1216
+ # next_token: "SharpNextToken",
1217
+ # })
1218
+ #
1219
+ # @example Response structure
1220
+ #
1221
+ # resp.repository_links #=> Array
1222
+ # resp.repository_links[0].connection_arn #=> String
1223
+ # resp.repository_links[0].encryption_key_arn #=> String
1224
+ # resp.repository_links[0].owner_id #=> String
1225
+ # resp.repository_links[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
1226
+ # resp.repository_links[0].repository_link_arn #=> String
1227
+ # resp.repository_links[0].repository_link_id #=> String
1228
+ # resp.repository_links[0].repository_name #=> String
1229
+ # resp.next_token #=> String
1230
+ #
1231
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListRepositoryLinks AWS API Documentation
1232
+ #
1233
+ # @overload list_repository_links(params = {})
1234
+ # @param [Hash] params ({})
1235
+ def list_repository_links(params = {}, options = {})
1236
+ req = build_request(:list_repository_links, params)
1237
+ req.send_request(options)
1238
+ end
1239
+
1240
+ # Lists the repository sync definitions for repository links in your
1241
+ # account.
1242
+ #
1243
+ # @option params [required, String] :repository_link_id
1244
+ # The ID of the repository link for the sync definition for which you
1245
+ # want to retrieve information.
1246
+ #
1247
+ # @option params [required, String] :sync_type
1248
+ # The sync type of the repository link for the the sync definition for
1249
+ # which you want to retrieve information.
1250
+ #
1251
+ # @return [Types::ListRepositorySyncDefinitionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1252
+ #
1253
+ # * {Types::ListRepositorySyncDefinitionsOutput#repository_sync_definitions #repository_sync_definitions} => Array&lt;Types::RepositorySyncDefinition&gt;
1254
+ # * {Types::ListRepositorySyncDefinitionsOutput#next_token #next_token} => String
1255
+ #
1256
+ # @example Request syntax with placeholder values
1257
+ #
1258
+ # resp = client.list_repository_sync_definitions({
1259
+ # repository_link_id: "RepositoryLinkId", # required
1260
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1261
+ # })
1262
+ #
1263
+ # @example Response structure
1264
+ #
1265
+ # resp.repository_sync_definitions #=> Array
1266
+ # resp.repository_sync_definitions[0].branch #=> String
1267
+ # resp.repository_sync_definitions[0].directory #=> String
1268
+ # resp.repository_sync_definitions[0].parent #=> String
1269
+ # resp.repository_sync_definitions[0].target #=> String
1270
+ # resp.next_token #=> String
1271
+ #
1272
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListRepositorySyncDefinitions AWS API Documentation
1273
+ #
1274
+ # @overload list_repository_sync_definitions(params = {})
1275
+ # @param [Hash] params ({})
1276
+ def list_repository_sync_definitions(params = {}, options = {})
1277
+ req = build_request(:list_repository_sync_definitions, params)
1278
+ req.send_request(options)
1279
+ end
1280
+
1281
+ # Returns a list of sync configurations for a specified repository.
1282
+ #
1283
+ # @option params [Integer] :max_results
1284
+ # A non-zero, non-negative integer used to limit the number of returned
1285
+ # results.
1286
+ #
1287
+ # @option params [String] :next_token
1288
+ # An enumeration token that allows the operation to batch the results of
1289
+ # the operation.
1290
+ #
1291
+ # @option params [required, String] :repository_link_id
1292
+ # The ID of the repository link for the requested list of sync
1293
+ # configurations.
1294
+ #
1295
+ # @option params [required, String] :sync_type
1296
+ # The sync type for the requested list of sync configurations.
1297
+ #
1298
+ # @return [Types::ListSyncConfigurationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1299
+ #
1300
+ # * {Types::ListSyncConfigurationsOutput#sync_configurations #sync_configurations} => Array&lt;Types::SyncConfiguration&gt;
1301
+ # * {Types::ListSyncConfigurationsOutput#next_token #next_token} => String
1302
+ #
1303
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1304
+ #
1305
+ # @example Request syntax with placeholder values
1306
+ #
1307
+ # resp = client.list_sync_configurations({
1308
+ # max_results: 1,
1309
+ # next_token: "SharpNextToken",
1310
+ # repository_link_id: "RepositoryLinkId", # required
1311
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1312
+ # })
1313
+ #
1314
+ # @example Response structure
1315
+ #
1316
+ # resp.sync_configurations #=> Array
1317
+ # resp.sync_configurations[0].branch #=> String
1318
+ # resp.sync_configurations[0].config_file #=> String
1319
+ # resp.sync_configurations[0].owner_id #=> String
1320
+ # resp.sync_configurations[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
1321
+ # resp.sync_configurations[0].repository_link_id #=> String
1322
+ # resp.sync_configurations[0].repository_name #=> String
1323
+ # resp.sync_configurations[0].resource_name #=> String
1324
+ # resp.sync_configurations[0].role_arn #=> String
1325
+ # resp.sync_configurations[0].sync_type #=> String, one of "CFN_STACK_SYNC"
1326
+ # resp.next_token #=> String
1327
+ #
1328
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListSyncConfigurations AWS API Documentation
1329
+ #
1330
+ # @overload list_sync_configurations(params = {})
1331
+ # @param [Hash] params ({})
1332
+ def list_sync_configurations(params = {}, options = {})
1333
+ req = build_request(:list_sync_configurations, params)
1334
+ req.send_request(options)
1335
+ end
1336
+
764
1337
  # Gets the set of key-value pairs (metadata) that are used to manage the
765
1338
  # resource.
766
1339
  #
@@ -889,6 +1462,167 @@ module Aws::CodeStarconnections
889
1462
  req.send_request(options)
890
1463
  end
891
1464
 
1465
+ # Updates the association between your connection and a specified
1466
+ # external Git repository. A repository link allows Git sync to monitor
1467
+ # and sync changes to files in a specified Git repository.
1468
+ #
1469
+ # @option params [String] :connection_arn
1470
+ # The Amazon Resource Name (ARN) of the connection for the repository
1471
+ # link to be updated. The updated connection ARN must have the same
1472
+ # providerType (such as GitHub) as the original connection ARN for the
1473
+ # repo link.
1474
+ #
1475
+ # @option params [String] :encryption_key_arn
1476
+ # The Amazon Resource Name (ARN) of the encryption key for the
1477
+ # repository link to be updated.
1478
+ #
1479
+ # @option params [required, String] :repository_link_id
1480
+ # The ID of the repository link to be updated.
1481
+ #
1482
+ # @return [Types::UpdateRepositoryLinkOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1483
+ #
1484
+ # * {Types::UpdateRepositoryLinkOutput#repository_link_info #repository_link_info} => Types::RepositoryLinkInfo
1485
+ #
1486
+ # @example Request syntax with placeholder values
1487
+ #
1488
+ # resp = client.update_repository_link({
1489
+ # connection_arn: "ConnectionArn",
1490
+ # encryption_key_arn: "KmsKeyArn",
1491
+ # repository_link_id: "RepositoryLinkId", # required
1492
+ # })
1493
+ #
1494
+ # @example Response structure
1495
+ #
1496
+ # resp.repository_link_info.connection_arn #=> String
1497
+ # resp.repository_link_info.encryption_key_arn #=> String
1498
+ # resp.repository_link_info.owner_id #=> String
1499
+ # resp.repository_link_info.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
1500
+ # resp.repository_link_info.repository_link_arn #=> String
1501
+ # resp.repository_link_info.repository_link_id #=> String
1502
+ # resp.repository_link_info.repository_name #=> String
1503
+ #
1504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateRepositoryLink AWS API Documentation
1505
+ #
1506
+ # @overload update_repository_link(params = {})
1507
+ # @param [Hash] params ({})
1508
+ def update_repository_link(params = {}, options = {})
1509
+ req = build_request(:update_repository_link, params)
1510
+ req.send_request(options)
1511
+ end
1512
+
1513
+ # Allows you to update the status of a sync blocker, resolving the
1514
+ # blocker and allowing syncing to continue.
1515
+ #
1516
+ # @option params [required, String] :id
1517
+ # The ID of the sync blocker to be updated.
1518
+ #
1519
+ # @option params [required, String] :sync_type
1520
+ # The sync type of the sync blocker to be updated.
1521
+ #
1522
+ # @option params [required, String] :resource_name
1523
+ # The name of the resource for the sync blocker to be updated.
1524
+ #
1525
+ # @option params [required, String] :resolved_reason
1526
+ # The reason for resolving the sync blocker.
1527
+ #
1528
+ # @return [Types::UpdateSyncBlockerOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1529
+ #
1530
+ # * {Types::UpdateSyncBlockerOutput#resource_name #resource_name} => String
1531
+ # * {Types::UpdateSyncBlockerOutput#parent_resource_name #parent_resource_name} => String
1532
+ # * {Types::UpdateSyncBlockerOutput#sync_blocker #sync_blocker} => Types::SyncBlocker
1533
+ #
1534
+ # @example Request syntax with placeholder values
1535
+ #
1536
+ # resp = client.update_sync_blocker({
1537
+ # id: "Id", # required
1538
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1539
+ # resource_name: "ResourceName", # required
1540
+ # resolved_reason: "ResolvedReason", # required
1541
+ # })
1542
+ #
1543
+ # @example Response structure
1544
+ #
1545
+ # resp.resource_name #=> String
1546
+ # resp.parent_resource_name #=> String
1547
+ # resp.sync_blocker.id #=> String
1548
+ # resp.sync_blocker.type #=> String, one of "AUTOMATED"
1549
+ # resp.sync_blocker.status #=> String, one of "ACTIVE", "RESOLVED"
1550
+ # resp.sync_blocker.created_reason #=> String
1551
+ # resp.sync_blocker.created_at #=> Time
1552
+ # resp.sync_blocker.contexts #=> Array
1553
+ # resp.sync_blocker.contexts[0].key #=> String
1554
+ # resp.sync_blocker.contexts[0].value #=> String
1555
+ # resp.sync_blocker.resolved_reason #=> String
1556
+ # resp.sync_blocker.resolved_at #=> Time
1557
+ #
1558
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateSyncBlocker AWS API Documentation
1559
+ #
1560
+ # @overload update_sync_blocker(params = {})
1561
+ # @param [Hash] params ({})
1562
+ def update_sync_blocker(params = {}, options = {})
1563
+ req = build_request(:update_sync_blocker, params)
1564
+ req.send_request(options)
1565
+ end
1566
+
1567
+ # Updates the sync configuration for your connection and a specified
1568
+ # external Git repository.
1569
+ #
1570
+ # @option params [String] :branch
1571
+ # The branch for the sync configuration to be updated.
1572
+ #
1573
+ # @option params [String] :config_file
1574
+ # The configuration file for the sync configuration to be updated.
1575
+ #
1576
+ # @option params [String] :repository_link_id
1577
+ # The ID of the repository link for the sync configuration to be
1578
+ # updated.
1579
+ #
1580
+ # @option params [required, String] :resource_name
1581
+ # The name of the Amazon Web Services resource for the sync
1582
+ # configuration to be updated.
1583
+ #
1584
+ # @option params [String] :role_arn
1585
+ # The ARN of the IAM role for the sync configuration to be updated.
1586
+ #
1587
+ # @option params [required, String] :sync_type
1588
+ # The sync type for the sync configuration to be updated.
1589
+ #
1590
+ # @return [Types::UpdateSyncConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1591
+ #
1592
+ # * {Types::UpdateSyncConfigurationOutput#sync_configuration #sync_configuration} => Types::SyncConfiguration
1593
+ #
1594
+ # @example Request syntax with placeholder values
1595
+ #
1596
+ # resp = client.update_sync_configuration({
1597
+ # branch: "BranchName",
1598
+ # config_file: "DeploymentFilePath",
1599
+ # repository_link_id: "RepositoryLinkId",
1600
+ # resource_name: "ResourceName", # required
1601
+ # role_arn: "IamRoleArn",
1602
+ # sync_type: "CFN_STACK_SYNC", # required, accepts CFN_STACK_SYNC
1603
+ # })
1604
+ #
1605
+ # @example Response structure
1606
+ #
1607
+ # resp.sync_configuration.branch #=> String
1608
+ # resp.sync_configuration.config_file #=> String
1609
+ # resp.sync_configuration.owner_id #=> String
1610
+ # resp.sync_configuration.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
1611
+ # resp.sync_configuration.repository_link_id #=> String
1612
+ # resp.sync_configuration.repository_name #=> String
1613
+ # resp.sync_configuration.resource_name #=> String
1614
+ # resp.sync_configuration.role_arn #=> String
1615
+ # resp.sync_configuration.sync_type #=> String, one of "CFN_STACK_SYNC"
1616
+ #
1617
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateSyncConfiguration AWS API Documentation
1618
+ #
1619
+ # @overload update_sync_configuration(params = {})
1620
+ # @param [Hash] params ({})
1621
+ def update_sync_configuration(params = {}, options = {})
1622
+ req = build_request(:update_sync_configuration, params)
1623
+ req.send_request(options)
1624
+ end
1625
+
892
1626
  # @!endgroup
893
1627
 
894
1628
  # @param params ({})
@@ -902,7 +1636,7 @@ module Aws::CodeStarconnections
902
1636
  params: params,
903
1637
  config: config)
904
1638
  context[:gem_name] = 'aws-sdk-codestarconnections'
905
- context[:gem_version] = '1.36.0'
1639
+ context[:gem_version] = '1.37.0'
906
1640
  Seahorse::Client::Request.new(handlers, context)
907
1641
  end
908
1642