aws-sdk-codestarconnections 1.2.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f57338ade8d32ea9f9a69515b0b46f8b8197e1bb1c1cb4518f0c2f0e16270c3
4
- data.tar.gz: f5bf92b660176e960913152e6b49698758bba44a241b1d94f7ec2c125a5010ec
3
+ metadata.gz: 270c5ea8266909bdc5064a25a4e84403c756d0c779bf9bc968641d2a3789fa82
4
+ data.tar.gz: fbb9f439f68a5500a6606ee276567515e7c405eac0d3232ec5e8f3919620d5d9
5
5
  SHA512:
6
- metadata.gz: 83de0dd3b1b8d5d234f14ffdba3d213f706ca2ed4e8e5837f25db4430d82463a92d0a04e2e1532c3a4cc9c8a7a8435477b74cbbd225e527a177718e5dbb14aa9
7
- data.tar.gz: c1006dcc8ae4dd6ade3702308ab4528629ee0d16bc62b436bcfb5fc6d3b5fd4a611ffa8ccb8cd85c01366f74dea9dcfae32fd19e9e7b773893ad4fae35fecf0a
6
+ metadata.gz: c91934bd9cc5d3288c7c5cec6bebeca9fd603d77099c2d554b62b13d759cf4e739fdfe3a2f72c9b70cb47e3e1256d2c78c855d911ac5fdbea2c25b4c6eb5a82b
7
+ data.tar.gz: c69ad055481cd078cc1d46209c3219def78ff242d164a6702fe81b3e546af528fe5a55e24bbd03dfb30c33a17f7419bd14c4bc430a29a5754abc3dcedd609860
@@ -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:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-codestarconnections/customizations'
45
47
  # @service
46
48
  module Aws::CodeStarconnections
47
49
 
48
- GEM_VERSION = '1.2.0'
50
+ GEM_VERSION = '1.7.0'
49
51
 
50
52
  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:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::CodeStarconnections
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
78
 
@@ -105,7 +109,7 @@ module Aws::CodeStarconnections
105
109
  # @option options [required, String] :region
106
110
  # The AWS region to connect to. The configured `:region` is
107
111
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
109
113
  #
110
114
  # * `Aws.config[:region]`
111
115
  # * `ENV['AWS_REGION']`
@@ -161,7 +165,7 @@ module Aws::CodeStarconnections
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::CodeStarconnections
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -323,10 +327,9 @@ module Aws::CodeStarconnections
323
327
  # connection is in pending status until the third-party connection
324
328
  # handshake is completed from the console.
325
329
  #
326
- # @option params [required, String] :provider_type
330
+ # @option params [String] :provider_type
327
331
  # The name of the external provider where your third-party code
328
- # repository is configured. Currently, the valid provider type is
329
- # Bitbucket.
332
+ # repository is configured. The valid provider type is Bitbucket.
330
333
  #
331
334
  # @option params [required, String] :connection_name
332
335
  # The name of the connection to be created. The name must be unique in
@@ -335,6 +338,10 @@ module Aws::CodeStarconnections
335
338
  # @option params [Array<Types::Tag>] :tags
336
339
  # The key-value pair to use when tagging the resource.
337
340
  #
341
+ # @option params [String] :host_arn
342
+ # The Amazon Resource Name (ARN) of the host associated with the
343
+ # connection to be created.
344
+ #
338
345
  # @return [Types::CreateConnectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
339
346
  #
340
347
  # * {Types::CreateConnectionOutput#connection_arn #connection_arn} => String
@@ -343,7 +350,7 @@ module Aws::CodeStarconnections
343
350
  # @example Request syntax with placeholder values
344
351
  #
345
352
  # resp = client.create_connection({
346
- # provider_type: "Bitbucket", # required, accepts Bitbucket
353
+ # provider_type: "Bitbucket", # accepts Bitbucket, GitHubEnterpriseServer
347
354
  # connection_name: "ConnectionName", # required
348
355
  # tags: [
349
356
  # {
@@ -351,6 +358,7 @@ module Aws::CodeStarconnections
351
358
  # value: "TagValue", # required
352
359
  # },
