aws-sdk-codestarconnections 1.31.0 → 1.32.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codestarconnections/client.rb +15 -17
- data/lib/aws-sdk-codestarconnections/client_api.rb +1 -0
- data/lib/aws-sdk-codestarconnections/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-codestarconnections/types.rb +9 -10
- data/lib/aws-sdk-codestarconnections.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bdde4f419df29c158324f1027cc471601a78ff4d83575ac701aba9efc7bc7e9
|
4
|
+
data.tar.gz: 7e6dd681c0cd4eea6c224e84c78d4947bb0184e8405fd39e3778d773a0e05da4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c598c6b4360ae65f5a741d97a49b4f9761a86c91fccce85fc717cf6360d285cb6f246e8498d6a646e7f3996db12889e0ebf11add8001307345c24fc611714523
|
7
|
+
data.tar.gz: 54ae0d2844fb10a4a967134f8ced805c87893359f5de11e4f02a69bab1f1c2e3c6bfe0530ea95fcbdf6bab02a85afaa334f58006539a3fe4cc1e56abaf45e1bf
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.32.0
|
@@ -398,18 +398,17 @@ module Aws::CodeStarconnections
|
|
398
398
|
|
399
399
|
# @!group API Operations
|
400
400
|
|
401
|
-
# Creates a connection that can then be given to other
|
402
|
-
# CodePipeline so that it can access third-party
|
403
|
-
# connection is in pending status until the
|
404
|
-
# handshake is completed from the console.
|
401
|
+
# Creates a connection that can then be given to other Amazon Web
|
402
|
+
# Services services like CodePipeline so that it can access third-party
|
403
|
+
# code repositories. The connection is in pending status until the
|
404
|
+
# third-party connection handshake is completed from the console.
|
405
405
|
#
|
406
406
|
# @option params [String] :provider_type
|
407
407
|
# The name of the external provider where your third-party code
|
408
408
|
# repository is configured.
|
409
409
|
#
|
410
410
|
# @option params [required, String] :connection_name
|
411
|
-
# The name of the connection to be created.
|
412
|
-
# the calling AWS account.
|
411
|
+
# The name of the connection to be created.
|
413
412
|
#
|
414
413
|
# @option params [Array<Types::Tag>] :tags
|
415
414
|
# The key-value pair to use when tagging the resource.
|
@@ -426,7 +425,7 @@ module Aws::CodeStarconnections
|
|
426
425
|
# @example Request syntax with placeholder values
|
427
426
|
#
|
428
427
|
# resp = client.create_connection({
|
429
|
-
# provider_type: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
|
428
|
+
# provider_type: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer, GitLab
|
430
429
|
# connection_name: "ConnectionName", # required
|
431
430
|
# tags: [
|
432
431
|
# {
|
@@ -466,8 +465,7 @@ module Aws::CodeStarconnections
|
|
466
465
|
# </note>
|
467
466
|
#
|
468
467
|
# @option params [required, String] :name
|
469
|
-
# The name of the host to be created.
|
470
|
-
# calling AWS account.
|
468
|
+
# The name of the host to be created.
|
471
469
|
#
|
472
470
|
# @option params [required, String] :provider_type
|
473
471
|
# The name of the installed provider to be associated with your
|
@@ -495,7 +493,7 @@ module Aws::CodeStarconnections
|
|
495
493
|
#
|
496
494
|
# resp = client.create_host({
|
497
495
|
# name: "HostName", # required
|
498
|
-
# provider_type: "Bitbucket", # required, accepts Bitbucket, GitHub, GitHubEnterpriseServer
|
496
|
+
# provider_type: "Bitbucket", # required, accepts Bitbucket, GitHub, GitHubEnterpriseServer, GitLab
|
499
497
|
# provider_endpoint: "Url", # required
|
500
498
|
# vpc_configuration: {
|
501
499
|
# vpc_id: "VpcId", # required
|
@@ -601,7 +599,7 @@ module Aws::CodeStarconnections
|
|
601
599
|
#
|
602
600
|
# resp.connection.connection_name #=> String
|
603
601
|
# resp.connection.connection_arn #=> String
|
604
|
-
# resp.connection.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
|
602
|
+
# resp.connection.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
|
605
603
|
# resp.connection.owner_account_id #=> String
|
606
604
|
# resp.connection.connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
|
607
605
|
# resp.connection.host_arn #=> String
|
@@ -639,7 +637,7 @@ module Aws::CodeStarconnections
|
|
639
637
|
#
|
640
638
|
# resp.name #=> String
|
641
639
|
# resp.status #=> String
|
642
|
-
# resp.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
|
640
|
+
# resp.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
|
643
641
|
# resp.provider_endpoint #=> String
|
644
642
|
# resp.vpc_configuration.vpc_id #=> String
|
645
643
|
# resp.vpc_configuration.subnet_ids #=> Array
|
@@ -686,7 +684,7 @@ module Aws::CodeStarconnections
|
|
686
684
|
# @example Request syntax with placeholder values
|
687
685
|
#
|
688
686
|
# resp = client.list_connections({
|
689
|
-
# provider_type_filter: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
|
687
|
+
# provider_type_filter: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer, GitLab
|
690
688
|
# host_arn_filter: "HostArn",
|
691
689
|
# max_results: 1,
|
692
690
|
# next_token: "NextToken",
|
@@ -697,7 +695,7 @@ module Aws::CodeStarconnections
|
|
697
695
|
# resp.connections #=> Array
|
698
696
|
# resp.connections[0].connection_name #=> String
|
699
697
|
# resp.connections[0].connection_arn #=> String
|
700
|
-
# resp.connections[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
|
698
|
+
# resp.connections[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
|
701
699
|
# resp.connections[0].owner_account_id #=> String
|
702
700
|
# resp.connections[0].connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
|
703
701
|
# resp.connections[0].host_arn #=> String
|
@@ -742,7 +740,7 @@ module Aws::CodeStarconnections
|
|
742
740
|
# resp.hosts #=> Array
|
743
741
|
# resp.hosts[0].name #=> String
|
744
742
|
# resp.hosts[0].host_arn #=> String
|
745
|
-
# resp.hosts[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
|
743
|
+
# resp.hosts[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer", "GitLab"
|
746
744
|
# resp.hosts[0].provider_endpoint #=> String
|
747
745
|
# resp.hosts[0].vpc_configuration.vpc_id #=> String
|
748
746
|
# resp.hosts[0].vpc_configuration.subnet_ids #=> Array
|
@@ -828,7 +826,7 @@ module Aws::CodeStarconnections
|
|
828
826
|
req.send_request(options)
|
829
827
|
end
|
830
828
|
|
831
|
-
# Removes tags from an
|
829
|
+
# Removes tags from an Amazon Web Services resource.
|
832
830
|
#
|
833
831
|
# @option params [required, String] :resource_arn
|
834
832
|
# The Amazon Resource Name (ARN) of the resource to remove tags from.
|
@@ -904,7 +902,7 @@ module Aws::CodeStarconnections
|
|
904
902
|
params: params,
|
905
903
|
config: config)
|
906
904
|
context[:gem_name] = 'aws-sdk-codestarconnections'
|
907
|
-
context[:gem_version] = '1.
|
905
|
+
context[:gem_version] = '1.32.0'
|
908
906
|
Seahorse::Client::Request.new(handlers, context)
|
909
907
|
end
|
910
908
|
|
@@ -301,6 +301,7 @@ module Aws::CodeStarconnections
|
|
301
301
|
o.http_request_uri = "/"
|
302
302
|
o.input = Shapes::ShapeRef.new(shape: ListConnectionsInput)
|
303
303
|
o.output = Shapes::ShapeRef.new(shape: ListConnectionsOutput)
|
304
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
304
305
|
o[:pager] = Aws::Pager.new(
|
305
306
|
limit_key: "max_results",
|
306
307
|
tokens: {
|
@@ -14,36 +14,39 @@ module Aws::CodeStarconnections
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(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://codestar-connections-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
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://codestar-connections-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
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"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codestar-connections-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codestar-connections-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codestar-connections.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codestar-connections.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://codestar-connections.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -24,7 +24,7 @@ module Aws::CodeStarconnections
|
|
24
24
|
end
|
25
25
|
|
26
26
|
# A resource that is used to connect third-party source providers with
|
27
|
-
# services like
|
27
|
+
# services like CodePipeline.
|
28
28
|
#
|
29
29
|
# Note: A connection created through CloudFormation, the CLI, or the SDK
|
30
30
|
# is in `PENDING` status by default. You can make its status
|
@@ -32,13 +32,13 @@ module Aws::CodeStarconnections
|
|
32
32
|
#
|
33
33
|
# @!attribute [rw] connection_name
|
34
34
|
# The name of the connection. Connection names must be unique in an
|
35
|
-
#
|
35
|
+
# Amazon Web Services account.
|
36
36
|
# @return [String]
|
37
37
|
#
|
38
38
|
# @!attribute [rw] connection_arn
|
39
39
|
# The Amazon Resource Name (ARN) of the connection. The ARN is used as
|
40
|
-
# the connection reference when the connection is shared between
|
41
|
-
#
|
40
|
+
# the connection reference when the connection is shared between
|
41
|
+
# Amazon Web Services.
|
42
42
|
#
|
43
43
|
# <note markdown="1"> The ARN is never reused if the connection is deleted.
|
44
44
|
#
|
@@ -84,8 +84,7 @@ module Aws::CodeStarconnections
|
|
84
84
|
# @return [String]
|
85
85
|
#
|
86
86
|
# @!attribute [rw] connection_name
|
87
|
-
# The name of the connection to be created.
|
88
|
-
# the calling AWS account.
|
87
|
+
# The name of the connection to be created.
|
89
88
|
# @return [String]
|
90
89
|
#
|
91
90
|
# @!attribute [rw] tags
|
@@ -111,7 +110,7 @@ module Aws::CodeStarconnections
|
|
111
110
|
# @!attribute [rw] connection_arn
|
112
111
|
# The Amazon Resource Name (ARN) of the connection to be created. The
|
113
112
|
# ARN is used as the connection reference when the connection is
|
114
|
-
# shared between
|
113
|
+
# shared between Amazon Web Services services.
|
115
114
|
#
|
116
115
|
# <note markdown="1"> The ARN is never reused if the connection is deleted.
|
117
116
|
#
|
@@ -132,8 +131,7 @@ module Aws::CodeStarconnections
|
|
132
131
|
end
|
133
132
|
|
134
133
|
# @!attribute [rw] name
|
135
|
-
# The name of the host to be created.
|
136
|
-
# calling AWS account.
|
134
|
+
# The name of the host to be created.
|
137
135
|
# @return [String]
|
138
136
|
#
|
139
137
|
# @!attribute [rw] provider_type
|
@@ -511,7 +509,8 @@ module Aws::CodeStarconnections
|
|
511
509
|
|
512
510
|
# A tag is a key-value pair that is used to manage the resource.
|
513
511
|
#
|
514
|
-
# This tag is available for use by
|
512
|
+
# This tag is available for use by Amazon Web Services services that
|
513
|
+
# support tags.
|
515
514
|
#
|
516
515
|
# @!attribute [rw] key
|
517
516
|
# The tag's key.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-codestarconnections
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|