aws-sdk-codestarconnections 1.5.1 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codestarconnections.rb +5 -2
- data/lib/aws-sdk-codestarconnections/client.rb +226 -15
- data/lib/aws-sdk-codestarconnections/client_api.rb +130 -1
- data/lib/aws-sdk-codestarconnections/errors.rb +18 -0
- data/lib/aws-sdk-codestarconnections/resource.rb +2 -0
- data/lib/aws-sdk-codestarconnections/types.rb +352 -13
- 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: 8486287c0fc79a75fd2da9dbfabba498c1427835b00dbf027b869df7546e2e2c
|
4
|
+
data.tar.gz: 0577d2552e390b573713668f3e502870a977ea1ee0a499ee2f789f90c87096a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed2f0ede64b219e07d7f851240b1f5dadd388c6f2fd807834abb232100c1fd01613d35674e0f1bfdd02ae25311799cd6fd986bd9b50c52a33a88442b4d11546e
|
7
|
+
data.tar.gz: 953e6b755b2dd78605d99adc19670a71b5e7dd6fe3cafaa2ae578d29de2352096a8c663ceda02d66d313aad0d03d25e88e9886d5d3b3d8457875266c5f5859a6
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -5,6 +7,7 @@
|
|
5
7
|
#
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
10
|
+
|
8
11
|
require 'aws-sdk-core'
|
9
12
|
require 'aws-sigv4'
|
10
13
|
|
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-codestarconnections/customizations'
|
|
42
45
|
#
|
43
46
|
# See {Errors} for more information.
|
44
47
|
#
|
45
|
-
#
|
48
|
+
# @!group service
|
46
49
|
module Aws::CodeStarconnections
|
47
50
|
|
48
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.10.0'
|
49
52
|
|
50
53
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -83,13 +85,28 @@ module Aws::CodeStarconnections
|
|
83
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
84
86
|
# credentials.
|
85
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
86
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
87
103
|
# from an EC2 IMDS on an EC2 instance.
|
88
104
|
#
|
89
|
-
# * `Aws::
|
90
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
91
107
|
#
|
92
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
93
110
|
#
|
94
111
|
# When `:credentials` are not configured directly, the following
|
95
112
|
# locations will be searched for credentials:
|
@@ -99,10 +116,10 @@ module Aws::CodeStarconnections
|
|
99
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
100
117
|
# * `~/.aws/credentials`
|
101
118
|
# * `~/.aws/config`
|
102
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
103
|
-
# very aggressive. Construct and pass an instance of
|
104
|
-
# `Aws::InstanceProfileCredentails`
|
105
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
106
123
|
#
|
107
124
|
# @option options [required, String] :region
|
108
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -325,10 +342,9 @@ module Aws::CodeStarconnections
|
|
325
342
|
# connection is in pending status until the third-party connection
|
326
343
|
# handshake is completed from the console.
|
327
344
|
#
|
328
|
-
# @option params [
|
345
|
+
# @option params [String] :provider_type
|
329
346
|
# The name of the external provider where your third-party code
|
330
|
-
# repository is configured.
|
331
|
-
# Bitbucket.
|
347
|
+
# repository is configured. The valid provider type is Bitbucket.
|
332
348
|
#
|
333
349
|
# @option params [required, String] :connection_name
|
334
350
|
# The name of the connection to be created. The name must be unique in
|
@@ -337,6 +353,10 @@ module Aws::CodeStarconnections
|
|
337
353
|
# @option params [Array<Types::Tag>] :tags
|
338
354
|
# The key-value pair to use when tagging the resource.
|
339
355
|
#
|
356
|
+
# @option params [String] :host_arn
|
357
|
+
# The Amazon Resource Name (ARN) of the host associated with the
|
358
|
+
# connection to be created.
|
359
|
+
#
|
340
360
|
# @return [Types::CreateConnectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
341
361
|
#
|
342
362
|
# * {Types::CreateConnectionOutput#connection_arn #connection_arn} => String
|
@@ -345,7 +365,7 @@ module Aws::CodeStarconnections
|
|
345
365
|
# @example Request syntax with placeholder values
|
346
366
|
#
|
347
367
|
# resp = client.create_connection({
|
348
|
-
# provider_type: "Bitbucket", #
|
368
|
+
# provider_type: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
|
349
369
|
# connection_name: "ConnectionName", # required
|
350
370
|
# tags: [
|
351
371
|
# {
|
@@ -353,6 +373,7 @@ module Aws::CodeStarconnections
|
|
353
373
|
# value: "TagValue", # required
|
354
374
|
# },
|
355
375
|
# ],
|
376
|
+
# host_arn: "HostArn",
|
356
377
|
# })
|
357
378
|
#
|
358
379
|
# @example Response structure
|
@@ -371,6 +392,68 @@ module Aws::CodeStarconnections
|
|
371
392
|
req.send_request(options)
|
372
393
|
end
|
373
394
|
|
395
|
+
# Creates a resource that represents the infrastructure where a
|
396
|
+
# third-party provider is installed. The host is used when you create
|
397
|
+
# connections to an installed third-party provider type, such as GitHub
|
398
|
+
# Enterprise Server. You create one host for all connections to that
|
399
|
+
# provider.
|
400
|
+
#
|
401
|
+
# <note markdown="1"> A host created through the CLI or the SDK is in `PENDING` status by
|
402
|
+
# default. You can make its status `AVAILABLE` by setting up the host
|
403
|
+
# in the console.
|
404
|
+
#
|
405
|
+
# </note>
|
406
|
+
#
|
407
|
+
# @option params [required, String] :name
|
408
|
+
# The name of the host to be created. The name must be unique in the
|
409
|
+
# calling AWS account.
|
410
|
+
#
|
411
|
+
# @option params [required, String] :provider_type
|
412
|
+
# The name of the installed provider to be associated with your
|
413
|
+
# connection. The host resource represents the infrastructure where your
|
414
|
+
# provider type is installed. The valid provider type is GitHub
|
415
|
+
# Enterprise Server.
|
416
|
+
#
|
417
|
+
# @option params [required, String] :provider_endpoint
|
418
|
+
# The endpoint of the infrastructure to be represented by the host after
|
419
|
+
# it is created.
|
420
|
+
#
|
421
|
+
# @option params [Types::VpcConfiguration] :vpc_configuration
|
422
|
+
# The VPC configuration to be provisioned for the host. A VPC must be
|
423
|
+
# configured and the infrastructure to be represented by the host must
|
424
|
+
# already be connected to the VPC.
|
425
|
+
#
|
426
|
+
# @return [Types::CreateHostOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
427
|
+
#
|
428
|
+
# * {Types::CreateHostOutput#host_arn #host_arn} => String
|
429
|
+
#
|
430
|
+
# @example Request syntax with placeholder values
|
431
|
+
#
|
432
|
+
# resp = client.create_host({
|
433
|
+
# name: "HostName", # required
|
434
|
+
# provider_type: "Bitbucket", # required, accepts Bitbucket, GitHub, GitHubEnterpriseServer
|
435
|
+
# provider_endpoint: "Url", # required
|
436
|
+
# vpc_configuration: {
|
437
|
+
# vpc_id: "VpcId", # required
|
438
|
+
# subnet_ids: ["SubnetId"], # required
|
439
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
440
|
+
# tls_certificate: "TlsCertificate",
|
441
|
+
# },
|
442
|
+
# })
|
443
|
+
#
|
444
|
+
# @example Response structure
|
445
|
+
#
|
446
|
+
# resp.host_arn #=> String
|
447
|
+
#
|
448
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateHost AWS API Documentation
|
449
|
+
#
|
450
|
+
# @overload create_host(params = {})
|
451
|
+
# @param [Hash] params ({})
|
452
|
+
def create_host(params = {}, options = {})
|
453
|
+
req = build_request(:create_host, params)
|
454
|
+
req.send_request(options)
|
455
|
+
end
|
456
|
+
|
374
457
|
# The connection to be deleted.
|
375
458
|
#
|
376
459
|
# @option params [required, String] :connection_arn
|
@@ -397,6 +480,34 @@ module Aws::CodeStarconnections
|
|
397
480
|
req.send_request(options)
|
398
481
|
end
|
399
482
|
|
483
|
+
# The host to be deleted. Before you delete a host, all connections
|
484
|
+
# associated to the host must be deleted.
|
485
|
+
#
|
486
|
+
# <note markdown="1"> A host cannot be deleted if it is in the VPC\_CONFIG\_INITIALIZING or
|
487
|
+
# VPC\_CONFIG\_DELETING state.
|
488
|
+
#
|
489
|
+
# </note>
|
490
|
+
#
|
491
|
+
# @option params [required, String] :host_arn
|
492
|
+
# The Amazon Resource Name (ARN) of the host to be deleted.
|
493
|
+
#
|
494
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
495
|
+
#
|
496
|
+
# @example Request syntax with placeholder values
|
497
|
+
#
|
498
|
+
# resp = client.delete_host({
|
499
|
+
# host_arn: "HostArn", # required
|
500
|
+
# })
|
501
|
+
#
|
502
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteHost AWS API Documentation
|
503
|
+
#
|
504
|
+
# @overload delete_host(params = {})
|
505
|
+
# @param [Hash] params ({})
|
506
|
+
def delete_host(params = {}, options = {})
|
507
|
+
req = build_request(:delete_host, params)
|
508
|
+
req.send_request(options)
|
509
|
+
end
|
510
|
+
|
400
511
|
# Returns the connection ARN and details such as status, owner, and
|
401
512
|
# provider type.
|
402
513
|
#
|
@@ -417,9 +528,10 @@ module Aws::CodeStarconnections
|
|
417
528
|
#
|
418
529
|
# resp.connection.connection_name #=> String
|
419
530
|
# resp.connection.connection_arn #=> String
|
420
|
-
# resp.connection.provider_type #=> String, one of "Bitbucket"
|
531
|
+
# resp.connection.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
|
421
532
|
# resp.connection.owner_account_id #=> String
|
422
533
|
# resp.connection.connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
|
534
|
+
# resp.connection.host_arn #=> String
|
423
535
|
#
|
424
536
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection AWS API Documentation
|
425
537
|
#
|
@@ -430,12 +542,58 @@ module Aws::CodeStarconnections
|
|
430
542
|
req.send_request(options)
|
431
543
|
end
|
432
544
|
|
545
|
+
# Returns the host ARN and details such as status, provider type,
|
546
|
+
# endpoint, and, if applicable, the VPC configuration.
|
547
|
+
#
|
548
|
+
# @option params [required, String] :host_arn
|
549
|
+
# The Amazon Resource Name (ARN) of the requested host.
|
550
|
+
#
|
551
|
+
# @return [Types::GetHostOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
552
|
+
#
|
553
|
+
# * {Types::GetHostOutput#name #name} => String
|
554
|
+
# * {Types::GetHostOutput#status #status} => String
|
555
|
+
# * {Types::GetHostOutput#provider_type #provider_type} => String
|
556
|
+
# * {Types::GetHostOutput#provider_endpoint #provider_endpoint} => String
|
557
|
+
# * {Types::GetHostOutput#vpc_configuration #vpc_configuration} => Types::VpcConfiguration
|
558
|
+
#
|
559
|
+
# @example Request syntax with placeholder values
|
560
|
+
#
|
561
|
+
# resp = client.get_host({
|
562
|
+
# host_arn: "HostArn", # required
|
563
|
+
# })
|
564
|
+
#
|
565
|
+
# @example Response structure
|
566
|
+
#
|
567
|
+
# resp.name #=> String
|
568
|
+
# resp.status #=> String
|
569
|
+
# resp.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
|
570
|
+
# resp.provider_endpoint #=> String
|
571
|
+
# resp.vpc_configuration.vpc_id #=> String
|
572
|
+
# resp.vpc_configuration.subnet_ids #=> Array
|
573
|
+
# resp.vpc_configuration.subnet_ids[0] #=> String
|
574
|
+
# resp.vpc_configuration.security_group_ids #=> Array
|
575
|
+
# resp.vpc_configuration.security_group_ids[0] #=> String
|
576
|
+
# resp.vpc_configuration.tls_certificate #=> String
|
577
|
+
#
|
578
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost AWS API Documentation
|
579
|
+
#
|
580
|
+
# @overload get_host(params = {})
|
581
|
+
# @param [Hash] params ({})
|
582
|
+
def get_host(params = {}, options = {})
|
583
|
+
req = build_request(:get_host, params)
|
584
|
+
req.send_request(options)
|
585
|
+
end
|
586
|
+
|
433
587
|
# Lists the connections associated with your account.
|
434
588
|
#
|
435
589
|
# @option params [String] :provider_type_filter
|
436
590
|
# Filters the list of connections to those associated with a specified
|
437
591
|
# provider, such as Bitbucket.
|
438
592
|
#
|
593
|
+
# @option params [String] :host_arn_filter
|
594
|
+
# Filters the list of connections to those associated with a specified
|
595
|
+
# host.
|
596
|
+
#
|
439
597
|
# @option params [Integer] :max_results
|
440
598
|
# The maximum number of results to return in a single call. To retrieve
|
441
599
|
# the remaining results, make another call with the returned `nextToken`
|
@@ -455,7 +613,8 @@ module Aws::CodeStarconnections
|
|
455
613
|
# @example Request syntax with placeholder values
|
456
614
|
#
|
457
615
|
# resp = client.list_connections({
|
458
|
-
# provider_type_filter: "Bitbucket", # accepts Bitbucket
|
616
|
+
# provider_type_filter: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
|
617
|
+
# host_arn_filter: "HostArn",
|
459
618
|
# max_results: 1,
|
460
619
|
# next_token: "NextToken",
|
461
620
|
# })
|
@@ -465,9 +624,10 @@ module Aws::CodeStarconnections
|
|
465
624
|
# resp.connections #=> Array
|
466
625
|
# resp.connections[0].connection_name #=> String
|
467
626
|
# resp.connections[0].connection_arn #=> String
|
468
|
-
# resp.connections[0].provider_type #=> String, one of "Bitbucket"
|
627
|
+
# resp.connections[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
|
469
628
|
# resp.connections[0].owner_account_id #=> String
|
470
629
|
# resp.connections[0].connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
|
630
|
+
# resp.connections[0].host_arn #=> String
|
471
631
|
# resp.next_token #=> String
|
472
632
|
#
|
473
633
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections AWS API Documentation
|
@@ -479,6 +639,57 @@ module Aws::CodeStarconnections
|
|
479
639
|
req.send_request(options)
|
480
640
|
end
|
481
641
|
|
642
|
+
# Lists the hosts associated with your account.
|
643
|
+
#
|
644
|
+
# @option params [Integer] :max_results
|
645
|
+
# The maximum number of results to return in a single call. To retrieve
|
646
|
+
# the remaining results, make another call with the returned `nextToken`
|
647
|
+
# value.
|
648
|
+
#
|
649
|
+
# @option params [String] :next_token
|
650
|
+
# The token that was returned from the previous `ListHosts` call, which
|
651
|
+
# can be used to return the next set of hosts in the list.
|
652
|
+
#
|
653
|
+
# @return [Types::ListHostsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
654
|
+
#
|
655
|
+
# * {Types::ListHostsOutput#hosts #hosts} => Array<Types::Host>
|
656
|
+
# * {Types::ListHostsOutput#next_token #next_token} => String
|
657
|
+
#
|
658
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
659
|
+
#
|
660
|
+
# @example Request syntax with placeholder values
|
661
|
+
#
|
662
|
+
# resp = client.list_hosts({
|
663
|
+
# max_results: 1,
|
664
|
+
# next_token: "NextToken",
|
665
|
+
# })
|
666
|
+
#
|
667
|
+
# @example Response structure
|
668
|
+
#
|
669
|
+
# resp.hosts #=> Array
|
670
|
+
# resp.hosts[0].name #=> String
|
671
|
+
# resp.hosts[0].host_arn #=> String
|
672
|
+
# resp.hosts[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
|
673
|
+
# resp.hosts[0].provider_endpoint #=> String
|
674
|
+
# resp.hosts[0].vpc_configuration.vpc_id #=> String
|
675
|
+
# resp.hosts[0].vpc_configuration.subnet_ids #=> Array
|
676
|
+
# resp.hosts[0].vpc_configuration.subnet_ids[0] #=> String
|
677
|
+
# resp.hosts[0].vpc_configuration.security_group_ids #=> Array
|
678
|
+
# resp.hosts[0].vpc_configuration.security_group_ids[0] #=> String
|
679
|
+
# resp.hosts[0].vpc_configuration.tls_certificate #=> String
|
680
|
+
# resp.hosts[0].status #=> String
|
681
|
+
# resp.hosts[0].status_message #=> String
|
682
|
+
# resp.next_token #=> String
|
683
|
+
#
|
684
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHosts AWS API Documentation
|
685
|
+
#
|
686
|
+
# @overload list_hosts(params = {})
|
687
|
+
# @param [Hash] params ({})
|
688
|
+
def list_hosts(params = {}, options = {})
|
689
|
+
req = build_request(:list_hosts, params)
|
690
|
+
req.send_request(options)
|
691
|
+
end
|
692
|
+
|
482
693
|
# Gets the set of key-value pairs (metadata) that are used to manage the
|
483
694
|
# resource.
|
484
695
|
#
|
@@ -583,7 +794,7 @@ module Aws::CodeStarconnections
|
|
583
794
|
params: params,
|
584
795
|
config: config)
|
585
796
|
context[:gem_name] = 'aws-sdk-codestarconnections'
|
586
|
-
context[:gem_version] = '1.
|
797
|
+
context[:gem_version] = '1.10.0'
|
587
798
|
Seahorse::Client::Request.new(handlers, context)
|
588
799
|
end
|
589
800
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -20,20 +22,39 @@ module Aws::CodeStarconnections
|
|
20
22
|
ConnectionStatus = Shapes::StringShape.new(name: 'ConnectionStatus')
|
21
23
|
CreateConnectionInput = Shapes::StructureShape.new(name: 'CreateConnectionInput')
|
22
24
|
CreateConnectionOutput = Shapes::StructureShape.new(name: 'CreateConnectionOutput')
|
25
|
+
CreateHostInput = Shapes::StructureShape.new(name: 'CreateHostInput')
|
26
|
+
CreateHostOutput = Shapes::StructureShape.new(name: 'CreateHostOutput')
|
23
27
|
DeleteConnectionInput = Shapes::StructureShape.new(name: 'DeleteConnectionInput')
|
24
28
|
DeleteConnectionOutput = Shapes::StructureShape.new(name: 'DeleteConnectionOutput')
|
29
|
+
DeleteHostInput = Shapes::StructureShape.new(name: 'DeleteHostInput')
|
30
|
+
DeleteHostOutput = Shapes::StructureShape.new(name: 'DeleteHostOutput')
|
25
31
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
26
32
|
GetConnectionInput = Shapes::StructureShape.new(name: 'GetConnectionInput')
|
27
33
|
GetConnectionOutput = Shapes::StructureShape.new(name: 'GetConnectionOutput')
|
34
|
+
GetHostInput = Shapes::StructureShape.new(name: 'GetHostInput')
|
35
|
+
GetHostOutput = Shapes::StructureShape.new(name: 'GetHostOutput')
|
36
|
+
Host = Shapes::StructureShape.new(name: 'Host')
|
37
|
+
HostArn = Shapes::StringShape.new(name: 'HostArn')
|
38
|
+
HostList = Shapes::ListShape.new(name: 'HostList')
|
39
|
+
HostName = Shapes::StringShape.new(name: 'HostName')
|
40
|
+
HostStatus = Shapes::StringShape.new(name: 'HostStatus')
|
41
|
+
HostStatusMessage = Shapes::StringShape.new(name: 'HostStatusMessage')
|
28
42
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
29
43
|
ListConnectionsInput = Shapes::StructureShape.new(name: 'ListConnectionsInput')
|
30
44
|
ListConnectionsOutput = Shapes::StructureShape.new(name: 'ListConnectionsOutput')
|
45
|
+
ListHostsInput = Shapes::StructureShape.new(name: 'ListHostsInput')
|
46
|
+
ListHostsOutput = Shapes::StructureShape.new(name: 'ListHostsOutput')
|
31
47
|
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
32
48
|
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
33
49
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
34
50
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
35
51
|
ProviderType = Shapes::StringShape.new(name: 'ProviderType')
|
36
52
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
53
|
+
ResourceUnavailableException = Shapes::StructureShape.new(name: 'ResourceUnavailableException')
|
54
|
+
SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
|
55
|
+
SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
|
56
|
+
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
57
|
+
SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
|
37
58
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
38
59
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
39
60
|
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
@@ -41,42 +62,84 @@ module Aws::CodeStarconnections
|
|
41
62
|
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
42
63
|
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
43
64
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
65
|
+
TlsCertificate = Shapes::StringShape.new(name: 'TlsCertificate')
|
44
66
|
UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
|
45
67
|
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
68
|
+
Url = Shapes::StringShape.new(name: 'Url')
|
69
|
+
VpcConfiguration = Shapes::StructureShape.new(name: 'VpcConfiguration')
|
70
|
+
VpcId = Shapes::StringShape.new(name: 'VpcId')
|
46
71
|
|
47
72
|
Connection.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, location_name: "ConnectionName"))
|
48
73
|
Connection.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, location_name: "ConnectionArn"))
|
49
74
|
Connection.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
|
50
75
|
Connection.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "OwnerAccountId"))
|
51
76
|
Connection.add_member(:connection_status, Shapes::ShapeRef.new(shape: ConnectionStatus, location_name: "ConnectionStatus"))
|
77
|
+
Connection.add_member(:host_arn, Shapes::ShapeRef.new(shape: HostArn, location_name: "HostArn"))
|
52
78
|
Connection.struct_class = Types::Connection
|
53
79
|
|
54
80
|
ConnectionList.member = Shapes::ShapeRef.new(shape: Connection)
|
55
81
|
|
56
|
-
CreateConnectionInput.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType,
|
82
|
+
CreateConnectionInput.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
|
57
83
|
CreateConnectionInput.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, required: true, location_name: "ConnectionName"))
|
58
84
|
CreateConnectionInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
85
|
+
CreateConnectionInput.add_member(:host_arn, Shapes::ShapeRef.new(shape: HostArn, location_name: "HostArn"))
|
59
86
|
CreateConnectionInput.struct_class = Types::CreateConnectionInput
|
60
87
|
|
61
88
|
CreateConnectionOutput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
|
62
89
|
CreateConnectionOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
63
90
|
CreateConnectionOutput.struct_class = Types::CreateConnectionOutput
|
64
91
|
|
92
|
+
CreateHostInput.add_member(:name, Shapes::ShapeRef.new(shape: HostName, required: true, location_name: "Name"))
|
93
|
+
CreateHostInput.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, required: true, location_name: "ProviderType"))
|
94
|
+
CreateHostInput.add_member(:provider_endpoint, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "ProviderEndpoint"))
|
95
|
+
CreateHostInput.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "VpcConfiguration"))
|
96
|
+
CreateHostInput.struct_class = Types::CreateHostInput
|
97
|
+
|
98
|
+
CreateHostOutput.add_member(:host_arn, Shapes::ShapeRef.new(shape: HostArn, location_name: "HostArn"))
|
99
|
+
CreateHostOutput.struct_class = Types::CreateHostOutput
|
100
|
+
|
65
101
|
DeleteConnectionInput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
|
66
102
|
DeleteConnectionInput.struct_class = Types::DeleteConnectionInput
|
67
103
|
|
68
104
|
DeleteConnectionOutput.struct_class = Types::DeleteConnectionOutput
|
69
105
|
|
106
|
+
DeleteHostInput.add_member(:host_arn, Shapes::ShapeRef.new(shape: HostArn, required: true, location_name: "HostArn"))
|
107
|
+
DeleteHostInput.struct_class = Types::DeleteHostInput
|
108
|
+
|
109
|
+
DeleteHostOutput.struct_class = Types::DeleteHostOutput
|
110
|
+
|
70
111
|
GetConnectionInput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
|
71
112
|
GetConnectionInput.struct_class = Types::GetConnectionInput
|
72
113
|
|
73
114
|
GetConnectionOutput.add_member(:connection, Shapes::ShapeRef.new(shape: Connection, location_name: "Connection"))
|
74
115
|
GetConnectionOutput.struct_class = Types::GetConnectionOutput
|
75
116
|
|
117
|
+
GetHostInput.add_member(:host_arn, Shapes::ShapeRef.new(shape: HostArn, required: true, location_name: "HostArn"))
|
118
|
+
GetHostInput.struct_class = Types::GetHostInput
|
119
|
+
|
120
|
+
GetHostOutput.add_member(:name, Shapes::ShapeRef.new(shape: HostName, location_name: "Name"))
|
121
|
+
GetHostOutput.add_member(:status, Shapes::ShapeRef.new(shape: HostStatus, location_name: "Status"))
|
122
|
+
GetHostOutput.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
|
123
|
+
GetHostOutput.add_member(:provider_endpoint, Shapes::ShapeRef.new(shape: Url, location_name: "ProviderEndpoint"))
|
124
|
+
GetHostOutput.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "VpcConfiguration"))
|
125
|
+
GetHostOutput.struct_class = Types::GetHostOutput
|
126
|
+
|
127
|
+
Host.add_member(:name, Shapes::ShapeRef.new(shape: HostName, location_name: "Name"))
|
128
|
+
Host.add_member(:host_arn, Shapes::ShapeRef.new(shape: HostArn, location_name: "HostArn"))
|
129
|
+
Host.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
|
130
|
+
Host.add_member(:provider_endpoint, Shapes::ShapeRef.new(shape: Url, location_name: "ProviderEndpoint"))
|
131
|
+
Host.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "VpcConfiguration"))
|
132
|
+
Host.add_member(:status, Shapes::ShapeRef.new(shape: HostStatus, location_name: "Status"))
|
133
|
+
Host.add_member(:status_message, Shapes::ShapeRef.new(shape: HostStatusMessage, location_name: "StatusMessage"))
|
134
|
+
Host.struct_class = Types::Host
|
135
|
+
|
136
|
+
HostList.member = Shapes::ShapeRef.new(shape: Host)
|
137
|
+
|
76
138
|
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
77
139
|
LimitExceededException.struct_class = Types::LimitExceededException
|
78
140
|
|
79
141
|
ListConnectionsInput.add_member(:provider_type_filter, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderTypeFilter"))
|
142
|
+
ListConnectionsInput.add_member(:host_arn_filter, Shapes::ShapeRef.new(shape: HostArn, location_name: "HostArnFilter"))
|
80
143
|
ListConnectionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
81
144
|
ListConnectionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
82
145
|
ListConnectionsInput.struct_class = Types::ListConnectionsInput
|
@@ -85,6 +148,14 @@ module Aws::CodeStarconnections
|
|
85
148
|
ListConnectionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
86
149
|
ListConnectionsOutput.struct_class = Types::ListConnectionsOutput
|
87
150
|
|
151
|
+
ListHostsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
152
|
+
ListHostsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
153
|
+
ListHostsInput.struct_class = Types::ListHostsInput
|
154
|
+
|
155
|
+
ListHostsOutput.add_member(:hosts, Shapes::ShapeRef.new(shape: HostList, location_name: "Hosts"))
|
156
|
+
ListHostsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
157
|
+
ListHostsOutput.struct_class = Types::ListHostsOutput
|
158
|
+
|
88
159
|
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
|
89
160
|
ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
|
90
161
|
|
@@ -94,6 +165,13 @@ module Aws::CodeStarconnections
|
|
94
165
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
95
166
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
96
167
|
|
168
|
+
ResourceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
169
|
+
ResourceUnavailableException.struct_class = Types::ResourceUnavailableException
|
170
|
+
|
171
|
+
SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
172
|
+
|
173
|
+
SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
|
174
|
+
|
97
175
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
98
176
|
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
99
177
|
Tag.struct_class = Types::Tag
|
@@ -114,6 +192,12 @@ module Aws::CodeStarconnections
|
|
114
192
|
|
115
193
|
UntagResourceOutput.struct_class = Types::UntagResourceOutput
|
116
194
|
|
195
|
+
VpcConfiguration.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "VpcId"))
|
196
|
+
VpcConfiguration.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "SubnetIds"))
|
197
|
+
VpcConfiguration.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, required: true, location_name: "SecurityGroupIds"))
|
198
|
+
VpcConfiguration.add_member(:tls_certificate, Shapes::ShapeRef.new(shape: TlsCertificate, location_name: "TlsCertificate"))
|
199
|
+
VpcConfiguration.struct_class = Types::VpcConfiguration
|
200
|
+
|
117
201
|
|
118
202
|
# @api private
|
119
203
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -140,6 +224,17 @@ module Aws::CodeStarconnections
|
|
140
224
|
o.input = Shapes::ShapeRef.new(shape: CreateConnectionInput)
|
141
225
|
o.output = Shapes::ShapeRef.new(shape: CreateConnectionOutput)
|
142
226
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
227
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
228
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
|
229
|
+
end)
|
230
|
+
|
231
|
+
api.add_operation(:create_host, Seahorse::Model::Operation.new.tap do |o|
|
232
|
+
o.name = "CreateHost"
|
233
|
+
o.http_method = "POST"
|
234
|
+
o.http_request_uri = "/"
|
235
|
+
o.input = Shapes::ShapeRef.new(shape: CreateHostInput)
|
236
|
+
o.output = Shapes::ShapeRef.new(shape: CreateHostOutput)
|
237
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
143
238
|
end)
|
144
239
|
|
145
240
|
api.add_operation(:delete_connection, Seahorse::Model::Operation.new.tap do |o|
|
@@ -151,6 +246,16 @@ module Aws::CodeStarconnections
|
|
151
246
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
152
247
|
end)
|
153
248
|
|
249
|
+
api.add_operation(:delete_host, Seahorse::Model::Operation.new.tap do |o|
|
250
|
+
o.name = "DeleteHost"
|
251
|
+
o.http_method = "POST"
|
252
|
+
o.http_request_uri = "/"
|
253
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteHostInput)
|
254
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteHostOutput)
|
255
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
256
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
|
257
|
+
end)
|
258
|
+
|
154
259
|
api.add_operation(:get_connection, Seahorse::Model::Operation.new.tap do |o|
|
155
260
|
o.name = "GetConnection"
|
156
261
|
o.http_method = "POST"
|
@@ -158,6 +263,16 @@ module Aws::CodeStarconnections
|
|
158
263
|
o.input = Shapes::ShapeRef.new(shape: GetConnectionInput)
|
159
264
|
o.output = Shapes::ShapeRef.new(shape: GetConnectionOutput)
|
160
265
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
|
267
|
+
end)
|
268
|
+
|
269
|
+
api.add_operation(:get_host, Seahorse::Model::Operation.new.tap do |o|
|
270
|
+
o.name = "GetHost"
|
271
|
+
o.http_method = "POST"
|
272
|
+
o.http_request_uri = "/"
|
273
|
+
o.input = Shapes::ShapeRef.new(shape: GetHostInput)
|
274
|
+
o.output = Shapes::ShapeRef.new(shape: GetHostOutput)
|
275
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
161
276
|
end)
|
162
277
|
|
163
278
|
api.add_operation(:list_connections, Seahorse::Model::Operation.new.tap do |o|
|
@@ -174,6 +289,20 @@ module Aws::CodeStarconnections
|
|
174
289
|
)
|
175
290
|
end)
|
176
291
|
|
292
|
+
api.add_operation(:list_hosts, Seahorse::Model::Operation.new.tap do |o|
|
293
|
+
o.name = "ListHosts"
|
294
|
+
o.http_method = "POST"
|
295
|
+
o.http_request_uri = "/"
|
296
|
+
o.input = Shapes::ShapeRef.new(shape: ListHostsInput)
|
297
|
+
o.output = Shapes::ShapeRef.new(shape: ListHostsOutput)
|
298
|
+
o[:pager] = Aws::Pager.new(
|
299
|
+
limit_key: "max_results",
|
300
|
+
tokens: {
|
301
|
+
"next_token" => "next_token"
|
302
|
+
}
|
303
|
+
)
|
304
|
+
end)
|
305
|
+
|
177
306
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
178
307
|
o.name = "ListTagsForResource"
|
179
308
|
o.http_method = "POST"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -27,6 +29,7 @@ module Aws::CodeStarconnections
|
|
27
29
|
# ## Error Classes
|
28
30
|
# * {LimitExceededException}
|
29
31
|
# * {ResourceNotFoundException}
|
32
|
+
# * {ResourceUnavailableException}
|
30
33
|
#
|
31
34
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
32
35
|
# if they are not defined above.
|
@@ -64,5 +67,20 @@ module Aws::CodeStarconnections
|
|
64
67
|
end
|
65
68
|
end
|
66
69
|
|
70
|
+
class ResourceUnavailableException < ServiceError
|
71
|
+
|
72
|
+
# @param [Seahorse::Client::RequestContext] context
|
73
|
+
# @param [String] message
|
74
|
+
# @param [Aws::CodeStarconnections::Types::ResourceUnavailableException] data
|
75
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
76
|
+
super(context, message, data)
|
77
|
+
end
|
78
|
+
|
79
|
+
# @return [String]
|
80
|
+
def message
|
81
|
+
@message || @data[:message]
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
67
85
|
end
|
68
86
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -8,12 +10,12 @@
|
|
8
10
|
module Aws::CodeStarconnections
|
9
11
|
module Types
|
10
12
|
|
11
|
-
#
|
12
|
-
#
|
13
|
+
# A resource that is used to connect third-party source providers with
|
14
|
+
# services like AWS CodePipeline.
|
13
15
|
#
|
14
|
-
# Note: A connection created through CloudFormation
|
15
|
-
# status by default. You can make its status
|
16
|
-
# the connection in the
|
16
|
+
# Note: A connection created through CloudFormation, the CLI, or the SDK
|
17
|
+
# is in `PENDING` status by default. You can make its status
|
18
|
+
# `AVAILABLE` by updating the connection in the console.
|
17
19
|
#
|
18
20
|
# @!attribute [rw] connection_name
|
19
21
|
# The name of the connection. Connection names must be unique in an
|
@@ -32,8 +34,7 @@ module Aws::CodeStarconnections
|
|
32
34
|
#
|
33
35
|
# @!attribute [rw] provider_type
|
34
36
|
# The name of the external provider where your third-party code
|
35
|
-
# repository is configured.
|
36
|
-
# Bitbucket.
|
37
|
+
# repository is configured. The valid provider type is Bitbucket.
|
37
38
|
# @return [String]
|
38
39
|
#
|
39
40
|
# @!attribute [rw] owner_account_id
|
@@ -46,6 +47,11 @@ module Aws::CodeStarconnections
|
|
46
47
|
# The current status of the connection.
|
47
48
|
# @return [String]
|
48
49
|
#
|
50
|
+
# @!attribute [rw] host_arn
|
51
|
+
# The Amazon Resource Name (ARN) of the host associated with the
|
52
|
+
# connection.
|
53
|
+
# @return [String]
|
54
|
+
#
|
49
55
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/Connection AWS API Documentation
|
50
56
|
#
|
51
57
|
class Connection < Struct.new(
|
@@ -53,7 +59,9 @@ module Aws::CodeStarconnections
|
|
53
59
|
:connection_arn,
|
54
60
|
:provider_type,
|
55
61
|
:owner_account_id,
|
56
|
-
:connection_status
|
62
|
+
:connection_status,
|
63
|
+
:host_arn)
|
64
|
+
SENSITIVE = []
|
57
65
|
include Aws::Structure
|
58
66
|
end
|
59
67
|
|
@@ -61,7 +69,7 @@ module Aws::CodeStarconnections
|
|
61
69
|
# data as a hash:
|
62
70
|
#
|
63
71
|
# {
|
64
|
-
# provider_type: "Bitbucket", #
|
72
|
+
# provider_type: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
|
65
73
|
# connection_name: "ConnectionName", # required
|
66
74
|
# tags: [
|
67
75
|
# {
|
@@ -69,12 +77,12 @@ module Aws::CodeStarconnections
|
|
69
77
|
# value: "TagValue", # required
|
70
78
|
# },
|
71
79
|
# ],
|
80
|
+
# host_arn: "HostArn",
|
72
81
|
# }
|
73
82
|
#
|
74
83
|
# @!attribute [rw] provider_type
|
75
84
|
# The name of the external provider where your third-party code
|
76
|
-
# repository is configured.
|
77
|
-
# Bitbucket.
|
85
|
+
# repository is configured. The valid provider type is Bitbucket.
|
78
86
|
# @return [String]
|
79
87
|
#
|
80
88
|
# @!attribute [rw] connection_name
|
@@ -86,12 +94,19 @@ module Aws::CodeStarconnections
|
|
86
94
|
# The key-value pair to use when tagging the resource.
|
87
95
|
# @return [Array<Types::Tag>]
|
88
96
|
#
|
97
|
+
# @!attribute [rw] host_arn
|
98
|
+
# The Amazon Resource Name (ARN) of the host associated with the
|
99
|
+
# connection to be created.
|
100
|
+
# @return [String]
|
101
|
+
#
|
89
102
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnectionInput AWS API Documentation
|
90
103
|
#
|
91
104
|
class CreateConnectionInput < Struct.new(
|
92
105
|
:provider_type,
|
93
106
|
:connection_name,
|
94
|
-
:tags
|
107
|
+
:tags,
|
108
|
+
:host_arn)
|
109
|
+
SENSITIVE = []
|
95
110
|
include Aws::Structure
|
96
111
|
end
|
97
112
|
|
@@ -114,6 +129,68 @@ module Aws::CodeStarconnections
|
|
114
129
|
class CreateConnectionOutput < Struct.new(
|
115
130
|
:connection_arn,
|
116
131
|
:tags)
|
132
|
+
SENSITIVE = []
|
133
|
+
include Aws::Structure
|
134
|
+
end
|
135
|
+
|
136
|
+
# @note When making an API call, you may pass CreateHostInput
|
137
|
+
# data as a hash:
|
138
|
+
#
|
139
|
+
# {
|
140
|
+
# name: "HostName", # required
|
141
|
+
# provider_type: "Bitbucket", # required, accepts Bitbucket, GitHub, GitHubEnterpriseServer
|
142
|
+
# provider_endpoint: "Url", # required
|
143
|
+
# vpc_configuration: {
|
144
|
+
# vpc_id: "VpcId", # required
|
145
|
+
# subnet_ids: ["SubnetId"], # required
|
146
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
147
|
+
# tls_certificate: "TlsCertificate",
|
148
|
+
# },
|
149
|
+
# }
|
150
|
+
#
|
151
|
+
# @!attribute [rw] name
|
152
|
+
# The name of the host to be created. The name must be unique in the
|
153
|
+
# calling AWS account.
|
154
|
+
# @return [String]
|
155
|
+
#
|
156
|
+
# @!attribute [rw] provider_type
|
157
|
+
# The name of the installed provider to be associated with your
|
158
|
+
# connection. The host resource represents the infrastructure where
|
159
|
+
# your provider type is installed. The valid provider type is GitHub
|
160
|
+
# Enterprise Server.
|
161
|
+
# @return [String]
|
162
|
+
#
|
163
|
+
# @!attribute [rw] provider_endpoint
|
164
|
+
# The endpoint of the infrastructure to be represented by the host
|
165
|
+
# after it is created.
|
166
|
+
# @return [String]
|
167
|
+
#
|
168
|
+
# @!attribute [rw] vpc_configuration
|
169
|
+
# The VPC configuration to be provisioned for the host. A VPC must be
|
170
|
+
# configured and the infrastructure to be represented by the host must
|
171
|
+
# already be connected to the VPC.
|
172
|
+
# @return [Types::VpcConfiguration]
|
173
|
+
#
|
174
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateHostInput AWS API Documentation
|
175
|
+
#
|
176
|
+
class CreateHostInput < Struct.new(
|
177
|
+
:name,
|
178
|
+
:provider_type,
|
179
|
+
:provider_endpoint,
|
180
|
+
:vpc_configuration)
|
181
|
+
SENSITIVE = []
|
182
|
+
include Aws::Structure
|
183
|
+
end
|
184
|
+
|
185
|
+
# @!attribute [rw] host_arn
|
186
|
+
# The Amazon Resource Name (ARN) of the host to be created.
|
187
|
+
# @return [String]
|
188
|
+
#
|
189
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateHostOutput AWS API Documentation
|
190
|
+
#
|
191
|
+
class CreateHostOutput < Struct.new(
|
192
|
+
:host_arn)
|
193
|
+
SENSITIVE = []
|
117
194
|
include Aws::Structure
|
118
195
|
end
|
119
196
|
|
@@ -136,6 +213,7 @@ module Aws::CodeStarconnections
|
|
136
213
|
#
|
137
214
|
class DeleteConnectionInput < Struct.new(
|
138
215
|
:connection_arn)
|
216
|
+
SENSITIVE = []
|
139
217
|
include Aws::Structure
|
140
218
|
end
|
141
219
|
|
@@ -143,6 +221,29 @@ module Aws::CodeStarconnections
|
|
143
221
|
#
|
144
222
|
class DeleteConnectionOutput < Aws::EmptyStructure; end
|
145
223
|
|
224
|
+
# @note When making an API call, you may pass DeleteHostInput
|
225
|
+
# data as a hash:
|
226
|
+
#
|
227
|
+
# {
|
228
|
+
# host_arn: "HostArn", # required
|
229
|
+
# }
|
230
|
+
#
|
231
|
+
# @!attribute [rw] host_arn
|
232
|
+
# The Amazon Resource Name (ARN) of the host to be deleted.
|
233
|
+
# @return [String]
|
234
|
+
#
|
235
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteHostInput AWS API Documentation
|
236
|
+
#
|
237
|
+
class DeleteHostInput < Struct.new(
|
238
|
+
:host_arn)
|
239
|
+
SENSITIVE = []
|
240
|
+
include Aws::Structure
|
241
|
+
end
|
242
|
+
|
243
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteHostOutput AWS API Documentation
|
244
|
+
#
|
245
|
+
class DeleteHostOutput < Aws::EmptyStructure; end
|
246
|
+
|
146
247
|
# @note When making an API call, you may pass GetConnectionInput
|
147
248
|
# data as a hash:
|
148
249
|
#
|
@@ -158,6 +259,7 @@ module Aws::CodeStarconnections
|
|
158
259
|
#
|
159
260
|
class GetConnectionInput < Struct.new(
|
160
261
|
:connection_arn)
|
262
|
+
SENSITIVE = []
|
161
263
|
include Aws::Structure
|
162
264
|
end
|
163
265
|
|
@@ -169,6 +271,119 @@ module Aws::CodeStarconnections
|
|
169
271
|
#
|
170
272
|
class GetConnectionOutput < Struct.new(
|
171
273
|
:connection)
|
274
|
+
SENSITIVE = []
|
275
|
+
include Aws::Structure
|
276
|
+
end
|
277
|
+
|
278
|
+
# @note When making an API call, you may pass GetHostInput
|
279
|
+
# data as a hash:
|
280
|
+
#
|
281
|
+
# {
|
282
|
+
# host_arn: "HostArn", # required
|
283
|
+
# }
|
284
|
+
#
|
285
|
+
# @!attribute [rw] host_arn
|
286
|
+
# The Amazon Resource Name (ARN) of the requested host.
|
287
|
+
# @return [String]
|
288
|
+
#
|
289
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHostInput AWS API Documentation
|
290
|
+
#
|
291
|
+
class GetHostInput < Struct.new(
|
292
|
+
:host_arn)
|
293
|
+
SENSITIVE = []
|
294
|
+
include Aws::Structure
|
295
|
+
end
|
296
|
+
|
297
|
+
# @!attribute [rw] name
|
298
|
+
# The name of the requested host.
|
299
|
+
# @return [String]
|
300
|
+
#
|
301
|
+
# @!attribute [rw] status
|
302
|
+
# The status of the requested host.
|
303
|
+
# @return [String]
|
304
|
+
#
|
305
|
+
# @!attribute [rw] provider_type
|
306
|
+
# The provider type of the requested host, such as GitHub Enterprise
|
307
|
+
# Server.
|
308
|
+
# @return [String]
|
309
|
+
#
|
310
|
+
# @!attribute [rw] provider_endpoint
|
311
|
+
# The endpoint of the infrastructure represented by the requested
|
312
|
+
# host.
|
313
|
+
# @return [String]
|
314
|
+
#
|
315
|
+
# @!attribute [rw] vpc_configuration
|
316
|
+
# The VPC configuration of the requested host.
|
317
|
+
# @return [Types::VpcConfiguration]
|
318
|
+
#
|
319
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHostOutput AWS API Documentation
|
320
|
+
#
|
321
|
+
class GetHostOutput < Struct.new(
|
322
|
+
:name,
|
323
|
+
:status,
|
324
|
+
:provider_type,
|
325
|
+
:provider_endpoint,
|
326
|
+
:vpc_configuration)
|
327
|
+
SENSITIVE = []
|
328
|
+
include Aws::Structure
|
329
|
+
end
|
330
|
+
|
331
|
+
# A resource that represents the infrastructure where a third-party
|
332
|
+
# provider is installed. The host is used when you create connections to
|
333
|
+
# an installed third-party provider type, such as GitHub Enterprise
|
334
|
+
# Server. You create one host for all connections to that provider.
|
335
|
+
#
|
336
|
+
# <note markdown="1"> A host created through the CLI or the SDK is in `PENDING` status by
|
337
|
+
# default. You can make its status `AVAILABLE` by setting up the host
|
338
|
+
# in the console.
|
339
|
+
#
|
340
|
+
# </note>
|
341
|
+
#
|
342
|
+
# @!attribute [rw] name
|
343
|
+
# The name of the host.
|
344
|
+
# @return [String]
|
345
|
+
#
|
346
|
+
# @!attribute [rw] host_arn
|
347
|
+
# The Amazon Resource Name (ARN) of the host.
|
348
|
+
# @return [String]
|
349
|
+
#
|
350
|
+
# @!attribute [rw] provider_type
|
351
|
+
# The name of the installed provider to be associated with your
|
352
|
+
# connection. The host resource represents the infrastructure where
|
353
|
+
# your provider type is installed. The valid provider type is GitHub
|
354
|
+
# Enterprise Server.
|
355
|
+
# @return [String]
|
356
|
+
#
|
357
|
+
# @!attribute [rw] provider_endpoint
|
358
|
+
# The endpoint of the infrastructure where your provider type is
|
359
|
+
# installed.
|
360
|
+
# @return [String]
|
361
|
+
#
|
362
|
+
# @!attribute [rw] vpc_configuration
|
363
|
+
# The VPC configuration provisioned for the host.
|
364
|
+
# @return [Types::VpcConfiguration]
|
365
|
+
#
|
366
|
+
# @!attribute [rw] status
|
367
|
+
# The status of the host, such as PENDING, AVAILABLE,
|
368
|
+
# VPC\_CONFIG\_DELETING, VPC\_CONFIG\_INITIALIZING, and
|
369
|
+
# VPC\_CONFIG\_FAILED\_INITIALIZATION.
|
370
|
+
# @return [String]
|
371
|
+
#
|
372
|
+
# @!attribute [rw] status_message
|
373
|
+
# The status description for the host.
|
374
|
+
# @return [String]
|
375
|
+
#
|
376
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/Host AWS API Documentation
|
377
|
+
#
|
378
|
+
class Host < Struct.new(
|
379
|
+
:name,
|
380
|
+
:host_arn,
|
381
|
+
:provider_type,
|
382
|
+
:provider_endpoint,
|
383
|
+
:vpc_configuration,
|
384
|
+
:status,
|
385
|
+
:status_message)
|
386
|
+
SENSITIVE = []
|
172
387
|
include Aws::Structure
|
173
388
|
end
|
174
389
|
|
@@ -181,6 +396,7 @@ module Aws::CodeStarconnections
|
|
181
396
|
#
|
182
397
|
class LimitExceededException < Struct.new(
|
183
398
|
:message)
|
399
|
+
SENSITIVE = []
|
184
400
|
include Aws::Structure
|
185
401
|
end
|
186
402
|
|
@@ -188,7 +404,8 @@ module Aws::CodeStarconnections
|
|
188
404
|
# data as a hash:
|
189
405
|
#
|
190
406
|
# {
|
191
|
-
# provider_type_filter: "Bitbucket", # accepts Bitbucket
|
407
|
+
# provider_type_filter: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
|
408
|
+
# host_arn_filter: "HostArn",
|
192
409
|
# max_results: 1,
|
193
410
|
# next_token: "NextToken",
|
194
411
|
# }
|
@@ -198,6 +415,11 @@ module Aws::CodeStarconnections
|
|
198
415
|
# provider, such as Bitbucket.
|
199
416
|
# @return [String]
|
200
417
|
#
|
418
|
+
# @!attribute [rw] host_arn_filter
|
419
|
+
# Filters the list of connections to those associated with a specified
|
420
|
+
# host.
|
421
|
+
# @return [String]
|
422
|
+
#
|
201
423
|
# @!attribute [rw] max_results
|
202
424
|
# The maximum number of results to return in a single call. To
|
203
425
|
# retrieve the remaining results, make another call with the returned
|
@@ -214,8 +436,10 @@ module Aws::CodeStarconnections
|
|
214
436
|
#
|
215
437
|
class ListConnectionsInput < Struct.new(
|
216
438
|
:provider_type_filter,
|
439
|
+
:host_arn_filter,
|
217
440
|
:max_results,
|
218
441
|
:next_token)
|
442
|
+
SENSITIVE = []
|
219
443
|
include Aws::Structure
|
220
444
|
end
|
221
445
|
|
@@ -235,6 +459,55 @@ module Aws::CodeStarconnections
|
|
235
459
|
class ListConnectionsOutput < Struct.new(
|
236
460
|
:connections,
|
237
461
|
:next_token)
|
462
|
+
SENSITIVE = []
|
463
|
+
include Aws::Structure
|
464
|
+
end
|
465
|
+
|
466
|
+
# @note When making an API call, you may pass ListHostsInput
|
467
|
+
# data as a hash:
|
468
|
+
#
|
469
|
+
# {
|
470
|
+
# max_results: 1,
|
471
|
+
# next_token: "NextToken",
|
472
|
+
# }
|
473
|
+
#
|
474
|
+
# @!attribute [rw] max_results
|
475
|
+
# The maximum number of results to return in a single call. To
|
476
|
+
# retrieve the remaining results, make another call with the returned
|
477
|
+
# `nextToken` value.
|
478
|
+
# @return [Integer]
|
479
|
+
#
|
480
|
+
# @!attribute [rw] next_token
|
481
|
+
# The token that was returned from the previous `ListHosts` call,
|
482
|
+
# which can be used to return the next set of hosts in the list.
|
483
|
+
# @return [String]
|
484
|
+
#
|
485
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHostsInput AWS API Documentation
|
486
|
+
#
|
487
|
+
class ListHostsInput < Struct.new(
|
488
|
+
:max_results,
|
489
|
+
:next_token)
|
490
|
+
SENSITIVE = []
|
491
|
+
include Aws::Structure
|
492
|
+
end
|
493
|
+
|
494
|
+
# @!attribute [rw] hosts
|
495
|
+
# A list of hosts and the details for each host, such as status,
|
496
|
+
# endpoint, and provider type.
|
497
|
+
# @return [Array<Types::Host>]
|
498
|
+
#
|
499
|
+
# @!attribute [rw] next_token
|
500
|
+
# A token that can be used in the next `ListHosts` call. To view all
|
501
|
+
# items in the list, continue to call this operation with each
|
502
|
+
# subsequent token until no more `nextToken` values are returned.
|
503
|
+
# @return [String]
|
504
|
+
#
|
505
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHostsOutput AWS API Documentation
|
506
|
+
#
|
507
|
+
class ListHostsOutput < Struct.new(
|
508
|
+
:hosts,
|
509
|
+
:next_token)
|
510
|
+
SENSITIVE = []
|
238
511
|
include Aws::Structure
|
239
512
|
end
|
240
513
|
|
@@ -254,6 +527,7 @@ module Aws::CodeStarconnections
|
|
254
527
|
#
|
255
528
|
class ListTagsForResourceInput < Struct.new(
|
256
529
|
:resource_arn)
|
530
|
+
SENSITIVE = []
|
257
531
|
include Aws::Structure
|
258
532
|
end
|
259
533
|
|
@@ -266,6 +540,7 @@ module Aws::CodeStarconnections
|
|
266
540
|
#
|
267
541
|
class ListTagsForResourceOutput < Struct.new(
|
268
542
|
:tags)
|
543
|
+
SENSITIVE = []
|
269
544
|
include Aws::Structure
|
270
545
|
end
|
271
546
|
|
@@ -278,6 +553,21 @@ module Aws::CodeStarconnections
|
|
278
553
|
#
|
279
554
|
class ResourceNotFoundException < Struct.new(
|
280
555
|
:message)
|
556
|
+
SENSITIVE = []
|
557
|
+
include Aws::Structure
|
558
|
+
end
|
559
|
+
|
560
|
+
# Resource not found. Verify the ARN for the host resource and try
|
561
|
+
# again.
|
562
|
+
#
|
563
|
+
# @!attribute [rw] message
|
564
|
+
# @return [String]
|
565
|
+
#
|
566
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ResourceUnavailableException AWS API Documentation
|
567
|
+
#
|
568
|
+
class ResourceUnavailableException < Struct.new(
|
569
|
+
:message)
|
570
|
+
SENSITIVE = []
|
281
571
|
include Aws::Structure
|
282
572
|
end
|
283
573
|
|
@@ -306,6 +596,7 @@ module Aws::CodeStarconnections
|
|
306
596
|
class Tag < Struct.new(
|
307
597
|
:key,
|
308
598
|
:value)
|
599
|
+
SENSITIVE = []
|
309
600
|
include Aws::Structure
|
310
601
|
end
|
311
602
|
|
@@ -336,6 +627,7 @@ module Aws::CodeStarconnections
|
|
336
627
|
class TagResourceInput < Struct.new(
|
337
628
|
:resource_arn,
|
338
629
|
:tags)
|
630
|
+
SENSITIVE = []
|
339
631
|
include Aws::Structure
|
340
632
|
end
|
341
633
|
|
@@ -364,6 +656,7 @@ module Aws::CodeStarconnections
|
|
364
656
|
class UntagResourceInput < Struct.new(
|
365
657
|
:resource_arn,
|
366
658
|
:tag_keys)
|
659
|
+
SENSITIVE = []
|
367
660
|
include Aws::Structure
|
368
661
|
end
|
369
662
|
|
@@ -371,5 +664,51 @@ module Aws::CodeStarconnections
|
|
371
664
|
#
|
372
665
|
class UntagResourceOutput < Aws::EmptyStructure; end
|
373
666
|
|
667
|
+
# The VPC configuration provisioned for the host.
|
668
|
+
#
|
669
|
+
# @note When making an API call, you may pass VpcConfiguration
|
670
|
+
# data as a hash:
|
671
|
+
#
|
672
|
+
# {
|
673
|
+
# vpc_id: "VpcId", # required
|
674
|
+
# subnet_ids: ["SubnetId"], # required
|
675
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
676
|
+
# tls_certificate: "TlsCertificate",
|
677
|
+
# }
|
678
|
+
#
|
679
|
+
# @!attribute [rw] vpc_id
|
680
|
+
# The ID of the Amazon VPC connected to the infrastructure where your
|
681
|
+
# provider type is installed.
|
682
|
+
# @return [String]
|
683
|
+
#
|
684
|
+
# @!attribute [rw] subnet_ids
|
685
|
+
# The ID of the subnet or subnets associated with the Amazon VPC
|
686
|
+
# connected to the infrastructure where your provider type is
|
687
|
+
# installed.
|
688
|
+
# @return [Array<String>]
|
689
|
+
#
|
690
|
+
# @!attribute [rw] security_group_ids
|
691
|
+
# The ID of the security group or security groups associated with the
|
692
|
+
# Amazon VPC connected to the infrastructure where your provider type
|
693
|
+
# is installed.
|
694
|
+
# @return [Array<String>]
|
695
|
+
#
|
696
|
+
# @!attribute [rw] tls_certificate
|
697
|
+
# The value of the Transport Layer Security (TLS) certificate
|
698
|
+
# associated with the infrastructure where your provider type is
|
699
|
+
# installed.
|
700
|
+
# @return [String]
|
701
|
+
#
|
702
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/VpcConfiguration AWS API Documentation
|
703
|
+
#
|
704
|
+
class VpcConfiguration < Struct.new(
|
705
|
+
:vpc_id,
|
706
|
+
:subnet_ids,
|
707
|
+
:security_group_ids,
|
708
|
+
:tls_certificate)
|
709
|
+
SENSITIVE = []
|
710
|
+
include Aws::Structure
|
711
|
+
end
|
712
|
+
|
374
713
|
end
|
375
714
|
end
|
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.10.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: 2020-
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|