aws-sdk-codestarconnections 1.6.0 → 1.7.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: 270c5ea8266909bdc5064a25a4e84403c756d0c779bf9bc968641d2a3789fa82
4
+ data.tar.gz: fbb9f439f68a5500a6606ee276567515e7c405eac0d3232ec5e8f3919620d5d9
5
5
  SHA512:
6
- metadata.gz: cd5dbe0fee1942c4c0c4464b5103f9de1f12db4037d0dcaf3941ff7f0150069cd0edc6efcbe621cb2eb9500fefc3c6e6e9860bb5662e4709792552bd66f80191
7
- data.tar.gz: 389d65a933acd285b69d2892a438e3da45436055a39a57734f72e40d3b6c4ccfe7a455cac3cbb8ab18da98fee667e4f3524600193a363581233b4818d445214c
6
+ metadata.gz: c91934bd9cc5d3288c7c5cec6bebeca9fd603d77099c2d554b62b13d759cf4e739fdfe3a2f72c9b70cb47e3e1256d2c78c855d911ac5fdbea2c25b4c6eb5a82b
7
+ data.tar.gz: c69ad055481cd078cc1d46209c3219def78ff242d164a6702fe81b3e546af528fe5a55e24bbd03dfb30c33a17f7419bd14c4bc430a29a5754abc3dcedd609860
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-codestarconnections/customizations'
47
47
  # @service
48
48
  module Aws::CodeStarconnections
49
49
 
50
- GEM_VERSION = '1.6.0'
50
+ GEM_VERSION = '1.7.0'
51
51
 
52
52
  end
@@ -327,10 +327,9 @@ module Aws::CodeStarconnections
327
327
  # connection is in pending status until the third-party connection
328
328
  # handshake is completed from the console.
329
329
  #
330
- # @option params [required, String] :provider_type
330
+ # @option params [String] :provider_type
331
331
  # The name of the external provider where your third-party code
332
- # repository is configured. Currently, the valid provider type is
333
- # Bitbucket.
332
+ # repository is configured. The valid provider type is Bitbucket.
334
333
  #
335
334
  # @option params [required, String] :connection_name
336
335
  # The name of the connection to be created. The name must be unique in
@@ -339,6 +338,10 @@ module Aws::CodeStarconnections
339
338
  # @option params [Array<Types::Tag>] :tags
340
339
  # The key-value pair to use when tagging the resource.
341
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
+ #
342
345
  # @return [Types::CreateConnectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
343
346
  #
344
347
  # * {Types::CreateConnectionOutput#connection_arn #connection_arn} => String
@@ -347,7 +350,7 @@ module Aws::CodeStarconnections
347
350
  # @example Request syntax with placeholder values
348
351
  #
349
352
  # resp = client.create_connection({
350
- # provider_type: "Bitbucket", # required, accepts Bitbucket
353
+ # provider_type: "Bitbucket", # accepts Bitbucket, GitHubEnterpriseServer
351
354
  # connection_name: "ConnectionName", # required
352
355
  # tags: [
353
356
  # {
@@ -355,6 +358,7 @@ module Aws::CodeStarconnections
355
358
  # value: "TagValue", # required
356
359
  # },
357
360
  # ],
361
+ # host_arn: "HostArn",
358
362
  # })
359
363
  #
360
364
  # @example Response structure
@@ -373,6 +377,68 @@ module Aws::CodeStarconnections
373
377
  req.send_request(options)
374
378
  end
375
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
+
376
442
  # The connection to be deleted.
377
443
  #
378
444
  # @option params [required, String] :connection_arn
@@ -399,6 +465,34 @@ module Aws::CodeStarconnections
399
465
  req.send_request(options)
400
466
  end
401
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
+
402
496
  # Returns the connection ARN and details such as status, owner, and
403
497
  # provider type.
404
498
  #
@@ -419,9 +513,10 @@ module Aws::CodeStarconnections
419
513
  #
420
514
  # resp.connection.connection_name #=> String
421
515
  # resp.connection.connection_arn #=> String
422
- # resp.connection.provider_type #=> String, one of "Bitbucket"
516
+ # resp.connection.provider_type #=> String, one of "Bitbucket", "GitHubEnterpriseServer"
423
517
  # resp.connection.owner_account_id #=> String
424
518
  # resp.connection.connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
519
+ # resp.connection.host_arn #=> String
425
520
  #
426
521
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection AWS API Documentation
427
522
  #
@@ -432,12 +527,58 @@ module Aws::CodeStarconnections
432
527
  req.send_request(options)
433
528
  end
434
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
+
435
572
  # Lists the connections associated with your account.
436
573
  #
437
574
  # @option params [String] :provider_type_filter
438
575
  # Filters the list of connections to those associated with a specified
439
576
  # provider, such as Bitbucket.
440
577
  #
578
+ # @option params [String] :host_arn_filter
579
+ # Filters the list of connections to those associated with a specified
580
+ # host.
581
+ #
441
582
  # @option params [Integer] :max_results
442
583
  # The maximum number of results to return in a single call. To retrieve
443
584
  # the remaining results, make another call with the returned `nextToken`
@@ -457,7 +598,8 @@ module Aws::CodeStarconnections
457
598
  # @example Request syntax with placeholder values
458
599
  #
459
600
  # resp = client.list_connections({
460
- # provider_type_filter: "Bitbucket", # accepts Bitbucket
601
+ # provider_type_filter: "Bitbucket", # accepts Bitbucket, GitHubEnterpriseServer
602
+ # host_arn_filter: "HostArn",
461
603
  # max_results: 1,
462
604
  # next_token: "NextToken",
463
605
  # })
@@ -467,9 +609,10 @@ module Aws::CodeStarconnections
467
609
  # resp.connections #=> Array
468
610
  # resp.connections[0].connection_name #=> String
469
611
  # resp.connections[0].connection_arn #=> String
470
- # resp.connections[0].provider_type #=> String, one of "Bitbucket"
612
+ # resp.connections[0].provider_type #=> String, one of "Bitbucket", "GitHubEnterpriseServer"
471
613
  # resp.connections[0].owner_account_id #=> String
472
614
  # resp.connections[0].connection_status #=> String, one of "PENDING", "AVAILABLE", "ERROR"
615
+ # resp.connections[0].host_arn #=> String
473
616
  # resp.next_token #=> String
474
617
  #
475
618
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections AWS API Documentation
@@ -481,6 +624,57 @@ module Aws::CodeStarconnections
481
624
  req.send_request(options)
482
625
  end
483
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
+
484
678
  # Gets the set of key-value pairs (metadata) that are used to manage the
485
679
  # resource.
486
680
  #
@@ -585,7 +779,7 @@ module Aws::CodeStarconnections
585
779
  params: params,
586
780
  config: config)
587
781
  context[:gem_name] = 'aws-sdk-codestarconnections'
588
- context[:gem_version] = '1.6.0'
782
+ context[:gem_version] = '1.7.0'
589
783
  Seahorse::Client::Request.new(handlers, context)
590
784
  end
591
785
 
@@ -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, 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, 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, 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.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-06-23 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