353
360
  # ],
361
+ # host_arn: "HostArn",
354
362
  # })
355
363
  #
356
364
  # @example Response structure
@@ -369,6 +377,68 @@ module Aws::CodeStarconnections
369
377
  req.send_request(options)
370
378
  end
371
379
 
380
+ # Creates a resource that represents the infrastructure where a
381
+ # third-party provider is installed. The host is used when you create
382
+ # connections to an installed third-party provider type, such as GitHub
383
+ # Enterprise Server. You create one host for all connections to that
384
+ # provider.
385
+ #
386
+ # <note markdown="1"> A host created through the CLI or the SDK is in `PENDING` status by
387
+ # default. You can make its status `AVAILABLE` by setting up the host
388
+ # in the console.
389
+ #
390
+ # </note>
391
+ #
392
+ # @option params [required, String] :name
393
+ # The name of the host to be created. The name must be unique in the
394
+ # calling AWS account.
395
+ #
396
+ # @option params [required, String] :provider_type
397
+ # The name of the installed provider to be associated with your
398
+ # connection. The host resource represents the infrastructure where your
399
+ # provider type is installed. The valid provider type is GitHub
400
+ # Enterprise Server.
401
+ #
402
+ # @option params [required, String] :provider_endpoint
403
+ # The endpoint of the infrastructure to be represented by the host after
404
+ # it is created.
405
+ #
406
+ # @option params [Types::VpcConfiguration] :vpc_configuration
407
+ # The VPC configuration to be provisioned for the host. A VPC must be
408
+ # configured and the infrastructure to be represented by the host must
409
+ # already be connected to the VPC.
410
+ #
411
+ # @return [Types::CreateHostOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
412
+ #
413
+ # * {Types::CreateHostOutput#host_arn #host_arn} => String
414
+ #
415
+ # @example Request syntax with placeholder values
416
+ #
417
+ # resp = client.create_host({
418
+ # name: "HostName", # required
419
+ # provider_type: "Bitbucket", # required, accepts Bitbucket, GitHubEnterpriseServer
420
+ # provider_endpoint: "Url", # required
421
+ # vpc_configuration: {
422
+ # vpc_id: "VpcId", # required
423
+ # subnet_ids: ["SubnetId"], # required
424
+ # security_group_ids: ["SecurityGroupId"], # required
425
+ # tls_certificate: "TlsCertificate",
426
+ # },
427
+ # })
428
+ #
429
+ # @example Response structure
430
+ #
431
+ # resp.host_arn #=> String
432
+ #
433
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateHost AWS API Documentation
434
+ #
435
+ # @overload create_host(params = {})
436
+ # @param [Hash] params ({})
437
+ def create_host(params = {}, options = {})
438
+ req = build_request(:create_host, params)
439
+ req.send_request(options)
440
+ end
441
+
372
442
  # The connection to be deleted.
373
443
  #
374
444
  # @option params [required, String] :connection_arn
@@ -395,6 +465,34 @@ module Aws::CodeStarconnections
395
465
  req.send_request(options)
396
466
  end
397
467
 
468
+ # The host to be deleted. Before you delete a host, all connections
469
+ # associated to the host must be deleted.
470
+ #
471
+ # <note markdown="1"> A host cannot be deleted if it is in the VPC\_CONFIG\_INITIALIZING or
472
+ # VPC\_CONFIG\_DELETING state.
473
+ #
474
+ # </note>
475
+ #
476
+ # @option params [required, String] :host_arn
477
+ # The Amazon Resource Name (ARN) of the host to be deleted.
478
+ #
479
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
480
+ #
481
+ # @example Request syntax with placeholder values
482
+ #
483
+ # resp = client.delete_host({
484
+ # host_arn: "HostArn", # required
485
+ # })
486
+ #
487
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteHost AWS API Documentation
488
+ #
489
+ # @overload delete_host(params = {})
490
+ # @param [Hash] params ({})
491
+ def delete_host(params = {}, options = {})
492
+ req = build_request(:delete_host, params)
493
+ req.send_request(options)
494
+ end
495
+
398
496
  # Returns the connection ARN and details such as status, owner, and
399
497
  # provider type.
400
498
  #
@@ -415,9 +513,10 @@ module Aws::CodeStarconnections
415
513
  #
416
514
  # resp.connection.connection_name #=> String
417
515
  # resp.connection.connection_arn #=> String
418
- # resp.connection.provider_type #=> String, one of "Bitbucket"
516
+ # resp.connection.provider_type #=> String, one of "Bitbucket", "GitHubEnterpriseServer"
419
517
  # resp.connection.owner_account_id #=> String
420
518
  # resp.connection.connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
519
+ # resp.connection.host_arn #=> String
421
520
  #
422
521
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection AWS API Documentation
423
522
  #
@@ -428,12 +527,58 @@ module Aws::CodeStarconnections
428
527
  req.send_request(options)
429
528
  end
430
529
 
530
+ # Returns the host ARN and details such as status, provider type,
531
+ # endpoint, and, if applicable, the VPC configuration.
532
+ #
533
+ # @option params [required, String] :host_arn
534
+ # The Amazon Resource Name (ARN) of the requested host.
535
+ #
536
+ # @return [Types::GetHostOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
537
+ #
538
+ # * {Types::GetHostOutput#name #name} => String
539
+ # * {Types::GetHostOutput#status #status} => String
540
+ # * {Types::GetHostOutput#provider_type #provider_type} => String
541
+ # * {Types::GetHostOutput#provider_endpoint #provider_endpoint} => String
542
+ # * {Types::GetHostOutput#vpc_configuration #vpc_configuration} => Types::VpcConfiguration
543
+ #
544
+ # @example Request syntax with placeholder values
545
+ #
546
+ # resp = client.get_host({
547
+ # host_arn: "HostArn", # required
548
+ # })
549
+ #
550
+ # @example Response structure
551
+ #
552
+ # resp.name #=> String
553
+ # resp.status #=> String
554
+ # resp.provider_type #=> String, one of "Bitbucket", "GitHubEnterpriseServer"
555
+ # resp.provider_endpoint #=> String
556
+ # resp.vpc_configuration.vpc_id #=> String
557
+ # resp.vpc_configuration.subnet_ids #=> Array
558
+ # resp.vpc_configuration.subnet_ids[0] #=> String
559
+ # resp.vpc_configuration.security_group_ids #=> Array
560
+ # resp.vpc_configuration.security_group_ids[0] #=> String
561
+ # resp.vpc_configuration.tls_certificate #=> String
562
+ #
563
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost AWS API Documentation
564
+ #
565
+ # @overload get_host(params = {})
566
+ # @param [Hash] params ({})
567
+ def get_host(params = {}, options = {})
568
+ req = build_request(:get_host, params)
569
+ req.send_request(options)
570
+ end
571
+
431
572
  # Lists the connections associated with your account.
432
573
  #
433
574
  # @option params [String] :provider_type_filter
434
575
  # Filters the list of connections to those associated with a specified
435
576
  # provider, such as Bitbucket.
436
577
  #
578
+ # @option params [String] :host_arn_filter
579
+ # Filters the list of connections to those associated with a specified
580
+ # host.
581
+ #
437
582
  # @option params [Integer] :max_results
438
583
  # The maximum number of results to return in a single call. To retrieve
439
584
  # the remaining results, make another call with the returned `nextToken`
@@ -453,7 +598,8 @@ module Aws::CodeStarconnections
453
598
  # @example Request syntax with placeholder values
454
599
  #
455
600
  # resp = client.list_connections({
456
- # provider_type_filter: "Bitbucket", # accepts Bitbucket
601
+ # provider_type_filter: "Bitbucket", # accepts Bitbucket, GitHubEnterpriseServer
602
+ # host_arn_filter: "HostArn",
457
603
  # max_results: 1,
458
604
  # next_token: "NextToken",
459
605
  # })
@@ -463,9 +609,10 @@ module Aws::CodeStarconnections
463
609
  # resp.connections #=> Array
464
610
  # resp.connections[0].connection_name #=> String
465
611
  # resp.connections[0].connection_arn #=> String
466
- # resp.connections[0].provider_type #=> String, one of "Bitbucket"
612
+ # resp.connections[0].provider_type #=> String, one of "Bitbucket", "GitHubEnterpriseServer"
467
613
  # resp.connections[0].owner_account_id #=> String
468
614
  # resp.connections[0].connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
615
+ # resp.connections[0].host_arn #=> String
469
616
  # resp.next_token #=> String
470
617
  #
471
618
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections AWS API Documentation
@@ -477,6 +624,57 @@ module Aws::CodeStarconnections
477
624
  req.send_request(options)
478
625
  end
479
626
 
627
+ # Lists the hosts associated with your account.
628
+ #
629
+ # @option params [Integer] :max_results
630
+ # The maximum number of results to return in a single call. To retrieve
631
+ # the remaining results, make another call with the returned `nextToken`
632
+ # value.
633
+ #
634
+ # @option params [String] :next_token
635
+ # The token that was returned from the previous `ListHosts` call, which
636
+ # can be used to return the next set of hosts in the list.
637
+ #
638
+ # @return [Types::ListHostsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
639
+ #
640
+ # * {Types::ListHostsOutput#hosts #hosts} => Array&lt;Types::Host&gt;
641
+ # * {Types::ListHostsOutput#next_token #next_token} => String
642
+ #
643
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
644
+ #
645
+ # @example Request syntax with placeholder values
646
+ #
647
+ # resp = client.list_hosts({
648
+ # max_results: 1,
649
+ # next_token: "NextToken",
650
+ # })
651
+ #
652
+ # @example Response structure
653
+ #
654
+ # resp.hosts #=> Array
655
+ # resp.hosts[0].name #=> String
656
+ # resp.hosts[0].host_arn #=> String
657
+ # resp.hosts[0].provider_type #=> String, one of "Bitbucket", "GitHubEnterpriseServer"
658
+ # resp.hosts[0].provider_endpoint #=> String
659
+ # resp.hosts[0].vpc_configuration.vpc_id #=> String
660
+ # resp.hosts[0].vpc_configuration.subnet_ids #=> Array
661
+ # resp.hosts[0].vpc_configuration.subnet_ids[0] #=> String
662
+ # resp.hosts[0].vpc_configuration.security_group_ids #=> Array
663
+ # resp.hosts[0].vpc_configuration.security_group_ids[0] #=> String
664
+ # resp.hosts[0].vpc_configuration.tls_certificate #=> String
665
+ # resp.hosts[0].status #=> String
666
+ # resp.hosts[0].status_message #=> String
667
+ # resp.next_token #=> String
668
+ #
669
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHosts AWS API Documentation
670
+ #
671
+ # @overload list_hosts(params = {})
672
+ # @param [Hash] params ({})
673
+ def list_hosts(params = {}, options = {})
674
+ req = build_request(:list_hosts, params)
675
+ req.send_request(options)
676
+ end
677
+
480
678
  # Gets the set of key-value pairs (metadata) that are used to manage the
481
679
  # resource.
482
680
  #
@@ -581,7 +779,7 @@ module Aws::CodeStarconnections
581
779
  params: params,
582
780
  config: config)
583
781
  context[:gem_name] = 'aws-sdk-codestarconnections'
584
- context[:gem_version] = '1.2.0'
782
+ context[:gem_version] = '1.7.0'
585
783
  Seahorse::Client::Request.new(handlers, context)
586
784
  end
587
785
 
@@ -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, required: true, location_name: "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:
@@ -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
- # The AWS::CodeStarConnections::Connection resource can be used to
12
- # 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.
13
15
  #
14
- # Note: A connection created through CloudFormation is in `PENDING`
15
- # status by default. You can make its status `AVAILABLE` by editing
16
- # 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.
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. Currently, the valid provider type is
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", # required, accepts Bitbucket
72
+ # provider_type: "Bitbucket", # accepts Bitbucket, 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. Currently, the valid provider type is
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, 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, 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.2.0
4
+ version: 1.7.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-05-06 00:00:00.000000000 Z
11
+ date: 2020-06-29 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.71.0
22
+ version: 3.99.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.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement