aws-sdk-servicediscovery 1.21.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-servicediscovery.rb +3 -1
- data/lib/aws-sdk-servicediscovery/client.rb +421 -6
- data/lib/aws-sdk-servicediscovery/client_api.rb +96 -2
- data/lib/aws-sdk-servicediscovery/errors.rb +55 -0
- data/lib/aws-sdk-servicediscovery/resource.rb +2 -0
- data/lib/aws-sdk-servicediscovery/types.rb +311 -7
- metadata +4 -4
@@ -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:
|
@@ -11,6 +13,7 @@ module Aws::ServiceDiscovery
|
|
11
13
|
|
12
14
|
include Seahorse::Model
|
13
15
|
|
16
|
+
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
14
17
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
15
18
|
AttrKey = Shapes::StringShape.new(name: 'AttrKey')
|
16
19
|
AttrValue = Shapes::StringShape.new(name: 'AttrValue')
|
@@ -34,6 +37,7 @@ module Aws::ServiceDiscovery
|
|
34
37
|
DeregisterInstanceResponse = Shapes::StructureShape.new(name: 'DeregisterInstanceResponse')
|
35
38
|
DiscoverInstancesRequest = Shapes::StructureShape.new(name: 'DiscoverInstancesRequest')
|
36
39
|
DiscoverInstancesResponse = Shapes::StructureShape.new(name: 'DiscoverInstancesResponse')
|
40
|
+
DiscoverMaxResults = Shapes::IntegerShape.new(name: 'DiscoverMaxResults')
|
37
41
|
DnsConfig = Shapes::StructureShape.new(name: 'DnsConfig')
|
38
42
|
DnsConfigChange = Shapes::StructureShape.new(name: 'DnsConfigChange')
|
39
43
|
DnsProperties = Shapes::StructureShape.new(name: 'DnsProperties')
|
@@ -78,6 +82,8 @@ module Aws::ServiceDiscovery
|
|
78
82
|
ListOperationsResponse = Shapes::StructureShape.new(name: 'ListOperationsResponse')
|
79
83
|
ListServicesRequest = Shapes::StructureShape.new(name: 'ListServicesRequest')
|
80
84
|
ListServicesResponse = Shapes::StructureShape.new(name: 'ListServicesResponse')
|
85
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
86
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
81
87
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
82
88
|
Message = Shapes::StringShape.new(name: 'Message')
|
83
89
|
Namespace = Shapes::StructureShape.new(name: 'Namespace')
|
@@ -108,11 +114,13 @@ module Aws::ServiceDiscovery
|
|
108
114
|
RecordType = Shapes::StringShape.new(name: 'RecordType')
|
109
115
|
RegisterInstanceRequest = Shapes::StructureShape.new(name: 'RegisterInstanceRequest')
|
110
116
|
RegisterInstanceResponse = Shapes::StructureShape.new(name: 'RegisterInstanceResponse')
|
117
|
+
RequestLimitExceeded = Shapes::StructureShape.new(name: 'RequestLimitExceeded')
|
111
118
|
ResourceCount = Shapes::IntegerShape.new(name: 'ResourceCount')
|
112
119
|
ResourceDescription = Shapes::StringShape.new(name: 'ResourceDescription')
|
113
120
|
ResourceId = Shapes::StringShape.new(name: 'ResourceId')
|
114
121
|
ResourceInUse = Shapes::StructureShape.new(name: 'ResourceInUse')
|
115
122
|
ResourceLimitExceeded = Shapes::StructureShape.new(name: 'ResourceLimitExceeded')
|
123
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
116
124
|
ResourcePath = Shapes::StringShape.new(name: 'ResourcePath')
|
117
125
|
RoutingPolicy = Shapes::StringShape.new(name: 'RoutingPolicy')
|
118
126
|
Service = Shapes::StructureShape.new(name: 'Service')
|
@@ -125,7 +133,17 @@ module Aws::ServiceDiscovery
|
|
125
133
|
ServiceNotFound = Shapes::StructureShape.new(name: 'ServiceNotFound')
|
126
134
|
ServiceSummariesList = Shapes::ListShape.new(name: 'ServiceSummariesList')
|
127
135
|
ServiceSummary = Shapes::StructureShape.new(name: 'ServiceSummary')
|
136
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
137
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
138
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
139
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
140
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
141
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
142
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
128
143
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
144
|
+
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
145
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
146
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
129
147
|
UpdateInstanceCustomHealthStatusRequest = Shapes::StructureShape.new(name: 'UpdateInstanceCustomHealthStatusRequest')
|
130
148
|
UpdateServiceRequest = Shapes::StructureShape.new(name: 'UpdateServiceRequest')
|
131
149
|
UpdateServiceResponse = Shapes::StructureShape.new(name: 'UpdateServiceResponse')
|
@@ -136,6 +154,7 @@ module Aws::ServiceDiscovery
|
|
136
154
|
CreateHttpNamespaceRequest.add_member(:name, Shapes::ShapeRef.new(shape: NamespaceName, required: true, location_name: "Name"))
|
137
155
|
CreateHttpNamespaceRequest.add_member(:creator_request_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "CreatorRequestId", metadata: {"idempotencyToken"=>true}))
|
138
156
|
CreateHttpNamespaceRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
|
157
|
+
CreateHttpNamespaceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
139
158
|
CreateHttpNamespaceRequest.struct_class = Types::CreateHttpNamespaceRequest
|
140
159
|
|
141
160
|
CreateHttpNamespaceResponse.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, location_name: "OperationId"))
|
@@ -145,6 +164,7 @@ module Aws::ServiceDiscovery
|
|
145
164
|
CreatePrivateDnsNamespaceRequest.add_member(:creator_request_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "CreatorRequestId", metadata: {"idempotencyToken"=>true}))
|
146
165
|
CreatePrivateDnsNamespaceRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
|
147
166
|
CreatePrivateDnsNamespaceRequest.add_member(:vpc, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "Vpc"))
|
167
|
+
CreatePrivateDnsNamespaceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
148
168
|
CreatePrivateDnsNamespaceRequest.struct_class = Types::CreatePrivateDnsNamespaceRequest
|
149
169
|
|
150
170
|
CreatePrivateDnsNamespaceResponse.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, location_name: "OperationId"))
|
@@ -153,6 +173,7 @@ module Aws::ServiceDiscovery
|
|
153
173
|
CreatePublicDnsNamespaceRequest.add_member(:name, Shapes::ShapeRef.new(shape: NamespaceName, required: true, location_name: "Name"))
|
154
174
|
CreatePublicDnsNamespaceRequest.add_member(:creator_request_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "CreatorRequestId", metadata: {"idempotencyToken"=>true}))
|
155
175
|
CreatePublicDnsNamespaceRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
|
176
|
+
CreatePublicDnsNamespaceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
156
177
|
CreatePublicDnsNamespaceRequest.struct_class = Types::CreatePublicDnsNamespaceRequest
|
157
178
|
|
158
179
|
CreatePublicDnsNamespaceResponse.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, location_name: "OperationId"))
|
@@ -165,6 +186,7 @@ module Aws::ServiceDiscovery
|
|
165
186
|
CreateServiceRequest.add_member(:dns_config, Shapes::ShapeRef.new(shape: DnsConfig, location_name: "DnsConfig"))
|
166
187
|
CreateServiceRequest.add_member(:health_check_config, Shapes::ShapeRef.new(shape: HealthCheckConfig, location_name: "HealthCheckConfig"))
|
167
188
|
CreateServiceRequest.add_member(:health_check_custom_config, Shapes::ShapeRef.new(shape: HealthCheckCustomConfig, location_name: "HealthCheckCustomConfig"))
|
189
|
+
CreateServiceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
168
190
|
CreateServiceRequest.struct_class = Types::CreateServiceRequest
|
169
191
|
|
170
192
|
CreateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "Service"))
|
@@ -193,7 +215,7 @@ module Aws::ServiceDiscovery
|
|
193
215
|
|
194
216
|
DiscoverInstancesRequest.add_member(:namespace_name, Shapes::ShapeRef.new(shape: NamespaceName, required: true, location_name: "NamespaceName"))
|
195
217
|
DiscoverInstancesRequest.add_member(:service_name, Shapes::ShapeRef.new(shape: ServiceName, required: true, location_name: "ServiceName"))
|
196
|
-
DiscoverInstancesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape:
|
218
|
+
DiscoverInstancesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DiscoverMaxResults, location_name: "MaxResults"))
|
197
219
|
DiscoverInstancesRequest.add_member(:query_parameters, Shapes::ShapeRef.new(shape: Attributes, location_name: "QueryParameters"))
|
198
220
|
DiscoverInstancesRequest.add_member(:health_status, Shapes::ShapeRef.new(shape: HealthStatusFilter, location_name: "HealthStatus"))
|
199
221
|
DiscoverInstancesRequest.struct_class = Types::DiscoverInstancesRequest
|
@@ -337,6 +359,12 @@ module Aws::ServiceDiscovery
|
|
337
359
|
ListServicesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
338
360
|
ListServicesResponse.struct_class = Types::ListServicesResponse
|
339
361
|
|
362
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
363
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
364
|
+
|
365
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
366
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
367
|
+
|
340
368
|
Namespace.add_member(:id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "Id"))
|
341
369
|
Namespace.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn"))
|
342
370
|
Namespace.add_member(:name, Shapes::ShapeRef.new(shape: NamespaceName, location_name: "Name"))
|
@@ -417,12 +445,18 @@ module Aws::ServiceDiscovery
|
|
417
445
|
RegisterInstanceResponse.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, location_name: "OperationId"))
|
418
446
|
RegisterInstanceResponse.struct_class = Types::RegisterInstanceResponse
|
419
447
|
|
448
|
+
RequestLimitExceeded.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
449
|
+
RequestLimitExceeded.struct_class = Types::RequestLimitExceeded
|
450
|
+
|
420
451
|
ResourceInUse.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
421
452
|
ResourceInUse.struct_class = Types::ResourceInUse
|
422
453
|
|
423
454
|
ResourceLimitExceeded.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
424
455
|
ResourceLimitExceeded.struct_class = Types::ResourceLimitExceeded
|
425
456
|
|
457
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
458
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
459
|
+
|
426
460
|
Service.add_member(:id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "Id"))
|
427
461
|
Service.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn"))
|
428
462
|
Service.add_member(:name, Shapes::ShapeRef.new(shape: ServiceName, location_name: "Name"))
|
@@ -442,7 +476,7 @@ module Aws::ServiceDiscovery
|
|
442
476
|
ServiceAlreadyExists.struct_class = Types::ServiceAlreadyExists
|
443
477
|
|
444
478
|
ServiceChange.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
|
445
|
-
ServiceChange.add_member(:dns_config, Shapes::ShapeRef.new(shape: DnsConfigChange,
|
479
|
+
ServiceChange.add_member(:dns_config, Shapes::ShapeRef.new(shape: DnsConfigChange, location_name: "DnsConfig"))
|
446
480
|
ServiceChange.add_member(:health_check_config, Shapes::ShapeRef.new(shape: HealthCheckConfig, location_name: "HealthCheckConfig"))
|
447
481
|
ServiceChange.struct_class = Types::ServiceChange
|
448
482
|
|
@@ -469,6 +503,30 @@ module Aws::ServiceDiscovery
|
|
469
503
|
ServiceSummary.add_member(:create_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateDate"))
|
470
504
|
ServiceSummary.struct_class = Types::ServiceSummary
|
471
505
|
|
506
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
507
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
508
|
+
Tag.struct_class = Types::Tag
|
509
|
+
|
510
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
511
|
+
|
512
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
513
|
+
|
514
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
515
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
516
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
517
|
+
|
518
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
519
|
+
|
520
|
+
TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
521
|
+
TooManyTagsException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
|
522
|
+
TooManyTagsException.struct_class = Types::TooManyTagsException
|
523
|
+
|
524
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
525
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
526
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
527
|
+
|
528
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
529
|
+
|
472
530
|
UpdateInstanceCustomHealthStatusRequest.add_member(:service_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ServiceId"))
|
473
531
|
UpdateInstanceCustomHealthStatusRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "InstanceId"))
|
474
532
|
UpdateInstanceCustomHealthStatusRequest.add_member(:status, Shapes::ShapeRef.new(shape: CustomHealthStatus, required: true, location_name: "Status"))
|
@@ -510,6 +568,7 @@ module Aws::ServiceDiscovery
|
|
510
568
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceAlreadyExists)
|
511
569
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
512
570
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
571
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
513
572
|
end)
|
514
573
|
|
515
574
|
api.add_operation(:create_private_dns_namespace, Seahorse::Model::Operation.new.tap do |o|
|
@@ -522,6 +581,7 @@ module Aws::ServiceDiscovery
|
|
522
581
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceAlreadyExists)
|
523
582
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
524
583
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
584
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
525
585
|
end)
|
526
586
|
|
527
587
|
api.add_operation(:create_public_dns_namespace, Seahorse::Model::Operation.new.tap do |o|
|
@@ -534,6 +594,7 @@ module Aws::ServiceDiscovery
|
|
534
594
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceAlreadyExists)
|
535
595
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
536
596
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
597
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
537
598
|
end)
|
538
599
|
|
539
600
|
api.add_operation(:create_service, Seahorse::Model::Operation.new.tap do |o|
|
@@ -546,6 +607,7 @@ module Aws::ServiceDiscovery
|
|
546
607
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
547
608
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFound)
|
548
609
|
o.errors << Shapes::ShapeRef.new(shape: ServiceAlreadyExists)
|
610
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
549
611
|
end)
|
550
612
|
|
551
613
|
api.add_operation(:delete_namespace, Seahorse::Model::Operation.new.tap do |o|
|
@@ -596,6 +658,7 @@ module Aws::ServiceDiscovery
|
|
596
658
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
597
659
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFound)
|
598
660
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
661
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
599
662
|
end)
|
600
663
|
|
601
664
|
api.add_operation(:get_instance, Seahorse::Model::Operation.new.tap do |o|
|
@@ -717,6 +780,16 @@ module Aws::ServiceDiscovery
|
|
717
780
|
)
|
718
781
|
end)
|
719
782
|
|
783
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
784
|
+
o.name = "ListTagsForResource"
|
785
|
+
o.http_method = "POST"
|
786
|
+
o.http_request_uri = "/"
|
787
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
788
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
789
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
790
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
791
|
+
end)
|
792
|
+
|
720
793
|
api.add_operation(:register_instance, Seahorse::Model::Operation.new.tap do |o|
|
721
794
|
o.name = "RegisterInstance"
|
722
795
|
o.http_method = "POST"
|
@@ -730,6 +803,27 @@ module Aws::ServiceDiscovery
|
|
730
803
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
731
804
|
end)
|
732
805
|
|
806
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
807
|
+
o.name = "TagResource"
|
808
|
+
o.http_method = "POST"
|
809
|
+
o.http_request_uri = "/"
|
810
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
811
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
812
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
813
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
814
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
815
|
+
end)
|
816
|
+
|
817
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
818
|
+
o.name = "UntagResource"
|
819
|
+
o.http_method = "POST"
|
820
|
+
o.http_request_uri = "/"
|
821
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
822
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
823
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
824
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
825
|
+
end)
|
826
|
+
|
733
827
|
api.add_operation(:update_instance_custom_health_status, Seahorse::Model::Operation.new.tap do |o|
|
734
828
|
o.name = "UpdateInstanceCustomHealthStatus"
|
735
829
|
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:
|
@@ -32,10 +34,13 @@ module Aws::ServiceDiscovery
|
|
32
34
|
# * {NamespaceAlreadyExists}
|
33
35
|
# * {NamespaceNotFound}
|
34
36
|
# * {OperationNotFound}
|
37
|
+
# * {RequestLimitExceeded}
|
35
38
|
# * {ResourceInUse}
|
36
39
|
# * {ResourceLimitExceeded}
|
40
|
+
# * {ResourceNotFoundException}
|
37
41
|
# * {ServiceAlreadyExists}
|
38
42
|
# * {ServiceNotFound}
|
43
|
+
# * {TooManyTagsException}
|
39
44
|
#
|
40
45
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
41
46
|
# if they are not defined above.
|
@@ -163,6 +168,21 @@ module Aws::ServiceDiscovery
|
|
163
168
|
end
|
164
169
|
end
|
165
170
|
|
171
|
+
class RequestLimitExceeded < ServiceError
|
172
|
+
|
173
|
+
# @param [Seahorse::Client::RequestContext] context
|
174
|
+
# @param [String] message
|
175
|
+
# @param [Aws::ServiceDiscovery::Types::RequestLimitExceeded] data
|
176
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
177
|
+
super(context, message, data)
|
178
|
+
end
|
179
|
+
|
180
|
+
# @return [String]
|
181
|
+
def message
|
182
|
+
@message || @data[:message]
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
166
186
|
class ResourceInUse < ServiceError
|
167
187
|
|
168
188
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -193,6 +213,21 @@ module Aws::ServiceDiscovery
|
|
193
213
|
end
|
194
214
|
end
|
195
215
|
|
216
|
+
class ResourceNotFoundException < ServiceError
|
217
|
+
|
218
|
+
# @param [Seahorse::Client::RequestContext] context
|
219
|
+
# @param [String] message
|
220
|
+
# @param [Aws::ServiceDiscovery::Types::ResourceNotFoundException] data
|
221
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
222
|
+
super(context, message, data)
|
223
|
+
end
|
224
|
+
|
225
|
+
# @return [String]
|
226
|
+
def message
|
227
|
+
@message || @data[:message]
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
196
231
|
class ServiceAlreadyExists < ServiceError
|
197
232
|
|
198
233
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -233,5 +268,25 @@ module Aws::ServiceDiscovery
|
|
233
268
|
end
|
234
269
|
end
|
235
270
|
|
271
|
+
class TooManyTagsException < ServiceError
|
272
|
+
|
273
|
+
# @param [Seahorse::Client::RequestContext] context
|
274
|
+
# @param [String] message
|
275
|
+
# @param [Aws::ServiceDiscovery::Types::TooManyTagsException] data
|
276
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
277
|
+
super(context, message, data)
|
278
|
+
end
|
279
|
+
|
280
|
+
# @return [String]
|
281
|
+
def message
|
282
|
+
@message || @data[:message]
|
283
|
+
end
|
284
|
+
|
285
|
+
# @return [String]
|
286
|
+
def resource_name
|
287
|
+
@data[:resource_name]
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
236
291
|
end
|
237
292
|
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:
|
@@ -15,6 +17,12 @@ module Aws::ServiceDiscovery
|
|
15
17
|
# name: "NamespaceName", # required
|
16
18
|
# creator_request_id: "ResourceId",
|
17
19
|
# description: "ResourceDescription",
|
20
|
+
# tags: [
|
21
|
+
# {
|
22
|
+
# key: "TagKey", # required
|
23
|
+
# value: "TagValue", # required
|
24
|
+
# },
|
25
|
+
# ],
|
18
26
|
# }
|
19
27
|
#
|
20
28
|
# @!attribute [rw] name
|
@@ -35,12 +43,21 @@ module Aws::ServiceDiscovery
|
|
35
43
|
# A description for the namespace.
|
36
44
|
# @return [String]
|
37
45
|
#
|
46
|
+
# @!attribute [rw] tags
|
47
|
+
# The tags to add to the namespace. Each tag consists of a key and an
|
48
|
+
# optional value, both of which you define. Tag keys can have a
|
49
|
+
# maximum character length of 128 characters, and tag values can have
|
50
|
+
# a maximum length of 256 characters.
|
51
|
+
# @return [Array<Types::Tag>]
|
52
|
+
#
|
38
53
|
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreateHttpNamespaceRequest AWS API Documentation
|
39
54
|
#
|
40
55
|
class CreateHttpNamespaceRequest < Struct.new(
|
41
56
|
:name,
|
42
57
|
:creator_request_id,
|
43
|
-
:description
|
58
|
+
:description,
|
59
|
+
:tags)
|
60
|
+
SENSITIVE = []
|
44
61
|
include Aws::Structure
|
45
62
|
end
|
46
63
|
|
@@ -58,6 +75,7 @@ module Aws::ServiceDiscovery
|
|
58
75
|
#
|
59
76
|
class CreateHttpNamespaceResponse < Struct.new(
|
60
77
|
:operation_id)
|
78
|
+
SENSITIVE = []
|
61
79
|
include Aws::Structure
|
62
80
|
end
|
63
81
|
|
@@ -69,6 +87,12 @@ module Aws::ServiceDiscovery
|
|
69
87
|
# creator_request_id: "ResourceId",
|
70
88
|
# description: "ResourceDescription",
|
71
89
|
# vpc: "ResourceId", # required
|
90
|
+
# tags: [
|
91
|
+
# {
|
92
|
+
# key: "TagKey", # required
|
93
|
+
# value: "TagValue", # required
|
94
|
+
# },
|
95
|
+
# ],
|
72
96
|
# }
|
73
97
|
#
|
74
98
|
# @!attribute [rw] name
|
@@ -97,13 +121,22 @@ module Aws::ServiceDiscovery
|
|
97
121
|
# with.
|
98
122
|
# @return [String]
|
99
123
|
#
|
124
|
+
# @!attribute [rw] tags
|
125
|
+
# The tags to add to the namespace. Each tag consists of a key and an
|
126
|
+
# optional value, both of which you define. Tag keys can have a
|
127
|
+
# maximum character length of 128 characters, and tag values can have
|
128
|
+
# a maximum length of 256 characters.
|
129
|
+
# @return [Array<Types::Tag>]
|
130
|
+
#
|
100
131
|
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreatePrivateDnsNamespaceRequest AWS API Documentation
|
101
132
|
#
|
102
133
|
class CreatePrivateDnsNamespaceRequest < Struct.new(
|
103
134
|
:name,
|
104
135
|
:creator_request_id,
|
105
136
|
:description,
|
106
|
-
:vpc
|
137
|
+
:vpc,
|
138
|
+
:tags)
|
139
|
+
SENSITIVE = []
|
107
140
|
include Aws::Structure
|
108
141
|
end
|
109
142
|
|
@@ -121,6 +154,7 @@ module Aws::ServiceDiscovery
|
|
121
154
|
#
|
122
155
|
class CreatePrivateDnsNamespaceResponse < Struct.new(
|
123
156
|
:operation_id)
|
157
|
+
SENSITIVE = []
|
124
158
|
include Aws::Structure
|
125
159
|
end
|
126
160
|
|
@@ -131,6 +165,12 @@ module Aws::ServiceDiscovery
|
|
131
165
|
# name: "NamespaceName", # required
|
132
166
|
# creator_request_id: "ResourceId",
|
133
167
|
# description: "ResourceDescription",
|
168
|
+
# tags: [
|
169
|
+
# {
|
170
|
+
# key: "TagKey", # required
|
171
|
+
# value: "TagValue", # required
|
172
|
+
# },
|
173
|
+
# ],
|
134
174
|
# }
|
135
175
|
#
|
136
176
|
# @!attribute [rw] name
|
@@ -151,12 +191,21 @@ module Aws::ServiceDiscovery
|
|
151
191
|
# A description for the namespace.
|
152
192
|
# @return [String]
|
153
193
|
#
|
194
|
+
# @!attribute [rw] tags
|
195
|
+
# The tags to add to the namespace. Each tag consists of a key and an
|
196
|
+
# optional value, both of which you define. Tag keys can have a
|
197
|
+
# maximum character length of 128 characters, and tag values can have
|
198
|
+
# a maximum length of 256 characters.
|
199
|
+
# @return [Array<Types::Tag>]
|
200
|
+
#
|
154
201
|
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreatePublicDnsNamespaceRequest AWS API Documentation
|
155
202
|
#
|
156
203
|
class CreatePublicDnsNamespaceRequest < Struct.new(
|
157
204
|
:name,
|
158
205
|
:creator_request_id,
|
159
|
-
:description
|
206
|
+
:description,
|
207
|
+
:tags)
|
208
|
+
SENSITIVE = []
|
160
209
|
include Aws::Structure
|
161
210
|
end
|
162
211
|
|
@@ -174,6 +223,7 @@ module Aws::ServiceDiscovery
|
|
174
223
|
#
|
175
224
|
class CreatePublicDnsNamespaceResponse < Struct.new(
|
176
225
|
:operation_id)
|
226
|
+
SENSITIVE = []
|
177
227
|
include Aws::Structure
|
178
228
|
end
|
179
229
|
|
@@ -203,6 +253,12 @@ module Aws::ServiceDiscovery
|
|
203
253
|
# health_check_custom_config: {
|
204
254
|
# failure_threshold: 1,
|
205
255
|
# },
|
256
|
+
# tags: [
|
257
|
+
# {
|
258
|
+
# key: "TagKey", # required
|
259
|
+
# value: "TagValue", # required
|
260
|
+
# },
|
261
|
+
# ],
|
206
262
|
# }
|
207
263
|
#
|
208
264
|
# @!attribute [rw] name
|
@@ -280,6 +336,13 @@ module Aws::ServiceDiscovery
|
|
280
336
|
# configuration from an existing service.
|
281
337
|
# @return [Types::HealthCheckCustomConfig]
|
282
338
|
#
|
339
|
+
# @!attribute [rw] tags
|
340
|
+
# The tags to add to the service. Each tag consists of a key and an
|
341
|
+
# optional value, both of which you define. Tag keys can have a
|
342
|
+
# maximum character length of 128 characters, and tag values can have
|
343
|
+
# a maximum length of 256 characters.
|
344
|
+
# @return [Array<Types::Tag>]
|
345
|
+
#
|
283
346
|
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreateServiceRequest AWS API Documentation
|
284
347
|
#
|
285
348
|
class CreateServiceRequest < Struct.new(
|
@@ -289,7 +352,9 @@ module Aws::ServiceDiscovery
|
|
289
352
|
:description,
|
290
353
|
:dns_config,
|
291
354
|
:health_check_config,
|
292
|
-
:health_check_custom_config
|
355
|
+
:health_check_custom_config,
|
356
|
+
:tags)
|
357
|
+
SENSITIVE = []
|
293
358
|
include Aws::Structure
|
294
359
|
end
|
295
360
|
|
@@ -301,6 +366,7 @@ module Aws::ServiceDiscovery
|
|
301
366
|
#
|
302
367
|
class CreateServiceResponse < Struct.new(
|
303
368
|
:service)
|
369
|
+
SENSITIVE = []
|
304
370
|
include Aws::Structure
|
305
371
|
end
|
306
372
|
|
@@ -314,6 +380,7 @@ module Aws::ServiceDiscovery
|
|
314
380
|
#
|
315
381
|
class CustomHealthNotFound < Struct.new(
|
316
382
|
:message)
|
383
|
+
SENSITIVE = []
|
317
384
|
include Aws::Structure
|
318
385
|
end
|
319
386
|
|
@@ -332,6 +399,7 @@ module Aws::ServiceDiscovery
|
|
332
399
|
#
|
333
400
|
class DeleteNamespaceRequest < Struct.new(
|
334
401
|
:id)
|
402
|
+
SENSITIVE = []
|
335
403
|
include Aws::Structure
|
336
404
|
end
|
337
405
|
|
@@ -349,6 +417,7 @@ module Aws::ServiceDiscovery
|
|
349
417
|
#
|
350
418
|
class DeleteNamespaceResponse < Struct.new(
|
351
419
|
:operation_id)
|
420
|
+
SENSITIVE = []
|
352
421
|
include Aws::Structure
|
353
422
|
end
|
354
423
|
|
@@ -367,6 +436,7 @@ module Aws::ServiceDiscovery
|
|
367
436
|
#
|
368
437
|
class DeleteServiceRequest < Struct.new(
|
369
438
|
:id)
|
439
|
+
SENSITIVE = []
|
370
440
|
include Aws::Structure
|
371
441
|
end
|
372
442
|
|
@@ -400,6 +470,7 @@ module Aws::ServiceDiscovery
|
|
400
470
|
class DeregisterInstanceRequest < Struct.new(
|
401
471
|
:service_id,
|
402
472
|
:instance_id)
|
473
|
+
SENSITIVE = []
|
403
474
|
include Aws::Structure
|
404
475
|
end
|
405
476
|
|
@@ -416,6 +487,7 @@ module Aws::ServiceDiscovery
|
|
416
487
|
#
|
417
488
|
class DeregisterInstanceResponse < Struct.new(
|
418
489
|
:operation_id)
|
490
|
+
SENSITIVE = []
|
419
491
|
include Aws::Structure
|
420
492
|
end
|
421
493
|
|
@@ -468,6 +540,7 @@ module Aws::ServiceDiscovery
|
|
468
540
|
:max_results,
|
469
541
|
:query_parameters,
|
470
542
|
:health_status)
|
543
|
+
SENSITIVE = []
|
471
544
|
include Aws::Structure
|
472
545
|
end
|
473
546
|
|
@@ -480,6 +553,7 @@ module Aws::ServiceDiscovery
|
|
480
553
|
#
|
481
554
|
class DiscoverInstancesResponse < Struct.new(
|
482
555
|
:instances)
|
556
|
+
SENSITIVE = []
|
483
557
|
include Aws::Structure
|
484
558
|
end
|
485
559
|
|
@@ -576,6 +650,7 @@ module Aws::ServiceDiscovery
|
|
576
650
|
:namespace_id,
|
577
651
|
:routing_policy,
|
578
652
|
:dns_records)
|
653
|
+
SENSITIVE = []
|
579
654
|
include Aws::Structure
|
580
655
|
end
|
581
656
|
|
@@ -604,6 +679,7 @@ module Aws::ServiceDiscovery
|
|
604
679
|
#
|
605
680
|
class DnsConfigChange < Struct.new(
|
606
681
|
:dns_records)
|
682
|
+
SENSITIVE = []
|
607
683
|
include Aws::Structure
|
608
684
|
end
|
609
685
|
|
@@ -619,6 +695,7 @@ module Aws::ServiceDiscovery
|
|
619
695
|
#
|
620
696
|
class DnsProperties < Struct.new(
|
621
697
|
:hosted_zone_id)
|
698
|
+
SENSITIVE = []
|
622
699
|
include Aws::Structure
|
623
700
|
end
|
624
701
|
|
@@ -758,6 +835,7 @@ module Aws::ServiceDiscovery
|
|
758
835
|
class DnsRecord < Struct.new(
|
759
836
|
:type,
|
760
837
|
:ttl)
|
838
|
+
SENSITIVE = []
|
761
839
|
include Aws::Structure
|
762
840
|
end
|
763
841
|
|
@@ -775,6 +853,7 @@ module Aws::ServiceDiscovery
|
|
775
853
|
class DuplicateRequest < Struct.new(
|
776
854
|
:message,
|
777
855
|
:duplicate_operation_id)
|
856
|
+
SENSITIVE = []
|
778
857
|
include Aws::Structure
|
779
858
|
end
|
780
859
|
|
@@ -799,6 +878,7 @@ module Aws::ServiceDiscovery
|
|
799
878
|
class GetInstanceRequest < Struct.new(
|
800
879
|
:service_id,
|
801
880
|
:instance_id)
|
881
|
+
SENSITIVE = []
|
802
882
|
include Aws::Structure
|
803
883
|
end
|
804
884
|
|
@@ -810,6 +890,7 @@ module Aws::ServiceDiscovery
|
|
810
890
|
#
|
811
891
|
class GetInstanceResponse < Struct.new(
|
812
892
|
:instance)
|
893
|
+
SENSITIVE = []
|
813
894
|
include Aws::Structure
|
814
895
|
end
|
815
896
|
|
@@ -867,6 +948,7 @@ module Aws::ServiceDiscovery
|
|
867
948
|
:instances,
|
868
949
|
:max_results,
|
869
950
|
:next_token)
|
951
|
+
SENSITIVE = []
|
870
952
|
include Aws::Structure
|
871
953
|
end
|
872
954
|
|
@@ -888,6 +970,7 @@ module Aws::ServiceDiscovery
|
|
888
970
|
class GetInstancesHealthStatusResponse < Struct.new(
|
889
971
|
:status,
|
890
972
|
:next_token)
|
973
|
+
SENSITIVE = []
|
891
974
|
include Aws::Structure
|
892
975
|
end
|
893
976
|
|
@@ -906,6 +989,7 @@ module Aws::ServiceDiscovery
|
|
906
989
|
#
|
907
990
|
class GetNamespaceRequest < Struct.new(
|
908
991
|
:id)
|
992
|
+
SENSITIVE = []
|
909
993
|
include Aws::Structure
|
910
994
|
end
|
911
995
|
|
@@ -918,6 +1002,7 @@ module Aws::ServiceDiscovery
|
|
918
1002
|
#
|
919
1003
|
class GetNamespaceResponse < Struct.new(
|
920
1004
|
:namespace)
|
1005
|
+
SENSITIVE = []
|
921
1006
|
include Aws::Structure
|
922
1007
|
end
|
923
1008
|
|
@@ -936,6 +1021,7 @@ module Aws::ServiceDiscovery
|
|
936
1021
|
#
|
937
1022
|
class GetOperationRequest < Struct.new(
|
938
1023
|
:operation_id)
|
1024
|
+
SENSITIVE = []
|
939
1025
|
include Aws::Structure
|
940
1026
|
end
|
941
1027
|
|
@@ -947,6 +1033,7 @@ module Aws::ServiceDiscovery
|
|
947
1033
|
#
|
948
1034
|
class GetOperationResponse < Struct.new(
|
949
1035
|
:operation)
|
1036
|
+
SENSITIVE = []
|
950
1037
|
include Aws::Structure
|
951
1038
|
end
|
952
1039
|
|
@@ -965,6 +1052,7 @@ module Aws::ServiceDiscovery
|
|
965
1052
|
#
|
966
1053
|
class GetServiceRequest < Struct.new(
|
967
1054
|
:id)
|
1055
|
+
SENSITIVE = []
|
968
1056
|
include Aws::Structure
|
969
1057
|
end
|
970
1058
|
|
@@ -976,6 +1064,7 @@ module Aws::ServiceDiscovery
|
|
976
1064
|
#
|
977
1065
|
class GetServiceResponse < Struct.new(
|
978
1066
|
:service)
|
1067
|
+
SENSITIVE = []
|
979
1068
|
include Aws::Structure
|
980
1069
|
end
|
981
1070
|
|
@@ -1120,6 +1209,7 @@ module Aws::ServiceDiscovery
|
|
1120
1209
|
:type,
|
1121
1210
|
:resource_path,
|
1122
1211
|
:failure_threshold)
|
1212
|
+
SENSITIVE = []
|
1123
1213
|
include Aws::Structure
|
1124
1214
|
end
|
1125
1215
|
|
@@ -1209,6 +1299,7 @@ module Aws::ServiceDiscovery
|
|
1209
1299
|
#
|
1210
1300
|
class HealthCheckCustomConfig < Struct.new(
|
1211
1301
|
:failure_threshold)
|
1302
|
+
SENSITIVE = []
|
1212
1303
|
include Aws::Structure
|
1213
1304
|
end
|
1214
1305
|
|
@@ -1253,6 +1344,7 @@ module Aws::ServiceDiscovery
|
|
1253
1344
|
:service_name,
|
1254
1345
|
:health_status,
|
1255
1346
|
:attributes)
|
1347
|
+
SENSITIVE = []
|
1256
1348
|
include Aws::Structure
|
1257
1349
|
end
|
1258
1350
|
|
@@ -1266,6 +1358,7 @@ module Aws::ServiceDiscovery
|
|
1266
1358
|
#
|
1267
1359
|
class HttpProperties < Struct.new(
|
1268
1360
|
:http_name)
|
1361
|
+
SENSITIVE = []
|
1269
1362
|
include Aws::Structure
|
1270
1363
|
end
|
1271
1364
|
|
@@ -1406,6 +1499,7 @@ module Aws::ServiceDiscovery
|
|
1406
1499
|
:id,
|
1407
1500
|
:creator_request_id,
|
1408
1501
|
:attributes)
|
1502
|
+
SENSITIVE = []
|
1409
1503
|
include Aws::Structure
|
1410
1504
|
end
|
1411
1505
|
|
@@ -1419,6 +1513,7 @@ module Aws::ServiceDiscovery
|
|
1419
1513
|
#
|
1420
1514
|
class InstanceNotFound < Struct.new(
|
1421
1515
|
:message)
|
1516
|
+
SENSITIVE = []
|
1422
1517
|
include Aws::Structure
|
1423
1518
|
end
|
1424
1519
|
|
@@ -1465,6 +1560,7 @@ module Aws::ServiceDiscovery
|
|
1465
1560
|
class InstanceSummary < Struct.new(
|
1466
1561
|
:id,
|
1467
1562
|
:attributes)
|
1563
|
+
SENSITIVE = []
|
1468
1564
|
include Aws::Structure
|
1469
1565
|
end
|
1470
1566
|
|
@@ -1479,6 +1575,7 @@ module Aws::ServiceDiscovery
|
|
1479
1575
|
#
|
1480
1576
|
class InvalidInput < Struct.new(
|
1481
1577
|
:message)
|
1578
|
+
SENSITIVE = []
|
1482
1579
|
include Aws::Structure
|
1483
1580
|
end
|
1484
1581
|
|
@@ -1517,6 +1614,7 @@ module Aws::ServiceDiscovery
|
|
1517
1614
|
:service_id,
|
1518
1615
|
:next_token,
|
1519
1616
|
:max_results)
|
1617
|
+
SENSITIVE = []
|
1520
1618
|
include Aws::Structure
|
1521
1619
|
end
|
1522
1620
|
|
@@ -1537,6 +1635,7 @@ module Aws::ServiceDiscovery
|
|
1537
1635
|
class ListInstancesResponse < Struct.new(
|
1538
1636
|
:instances,
|
1539
1637
|
:next_token)
|
1638
|
+
SENSITIVE = []
|
1540
1639
|
include Aws::Structure
|
1541
1640
|
end
|
1542
1641
|
|
@@ -1593,6 +1692,7 @@ module Aws::ServiceDiscovery
|
|
1593
1692
|
:next_token,
|
1594
1693
|
:max_results,
|
1595
1694
|
:filters)
|
1695
|
+
SENSITIVE = []
|
1596
1696
|
include Aws::Structure
|
1597
1697
|
end
|
1598
1698
|
|
@@ -1621,6 +1721,7 @@ module Aws::ServiceDiscovery
|
|
1621
1721
|
class ListNamespacesResponse < Struct.new(
|
1622
1722
|
:namespaces,
|
1623
1723
|
:next_token)
|
1724
|
+
SENSITIVE = []
|
1624
1725
|
include Aws::Structure
|
1625
1726
|
end
|
1626
1727
|
|
@@ -1677,6 +1778,7 @@ module Aws::ServiceDiscovery
|
|
1677
1778
|
:next_token,
|
1678
1779
|
:max_results,
|
1679
1780
|
:filters)
|
1781
|
+
SENSITIVE = []
|
1680
1782
|
include Aws::Structure
|
1681
1783
|
end
|
1682
1784
|
|
@@ -1705,6 +1807,7 @@ module Aws::ServiceDiscovery
|
|
1705
1807
|
class ListOperationsResponse < Struct.new(
|
1706
1808
|
:operations,
|
1707
1809
|
:next_token)
|
1810
|
+
SENSITIVE = []
|
1708
1811
|
include Aws::Structure
|
1709
1812
|
end
|
1710
1813
|
|
@@ -1759,6 +1862,7 @@ module Aws::ServiceDiscovery
|
|
1759
1862
|
:next_token,
|
1760
1863
|
:max_results,
|
1761
1864
|
:filters)
|
1865
|
+
SENSITIVE = []
|
1762
1866
|
include Aws::Structure
|
1763
1867
|
end
|
1764
1868
|
|
@@ -1786,6 +1890,39 @@ module Aws::ServiceDiscovery
|
|
1786
1890
|
class ListServicesResponse < Struct.new(
|
1787
1891
|
:services,
|
1788
1892
|
:next_token)
|
1893
|
+
SENSITIVE = []
|
1894
|
+
include Aws::Structure
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
1898
|
+
# data as a hash:
|
1899
|
+
#
|
1900
|
+
# {
|
1901
|
+
# resource_arn: "AmazonResourceName", # required
|
1902
|
+
# }
|
1903
|
+
#
|
1904
|
+
# @!attribute [rw] resource_arn
|
1905
|
+
# The Amazon Resource Name (ARN) of the resource that you want to
|
1906
|
+
# retrieve tags for.
|
1907
|
+
# @return [String]
|
1908
|
+
#
|
1909
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListTagsForResourceRequest AWS API Documentation
|
1910
|
+
#
|
1911
|
+
class ListTagsForResourceRequest < Struct.new(
|
1912
|
+
:resource_arn)
|
1913
|
+
SENSITIVE = []
|
1914
|
+
include Aws::Structure
|
1915
|
+
end
|
1916
|
+
|
1917
|
+
# @!attribute [rw] tags
|
1918
|
+
# The tags that are assigned to the resource.
|
1919
|
+
# @return [Array<Types::Tag>]
|
1920
|
+
#
|
1921
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListTagsForResourceResponse AWS API Documentation
|
1922
|
+
#
|
1923
|
+
class ListTagsForResourceResponse < Struct.new(
|
1924
|
+
:tags)
|
1925
|
+
SENSITIVE = []
|
1789
1926
|
include Aws::Structure
|
1790
1927
|
end
|
1791
1928
|
|
@@ -1857,6 +1994,7 @@ module Aws::ServiceDiscovery
|
|
1857
1994
|
:properties,
|
1858
1995
|
:create_date,
|
1859
1996
|
:creator_request_id)
|
1997
|
+
SENSITIVE = []
|
1860
1998
|
include Aws::Structure
|
1861
1999
|
end
|
1862
2000
|
|
@@ -1879,6 +2017,7 @@ module Aws::ServiceDiscovery
|
|
1879
2017
|
:message,
|
1880
2018
|
:creator_request_id,
|
1881
2019
|
:namespace_id)
|
2020
|
+
SENSITIVE = []
|
1882
2021
|
include Aws::Structure
|
1883
2022
|
end
|
1884
2023
|
|
@@ -1927,6 +2066,7 @@ module Aws::ServiceDiscovery
|
|
1927
2066
|
:name,
|
1928
2067
|
:values,
|
1929
2068
|
:condition)
|
2069
|
+
SENSITIVE = []
|
1930
2070
|
include Aws::Structure
|
1931
2071
|
end
|
1932
2072
|
|
@@ -1939,6 +2079,7 @@ module Aws::ServiceDiscovery
|
|
1939
2079
|
#
|
1940
2080
|
class NamespaceNotFound < Struct.new(
|
1941
2081
|
:message)
|
2082
|
+
SENSITIVE = []
|
1942
2083
|
include Aws::Structure
|
1943
2084
|
end
|
1944
2085
|
|
@@ -1959,6 +2100,7 @@ module Aws::ServiceDiscovery
|
|
1959
2100
|
class NamespaceProperties < Struct.new(
|
1960
2101
|
:dns_properties,
|
1961
2102
|
:http_properties)
|
2103
|
+
SENSITIVE = []
|
1962
2104
|
include Aws::Structure
|
1963
2105
|
end
|
1964
2106
|
|
@@ -2011,6 +2153,7 @@ module Aws::ServiceDiscovery
|
|
2011
2153
|
:service_count,
|
2012
2154
|
:properties,
|
2013
2155
|
:create_date)
|
2156
|
+
SENSITIVE = []
|
2014
2157
|
include Aws::Structure
|
2015
2158
|
end
|
2016
2159
|
|
@@ -2102,6 +2245,7 @@ module Aws::ServiceDiscovery
|
|
2102
2245
|
:create_date,
|
2103
2246
|
:update_date,
|
2104
2247
|
:targets)
|
2248
|
+
SENSITIVE = []
|
2105
2249
|
include Aws::Structure
|
2106
2250
|
end
|
2107
2251
|
|
@@ -2179,6 +2323,7 @@ module Aws::ServiceDiscovery
|
|
2179
2323
|
:name,
|
2180
2324
|
:values,
|
2181
2325
|
:condition)
|
2326
|
+
SENSITIVE = []
|
2182
2327
|
include Aws::Structure
|
2183
2328
|
end
|
2184
2329
|
|
@@ -2191,6 +2336,7 @@ module Aws::ServiceDiscovery
|
|
2191
2336
|
#
|
2192
2337
|
class OperationNotFound < Struct.new(
|
2193
2338
|
:message)
|
2339
|
+
SENSITIVE = []
|
2194
2340
|
include Aws::Structure
|
2195
2341
|
end
|
2196
2342
|
|
@@ -2225,6 +2371,7 @@ module Aws::ServiceDiscovery
|
|
2225
2371
|
class OperationSummary < Struct.new(
|
2226
2372
|
:id,
|
2227
2373
|
:status)
|
2374
|
+
SENSITIVE = []
|
2228
2375
|
include Aws::Structure
|
2229
2376
|
end
|
2230
2377
|
|
@@ -2383,7 +2530,9 @@ module Aws::ServiceDiscovery
|
|
2383
2530
|
#
|
2384
2531
|
# You can add up to 30 custom attributes. For each key-value pair, the
|
2385
2532
|
# maximum length of the attribute name is 255 characters, and the
|
2386
|
-
# maximum length of the attribute value is 1,024 characters.
|
2533
|
+
# maximum length of the attribute value is 1,024 characters. Total
|
2534
|
+
# size of all provided attributes (sum of all keys and values) must
|
2535
|
+
# not exceed 5,000 characters.
|
2387
2536
|
#
|
2388
2537
|
#
|
2389
2538
|
#
|
@@ -2397,6 +2546,7 @@ module Aws::ServiceDiscovery
|
|
2397
2546
|
:instance_id,
|
2398
2547
|
:creator_request_id,
|
2399
2548
|
:attributes)
|
2549
|
+
SENSITIVE = []
|
2400
2550
|
include Aws::Structure
|
2401
2551
|
end
|
2402
2552
|
|
@@ -2414,6 +2564,21 @@ module Aws::ServiceDiscovery
|
|
2414
2564
|
#
|
2415
2565
|
class RegisterInstanceResponse < Struct.new(
|
2416
2566
|
:operation_id)
|
2567
|
+
SENSITIVE = []
|
2568
|
+
include Aws::Structure
|
2569
|
+
end
|
2570
|
+
|
2571
|
+
# The operation can't be completed because you've reached the limit on
|
2572
|
+
# the number of requests.
|
2573
|
+
#
|
2574
|
+
# @!attribute [rw] message
|
2575
|
+
# @return [String]
|
2576
|
+
#
|
2577
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/RequestLimitExceeded AWS API Documentation
|
2578
|
+
#
|
2579
|
+
class RequestLimitExceeded < Struct.new(
|
2580
|
+
:message)
|
2581
|
+
SENSITIVE = []
|
2417
2582
|
include Aws::Structure
|
2418
2583
|
end
|
2419
2584
|
|
@@ -2428,6 +2593,7 @@ module Aws::ServiceDiscovery
|
|
2428
2593
|
#
|
2429
2594
|
class ResourceInUse < Struct.new(
|
2430
2595
|
:message)
|
2596
|
+
SENSITIVE = []
|
2431
2597
|
include Aws::Structure
|
2432
2598
|
end
|
2433
2599
|
|
@@ -2441,6 +2607,20 @@ module Aws::ServiceDiscovery
|
|
2441
2607
|
#
|
2442
2608
|
class ResourceLimitExceeded < Struct.new(
|
2443
2609
|
:message)
|
2610
|
+
SENSITIVE = []
|
2611
|
+
include Aws::Structure
|
2612
|
+
end
|
2613
|
+
|
2614
|
+
# The operation can't be completed because the resource was not found.
|
2615
|
+
#
|
2616
|
+
# @!attribute [rw] message
|
2617
|
+
# @return [String]
|
2618
|
+
#
|
2619
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ResourceNotFoundException AWS API Documentation
|
2620
|
+
#
|
2621
|
+
class ResourceNotFoundException < Struct.new(
|
2622
|
+
:message)
|
2623
|
+
SENSITIVE = []
|
2444
2624
|
include Aws::Structure
|
2445
2625
|
end
|
2446
2626
|
|
@@ -2531,6 +2711,7 @@ module Aws::ServiceDiscovery
|
|
2531
2711
|
:health_check_custom_config,
|
2532
2712
|
:create_date,
|
2533
2713
|
:creator_request_id)
|
2714
|
+
SENSITIVE = []
|
2534
2715
|
include Aws::Structure
|
2535
2716
|
end
|
2536
2717
|
|
@@ -2554,6 +2735,7 @@ module Aws::ServiceDiscovery
|
|
2554
2735
|
:message,
|
2555
2736
|
:creator_request_id,
|
2556
2737
|
:service_id)
|
2738
|
+
SENSITIVE = []
|
2557
2739
|
include Aws::Structure
|
2558
2740
|
end
|
2559
2741
|
|
@@ -2564,7 +2746,7 @@ module Aws::ServiceDiscovery
|
|
2564
2746
|
#
|
2565
2747
|
# {
|
2566
2748
|
# description: "ResourceDescription",
|
2567
|
-
# dns_config: {
|
2749
|
+
# dns_config: {
|
2568
2750
|
# dns_records: [ # required
|
2569
2751
|
# {
|
2570
2752
|
# type: "SRV", # required, accepts SRV, A, AAAA, CNAME
|
@@ -2667,6 +2849,7 @@ module Aws::ServiceDiscovery
|
|
2667
2849
|
:description,
|
2668
2850
|
:dns_config,
|
2669
2851
|
:health_check_config)
|
2852
|
+
SENSITIVE = []
|
2670
2853
|
include Aws::Structure
|
2671
2854
|
end
|
2672
2855
|
|
@@ -2712,6 +2895,7 @@ module Aws::ServiceDiscovery
|
|
2712
2895
|
:name,
|
2713
2896
|
:values,
|
2714
2897
|
:condition)
|
2898
|
+
SENSITIVE = []
|
2715
2899
|
include Aws::Structure
|
2716
2900
|
end
|
2717
2901
|
|
@@ -2724,6 +2908,7 @@ module Aws::ServiceDiscovery
|
|
2724
2908
|
#
|
2725
2909
|
class ServiceNotFound < Struct.new(
|
2726
2910
|
:message)
|
2911
|
+
SENSITIVE = []
|
2727
2912
|
include Aws::Structure
|
2728
2913
|
end
|
2729
2914
|
|
@@ -2909,9 +3094,125 @@ module Aws::ServiceDiscovery
|
|
2909
3094
|
:health_check_config,
|
2910
3095
|
:health_check_custom_config,
|
2911
3096
|
:create_date)
|
3097
|
+
SENSITIVE = []
|
3098
|
+
include Aws::Structure
|
3099
|
+
end
|
3100
|
+
|
3101
|
+
# A custom key-value pair associated with a resource.
|
3102
|
+
#
|
3103
|
+
# @note When making an API call, you may pass Tag
|
3104
|
+
# data as a hash:
|
3105
|
+
#
|
3106
|
+
# {
|
3107
|
+
# key: "TagKey", # required
|
3108
|
+
# value: "TagValue", # required
|
3109
|
+
# }
|
3110
|
+
#
|
3111
|
+
# @!attribute [rw] key
|
3112
|
+
# The key identifier, or name, of the tag.
|
3113
|
+
# @return [String]
|
3114
|
+
#
|
3115
|
+
# @!attribute [rw] value
|
3116
|
+
# The string value that's associated with the key of the tag. You can
|
3117
|
+
# set the value of a tag to an empty string, but you can't set the
|
3118
|
+
# value of a tag to null.
|
3119
|
+
# @return [String]
|
3120
|
+
#
|
3121
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/Tag AWS API Documentation
|
3122
|
+
#
|
3123
|
+
class Tag < Struct.new(
|
3124
|
+
:key,
|
3125
|
+
:value)
|
3126
|
+
SENSITIVE = []
|
3127
|
+
include Aws::Structure
|
3128
|
+
end
|
3129
|
+
|
3130
|
+
# @note When making an API call, you may pass TagResourceRequest
|
3131
|
+
# data as a hash:
|
3132
|
+
#
|
3133
|
+
# {
|
3134
|
+
# resource_arn: "AmazonResourceName", # required
|
3135
|
+
# tags: [ # required
|
3136
|
+
# {
|
3137
|
+
# key: "TagKey", # required
|
3138
|
+
# value: "TagValue", # required
|
3139
|
+
# },
|
3140
|
+
# ],
|
3141
|
+
# }
|
3142
|
+
#
|
3143
|
+
# @!attribute [rw] resource_arn
|
3144
|
+
# The Amazon Resource Name (ARN) of the resource that you want to
|
3145
|
+
# retrieve tags for.
|
3146
|
+
# @return [String]
|
3147
|
+
#
|
3148
|
+
# @!attribute [rw] tags
|
3149
|
+
# The tags to add to the specified resource. Specifying the tag key is
|
3150
|
+
# required. You can set the value of a tag to an empty string, but you
|
3151
|
+
# can't set the value of a tag to null.
|
3152
|
+
# @return [Array<Types::Tag>]
|
3153
|
+
#
|
3154
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/TagResourceRequest AWS API Documentation
|
3155
|
+
#
|
3156
|
+
class TagResourceRequest < Struct.new(
|
3157
|
+
:resource_arn,
|
3158
|
+
:tags)
|
3159
|
+
SENSITIVE = []
|
2912
3160
|
include Aws::Structure
|
2913
3161
|
end
|
2914
3162
|
|
3163
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/TagResourceResponse AWS API Documentation
|
3164
|
+
#
|
3165
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
3166
|
+
|
3167
|
+
# The list of tags on the resource is over the limit. The maximum number
|
3168
|
+
# of tags that can be applied to a resource is 50.
|
3169
|
+
#
|
3170
|
+
# @!attribute [rw] message
|
3171
|
+
# @return [String]
|
3172
|
+
#
|
3173
|
+
# @!attribute [rw] resource_name
|
3174
|
+
# The name of the resource.
|
3175
|
+
# @return [String]
|
3176
|
+
#
|
3177
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/TooManyTagsException AWS API Documentation
|
3178
|
+
#
|
3179
|
+
class TooManyTagsException < Struct.new(
|
3180
|
+
:message,
|
3181
|
+
:resource_name)
|
3182
|
+
SENSITIVE = []
|
3183
|
+
include Aws::Structure
|
3184
|
+
end
|
3185
|
+
|
3186
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
3187
|
+
# data as a hash:
|
3188
|
+
#
|
3189
|
+
# {
|
3190
|
+
# resource_arn: "AmazonResourceName", # required
|
3191
|
+
# tag_keys: ["TagKey"], # required
|
3192
|
+
# }
|
3193
|
+
#
|
3194
|
+
# @!attribute [rw] resource_arn
|
3195
|
+
# The Amazon Resource Name (ARN) of the resource that you want to
|
3196
|
+
# retrieve tags for.
|
3197
|
+
# @return [String]
|
3198
|
+
#
|
3199
|
+
# @!attribute [rw] tag_keys
|
3200
|
+
# The tag keys to remove from the specified resource.
|
3201
|
+
# @return [Array<String>]
|
3202
|
+
#
|
3203
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UntagResourceRequest AWS API Documentation
|
3204
|
+
#
|
3205
|
+
class UntagResourceRequest < Struct.new(
|
3206
|
+
:resource_arn,
|
3207
|
+
:tag_keys)
|
3208
|
+
SENSITIVE = []
|
3209
|
+
include Aws::Structure
|
3210
|
+
end
|
3211
|
+
|
3212
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UntagResourceResponse AWS API Documentation
|
3213
|
+
#
|
3214
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
3215
|
+
|
2915
3216
|
# @note When making an API call, you may pass UpdateInstanceCustomHealthStatusRequest
|
2916
3217
|
# data as a hash:
|
2917
3218
|
#
|
@@ -2941,6 +3242,7 @@ module Aws::ServiceDiscovery
|
|
2941
3242
|
:service_id,
|
2942
3243
|
:instance_id,
|
2943
3244
|
:status)
|
3245
|
+
SENSITIVE = []
|
2944
3246
|
include Aws::Structure
|
2945
3247
|
end
|
2946
3248
|
|
@@ -2951,7 +3253,7 @@ module Aws::ServiceDiscovery
|
|
2951
3253
|
# id: "ResourceId", # required
|
2952
3254
|
# service: { # required
|
2953
3255
|
# description: "ResourceDescription",
|
2954
|
-
# dns_config: {
|
3256
|
+
# dns_config: {
|
2955
3257
|
# dns_records: [ # required
|
2956
3258
|
# {
|
2957
3259
|
# type: "SRV", # required, accepts SRV, A, AAAA, CNAME
|
@@ -2980,6 +3282,7 @@ module Aws::ServiceDiscovery
|
|
2980
3282
|
class UpdateServiceRequest < Struct.new(
|
2981
3283
|
:id,
|
2982
3284
|
:service)
|
3285
|
+
SENSITIVE = []
|
2983
3286
|
include Aws::Structure
|
2984
3287
|
end
|
2985
3288
|
|
@@ -2997,6 +3300,7 @@ module Aws::ServiceDiscovery
|
|
2997
3300
|
#
|
2998
3301
|
class UpdateServiceResponse < Struct.new(
|
2999
3302
|
:operation_id)
|
3303
|
+
SENSITIVE = []
|
3000
3304
|
include Aws::Structure
|
3001
3305
|
end
|
3002
3306
|
|