aws-sdk-codestarconnections 1.6.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ceab68df726b4e3cc9525e4dc9f6c22e42c54ffdd8a1d42a8a03bd34872ced74
4
- data.tar.gz: 0e9d5e4000b4bb0c2af37a853d3c74dc49a1b90d38971f116c21335de6d2a533
3
+ metadata.gz: 21b43b59c5cd3a7388e20f626171c69572015615dbbf1a67cf3b6fa0cccb94d9
4
+ data.tar.gz: '0377992fbe7c369093c04cadbb772ceae290b153b668eba1b3a3db64bbe89f87'
5
5
  SHA512:
6
- metadata.gz: cd5dbe0fee1942c4c0c4464b5103f9de1f12db4037d0dcaf3941ff7f0150069cd0edc6efcbe621cb2eb9500fefc3c6e6e9860bb5662e4709792552bd66f80191
7
- data.tar.gz: 389d65a933acd285b69d2892a438e3da45436055a39a57734f72e40d3b6c4ccfe7a455cac3cbb8ab18da98fee667e4f3524600193a363581233b4818d445214c
6
+ metadata.gz: ba09cb09c1d3fd255a555b113559ac11339349a1dbf28ac03d3edca5348898d4dd0a616384c3a08e3b6e01d9950a0ee8466d284f701c50b2998a8c66ca6a0c23
7
+ data.tar.gz: 27742505207e7ca6ce60df0473567c438e7b4e0f45fb71cba59678b1bf4c9d63002210c2ca4cf878115c1ef29df13ef8259dfe219c2a2f82d079d4d3c2395be6
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-codestarconnections/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::CodeStarconnections
49
50
 
50
- GEM_VERSION = '1.6.0'
51
+ GEM_VERSION = '1.11.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::CodeStarconnections
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
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
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::CodeStarconnections
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # 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.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -327,10 +342,9 @@ module Aws::CodeStarconnections
327
342
  # connection is in pending status until the third-party connection
328
343
  # handshake is completed from the console.
329
344
  #
330
- # @option params [required, String] :provider_type
345
+ # @option params [String] :provider_type
331
346
  # The name of the external provider where your third-party code
332
- # repository is configured. Currently, the valid provider type is
333
- # Bitbucket.
347
+ # repository is configured. The valid provider type is Bitbucket.
334
348
  #
335
349
  # @option params [required, String] :connection_name
336
350
  # The name of the connection to be created. The name must be unique in
@@ -339,6 +353,10 @@ module Aws::CodeStarconnections
339
353
  # @option params [Array<Types::Tag>] :tags
340
354
  # The key-value pair to use when tagging the resource.
341
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
+ #
342
360
  # @return [Types::CreateConnectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
343
361
  #
344
362
  # * {Types::CreateConnectionOutput#connection_arn #connection_arn} => String
@@ -347,7 +365,7 @@ module Aws::CodeStarconnections
347
365
  # @example Request syntax with placeholder values
348
366
  #
349
367
  # resp = client.create_connection({
350
- # provider_type: "Bitbucket", # required, accepts Bitbucket
368
+ # provider_type: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
351
369
  # connection_name: "ConnectionName", # required
352
370
  # tags: [
353
371
  # {
@@ -355,6 +373,7 @@ module Aws::CodeStarconnections
355
373
  # value: "TagValue", # required
356
374
  # },
357
375
  # ],
376
+ # host_arn: "HostArn",
358
377
  # })
359
378
  #
360
379
  # @example Response structure
@@ -373,6 +392,68 @@ module Aws::CodeStarconnections
373
392
  req.send_request(options)
374
393
  end
375
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
+
376
457
  # The connection to be deleted.
377
458
  #
378
459
  # @option params [required, String] :connection_arn
@@ -399,6 +480,34 @@ module Aws::CodeStarconnections
399
480
  req.send_request(options)
400
481
  end
401
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
+
402
511
  # Returns the connection ARN and details such as status, owner, and
403
512
  # provider type.
404
513
  #
@@ -419,9 +528,10 @@ module Aws::CodeStarconnections
419
528
  #
