aws-sdk-codestarconnections 1.11.0 → 1.12.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: 21b43b59c5cd3a7388e20f626171c69572015615dbbf1a67cf3b6fa0cccb94d9
4
- data.tar.gz: '0377992fbe7c369093c04cadbb772ceae290b153b668eba1b3a3db64bbe89f87'
3
+ metadata.gz: 0e2ba8e436a92f014fe24a00248387f2f3bd8e47fec4f7f6bba9650d2bdf997b
4
+ data.tar.gz: 9e4fdceb2827ca107a1f0f8f8bc05d7bdc1bb9a2f3a50480752648eb5a5eb2cc
5
5
  SHA512:
6
- metadata.gz: ba09cb09c1d3fd255a555b113559ac11339349a1dbf28ac03d3edca5348898d4dd0a616384c3a08e3b6e01d9950a0ee8466d284f701c50b2998a8c66ca6a0c23
7
- data.tar.gz: 27742505207e7ca6ce60df0473567c438e7b4e0f45fb71cba59678b1bf4c9d63002210c2ca4cf878115c1ef29df13ef8259dfe219c2a2f82d079d4d3c2395be6
6
+ metadata.gz: 6a5b43ede63d06f33492e52a7cb17b5808bcaedce3c96ec671a13180e2b24c924dd8b03826ef5b4450edb64d4bbea3316a74a9d1f40231d0b7330a28fc5a994e
7
+ data.tar.gz: e2a203fbb5e683cacfdf5d425a0d7f8dc26047aa536dc5c8eca28e3b5679f8d38974c4fb4fea6b90eb0b53529dd3a18bed5833d081e190098522930268d4f7bd
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-codestarconnections/customizations'
48
48
  # @!group service
49
49
  module Aws::CodeStarconnections
50
50
 
51
- GEM_VERSION = '1.11.0'
51
+ GEM_VERSION = '1.12.0'
52
52
 
53
53
  end
@@ -344,7 +344,7 @@ module Aws::CodeStarconnections
344
344
  #
345
345
  # @option params [String] :provider_type
346
346
  # The name of the external provider where your third-party code
347
- # repository is configured. The valid provider type is Bitbucket.
347
+ # repository is configured.
348
348
  #
349
349
  # @option params [required, String] :connection_name
350
350
  # The name of the connection to be created. The name must be unique in
@@ -781,6 +781,43 @@ module Aws::CodeStarconnections
781
781
  req.send_request(options)
782
782
  end
783
783
 
784
+ # Updates a specified host with the provided configurations.
785
+ #
786
+ # @option params [required, String] :host_arn
787
+ # The Amazon Resource Name (ARN) of the host to be updated.
788
+ #
789
+ # @option params [String] :provider_endpoint
790
+ # The URL or endpoint of the host to be updated.
791
+ #
792
+ # @option params [Types::VpcConfiguration] :vpc_configuration
793
+ # The VPC configuration of the host to be updated. A VPC must be
794
+ # configured and the infrastructure to be represented by the host must
795
+ # already be connected to the VPC.
796
+ #
797
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
798
+ #
799
+ # @example Request syntax with placeholder values
800
+ #
801
+ # resp = client.update_host({
802
+ # host_arn: "HostArn", # required
803
+ # provider_endpoint: "Url",
804
+ # vpc_configuration: {
805
+ # vpc_id: "VpcId", # required
806
+ # subnet_ids: ["SubnetId"], # required
807
+ # security_group_ids: ["SecurityGroupId"], # required
808
+ # tls_certificate: "TlsCertificate",
809
+ # },
810
+ # })
811
+ #
812
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateHost AWS API Documentation
813
+ #
814
+ # @overload update_host(params = {})
815
+ # @param [Hash] params ({})
816
+ def update_host(params = {}, options = {})
817
+ req = build_request(:update_host, params)
818
+ req.send_request(options)
819
+ end
820
+
784
821
  # @!endgroup
785
822
 
786
823
  # @param params ({})
@@ -794,7 +831,7 @@ module Aws::CodeStarconnections
794
831
  params: params,
795
832
  config: config)
796
833
  context[:gem_name] = 'aws-sdk-codestarconnections'
797
- context[:gem_version] = '1.11.0'
834
+ context[:gem_version] = '1.12.0'
798
835
  Seahorse::Client::Request.new(handlers, context)
799
836
  end
800
837
 
@@ -15,6 +15,7 @@ module Aws::CodeStarconnections
15
15
 
16
16
  AccountId = Shapes::StringShape.new(name: 'AccountId')
17
17
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
18
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
18
19
  Connection = Shapes::StructureShape.new(name: 'Connection')
19
20
  ConnectionArn = Shapes::StringShape.new(name: 'ConnectionArn')
20
21
  ConnectionList = Shapes::ListShape.new(name: 'ConnectionList')
@@ -63,12 +64,18 @@ module Aws::CodeStarconnections
63
64
  TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
64
65
  TagValue = Shapes::StringShape.new(name: 'TagValue')
65
66
  TlsCertificate = Shapes::StringShape.new(name: 'TlsCertificate')
67
+ UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
66
68
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
67
69
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
70
+ UpdateHostInput = Shapes::StructureShape.new(name: 'UpdateHostInput')
71
+ UpdateHostOutput = Shapes::StructureShape.new(name: 'UpdateHostOutput')
68
72
  Url = Shapes::StringShape.new(name: 'Url')
69
73
  VpcConfiguration = Shapes::StructureShape.new(name: 'VpcConfiguration')
70
74
  VpcId = Shapes::StringShape.new(name: 'VpcId')
71
75
 
76
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
77
+ ConflictException.struct_class = Types::ConflictException
78
+
72
79
  Connection.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, location_name: "ConnectionName"))
73
80
  Connection.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, location_name: "ConnectionArn"))
74
81
  Connection.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
@@ -186,12 +193,22 @@ module Aws::CodeStarconnections
186
193
 
187
194
  TagResourceOutput.struct_class = Types::TagResourceOutput
188
195
 
196
+ UnsupportedOperationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
197
+ UnsupportedOperationException.struct_class = Types::UnsupportedOperationException
198
+
189
199
  UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
190
200
  UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
191
201
  UntagResourceInput.struct_class = Types::UntagResourceInput
192
202
 
193
203
  UntagResourceOutput.struct_class = Types::UntagResourceOutput
194
204
 
205
+ UpdateHostInput.add_member(:host_arn, Shapes::ShapeRef.new(shape: HostArn, required: true, location_name: "HostArn"))
206
+ UpdateHostInput.add_member(:provider_endpoint, Shapes::ShapeRef.new(shape: Url, location_name: "ProviderEndpoint"))
207
+ UpdateHostInput.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "VpcConfiguration"))
208
+ UpdateHostInput.struct_class = Types::UpdateHostInput
209
+
210
+ UpdateHostOutput.struct_class = Types::UpdateHostOutput
211
+
195
212
  VpcConfiguration.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "VpcId"))
196
213
  VpcConfiguration.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "SubnetIds"))
197
214
  VpcConfiguration.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, required: true, location_name: "SecurityGroupIds"))
@@ -273,6 +290,7 @@ module Aws::CodeStarconnections
273
290
  o.input = Shapes::ShapeRef.new(shape: GetHostInput)
274
291
  o.output = Shapes::ShapeRef.new(shape: GetHostOutput)
275
292
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
293
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
276
294
  end)
277
295
 
278
296
  api.add_operation(:list_connections, Seahorse::Model::Operation.new.tap do |o|
@@ -330,6 +348,18 @@ module Aws::CodeStarconnections
330
348
  o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
331
349
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
332
350
  end)
351
+
352
+ api.add_operation(:update_host, Seahorse::Model::Operation.new.tap do |o|
353
+ o.name = "UpdateHost"
354
+ o.http_method = "POST"
355
+ o.http_request_uri = "/"
356
+ o.input = Shapes::ShapeRef.new(shape: UpdateHostInput)
357
+ o.output = Shapes::ShapeRef.new(shape: UpdateHostOutput)
358
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
359
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
360
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
361
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
362
+ end)
333
363
  end
334
364
 
335
365
  end
@@ -27,9 +27,11 @@ module Aws::CodeStarconnections
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {ConflictException}
30
31
  # * {LimitExceededException}
31
32
  # * {ResourceNotFoundException}
32
33
  # * {ResourceUnavailableException}
34
+ # * {UnsupportedOperationException}
33
35
  #
34
36
  # Additionally, error classes are dynamically generated for service errors based on the error code
35
37
  # if they are not defined above.
@@ -37,6 +39,21 @@ module Aws::CodeStarconnections
37
39
 
38
40
  extend Aws::Errors::DynamicErrors
39
41
 
42
+ class ConflictException < ServiceError
43
+
44
+ # @param [Seahorse::Client::RequestContext] context
45
+ # @param [String] message
46
+ # @param [Aws::CodeStarconnections::Types::ConflictException] data
47
+ def initialize(context, message, data = Aws::EmptyStructure.new)
48
+ super(context, message, data)
49
+ end
50
+
51
+ # @return [String]
52
+ def message
53
+ @message || @data[:message]
54
+ end
55
+ end
56
+
40
57
  class LimitExceededException < ServiceError
41
58
 
42
59
  # @param [Seahorse::Client::RequestContext] context
@@ -82,5 +99,20 @@ module Aws::CodeStarconnections
82
99
  end
83
100
  end
84
101
 
102
+ class UnsupportedOperationException < ServiceError
103
+
104
+ # @param [Seahorse::Client::RequestContext] context
105
+ # @param [String] message
106
+ # @param [Aws::CodeStarconnections::Types::UnsupportedOperationException] data
107
+ def initialize(context, message, data = Aws::EmptyStructure.new)
108
+ super(context, message, data)
109
+ end
110
+
111
+ # @return [String]
112
+ def message
113
+ @message || @data[:message]
114
+ end
115
+ end
116
+
85
117
  end
86
118
  end
@@ -10,6 +10,19 @@
10
10
  module Aws::CodeStarconnections
11
11
  module Types
12
12
 
13
+ # Two conflicting operations have been made on the same resource.
14
+ #
15
+ # @!attribute [rw] message
16
+ # @return [String]
17
+ #
18
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ConflictException AWS API Documentation
19
+ #
20
+ class ConflictException < Struct.new(
21
+ :message)
22
+ SENSITIVE = []
23
+ include Aws::Structure
24
+ end
25
+
13
26
  # A resource that is used to connect third-party source providers with
14
27
  # services like AWS CodePipeline.
15
28
  #
@@ -34,7 +47,7 @@ module Aws::CodeStarconnections
34
47
  #
35
48
  # @!attribute [rw] provider_type
36
49
  # The name of the external provider where your third-party code
37
- # repository is configured. The valid provider type is Bitbucket.
50
+ # repository is configured.
38
51
  # @return [String]
39
52
  #
40
53
  # @!attribute [rw] owner_account_id
@@ -82,7 +95,7 @@ module Aws::CodeStarconnections
82
95
  #
83
96
  # @!attribute [rw] provider_type
84
97
  # The name of the external provider where your third-party code
85
- # repository is configured. The valid provider type is Bitbucket.
98
+ # repository is configured.
86
99
  # @return [String]
87
100
  #
88
101
  # @!attribute [rw] connection_name
@@ -635,6 +648,20 @@ module Aws::CodeStarconnections
635
648
  #
636
649
  class TagResourceOutput < Aws::EmptyStructure; end
637
650
 
651
+ # The operation is not supported. Check the connection status and try
652
+ # again.
653
+ #
654
+ # @!attribute [rw] message
655
+ # @return [String]
656
+ #
657
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UnsupportedOperationException AWS API Documentation
658
+ #
659
+ class UnsupportedOperationException < Struct.new(
660
+ :message)
661
+ SENSITIVE = []
662
+ include Aws::Structure
663
+ end
664
+
638
665
  # @note When making an API call, you may pass UntagResourceInput
639
666
  # data as a hash:
640
667
  #
@@ -664,6 +691,48 @@ module Aws::CodeStarconnections
664
691
  #
665
692
  class UntagResourceOutput < Aws::EmptyStructure; end
666
693
 
694
+ # @note When making an API call, you may pass UpdateHostInput
695
+ # data as a hash:
696
+ #
697
+ # {
698
+ # host_arn: "HostArn", # required
699
+ # provider_endpoint: "Url",
700
+ # vpc_configuration: {
701
+ # vpc_id: "VpcId", # required
702
+ # subnet_ids: ["SubnetId"], # required
703
+ # security_group_ids: ["SecurityGroupId"], # required
704
+ # tls_certificate: "TlsCertificate",
705
+ # },
706
+ # }
707
+ #
708
+ # @!attribute [rw] host_arn
709
+ # The Amazon Resource Name (ARN) of the host to be updated.
710
+ # @return [String]
711
+ #
712
+ # @!attribute [rw] provider_endpoint
713
+ # The URL or endpoint of the host to be updated.
714
+ # @return [String]
715
+ #
716
+ # @!attribute [rw] vpc_configuration
717
+ # The VPC configuration of the host to be updated. A VPC must be
718
+ # configured and the infrastructure to be represented by the host must
719
+ # already be connected to the VPC.
720
+ # @return [Types::VpcConfiguration]
721
+ #
722
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateHostInput AWS API Documentation
723
+ #
724
+ class UpdateHostInput < Struct.new(
725
+ :host_arn,
726
+ :provider_endpoint,
727
+ :vpc_configuration)
728
+ SENSITIVE = []
729
+ include Aws::Structure
730
+ end
731
+
732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateHostOutput AWS API Documentation
733
+ #
734
+ class UpdateHostOutput < Aws::EmptyStructure; end
735
+
667
736
  # The VPC configuration provisioned for the host.
668
737
  #
669
738
  # @note When making an API call, you may pass VpcConfiguration
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.11.0
4
+ version: 1.12.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-09-30 00:00:00.000000000 Z
11
+ date: 2020-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core