420
529
  # resp.connection.connection_name #=> String
421
530
  # resp.connection.connection_arn #=> String
422
- # resp.connection.provider_type #=> String, one of "Bitbucket"
531
+ # resp.connection.provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
423
532
  # resp.connection.owner_account_id #=> String
424
533
  # resp.connection.connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
534
+ # resp.connection.host_arn #=> String
425
535
  #
426
536
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection AWS API Documentation
427
537
  #
@@ -432,12 +542,58 @@ module Aws::CodeStarconnections
432
542
  req.send_request(options)
433
543
  end
434
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
+
435
587
  # Lists the connections associated with your account.
436
588
  #
437
589
  # @option params [String] :provider_type_filter
438
590
  # Filters the list of connections to those associated with a specified
439
591
  # provider, such as Bitbucket.
440
592
  #
593
+ # @option params [String] :host_arn_filter
594
+ # Filters the list of connections to those associated with a specified
595
+ # host.
596
+ #
441
597
  # @option params [Integer] :max_results
442
598
  # The maximum number of results to return in a single call. To retrieve
443
599
  # the remaining results, make another call with the returned `nextToken`
@@ -457,7 +613,8 @@ module Aws::CodeStarconnections
457
613
  # @example Request syntax with placeholder values
458
614
  #
459
615
  # resp = client.list_connections({
460
- # provider_type_filter: "Bitbucket", # accepts Bitbucket
616
+ # provider_type_filter: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
617
+ # host_arn_filter: "HostArn",
461
618
  # max_results: 1,
462
619
  # next_token: "NextToken",
463
620
  # })
@@ -467,9 +624,10 @@ module Aws::CodeStarconnections
467
624
  # resp.connections #=> Array
468
625
  # resp.connections[0].connection_name #=> String
469
626
  # resp.connections[0].connection_arn #=> String
470
- # resp.connections[0].provider_type #=> String, one of "Bitbucket"
627
+ # resp.connections[0].provider_type #=> String, one of "Bitbucket", "GitHub", "GitHubEnterpriseServer"
471
628
  # resp.connections[0].owner_account_id #=> String
472
629
  # resp.connections[0].connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
630
+ # resp.connections[0].host_arn #=> String
473
631
  # resp.next_token #=> String
474
632
  #
475
633
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections AWS API Documentation
@@ -481,6 +639,57 @@ module Aws::CodeStarconnections
481
639
  req.send_request(options)
482
640
  end
483
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&lt;Types::Host&gt;
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
+
484
693
  # Gets the set of key-value pairs (metadata) that are used to manage the
485
694
  # resource.
486
695
  #
@@ -585,7 +794,7 @@ module Aws::CodeStarconnections
585
794
  params: params,
586
795
  config: config)
587
796
  context[:gem_name] = 'aws-sdk-codestarconnections'
588
- context[:gem_version] = '1.6.0'
797
+ context[:gem_version] = '1.11.0'
589
798
  Seahorse::Client::Request.new(handlers, context)
590
799
  end
591
800
 
@@ -22,20 +22,39 @@ module Aws::CodeStarconnections
22
22
  ConnectionStatus = Shapes::StringShape.new(name: 'ConnectionStatus')
23
23
  CreateConnectionInput = Shapes::StructureShape.new(name: 'CreateConnectionInput')
24
24
  CreateConnectionOutput = Shapes::StructureShape.new(name: 'CreateConnectionOutput')
25
+ CreateHostInput = Shapes::StructureShape.new(name: 'CreateHostInput')
26
+ CreateHostOutput = Shapes::StructureShape.new(name: 'CreateHostOutput')
25
27
  DeleteConnectionInput = Shapes::StructureShape.new(name: 'DeleteConnectionInput')
26
28
  DeleteConnectionOutput = Shapes::StructureShape.new(name: 'DeleteConnectionOutput')
29
+ DeleteHostInput = Shapes::StructureShape.new(name: 'DeleteHostInput')
30
+ DeleteHostOutput = Shapes::StructureShape.new(name: 'DeleteHostOutput')
27
31
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
28
32
  GetConnectionInput = Shapes::StructureShape.new(name: 'GetConnectionInput')
29
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')
30
42
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
31
43
  ListConnectionsInput = Shapes::StructureShape.new(name: 'ListConnectionsInput')
32
44
  ListConnectionsOutput = Shapes::StructureShape.new(name: 'ListConnectionsOutput')
45
+ ListHostsInput = Shapes::StructureShape.new(name: 'ListHostsInput')
46
+ ListHostsOutput = Shapes::StructureShape.new(name: 'ListHostsOutput')
33
47
  ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
34
48
  ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
35
49
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
36
50
  NextToken = Shapes::StringShape.new(name: 'NextToken')
37
51
  ProviderType = Shapes::StringShape.new(name: 'ProviderType')
38
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')
39
58
  Tag = Shapes::StructureShape.new(name: 'Tag')
40
59
  TagKey = Shapes::StringShape.new(name: 'TagKey')
41
60
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
@@ -43,42 +62,84 @@ module Aws::CodeStarconnections
43
62
  TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
44
63
  TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
45
64
  TagValue = Shapes::StringShape.new(name: 'TagValue')
65
+ TlsCertificate = Shapes::StringShape.new(name: 'TlsCertificate')
46
66
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
47
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')
48
71
 
49
72
  Connection.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, location_name: "ConnectionName"))
50
73
  Connection.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, location_name: "ConnectionArn"))
51
74
  Connection.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
52
75
  Connection.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "OwnerAccountId"))
53
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"))
54
78
  Connection.struct_class = Types::Connection
55
79
 
56
80
  ConnectionList.member = Shapes::ShapeRef.new(shape: Connection)
57
81
 
58
- CreateConnectionInput.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, required: true, location_name: "ProviderType"))
82
+ CreateConnectionInput.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
59
83
  CreateConnectionInput.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, required: true, location_name: "ConnectionName"))
60
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"))
61
86
  CreateConnectionInput.struct_class = Types::CreateConnectionInput
62
87
 
63
88
  CreateConnectionOutput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
64
89
  CreateConnectionOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
65
90
  CreateConnectionOutput.struct_class = Types::CreateConnectionOutput
66
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
+
67
101
  DeleteConnectionInput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
68
102
  DeleteConnectionInput.struct_class = Types::DeleteConnectionInput
69
103
 
70
104
  DeleteConnectionOutput.struct_class = Types::DeleteConnectionOutput
71
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
+
72
111
  GetConnectionInput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
73
112
  GetConnectionInput.struct_class = Types::GetConnectionInput
74
113
 
75
114
  GetConnectionOutput.add_member(:connection, Shapes::ShapeRef.new(shape: Connection, location_name: "Connection"))
76
115
  GetConnectionOutput.struct_class = Types::GetConnectionOutput
77
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
+
78
138
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
79
139
  LimitExceededException.struct_class = Types::LimitExceededException
80
140
 
81
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"))
82
143
  ListConnectionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
83
144
  ListConnectionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
84
145
  ListConnectionsInput.struct_class = Types::ListConnectionsInput
@@ -87,6 +148,14 @@ module Aws::CodeStarconnections
87
148
  ListConnectionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
88
149
  ListConnectionsOutput.struct_class = Types::ListConnectionsOutput
89
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
+
90
159
  ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
91
160
  ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
92
161
 
@@ -96,6 +165,13 @@ module Aws::CodeStarconnections
96
165
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
97
166
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
98
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
+
99
175
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
100
176
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
101
177
  Tag.struct_class = Types::Tag
@@ -116,6 +192,12 @@ module Aws::CodeStarconnections
116
192
 
117
193
  UntagResourceOutput.struct_class = Types::UntagResourceOutput
118
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
+
119
201
 
120
202
  # @api private
121
203
  API = Seahorse::Model::Api.new.tap do |api|
@@ -142,6 +224,17 @@ module Aws::CodeStarconnections
142
224
  o.input = Shapes::ShapeRef.new(shape: CreateConnectionInput)
143
225
  o.output = Shapes::ShapeRef.new(shape: CreateConnectionOutput)
144
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)
145
238
  end)
146
239
 
147
240
  api.add_operation(:delete_connection, Seahorse::Model::Operation.new.tap do |o|
@@ -153,6 +246,16 @@ module Aws::CodeStarconnections
153
246
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
154
247
  end)
155
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
+
156
259
  api.add_operation(:get_connection, Seahorse::Model::Operation.new.tap do |o|
157
260
  o.name = "GetConnection"
158
261
  o.http_method = "POST"
@@ -160,6 +263,16 @@ module Aws::CodeStarconnections
160
263
  o.input = Shapes::ShapeRef.new(shape: GetConnectionInput)
161
264
  o.output = Shapes::ShapeRef.new(shape: GetConnectionOutput)
162
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)
163
276
  end)
164
277
 
165
278
  api.add_operation(:list_connections, Seahorse::Model::Operation.new.tap do |o|
@@ -176,6 +289,20 @@ module Aws::CodeStarconnections
176
289
  )
177
290
  end)
178
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
+
179
306
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
180
307
  o.name = "ListTagsForResource"
181
308
  o.http_method = "POST"
@@ -29,6 +29,7 @@ module Aws::CodeStarconnections
29
29
  # ## Error Classes
30
30
  # * {LimitExceededException}
31
31
  # * {ResourceNotFoundException}
32
+ # * {ResourceUnavailableException}
32
33
  #
33
34
  # Additionally, error classes are dynamically generated for service errors based on the error code
34
35
  # if they are not defined above.
@@ -66,5 +67,20 @@ module Aws::CodeStarconnections
66
67
  end
67
68
  end
68
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
+
69
85
  end
70
86
  end
@@ -10,12 +10,12 @@
10
10
  module Aws::CodeStarconnections
11
11
  module Types
12
12
 
13
- # The AWS::CodeStarConnections::Connection resource can be used to
14
- # connect external source providers with services like AWS CodePipeline.
13
+ # A resource that is used to connect third-party source providers with
14
+ # services like AWS CodePipeline.
15
15
  #
16
- # Note: A connection created through CloudFormation is in `PENDING`
17
- # status by default. You can make its status `AVAILABLE` by editing
18
- # the connection in the CodePipeline console.
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.
19
19
  #
20
20
  # @!attribute [rw] connection_name
21
21
  # The name of the connection. Connection names must be unique in an
@@ -34,8 +34,7 @@ module Aws::CodeStarconnections
34
34
  #
35
35
  # @!attribute [rw] provider_type
36
36
  # The name of the external provider where your third-party code
37
- # repository is configured. Currently, the valid provider type is
38
- # Bitbucket.
37
+ # repository is configured. The valid provider type is Bitbucket.
39
38
  # @return [String]
40
39
  #
41
40
  # @!attribute [rw] owner_account_id
@@ -48,6 +47,11 @@ module Aws::CodeStarconnections
48
47
  # The current status of the connection.
49
48
  # @return [String]
50
49
  #
50
+ # @!attribute [rw] host_arn
51
+ # The Amazon Resource Name (ARN) of the host associated with the
52
+ # connection.
53
+ # @return [String]
54
+ #
51
55
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/Connection AWS API Documentation
52
56
  #
53
57
  class Connection < Struct.new(
@@ -55,7 +59,8 @@ module Aws::CodeStarconnections
55
59
  :connection_arn,
56
60
  :provider_type,
57
61
  :owner_account_id,
58
- :connection_status)
62
+ :connection_status,
63
+ :host_arn)
59
64
  SENSITIVE = []
60
65
  include Aws::Structure
61
66
  end
@@ -64,7 +69,7 @@ module Aws::CodeStarconnections
64
69
  # data as a hash:
65
70
  #
66
71
  # {
67
- # provider_type: "Bitbucket", # required, accepts Bitbucket
72
+ # provider_type: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
68
73
  # connection_name: "ConnectionName", # required
69
74
  # tags: [
70
75
  # {
@@ -72,12 +77,12 @@ module Aws::CodeStarconnections
72
77
  # value: "TagValue", # required
73
78
  # },
74
79
  # ],
80
+ # host_arn: "HostArn",
75
81
  # }
76
82
  #
77
83
  # @!attribute [rw] provider_type
78
84
  # The name of the external provider where your third-party code
79
- # repository is configured. Currently, the valid provider type is
80
- # Bitbucket.
85
+ # repository is configured. The valid provider type is Bitbucket.
81
86
  # @return [String]
82
87
  #
83
88
  # @!attribute [rw] connection_name
@@ -89,12 +94,18 @@ module Aws::CodeStarconnections
89
94
  # The key-value pair to use when tagging the resource.
90
95
  # @return [Array<Types::Tag>]
91
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
+ #
92
102
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnectionInput AWS API Documentation
93
103
  #
94
104
  class CreateConnectionInput < Struct.new(
95
105
  :provider_type,
96
106
  :connection_name,
97
- :tags)
107
+ :tags,
108
+ :host_arn)
98
109
  SENSITIVE = []
99
110
  include Aws::Structure
100
111
  end
@@ -122,6 +133,67 @@ module Aws::CodeStarconnections
122
133
  include Aws::Structure
123
134
  end
124
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 = []
194
+ include Aws::Structure
195
+ end
196
+
125
197
  # @note When making an API call, you may pass DeleteConnectionInput
126
198
  # data as a hash:
127
199
  #
@@ -149,6 +221,29 @@ module Aws::CodeStarconnections
149
221
  #
150
222
  class DeleteConnectionOutput < Aws::EmptyStructure; end
151
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
+
152
247
  # @note When making an API call, you may pass GetConnectionInput
153
248
  # data as a hash:
154
249
  #
@@ -180,6 +275,118 @@ module Aws::CodeStarconnections
180
275
  include Aws::Structure
181
276
  end
182
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 = []
387
+ include Aws::Structure
388
+ end
389
+
183
390
  # Exceeded the maximum limit for connections.
184
391
  #
185
392
  # @!attribute [rw] message
@@ -197,7 +404,8 @@ module Aws::CodeStarconnections
197
404
  # data as a hash:
198
405
  #
199
406
  # {
200
- # provider_type_filter: "Bitbucket", # accepts Bitbucket
407
+ # provider_type_filter: "Bitbucket", # accepts Bitbucket, GitHub, GitHubEnterpriseServer
408
+ # host_arn_filter: "HostArn",
201
409
  # max_results: 1,
202
410
  # next_token: "NextToken",
203
411
  # }
@@ -207,6 +415,11 @@ module Aws::CodeStarconnections
207
415
  # provider, such as Bitbucket.
208
416
  # @return [String]
209
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
+ #
210
423
  # @!attribute [rw] max_results
211
424
  # The maximum number of results to return in a single call. To
212
425
  # retrieve the remaining results, make another call with the returned
@@ -223,6 +436,7 @@ module Aws::CodeStarconnections
223
436
  #
224
437
  class ListConnectionsInput < Struct.new(
225
438
  :provider_type_filter,
439
+ :host_arn_filter,
226
440
  :max_results,
227
441
  :next_token)
228
442
  SENSITIVE = []
@@ -249,6 +463,54 @@ module Aws::CodeStarconnections
249
463
  include Aws::Structure
250
464
  end
251
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 = []
511
+ include Aws::Structure
512
+ end
513
+
252
514
  # @note When making an API call, you may pass ListTagsForResourceInput
253
515
  # data as a hash:
254
516
  #
@@ -295,6 +557,20 @@ module Aws::CodeStarconnections
295
557
  include Aws::Structure
296
558
  end
297
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 = []
571
+ include Aws::Structure
572
+ end
573
+
298
574
  # A tag is a key-value pair that is used to manage the resource.
299
575
  #
300
576
  # This tag is available for use by AWS services that support tags.
@@ -388,5 +664,51 @@ module Aws::CodeStarconnections
388
664
  #
389
665
  class UntagResourceOutput < Aws::EmptyStructure; end
390
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
+
391
713
  end
392
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.6.0
4
+ version: 1.11.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-06-23 00:00:00.000000000 Z
11
+ date: 2020-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.99.0
22
+ version: 3.109.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.99.0
32
+ version: 3.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement