aws-sdk-servicediscovery 1.22.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: MaxResults, location_name: "MaxResults"))
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, required: true, location_name: "DnsConfig"))
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:
@@ -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,12 +87,18 @@ 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
75
99
  # The name that you want to assign to this namespace. When you create
76
100
  # a private DNS namespace, AWS Cloud Map automatically creates an
77
- # Amazon Route 53 private hosted zone that has the same name as the
101
+ # Amazon Route 53 private hosted zone that has the same name as the
78
102
  # namespace.
79
103
  # @return [String]
80
104
  #
@@ -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,20 +253,27 @@ 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
209
265
  # The name that you want to assign to the service.
210
266
  #
211
- # If you want AWS Cloud Map to create an SRV record when you register
212
- # an instance, and if you're using a system that requires a specific
213
- # SRV format, such as [HAProxy][1], specify the following for `Name`\:
267
+ # If you want AWS Cloud Map to create an `SRV` record when you
268
+ # register an instance, and if you're using a system that requires a
269
+ # specific `SRV` format, such as [HAProxy][1], specify the following
270
+ # for `Name`\:
214
271
  #
215
272
  # * Start the name with an underscore (\_), such as `_exampleservice`
216
273
  #
217
274
  # * End the name with *.\_protocol*, such as `._tcp`
218
275
  #
219
- # When you register an instance, AWS Cloud Map creates an SRV record
276
+ # When you register an instance, AWS Cloud Map creates an `SRV` record
220
277
  # and assigns a name to the record by concatenating the service name
221
278
  # and the namespace name, for example:
222
279
  #
@@ -246,16 +303,16 @@ module Aws::ServiceDiscovery
246
303
  # @return [String]
247
304
  #
248
305
  # @!attribute [rw] dns_config
249
- # A complex type that contains information about the Amazon Route 53
306
+ # A complex type that contains information about the Amazon Route 53
250
307
  # records that you want AWS Cloud Map to create when you register an
251
308
  # instance.
252
309
  # @return [Types::DnsConfig]
253
310
  #
254
311
  # @!attribute [rw] health_check_config
255
312
  # *Public DNS and HTTP namespaces only.* A complex type that contains
256
- # settings for an optional Route 53 health check. If you specify
313
+ # settings for an optional Route 53 health check. If you specify
257
314
  # settings for a health check, AWS Cloud Map associates the health
258
- # check with all the Route 53 DNS records that you specify in
315
+ # check with all the Route 53 DNS records that you specify in
259
316
  # `DnsConfig`.
260
317
  #
261
318
  # If you specify a health check configuration, you can specify either
@@ -280,6 +337,13 @@ module Aws::ServiceDiscovery
280
337
  # configuration from an existing service.
281
338
  # @return [Types::HealthCheckCustomConfig]
282
339
  #
340
+ # @!attribute [rw] tags
341
+ # The tags to add to the service. Each tag consists of a key and an
342
+ # optional value, both of which you define. Tag keys can have a
343
+ # maximum character length of 128 characters, and tag values can have
344
+ # a maximum length of 256 characters.
345
+ # @return [Array<Types::Tag>]
346
+ #
283
347
  # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreateServiceRequest AWS API Documentation
284
348
  #
285
349
  class CreateServiceRequest < Struct.new(
@@ -289,7 +353,9 @@ module Aws::ServiceDiscovery
289
353
  :description,
290
354
  :dns_config,
291
355
  :health_check_config,
292
- :health_check_custom_config)
356
+ :health_check_custom_config,
357
+ :tags)
358
+ SENSITIVE = []
293
359
  include Aws::Structure
294
360
  end
295
361
 
@@ -301,6 +367,7 @@ module Aws::ServiceDiscovery
301
367
  #
302
368
  class CreateServiceResponse < Struct.new(
303
369
  :service)
370
+ SENSITIVE = []
304
371
  include Aws::Structure
305
372
  end
306
373
 
@@ -314,6 +381,7 @@ module Aws::ServiceDiscovery
314
381
  #
315
382
  class CustomHealthNotFound < Struct.new(
316
383
  :message)
384
+ SENSITIVE = []
317
385
  include Aws::Structure
318
386
  end
319
387
 
@@ -332,6 +400,7 @@ module Aws::ServiceDiscovery
332
400
  #
333
401
  class DeleteNamespaceRequest < Struct.new(
334
402
  :id)
403
+ SENSITIVE = []
335
404
  include Aws::Structure
336
405
  end
337
406
 
@@ -349,6 +418,7 @@ module Aws::ServiceDiscovery
349
418
  #
350
419
  class DeleteNamespaceResponse < Struct.new(
351
420
  :operation_id)
421
+ SENSITIVE = []
352
422
  include Aws::Structure
353
423
  end
354
424
 
@@ -367,6 +437,7 @@ module Aws::ServiceDiscovery
367
437
  #
368
438
  class DeleteServiceRequest < Struct.new(
369
439
  :id)
440
+ SENSITIVE = []
370
441
  include Aws::Structure
371
442
  end
372
443
 
@@ -400,6 +471,7 @@ module Aws::ServiceDiscovery
400
471
  class DeregisterInstanceRequest < Struct.new(
401
472
  :service_id,
402
473
  :instance_id)
474
+ SENSITIVE = []
403
475
  include Aws::Structure
404
476
  end
405
477
 
@@ -416,6 +488,7 @@ module Aws::ServiceDiscovery
416
488
  #
417
489
  class DeregisterInstanceResponse < Struct.new(
418
490
  :operation_id)
491
+ SENSITIVE = []
419
492
  include Aws::Structure
420
493
  end
421
494
 
@@ -468,6 +541,7 @@ module Aws::ServiceDiscovery
468
541
  :max_results,
469
542
  :query_parameters,
470
543
  :health_status)
544
+ SENSITIVE = []
471
545
  include Aws::Structure
472
546
  end
473
547
 
@@ -480,10 +554,11 @@ module Aws::ServiceDiscovery
480
554
  #
481
555
  class DiscoverInstancesResponse < Struct.new(
482
556
  :instances)
557
+ SENSITIVE = []
483
558
  include Aws::Structure
484
559
  end
485
560
 
486
- # A complex type that contains information about the Amazon Route 53 DNS
561
+ # A complex type that contains information about the Amazon Route 53 DNS
487
562
  # records that you want AWS Cloud Map to create when you register an
488
563
  # instance.
489
564
  #
@@ -506,7 +581,7 @@ module Aws::ServiceDiscovery
506
581
  # @return [String]
507
582
  #
508
583
  # @!attribute [rw] routing_policy
509
- # The routing policy that you want to apply to all Route 53 DNS
584
+ # The routing policy that you want to apply to all Route 53 DNS
510
585
  # records that AWS Cloud Map creates when you register an instance and
511
586
  # specify this service.
512
587
  #
@@ -520,43 +595,43 @@ module Aws::ServiceDiscovery
520
595
  # **MULTIVALUE**
521
596
  #
522
597
  # If you define a health check for the service and the health check is
523
- # healthy, Route 53 returns the applicable value for up to eight
598
+ # healthy, Route 53 returns the applicable value for up to eight
524
599
  # instances.
525
600
  #
526
- # For example, suppose the service includes configurations for one A
601
+ # For example, suppose the service includes configurations for one `A`
527
602
  # record and a health check, and you use the service to register 10
528
- # instances. Route 53 responds to DNS queries with IP addresses for up
603
+ # instances. Route 53 responds to DNS queries with IP addresses for up
529
604
  # to eight healthy instances. If fewer than eight instances are
530
- # healthy, Route 53 responds to every DNS query with the IP addresses
605
+ # healthy, Route 53 responds to every DNS query with the IP addresses
531
606
  # for all of the healthy instances.
532
607
  #
533
- # If you don't define a health check for the service, Route 53
608
+ # If you don't define a health check for the service, Route 53
534
609
  # assumes that all instances are healthy and returns the values for up
535
610
  # to eight instances.
536
611
  #
537
612
  # For more information about the multivalue routing policy, see
538
- # [Multivalue Answer Routing][1] in the *Route 53 Developer Guide*.
613
+ # [Multivalue Answer Routing][1] in the *Route 53 Developer Guide*.
539
614
  #
540
615
  # **WEIGHTED**
541
616
  #
542
- # Route 53 returns the applicable value from one randomly selected
617
+ # Route 53 returns the applicable value from one randomly selected
543
618
  # instance from among the instances that you registered using the same
544
619
  # service. Currently, all records have the same weight, so you can't
545
620
  # route more or less traffic to any instances.
546
621
  #
547
- # For example, suppose the service includes configurations for one A
622
+ # For example, suppose the service includes configurations for one `A`
548
623
  # record and a health check, and you use the service to register 10
549
- # instances. Route 53 responds to DNS queries with the IP address for
624
+ # instances. Route 53 responds to DNS queries with the IP address for
550
625
  # one randomly selected instance from among the healthy instances. If
551
- # no instances are healthy, Route 53 responds to DNS queries as if all
626
+ # no instances are healthy, Route 53 responds to DNS queries as if all
552
627
  # of the instances were healthy.
553
628
  #
554
- # If you don't define a health check for the service, Route 53
629
+ # If you don't define a health check for the service, Route 53
555
630
  # assumes that all instances are healthy and returns the applicable
556
631
  # value for one randomly selected instance.
557
632
  #
558
633
  # For more information about the weighted routing policy, see
559
- # [Weighted Routing][2] in the *Route 53 Developer Guide*.
634
+ # [Weighted Routing][2] in the *Route 53 Developer Guide*.
560
635
  #
561
636
  #
562
637
  #
@@ -565,7 +640,7 @@ module Aws::ServiceDiscovery
565
640
  # @return [String]
566
641
  #
567
642
  # @!attribute [rw] dns_records
568
- # An array that contains one `DnsRecord` object for each Route 53 DNS
643
+ # An array that contains one `DnsRecord` object for each Route 53 DNS
569
644
  # record that you want AWS Cloud Map to create when you register an
570
645
  # instance.
571
646
  # @return [Array<Types::DnsRecord>]
@@ -576,10 +651,11 @@ module Aws::ServiceDiscovery
576
651
  :namespace_id,
577
652
  :routing_policy,
578
653
  :dns_records)
654
+ SENSITIVE = []
579
655
  include Aws::Structure
580
656
  end
581
657
 
582
- # A complex type that contains information about changes to the Route 53
658
+ # A complex type that contains information about changes to the Route 53
583
659
  # DNS records that AWS Cloud Map creates when you register an instance.
584
660
  #
585
661
  # @note When making an API call, you may pass DnsConfigChange
@@ -595,7 +671,7 @@ module Aws::ServiceDiscovery
595
671
  # }
596
672
  #
597
673
  # @!attribute [rw] dns_records
598
- # An array that contains one `DnsRecord` object for each Route 53
674
+ # An array that contains one `DnsRecord` object for each Route 53
599
675
  # record that you want AWS Cloud Map to create when you register an
600
676
  # instance.
601
677
  # @return [Array<Types::DnsRecord>]
@@ -604,14 +680,15 @@ module Aws::ServiceDiscovery
604
680
  #
605
681
  class DnsConfigChange < Struct.new(
606
682
  :dns_records)
683
+ SENSITIVE = []
607
684
  include Aws::Structure
608
685
  end
609
686
 
610
- # A complex type that contains the ID for the Route 53 hosted zone that
687
+ # A complex type that contains the ID for the Route 53 hosted zone that
611
688
  # AWS Cloud Map creates when you create a namespace.
612
689
  #
613
690
  # @!attribute [rw] hosted_zone_id
614
- # The ID for the Route 53 hosted zone that AWS Cloud Map creates when
691
+ # The ID for the Route 53 hosted zone that AWS Cloud Map creates when
615
692
  # you create a namespace.
616
693
  # @return [String]
617
694
  #
@@ -619,10 +696,11 @@ module Aws::ServiceDiscovery
619
696
  #
620
697
  class DnsProperties < Struct.new(
621
698
  :hosted_zone_id)
699
+ SENSITIVE = []
622
700
  include Aws::Structure
623
701
  end
624
702
 
625
- # A complex type that contains information about the Route 53 DNS
703
+ # A complex type that contains information about the Route 53 DNS
626
704
  # records that you want AWS Cloud Map to create when you register an
627
705
  # instance.
628
706
  #
@@ -636,110 +714,91 @@ module Aws::ServiceDiscovery
636
714
  #
637
715
  # @!attribute [rw] type
638
716
  # The type of the resource, which indicates the type of value that
639
- # Route 53 returns in response to DNS queries. You can specify values
717
+ # Route 53 returns in response to DNS queries. You can specify values
640
718
  # for `Type` in the following combinations:
641
719
  #
642
- # * A
720
+ # * `A`
643
721
  #
644
- # * AAAA
722
+ # * `AAAA`
645
723
  #
646
- # * A and AAAA
724
+ # * `A` and `AAAA`
647
725
  #
648
- # * SRV
726
+ # * `SRV`
649
727
  #
650
- # * CNAME
728
+ # * `CNAME`
651
729
  #
652
- # If you want AWS Cloud Map to create a Route 53 alias record when you
730
+ # If you want AWS Cloud Map to create a Route 53 alias record when you
653
731
  # register an instance, specify `A` or `AAAA` for `Type`.
654
732
  #
655
- # You specify other settings, such as the IP address for A and AAAA
656
- # records, when you register an instance. For more information, see
657
- # [RegisterInstance][1].
733
+ # You specify other settings, such as the IP address for `A` and
734
+ # `AAAA` records, when you register an instance. For more information,
735
+ # see [RegisterInstance][1].
658
736
  #
659
737
  # The following values are supported:
660
738
  #
661
- # **A**
662
- #
663
- # Route 53 returns the IP address of the resource in IPv4 format, such
664
- # as 192.0.2.44.
665
- #
666
- # **AAAA**
667
- #
668
- # Route 53 returns the IP address of the resource in IPv6 format, such
669
- # as 2001:0db8:85a3:0000:0000:abcd:0001:2345.
670
- #
671
- # **CNAME**
672
- #
673
- # Route 53 returns the domain name of the resource, such as
674
- # www.example.com. Note the following:
675
- #
676
- # * You specify the domain name that you want to route traffic to when
677
- # you register an instance. For more information, see
678
- # [Attributes][2] in the topic [RegisterInstance][1].
679
- #
680
- # * You must specify `WEIGHTED` for the value of `RoutingPolicy`.
681
- #
682
- # * You can't specify both `CNAME` for `Type` and settings for
683
- # `HealthCheckConfig`. If you do, the request will fail with an
684
- # `InvalidInput` error.
685
- #
686
- # **SRV**
687
- #
688
- # Route 53 returns the value for an SRV record. The value for an SRV
689
- # record uses the following values:
690
- #
691
- # `priority weight port service-hostname`
692
- #
693
- # Note the following about the values:
694
- #
695
- # * The values of `priority` and `weight` are both set to `1` and
696
- # can't be changed.
697
- #
698
- # * The value of `port` comes from the value that you specify for the
699
- # `AWS_INSTANCE_PORT` attribute when you submit a
700
- # [RegisterInstance][1] request.
701
- #
702
- # * The value of `service-hostname` is a concatenation of the
703
- # following values:
704
- #
705
- # * The value that you specify for `InstanceId` when you register an
706
- # instance.
707
- #
708
- # * The name of the service.
709
- #
710
- # * The name of the namespace.
711
- #
712
- # For example, if the value of `InstanceId` is `test`, the name of
713
- # the service is `backend`, and the name of the namespace is
714
- # `example.com`, the value of `service-hostname` is:
715
- #
716
- # `test.backend.example.com`
717
- #
718
- # If you specify settings for an SRV record, note the following:
719
- #
720
- # * If you specify values for `AWS_INSTANCE_IPV4`,
721
- # `AWS_INSTANCE_IPV6`, or both in the `RegisterInstance` request,
722
- # AWS Cloud Map automatically creates `A` and/or `AAAA` records that
723
- # have the same name as the value of `service-hostname` in the SRV
724
- # record. You can ignore these records.
725
- #
726
- # * If you're using a system that requires a specific SRV format,
727
- # such as HAProxy, see the [Name][3] element in the documentation
728
- # about `CreateService` for information about how to specify the
729
- # correct name format.
739
+ # `A` <b> <code> </b> </p> <p>Route 53 returns the IP address of the
740
+ # resource in IPv4 format, such as 192.0.2.44.</p> <p>
741
+ # <code>AAAA</code> <b> <code> </b> </p> <p>Route 53 returns the IP
742
+ # address of the resource in IPv6 format, such as
743
+ # 2001:0db8:85a3:0000:0000:abcd:0001:2345.</p> <p> <code>CNAME</code>
744
+ # <b> <code> </b> </p> <p>Route 53 returns the domain name of the
745
+ # resource, such as www.example.com. Note the following:</p> <ul> <li>
746
+ # <p>You specify the domain name that you want to route traffic to
747
+ # when you register an instance. For more information, see <a
748
+ # href="https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html#cloudmap-RegisterInstance-request-Attributes">Attributes</a>
749
+ # in the topic <a
750
+ # href="https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html">RegisterInstance</a>.</p>
751
+ # </li> <li> <p>You must specify <code>WEIGHTED</code> for the value
752
+ # of <code>RoutingPolicy</code>.</p> </li> <li> <p>You can't specify
753
+ # both <code>CNAME</code> for <code>Type</code> and settings for
754
+ # <code>HealthCheckConfig</code>. If you do, the request will fail
755
+ # with an <code>InvalidInput</code> error.</p> </li> </ul> <p>
756
+ # <b>SRV</b> </p> <p>Route 53 returns the value for an
757
+ # <code>SRV</code> record. The value for an <code>SRV</code> record
758
+ # uses the following values:</p> <p> <code>priority weight port
759
+ # service-hostname</code> </p> <p>Note the following about the
760
+ # values:</p> <ul> <li> <p>The values of <code>priority</code> and
761
+ # <code>weight</code> are both set to <code>1</code> and can't be
762
+ # changed. </p> </li> <li> <p>The value of <code>port</code> comes
763
+ # from the value that you specify for the
764
+ # <code>AWS_INSTANCE_PORT</code> attribute when you submit a <a
765
+ # href="https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html">RegisterInstance</a>
766
+ # request. </p> </li> <li> <p>The value of
767
+ # <code>service-hostname</code> is a concatenation of the following
768
+ # values:</p> <ul> <li> <p>The value that you specify for
769
+ # <code>InstanceId</code> when you register an instance.</p> </li>
770
+ # <li> <p>The name of the service.</p> </li> <li> <p>The name of the
771
+ # namespace. </p> </li> </ul> <p>For example, if the value of
772
+ # <code>InstanceId</code> is <code>test</code>, the name of the
773
+ # service is <code>backend</code>, and the name of the namespace is
774
+ # <code>example.com</code>, the value of <code>service-hostname</code>
775
+ # is:</p> <p> <code>test.backend.example.com</code> </p> </li> </ul>
776
+ # <p>If you specify settings for an <code>SRV</code> record, note the
777
+ # following:</p> <ul> <li> <p>If you specify values for
778
+ # <code>AWS_INSTANCE_IPV4</code>, <code>AWS_INSTANCE_IPV6</code>, or
779
+ # both in the <code>RegisterInstance</code> request, AWS Cloud Map
780
+ # automatically creates <code>A</code> and/or <code>AAAA</code>
781
+ # records that have the same name as the value of
782
+ # <code>service-hostname</code> in the <code>SRV</code> record. You
783
+ # can ignore these records.</p> </li> <li> <p>If you're using a system
784
+ # that requires a specific <code>SRV</code> format, such as HAProxy,
785
+ # see the <a
786
+ # href="https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html#cloudmap-CreateService-request-Name">Name</a>
787
+ # element in the documentation about <code>CreateService</code> for
788
+ # information about how to specify the correct name format.</p> </li>
789
+ # </ul>
790
+ # </code></b></p></code></b></p></code></b>
730
791
  #
731
792
  #
732
793
  #
733
794
  # [1]: https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html
734
- # [2]: https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html#cloudmap-RegisterInstance-request-Attributes
735
- # [3]: https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html#cloudmap-CreateService-request-Name
736
795
  # @return [String]
737
796
  #
738
797
  # @!attribute [rw] ttl
739
798
  # The amount of time, in seconds, that you want DNS resolvers to cache
740
799
  # the settings for this record.
741
800
  #
742
- # <note markdown="1"> Alias records don't include a TTL because Route 53 uses the TTL for
801
+ # <note markdown="1"> Alias records don't include a TTL because Route 53 uses the TTL for
743
802
  # the AWS resource that an alias record routes traffic to. If you
744
803
  # include the `AWS_ALIAS_DNS_NAME` attribute when you submit a
745
804
  # [RegisterInstance][1] request, the `TTL` value is ignored. Always
@@ -758,6 +817,7 @@ module Aws::ServiceDiscovery
758
817
  class DnsRecord < Struct.new(
759
818
  :type,
760
819
  :ttl)
820
+ SENSITIVE = []
761
821
  include Aws::Structure
762
822
  end
763
823
 
@@ -775,6 +835,7 @@ module Aws::ServiceDiscovery
775
835
  class DuplicateRequest < Struct.new(
776
836
  :message,
777
837
  :duplicate_operation_id)
838
+ SENSITIVE = []
778
839
  include Aws::Structure
779
840
  end
780
841
 
@@ -799,6 +860,7 @@ module Aws::ServiceDiscovery
799
860
  class GetInstanceRequest < Struct.new(
800
861
  :service_id,
801
862
  :instance_id)
863
+ SENSITIVE = []
802
864
  include Aws::Structure
803
865
  end
804
866
 
@@ -810,6 +872,7 @@ module Aws::ServiceDiscovery
810
872
  #
811
873
  class GetInstanceResponse < Struct.new(
812
874
  :instance)
875
+ SENSITIVE = []
813
876
  include Aws::Structure
814
877
  end
815
878
 
@@ -867,6 +930,7 @@ module Aws::ServiceDiscovery
867
930
  :instances,
868
931
  :max_results,
869
932
  :next_token)
933
+ SENSITIVE = []
870
934
  include Aws::Structure
871
935
  end
872
936
 
@@ -888,6 +952,7 @@ module Aws::ServiceDiscovery
888
952
  class GetInstancesHealthStatusResponse < Struct.new(
889
953
  :status,
890
954
  :next_token)
955
+ SENSITIVE = []
891
956
  include Aws::Structure
892
957
  end
893
958
 
@@ -906,6 +971,7 @@ module Aws::ServiceDiscovery
906
971
  #
907
972
  class GetNamespaceRequest < Struct.new(
908
973
  :id)
974
+ SENSITIVE = []
909
975
  include Aws::Structure
910
976
  end
911
977
 
@@ -918,6 +984,7 @@ module Aws::ServiceDiscovery
918
984
  #
919
985
  class GetNamespaceResponse < Struct.new(
920
986
  :namespace)
987
+ SENSITIVE = []
921
988
  include Aws::Structure
922
989
  end
923
990
 
@@ -936,6 +1003,7 @@ module Aws::ServiceDiscovery
936
1003
  #
937
1004
  class GetOperationRequest < Struct.new(
938
1005
  :operation_id)
1006
+ SENSITIVE = []
939
1007
  include Aws::Structure
940
1008
  end
941
1009
 
@@ -947,6 +1015,7 @@ module Aws::ServiceDiscovery
947
1015
  #
948
1016
  class GetOperationResponse < Struct.new(
949
1017
  :operation)
1018
+ SENSITIVE = []
950
1019
  include Aws::Structure
951
1020
  end
952
1021
 
@@ -965,6 +1034,7 @@ module Aws::ServiceDiscovery
965
1034
  #
966
1035
  class GetServiceRequest < Struct.new(
967
1036
  :id)
1037
+ SENSITIVE = []
968
1038
  include Aws::Structure
969
1039
  end
970
1040
 
@@ -976,6 +1046,7 @@ module Aws::ServiceDiscovery
976
1046
  #
977
1047
  class GetServiceResponse < Struct.new(
978
1048
  :service)
1049
+ SENSITIVE = []
979
1050
  include Aws::Structure
980
1051
  end
981
1052
 
@@ -987,21 +1058,21 @@ module Aws::ServiceDiscovery
987
1058
  # If you specify a health check configuration, you can specify either
988
1059
  # `HealthCheckCustomConfig` or `HealthCheckConfig` but not both.
989
1060
  #
990
- # Health checks are basic Route 53 health checks that monitor an AWS
1061
+ # Health checks are basic Route 53 health checks that monitor an AWS
991
1062
  # endpoint. For information about pricing for health checks, see [Amazon
992
- # Route 53 Pricing][1].
1063
+ # Route 53 Pricing][1].
993
1064
  #
994
1065
  # Note the following about configuring health checks.
995
1066
  #
996
- # **A and AAAA records**
1067
+ # <b> <code>A</code> and <code>AAAA</code> records</b>
997
1068
  #
998
- # If `DnsConfig` includes configurations for both A and AAAA records,
999
- # AWS Cloud Map creates a health check that uses the IPv4 address to
1000
- # check the health of the resource. If the endpoint that is specified by
1001
- # the IPv4 address is unhealthy, Route 53 considers both the A and AAAA
1002
- # records to be unhealthy.
1069
+ # If `DnsConfig` includes configurations for both `A` and `AAAA`
1070
+ # records, AWS Cloud Map creates a health check that uses the IPv4
1071
+ # address to check the health of the resource. If the endpoint that is
1072
+ # specified by the IPv4 address is unhealthy, Route 53 considers both
1073
+ # the `A` and `AAAA` records to be unhealthy.
1003
1074
  #
1004
- # **CNAME records**
1075
+ # <b> <code>CNAME</code> records</b>
1005
1076
  #
1006
1077
  # You can't specify settings for `HealthCheckConfig` when the
1007
1078
  # `DNSConfig` includes `CNAME` for the value of `Type`. If you do, the
@@ -1009,7 +1080,7 @@ module Aws::ServiceDiscovery
1009
1080
  #
1010
1081
  # **Request interval**
1011
1082
  #
1012
- # A Route 53 health checker in each health-checking region sends a
1083
+ # A Route 53 health checker in each health-checking region sends a
1013
1084
  # health check request to an endpoint every 30 seconds. On average, your
1014
1085
  # endpoint receives a health check request about every two seconds.
1015
1086
  # However, health checkers don't coordinate with one another, so
@@ -1018,29 +1089,29 @@ module Aws::ServiceDiscovery
1018
1089
  #
1019
1090
  # **Health checking regions**
1020
1091
  #
1021
- # Health checkers perform checks from all Route 53 health-checking
1092
+ # Health checkers perform checks from all Route 53 health-checking
1022
1093
  # regions. For a list of the current regions, see [Regions][2].
1023
1094
  #
1024
1095
  # **Alias records**
1025
1096
  #
1026
1097
  # When you register an instance, if you include the `AWS_ALIAS_DNS_NAME`
1027
- # attribute, AWS Cloud Map creates a Route 53 alias record. Note the
1098
+ # attribute, AWS Cloud Map creates a Route 53 alias record. Note the
1028
1099
  # following:
1029
1100
  #
1030
- # * Route 53 automatically sets `EvaluateTargetHealth` to true for alias
1101
+ # * Route 53 automatically sets `EvaluateTargetHealth` to true for alias
1031
1102
  # records. When `EvaluateTargetHealth` is true, the alias record
1032
1103
  # inherits the health of the referenced AWS resource. such as an ELB
1033
1104
  # load balancer. For more information, see [EvaluateTargetHealth][3].
1034
1105
  #
1035
1106
  # * If you include `HealthCheckConfig` and then use the service to
1036
- # register an instance that creates an alias record, Route 53 doesn't
1107
+ # register an instance that creates an alias record, Route 53 doesn't
1037
1108
  # create the health check.
1038
1109
  #
1039
1110
  # **Charges for health checks**
1040
1111
  #
1041
- # Health checks are basic Route 53 health checks that monitor an AWS
1112
+ # Health checks are basic Route 53 health checks that monitor an AWS
1042
1113
  # endpoint. For information about pricing for health checks, see [Amazon
1043
- # Route 53 Pricing][1].
1114
+ # Route 53 Pricing][1].
1044
1115
  #
1045
1116
  #
1046
1117
  #
@@ -1059,31 +1130,31 @@ module Aws::ServiceDiscovery
1059
1130
  #
1060
1131
  # @!attribute [rw] type
1061
1132
  # The type of health check that you want to create, which indicates
1062
- # how Route 53 determines whether an endpoint is healthy.
1133
+ # how Route 53 determines whether an endpoint is healthy.
1063
1134
  #
1064
1135
  # You can't change the value of `Type` after you create a health
1065
1136
  # check.
1066
1137
  #
1067
1138
  # You can create the following types of health checks:
1068
1139
  #
1069
- # * **HTTP**\: Route 53 tries to establish a TCP connection. If
1070
- # successful, Route 53 submits an HTTP request and waits for an HTTP
1140
+ # * **HTTP**\: Route 53 tries to establish a TCP connection. If
1141
+ # successful, Route 53 submits an HTTP request and waits for an HTTP
1071
1142
  # status code of 200 or greater and less than 400.
1072
1143
  #
1073
- # * **HTTPS**\: Route 53 tries to establish a TCP connection. If
1074
- # successful, Route 53 submits an HTTPS request and waits for an
1144
+ # * **HTTPS**\: Route 53 tries to establish a TCP connection. If
1145
+ # successful, Route 53 submits an HTTPS request and waits for an
1075
1146
  # HTTP status code of 200 or greater and less than 400.
1076
1147
  #
1077
1148
  # If you specify HTTPS for the value of `Type`, the endpoint must
1078
1149
  # support TLS v1.0 or later.
1079
1150
  #
1080
- # * **TCP**\: Route 53 tries to establish a TCP connection.
1151
+ # * **TCP**\: Route 53 tries to establish a TCP connection.
1081
1152
  #
1082
1153
  # If you specify `TCP` for `Type`, don't specify a value for
1083
1154
  # `ResourcePath`.
1084
1155
  #
1085
- # For more information, see [How Route 53 Determines Whether an
1086
- # Endpoint Is Healthy][1] in the *Route 53 Developer Guide*.
1156
+ # For more information, see [How Route 53 Determines Whether an
1157
+ # Endpoint Is Healthy][1] in the *Route 53 Developer Guide*.
1087
1158
  #
1088
1159
  #
1089
1160
  #
@@ -1091,12 +1162,12 @@ module Aws::ServiceDiscovery
1091
1162
  # @return [String]
1092
1163
  #
1093
1164
  # @!attribute [rw] resource_path
1094
- # The path that you want Route 53 to request when performing health
1165
+ # The path that you want Route 53 to request when performing health
1095
1166
  # checks. The path can be any value for which your endpoint will
1096
1167
  # return an HTTP status code of 2xx or 3xx when the endpoint is
1097
- # healthy, such as the file `/docs/route53-health-check.html`. Route
1098
- # 53 automatically adds the DNS name for the service. If you don't
1099
- # specify a value for `ResourcePath`, the default value is `/`.
1168
+ # healthy, such as the file `/docs/route53-health-check.html`.
1169
+ # Route 53 automatically adds the DNS name for the service. If you
1170
+ # don't specify a value for `ResourcePath`, the default value is `/`.
1100
1171
  #
1101
1172
  # If you specify `TCP` for `Type`, you must *not* specify a value for
1102
1173
  # `ResourcePath`.
@@ -1104,10 +1175,10 @@ module Aws::ServiceDiscovery
1104
1175
  #
1105
1176
  # @!attribute [rw] failure_threshold
1106
1177
  # The number of consecutive health checks that an endpoint must pass
1107
- # or fail for Route 53 to change the current status of the endpoint
1178
+ # or fail for Route 53 to change the current status of the endpoint
1108
1179
  # from unhealthy to healthy or vice versa. For more information, see
1109
- # [How Route 53 Determines Whether an Endpoint Is Healthy][1] in the
1110
- # *Route 53 Developer Guide*.
1180
+ # [How Route 53 Determines Whether an Endpoint Is Healthy][1] in the
1181
+ # *Route 53 Developer Guide*.
1111
1182
  #
1112
1183
  #
1113
1184
  #
@@ -1120,6 +1191,7 @@ module Aws::ServiceDiscovery
1120
1191
  :type,
1121
1192
  :resource_path,
1122
1193
  :failure_threshold)
1194
+ SENSITIVE = []
1123
1195
  include Aws::Structure
1124
1196
  end
1125
1197
 
@@ -1209,6 +1281,7 @@ module Aws::ServiceDiscovery
1209
1281
  #
1210
1282
  class HealthCheckCustomConfig < Struct.new(
1211
1283
  :failure_threshold)
1284
+ SENSITIVE = []
1212
1285
  include Aws::Structure
1213
1286
  end
1214
1287
 
@@ -1253,6 +1326,7 @@ module Aws::ServiceDiscovery
1253
1326
  :service_name,
1254
1327
  :health_status,
1255
1328
  :attributes)
1329
+ SENSITIVE = []
1256
1330
  include Aws::Structure
1257
1331
  end
1258
1332
 
@@ -1266,6 +1340,7 @@ module Aws::ServiceDiscovery
1266
1340
  #
1267
1341
  class HttpProperties < Struct.new(
1268
1342
  :http_name)
1343
+ SENSITIVE = []
1269
1344
  include Aws::Structure
1270
1345
  end
1271
1346
 
@@ -1277,8 +1352,8 @@ module Aws::ServiceDiscovery
1277
1352
  # following:
1278
1353
  #
1279
1354
  # * If the service that is specified by `ServiceId` includes settings
1280
- # for an SRV record, the value of `InstanceId` is automatically
1281
- # included as part of the value for the SRV record. For more
1355
+ # for an `SRV` record, the value of `InstanceId` is automatically
1356
+ # included as part of the value for the `SRV` record. For more
1282
1357
  # information, see [DnsRecord &gt; Type][1].
1283
1358
  #
1284
1359
  # * You can use this value to update an existing instance.
@@ -1328,7 +1403,7 @@ module Aws::ServiceDiscovery
1328
1403
  #
1329
1404
  # ****
1330
1405
  #
1331
- # If you want AWS Cloud Map to create a Route 53 alias record that
1406
+ # If you want AWS Cloud Map to create a Route 53 alias record that
1332
1407
  # routes traffic to an Elastic Load Balancing load balancer, specify
1333
1408
  # the DNS name that is associated with the load balancer. For
1334
1409
  # information about how to get the DNS name, see "DNSName" in the
@@ -1337,7 +1412,8 @@ module Aws::ServiceDiscovery
1337
1412
  # Note the following:
1338
1413
  #
1339
1414
  # * The configuration for the service that is specified by `ServiceId`
1340
- # must include settings for an A record, an AAAA record, or both.
1415
+ # must include settings for an `A` record, an `AAAA` record, or
1416
+ # both.
1341
1417
  #
1342
1418
  # * In the service that is specified by `ServiceId`, the value of
1343
1419
  # `RoutingPolicy` must be `WEIGHTED`.
@@ -1353,47 +1429,53 @@ module Aws::ServiceDiscovery
1353
1429
  # * If you specify a value for `AWS_ALIAS_DNS_NAME`, don't specify
1354
1430
  # values for any of the `AWS_INSTANCE` attributes.
1355
1431
  #
1432
+ # **AWS\_EC2\_INSTANCE\_ID**
1433
+ #
1434
+ # *HTTP namespaces only.* The Amazon EC2 instance ID for the instance.
1435
+ # The `AWS_INSTANCE_IPV4` attribute contains the primary private IPv4
1436
+ # address.
1437
+ #
1356
1438
  # **AWS\_INSTANCE\_CNAME**
1357
1439
  #
1358
- # If the service configuration includes a CNAME record, the domain
1359
- # name that you want Route 53 to return in response to DNS queries,
1440
+ # If the service configuration includes a `CNAME` record, the domain
1441
+ # name that you want Route 53 to return in response to DNS queries,
1360
1442
  # for example, `example.com`.
1361
1443
  #
1362
1444
  # This value is required if the service specified by `ServiceId`
1363
- # includes settings for an CNAME record.
1445
+ # includes settings for an `CNAME` record.
1364
1446
  #
1365
1447
  # **AWS\_INSTANCE\_IPV4**
1366
1448
  #
1367
- # If the service configuration includes an A record, the IPv4 address
1368
- # that you want Route 53 to return in response to DNS queries, for
1369
- # example, `192.0.2.44`.
1449
+ # If the service configuration includes an `A` record, the IPv4
1450
+ # address that you want Route 53 to return in response to DNS queries,
1451
+ # for example, `192.0.2.44`.
1370
1452
  #
1371
1453
  # This value is required if the service specified by `ServiceId`
1372
- # includes settings for an A record. If the service includes settings
1373
- # for an SRV record, you must specify a value for `AWS_INSTANCE_IPV4`,
1374
- # `AWS_INSTANCE_IPV6`, or both.
1454
+ # includes settings for an `A` record. If the service includes
1455
+ # settings for an `SRV` record, you must specify a value for
1456
+ # `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
1375
1457
  #
1376
1458
  # **AWS\_INSTANCE\_IPV6**
1377
1459
  #
1378
- # If the service configuration includes an AAAA record, the IPv6
1379
- # address that you want Route 53 to return in response to DNS queries,
1460
+ # If the service configuration includes an `AAAA` record, the IPv6
1461
+ # address that you want Route 53 to return in response to DNS queries,
1380
1462
  # for example, `2001:0db8:85a3:0000:0000:abcd:0001:2345`.
1381
1463
  #
1382
1464
  # This value is required if the service specified by `ServiceId`
1383
- # includes settings for an AAAA record. If the service includes
1384
- # settings for an SRV record, you must specify a value for
1465
+ # includes settings for an `AAAA` record. If the service includes
1466
+ # settings for an `SRV` record, you must specify a value for
1385
1467
  # `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
1386
1468
  #
1387
1469
  # **AWS\_INSTANCE\_PORT**
1388
1470
  #
1389
- # If the service includes an SRV record, the value that you want Route
1390
- # 53 to return for the port.
1471
+ # If the service includes an `SRV` record, the value that you want
1472
+ # Route 53 to return for the port.
1391
1473
  #
1392
1474
  # If the service includes `HealthCheckConfig`, the port on the
1393
- # endpoint that you want Route 53 to send requests to.
1475
+ # endpoint that you want Route 53 to send requests to.
1394
1476
  #
1395
- # This value is required if you specified settings for an SRV record
1396
- # or a Route 53 health check when you created the service.
1477
+ # This value is required if you specified settings for an `SRV` record
1478
+ # or a Route 53 health check when you created the service.
1397
1479
  #
1398
1480
  #
1399
1481
  #
@@ -1406,6 +1488,7 @@ module Aws::ServiceDiscovery
1406
1488
  :id,
1407
1489
  :creator_request_id,
1408
1490
  :attributes)
1491
+ SENSITIVE = []
1409
1492
  include Aws::Structure
1410
1493
  end
1411
1494
 
@@ -1419,6 +1502,7 @@ module Aws::ServiceDiscovery
1419
1502
  #
1420
1503
  class InstanceNotFound < Struct.new(
1421
1504
  :message)
1505
+ SENSITIVE = []
1422
1506
  include Aws::Structure
1423
1507
  end
1424
1508
 
@@ -1443,20 +1527,26 @@ module Aws::ServiceDiscovery
1443
1527
  # an Elastic Load Balancing load balancer, the DNS name that is
1444
1528
  # associated with the load balancer.
1445
1529
  #
1446
- # * `AWS_INSTANCE_CNAME`\: For a CNAME record, the domain name that
1447
- # Route 53 returns in response to DNS queries, for example,
1530
+ # * `AWS_EC2_INSTANCE_ID`\: (HTTP namespaces only) The Amazon EC2
1531
+ # instance ID for the instance. When the `AWS_EC2_INSTANCE_ID`
1532
+ # attribute is specified, then the `AWS_INSTANCE_IPV4` attribute
1533
+ # contains the primary private IPv4 address.
1534
+ #
1535
+ # * `AWS_INSTANCE_CNAME`\: For a `CNAME` record, the domain name that
1536
+ # Route 53 returns in response to DNS queries, for example,
1448
1537
  # `example.com`.
1449
1538
  #
1450
- # * `AWS_INSTANCE_IPV4`\: For an A record, the IPv4 address that Route
1451
- # 53 returns in response to DNS queries, for example, `192.0.2.44`.
1539
+ # * `AWS_INSTANCE_IPV4`\: For an `A` record, the IPv4 address that
1540
+ # Route 53 returns in response to DNS queries, for example,
1541
+ # `192.0.2.44`.
1452
1542
  #
1453
- # * `AWS_INSTANCE_IPV6`\: For an AAAA record, the IPv6 address that
1454
- # Route 53 returns in response to DNS queries, for example,
1543
+ # * `AWS_INSTANCE_IPV6`\: For an `AAAA` record, the IPv6 address that
1544
+ # Route 53 returns in response to DNS queries, for example,
1455
1545
  # `2001:0db8:85a3:0000:0000:abcd:0001:2345`.
1456
1546
  #
1457
- # * `AWS_INSTANCE_PORT`\: For an SRV record, the value that Route 53
1547
+ # * `AWS_INSTANCE_PORT`\: For an `SRV` record, the value that Route 53
1458
1548
  # returns for the port. In addition, if the service includes
1459
- # `HealthCheckConfig`, the port on the endpoint that Route 53 sends
1549
+ # `HealthCheckConfig`, the port on the endpoint that Route 53 sends
1460
1550
  # requests to.
1461
1551
  # @return [Hash<String,String>]
1462
1552
  #
@@ -1465,6 +1555,7 @@ module Aws::ServiceDiscovery
1465
1555
  class InstanceSummary < Struct.new(
1466
1556
  :id,
1467
1557
  :attributes)
1558
+ SENSITIVE = []
1468
1559
  include Aws::Structure
1469
1560
  end
1470
1561
 
@@ -1479,6 +1570,7 @@ module Aws::ServiceDiscovery
1479
1570
  #
1480
1571
  class InvalidInput < Struct.new(
1481
1572
  :message)
1573
+ SENSITIVE = []
1482
1574
  include Aws::Structure
1483
1575
  end
1484
1576
 
@@ -1517,6 +1609,7 @@ module Aws::ServiceDiscovery
1517
1609
  :service_id,
1518
1610
  :next_token,
1519
1611
  :max_results)
1612
+ SENSITIVE = []
1520
1613
  include Aws::Structure
1521
1614
  end
1522
1615
 
@@ -1537,6 +1630,7 @@ module Aws::ServiceDiscovery
1537
1630
  class ListInstancesResponse < Struct.new(
1538
1631
  :instances,
1539
1632
  :next_token)
1633
+ SENSITIVE = []
1540
1634
  include Aws::Structure
1541
1635
  end
1542
1636
 
@@ -1593,6 +1687,7 @@ module Aws::ServiceDiscovery
1593
1687
  :next_token,
1594
1688
  :max_results,
1595
1689
  :filters)
1690
+ SENSITIVE = []
1596
1691
  include Aws::Structure
1597
1692
  end
1598
1693
 
@@ -1621,6 +1716,7 @@ module Aws::ServiceDiscovery
1621
1716
  class ListNamespacesResponse < Struct.new(
1622
1717
  :namespaces,
1623
1718
  :next_token)
1719
+ SENSITIVE = []
1624
1720
  include Aws::Structure
1625
1721
  end
1626
1722
 
@@ -1677,6 +1773,7 @@ module Aws::ServiceDiscovery
1677
1773
  :next_token,
1678
1774
  :max_results,
1679
1775
  :filters)
1776
+ SENSITIVE = []
1680
1777
  include Aws::Structure
1681
1778
  end
1682
1779
 
@@ -1705,6 +1802,7 @@ module Aws::ServiceDiscovery
1705
1802
  class ListOperationsResponse < Struct.new(
1706
1803
  :operations,
1707
1804
  :next_token)
1805
+ SENSITIVE = []
1708
1806
  include Aws::Structure
1709
1807
  end
1710
1808
 
@@ -1759,6 +1857,7 @@ module Aws::ServiceDiscovery
1759
1857
  :next_token,
1760
1858
  :max_results,
1761
1859
  :filters)
1860
+ SENSITIVE = []
1762
1861
  include Aws::Structure
1763
1862
  end
1764
1863
 
@@ -1786,6 +1885,39 @@ module Aws::ServiceDiscovery
1786
1885
  class ListServicesResponse < Struct.new(
1787
1886
  :services,
1788
1887
  :next_token)
1888
+ SENSITIVE = []
1889
+ include Aws::Structure
1890
+ end
1891
+
1892
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1893
+ # data as a hash:
1894
+ #
1895
+ # {
1896
+ # resource_arn: "AmazonResourceName", # required
1897
+ # }
1898
+ #
1899
+ # @!attribute [rw] resource_arn
1900
+ # The Amazon Resource Name (ARN) of the resource that you want to
1901
+ # retrieve tags for.
1902
+ # @return [String]
1903
+ #
1904
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListTagsForResourceRequest AWS API Documentation
1905
+ #
1906
+ class ListTagsForResourceRequest < Struct.new(
1907
+ :resource_arn)
1908
+ SENSITIVE = []
1909
+ include Aws::Structure
1910
+ end
1911
+
1912
+ # @!attribute [rw] tags
1913
+ # The tags that are assigned to the resource.
1914
+ # @return [Array<Types::Tag>]
1915
+ #
1916
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListTagsForResourceResponse AWS API Documentation
1917
+ #
1918
+ class ListTagsForResourceResponse < Struct.new(
1919
+ :tags)
1920
+ SENSITIVE = []
1789
1921
  include Aws::Structure
1790
1922
  end
1791
1923
 
@@ -1857,6 +1989,7 @@ module Aws::ServiceDiscovery
1857
1989
  :properties,
1858
1990
  :create_date,
1859
1991
  :creator_request_id)
1992
+ SENSITIVE = []
1860
1993
  include Aws::Structure
1861
1994
  end
1862
1995
 
@@ -1879,6 +2012,7 @@ module Aws::ServiceDiscovery
1879
2012
  :message,
1880
2013
  :creator_request_id,
1881
2014
  :namespace_id)
2015
+ SENSITIVE = []
1882
2016
  include Aws::Structure
1883
2017
  end
1884
2018
 
@@ -1927,6 +2061,7 @@ module Aws::ServiceDiscovery
1927
2061
  :name,
1928
2062
  :values,
1929
2063
  :condition)
2064
+ SENSITIVE = []
1930
2065
  include Aws::Structure
1931
2066
  end
1932
2067
 
@@ -1939,6 +2074,7 @@ module Aws::ServiceDiscovery
1939
2074
  #
1940
2075
  class NamespaceNotFound < Struct.new(
1941
2076
  :message)
2077
+ SENSITIVE = []
1942
2078
  include Aws::Structure
1943
2079
  end
1944
2080
 
@@ -1946,7 +2082,7 @@ module Aws::ServiceDiscovery
1946
2082
  # namespace type.
1947
2083
  #
1948
2084
  # @!attribute [rw] dns_properties
1949
- # A complex type that contains the ID for the Route 53 hosted zone
2085
+ # A complex type that contains the ID for the Route 53 hosted zone
1950
2086
  # that AWS Cloud Map creates when you create a namespace.
1951
2087
  # @return [Types::DnsProperties]
1952
2088
  #
@@ -1959,6 +2095,7 @@ module Aws::ServiceDiscovery
1959
2095
  class NamespaceProperties < Struct.new(
1960
2096
  :dns_properties,
1961
2097
  :http_properties)
2098
+ SENSITIVE = []
1962
2099
  include Aws::Structure
1963
2100
  end
1964
2101
 
@@ -1975,7 +2112,7 @@ module Aws::ServiceDiscovery
1975
2112
  #
1976
2113
  # @!attribute [rw] name
1977
2114
  # The name of the namespace. When you create a namespace, AWS Cloud
1978
- # Map automatically creates a Route 53 hosted zone that has the same
2115
+ # Map automatically creates a Route 53 hosted zone that has the same
1979
2116
  # name as the namespace.
1980
2117
  # @return [String]
1981
2118
  #
@@ -2011,6 +2148,7 @@ module Aws::ServiceDiscovery
2011
2148
  :service_count,
2012
2149
  :properties,
2013
2150
  :create_date)
2151
+ SENSITIVE = []
2014
2152
  include Aws::Structure
2015
2153
  end
2016
2154
 
@@ -2102,6 +2240,7 @@ module Aws::ServiceDiscovery
2102
2240
  :create_date,
2103
2241
  :update_date,
2104
2242
  :targets)
2243
+ SENSITIVE = []
2105
2244
  include Aws::Structure
2106
2245
  end
2107
2246
 
@@ -2179,6 +2318,7 @@ module Aws::ServiceDiscovery
2179
2318
  :name,
2180
2319
  :values,
2181
2320
  :condition)
2321
+ SENSITIVE = []
2182
2322
  include Aws::Structure
2183
2323
  end
2184
2324
 
@@ -2191,6 +2331,7 @@ module Aws::ServiceDiscovery
2191
2331
  #
2192
2332
  class OperationNotFound < Struct.new(
2193
2333
  :message)
2334
+ SENSITIVE = []
2194
2335
  include Aws::Structure
2195
2336
  end
2196
2337
 
@@ -2225,6 +2366,7 @@ module Aws::ServiceDiscovery
2225
2366
  class OperationSummary < Struct.new(
2226
2367
  :id,
2227
2368
  :status)
2369
+ SENSITIVE = []
2228
2370
  include Aws::Structure
2229
2371
  end
2230
2372
 
@@ -2250,8 +2392,8 @@ module Aws::ServiceDiscovery
2250
2392
  # following:
2251
2393
  #
2252
2394
  # * If the service that is specified by `ServiceId` includes settings
2253
- # for an SRV record, the value of `InstanceId` is automatically
2254
- # included as part of the value for the SRV record. For more
2395
+ # for an `SRV` record, the value of `InstanceId` is automatically
2396
+ # included as part of the value for the `SRV` record. For more
2255
2397
  # information, see [DnsRecord &gt; Type][1].
2256
2398
  #
2257
2399
  # * You can use this value to update an existing instance.
@@ -2302,33 +2444,42 @@ module Aws::ServiceDiscovery
2302
2444
  #
2303
2445
  # **AWS\_ALIAS\_DNS\_NAME**
2304
2446
  #
2305
- # ****
2306
- #
2307
- # If you want AWS Cloud Map to create an Amazon Route 53 alias record
2447
+ # If you want AWS Cloud Map to create an Amazon Route 53 alias record
2308
2448
  # that routes traffic to an Elastic Load Balancing load balancer,
2309
2449
  # specify the DNS name that is associated with the load balancer. For
2310
2450
  # information about how to get the DNS name, see "DNSName" in the
2311
- # topic [AliasTarget][1] in the *Route 53 API Reference*.
2451
+ # topic [AliasTarget][1] in the *Route 53 API Reference*.
2312
2452
  #
2313
2453
  # Note the following:
2314
2454
  #
2315
2455
  # * The configuration for the service that is specified by `ServiceId`
2316
- # must include settings for an A record, an AAAA record, or both.
2456
+ # must include settings for an `A` record, an `AAAA` record, or
2457
+ # both.
2317
2458
  #
2318
2459
  # * In the service that is specified by `ServiceId`, the value of
2319
2460
  # `RoutingPolicy` must be `WEIGHTED`.
2320
2461
  #
2321
2462
  # * If the service that is specified by `ServiceId` includes
2322
- # `HealthCheckConfig` settings, AWS Cloud Map will create the Route
2323
- # 53 health check, but it won't associate the health check with the
2324
- # alias record.
2463
+ # `HealthCheckConfig` settings, AWS Cloud Map will create the
2464
+ # Route 53 health check, but it won't associate the health check
2465
+ # with the alias record.
2325
2466
  #
2326
2467
  # * Auto naming currently doesn't support creating alias records that
2327
- # route traffic to AWS resources other than ELB load balancers.
2468
+ # route traffic to AWS resources other than Elastic Load Balancing
2469
+ # load balancers.
2328
2470
  #
2329
2471
  # * If you specify a value for `AWS_ALIAS_DNS_NAME`, don't specify
2330
2472
  # values for any of the `AWS_INSTANCE` attributes.
2331
2473
  #
2474
+ # **AWS\_EC2\_INSTANCE\_ID**
2475
+ #
2476
+ # *HTTP namespaces only.* The Amazon EC2 instance ID for the instance.
2477
+ # If the `AWS_EC2_INSTANCE_ID` attribute is specified, then the only
2478
+ # other attribute that can be specified is `AWS_INIT_HEALTH_STATUS`.
2479
+ # When the `AWS_EC2_INSTANCE_ID` attribute is specified, then the
2480
+ # `AWS_INSTANCE_IPV4` attribute will be filled out with the primary
2481
+ # private IPv4 address.
2482
+ #
2332
2483
  # **AWS\_INIT\_HEALTH\_STATUS**
2333
2484
  #
2334
2485
  # If the service configuration includes `HealthCheckCustomConfig`, you
@@ -2339,51 +2490,53 @@ module Aws::ServiceDiscovery
2339
2490
  #
2340
2491
  # **AWS\_INSTANCE\_CNAME**
2341
2492
  #
2342
- # If the service configuration includes a CNAME record, the domain
2343
- # name that you want Route 53 to return in response to DNS queries,
2493
+ # If the service configuration includes a `CNAME` record, the domain
2494
+ # name that you want Route 53 to return in response to DNS queries,
2344
2495
  # for example, `example.com`.
2345
2496
  #
2346
2497
  # This value is required if the service specified by `ServiceId`
2347
- # includes settings for an CNAME record.
2498
+ # includes settings for an `CNAME` record.
2348
2499
  #
2349
2500
  # **AWS\_INSTANCE\_IPV4**
2350
2501
  #
2351
- # If the service configuration includes an A record, the IPv4 address
2352
- # that you want Route 53 to return in response to DNS queries, for
2353
- # example, `192.0.2.44`.
2502
+ # If the service configuration includes an `A` record, the IPv4
2503
+ # address that you want Route 53 to return in response to DNS queries,
2504
+ # for example, `192.0.2.44`.
2354
2505
  #
2355
2506
  # This value is required if the service specified by `ServiceId`
2356
- # includes settings for an A record. If the service includes settings
2357
- # for an SRV record, you must specify a value for `AWS_INSTANCE_IPV4`,
2358
- # `AWS_INSTANCE_IPV6`, or both.
2507
+ # includes settings for an `A` record. If the service includes
2508
+ # settings for an `SRV` record, you must specify a value for
2509
+ # `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
2359
2510
  #
2360
2511
  # **AWS\_INSTANCE\_IPV6**
2361
2512
  #
2362
- # If the service configuration includes an AAAA record, the IPv6
2363
- # address that you want Route 53 to return in response to DNS queries,
2513
+ # If the service configuration includes an `AAAA` record, the IPv6
2514
+ # address that you want Route 53 to return in response to DNS queries,
2364
2515
  # for example, `2001:0db8:85a3:0000:0000:abcd:0001:2345`.
2365
2516
  #
2366
2517
  # This value is required if the service specified by `ServiceId`
2367
- # includes settings for an AAAA record. If the service includes
2368
- # settings for an SRV record, you must specify a value for
2518
+ # includes settings for an `AAAA` record. If the service includes
2519
+ # settings for an `SRV` record, you must specify a value for
2369
2520
  # `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
2370
2521
  #
2371
2522
  # **AWS\_INSTANCE\_PORT**
2372
2523
  #
2373
- # If the service includes an SRV record, the value that you want Route
2374
- # 53 to return for the port.
2524
+ # If the service includes an `SRV` record, the value that you want
2525
+ # Route 53 to return for the port.
2375
2526
  #
2376
2527
  # If the service includes `HealthCheckConfig`, the port on the
2377
- # endpoint that you want Route 53 to send requests to.
2528
+ # endpoint that you want Route 53 to send requests to.
2378
2529
  #
2379
- # This value is required if you specified settings for an SRV record
2380
- # or a Route 53 health check when you created the service.
2530
+ # This value is required if you specified settings for an `SRV` record
2531
+ # or a Route 53 health check when you created the service.
2381
2532
  #
2382
2533
  # **Custom attributes**
2383
2534
  #
2384
2535
  # You can add up to 30 custom attributes. For each key-value pair, the
2385
2536
  # maximum length of the attribute name is 255 characters, and the
2386
- # maximum length of the attribute value is 1,024 characters.
2537
+ # maximum length of the attribute value is 1,024 characters. The total
2538
+ # size of all provided attributes (sum of all keys and values) must
2539
+ # not exceed 5,000 characters.
2387
2540
  #
2388
2541
  #
2389
2542
  #
@@ -2397,6 +2550,7 @@ module Aws::ServiceDiscovery
2397
2550
  :instance_id,
2398
2551
  :creator_request_id,
2399
2552
  :attributes)
2553
+ SENSITIVE = []
2400
2554
  include Aws::Structure
2401
2555
  end
2402
2556
 
@@ -2414,6 +2568,27 @@ module Aws::ServiceDiscovery
2414
2568
  #
2415
2569
  class RegisterInstanceResponse < Struct.new(
2416
2570
  :operation_id)
2571
+ SENSITIVE = []
2572
+ include Aws::Structure
2573
+ end
2574
+
2575
+ # The operation can't be completed because you've reached the quota
2576
+ # for the number of requests. For more information, see [AWS Cloud Map
2577
+ # API request throttling quota][1] in the *AWS Cloud Map Developer
2578
+ # Guide*.
2579
+ #
2580
+ #
2581
+ #
2582
+ # [1]: https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html
2583
+ #
2584
+ # @!attribute [rw] message
2585
+ # @return [String]
2586
+ #
2587
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/RequestLimitExceeded AWS API Documentation
2588
+ #
2589
+ class RequestLimitExceeded < Struct.new(
2590
+ :message)
2591
+ SENSITIVE = []
2417
2592
  include Aws::Structure
2418
2593
  end
2419
2594
 
@@ -2428,10 +2603,11 @@ module Aws::ServiceDiscovery
2428
2603
  #
2429
2604
  class ResourceInUse < Struct.new(
2430
2605
  :message)
2606
+ SENSITIVE = []
2431
2607
  include Aws::Structure
2432
2608
  end
2433
2609
 
2434
- # The resource can't be created because you've reached the limit on
2610
+ # The resource can't be created because you've reached the quota on
2435
2611
  # the number of resources.
2436
2612
  #
2437
2613
  # @!attribute [rw] message
@@ -2441,6 +2617,20 @@ module Aws::ServiceDiscovery
2441
2617
  #
2442
2618
  class ResourceLimitExceeded < Struct.new(
2443
2619
  :message)
2620
+ SENSITIVE = []
2621
+ include Aws::Structure
2622
+ end
2623
+
2624
+ # The operation can't be completed because the resource was not found.
2625
+ #
2626
+ # @!attribute [rw] message
2627
+ # @return [String]
2628
+ #
2629
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ResourceNotFoundException AWS API Documentation
2630
+ #
2631
+ class ResourceNotFoundException < Struct.new(
2632
+ :message)
2633
+ SENSITIVE = []
2444
2634
  include Aws::Structure
2445
2635
  end
2446
2636
 
@@ -2476,7 +2666,7 @@ module Aws::ServiceDiscovery
2476
2666
  # @return [Integer]
2477
2667
  #
2478
2668
  # @!attribute [rw] dns_config
2479
- # A complex type that contains information about the Route 53 DNS
2669
+ # A complex type that contains information about the Route 53 DNS
2480
2670
  # records that you want AWS Cloud Map to create when you register an
2481
2671
  # instance.
2482
2672
  # @return [Types::DnsConfig]
@@ -2488,7 +2678,7 @@ module Aws::ServiceDiscovery
2488
2678
  # records that you specify in `DnsConfig`.
2489
2679
  #
2490
2680
  # For information about the charges for health checks, see [Amazon
2491
- # Route 53 Pricing][1].
2681
+ # Route 53 Pricing][1].
2492
2682
  #
2493
2683
  #
2494
2684
  #
@@ -2531,6 +2721,7 @@ module Aws::ServiceDiscovery
2531
2721
  :health_check_custom_config,
2532
2722
  :create_date,
2533
2723
  :creator_request_id)
2724
+ SENSITIVE = []
2534
2725
  include Aws::Structure
2535
2726
  end
2536
2727
 
@@ -2554,6 +2745,7 @@ module Aws::ServiceDiscovery
2554
2745
  :message,
2555
2746
  :creator_request_id,
2556
2747
  :service_id)
2748
+ SENSITIVE = []
2557
2749
  include Aws::Structure
2558
2750
  end
2559
2751
 
@@ -2564,7 +2756,7 @@ module Aws::ServiceDiscovery
2564
2756
  #
2565
2757
  # {
2566
2758
  # description: "ResourceDescription",
2567
- # dns_config: { # required
2759
+ # dns_config: {
2568
2760
  # dns_records: [ # required
2569
2761
  # {
2570
2762
  # type: "SRV", # required, accepts SRV, A, AAAA, CNAME
@@ -2584,7 +2776,7 @@ module Aws::ServiceDiscovery
2584
2776
  # @return [String]
2585
2777
  #
2586
2778
  # @!attribute [rw] dns_config
2587
- # A complex type that contains information about the Route 53 DNS
2779
+ # A complex type that contains information about the Route 53 DNS
2588
2780
  # records that you want AWS Cloud Map to create when you register an
2589
2781
  # instance.
2590
2782
  # @return [Types::DnsConfigChange]
@@ -2598,21 +2790,21 @@ module Aws::ServiceDiscovery
2598
2790
  # If you specify a health check configuration, you can specify either
2599
2791
  # `HealthCheckCustomConfig` or `HealthCheckConfig` but not both.
2600
2792
  #
2601
- # Health checks are basic Route 53 health checks that monitor an AWS
2793
+ # Health checks are basic Route 53 health checks that monitor an AWS
2602
2794
  # endpoint. For information about pricing for health checks, see
2603
- # [Amazon Route 53 Pricing][1].
2795
+ # [Amazon Route 53 Pricing][1].
2604
2796
  #
2605
2797
  # Note the following about configuring health checks.
2606
2798
  #
2607
- # **A and AAAA records**
2799
+ # <b> <code>A</code> and <code>AAAA</code> records</b>
2608
2800
  #
2609
- # If `DnsConfig` includes configurations for both A and AAAA records,
2610
- # AWS Cloud Map creates a health check that uses the IPv4 address to
2611
- # check the health of the resource. If the endpoint that is specified
2612
- # by the IPv4 address is unhealthy, Route 53 considers both the A and
2613
- # AAAA records to be unhealthy.
2801
+ # If `DnsConfig` includes configurations for both `A` and `AAAA`
2802
+ # records, AWS Cloud Map creates a health check that uses the IPv4
2803
+ # address to check the health of the resource. If the endpoint that is
2804
+ # specified by the IPv4 address is unhealthy, Route 53 considers both
2805
+ # the `A` and `AAAA` records to be unhealthy.
2614
2806
  #
2615
- # **CNAME records**
2807
+ # <b> <code>CNAME</code> records</b>
2616
2808
  #
2617
2809
  # You can't specify settings for `HealthCheckConfig` when the
2618
2810
  # `DNSConfig` includes `CNAME` for the value of `Type`. If you do, the
@@ -2620,7 +2812,7 @@ module Aws::ServiceDiscovery
2620
2812
  #
2621
2813
  # **Request interval**
2622
2814
  #
2623
- # A Route 53 health checker in each health-checking region sends a
2815
+ # A Route 53 health checker in each health-checking region sends a
2624
2816
  # health check request to an endpoint every 30 seconds. On average,
2625
2817
  # your endpoint receives a health check request about every two
2626
2818
  # seconds. However, health checkers don't coordinate with one
@@ -2629,30 +2821,30 @@ module Aws::ServiceDiscovery
2629
2821
  #
2630
2822
  # **Health checking regions**
2631
2823
  #
2632
- # Health checkers perform checks from all Route 53 health-checking
2824
+ # Health checkers perform checks from all Route 53 health-checking
2633
2825
  # regions. For a list of the current regions, see [Regions][2].
2634
2826
  #
2635
2827
  # **Alias records**
2636
2828
  #
2637
2829
  # When you register an instance, if you include the
2638
- # `AWS_ALIAS_DNS_NAME` attribute, AWS Cloud Map creates a Route 53
2830
+ # `AWS_ALIAS_DNS_NAME` attribute, AWS Cloud Map creates a Route 53
2639
2831
  # alias record. Note the following:
2640
2832
  #
2641
- # * Route 53 automatically sets `EvaluateTargetHealth` to true for
2833
+ # * Route 53 automatically sets `EvaluateTargetHealth` to true for
2642
2834
  # alias records. When `EvaluateTargetHealth` is true, the alias
2643
2835
  # record inherits the health of the referenced AWS resource. such as
2644
2836
  # an ELB load balancer. For more information, see
2645
2837
  # [EvaluateTargetHealth][3].
2646
2838
  #
2647
2839
  # * If you include `HealthCheckConfig` and then use the service to
2648
- # register an instance that creates an alias record, Route 53
2840
+ # register an instance that creates an alias record, Route 53
2649
2841
  # doesn't create the health check.
2650
2842
  #
2651
2843
  # **Charges for health checks**
2652
2844
  #
2653
- # Health checks are basic Route 53 health checks that monitor an AWS
2845
+ # Health checks are basic Route 53 health checks that monitor an AWS
2654
2846
  # endpoint. For information about pricing for health checks, see
2655
- # [Amazon Route 53 Pricing][1].
2847
+ # [Amazon Route 53 Pricing][1].
2656
2848
  #
2657
2849
  #
2658
2850
  #
@@ -2667,6 +2859,7 @@ module Aws::ServiceDiscovery
2667
2859
  :description,
2668
2860
  :dns_config,
2669
2861
  :health_check_config)
2862
+ SENSITIVE = []
2670
2863
  include Aws::Structure
2671
2864
  end
2672
2865
 
@@ -2712,6 +2905,7 @@ module Aws::ServiceDiscovery
2712
2905
  :name,
2713
2906
  :values,
2714
2907
  :condition)
2908
+ SENSITIVE = []
2715
2909
  include Aws::Structure
2716
2910
  end
2717
2911
 
@@ -2724,6 +2918,7 @@ module Aws::ServiceDiscovery
2724
2918
  #
2725
2919
  class ServiceNotFound < Struct.new(
2726
2920
  :message)
2921
+ SENSITIVE = []
2727
2922
  include Aws::Structure
2728
2923
  end
2729
2924
 
@@ -2755,7 +2950,7 @@ module Aws::ServiceDiscovery
2755
2950
  # @return [Integer]
2756
2951
  #
2757
2952
  # @!attribute [rw] dns_config
2758
- # A complex type that contains information about the Amazon Route 53
2953
+ # A complex type that contains information about the Amazon Route 53
2759
2954
  # DNS records that you want AWS Cloud Map to create when you register
2760
2955
  # an instance.
2761
2956
  # @return [Types::DnsConfig]
@@ -2769,21 +2964,21 @@ module Aws::ServiceDiscovery
2769
2964
  # If you specify a health check configuration, you can specify either
2770
2965
  # `HealthCheckCustomConfig` or `HealthCheckConfig` but not both.
2771
2966
  #
2772
- # Health checks are basic Route 53 health checks that monitor an AWS
2967
+ # Health checks are basic Route 53 health checks that monitor an AWS
2773
2968
  # endpoint. For information about pricing for health checks, see
2774
- # [Amazon Route 53 Pricing][1].
2969
+ # [Amazon Route 53 Pricing][1].
2775
2970
  #
2776
2971
  # Note the following about configuring health checks.
2777
2972
  #
2778
- # **A and AAAA records**
2973
+ # <b> <code>A</code> and <code>AAAA</code> records</b>
2779
2974
  #
2780
- # If `DnsConfig` includes configurations for both A and AAAA records,
2781
- # AWS Cloud Map creates a health check that uses the IPv4 address to
2782
- # check the health of the resource. If the endpoint that is specified
2783
- # by the IPv4 address is unhealthy, Route 53 considers both the A and
2784
- # AAAA records to be unhealthy.
2975
+ # If `DnsConfig` includes configurations for both `A` and `AAAA`
2976
+ # records, AWS Cloud Map creates a health check that uses the IPv4
2977
+ # address to check the health of the resource. If the endpoint that is
2978
+ # specified by the IPv4 address is unhealthy, Route 53 considers both
2979
+ # the `A` and `AAAA` records to be unhealthy.
2785
2980
  #
2786
- # **CNAME records**
2981
+ # <b> <code>CNAME</code> records</b>
2787
2982
  #
2788
2983
  # You can't specify settings for `HealthCheckConfig` when the
2789
2984
  # `DNSConfig` includes `CNAME` for the value of `Type`. If you do, the
@@ -2791,7 +2986,7 @@ module Aws::ServiceDiscovery
2791
2986
  #
2792
2987
  # **Request interval**
2793
2988
  #
2794
- # A Route 53 health checker in each health-checking region sends a
2989
+ # A Route 53 health checker in each health-checking region sends a
2795
2990
  # health check request to an endpoint every 30 seconds. On average,
2796
2991
  # your endpoint receives a health check request about every two
2797
2992
  # seconds. However, health checkers don't coordinate with one
@@ -2800,30 +2995,30 @@ module Aws::ServiceDiscovery
2800
2995
  #
2801
2996
  # **Health checking regions**
2802
2997
  #
2803
- # Health checkers perform checks from all Route 53 health-checking
2998
+ # Health checkers perform checks from all Route 53 health-checking
2804
2999
  # regions. For a list of the current regions, see [Regions][2].
2805
3000
  #
2806
3001
  # **Alias records**
2807
3002
  #
2808
3003
  # When you register an instance, if you include the
2809
- # `AWS_ALIAS_DNS_NAME` attribute, AWS Cloud Map creates a Route 53
3004
+ # `AWS_ALIAS_DNS_NAME` attribute, AWS Cloud Map creates a Route 53
2810
3005
  # alias record. Note the following:
2811
3006
  #
2812
- # * Route 53 automatically sets `EvaluateTargetHealth` to true for
3007
+ # * Route 53 automatically sets `EvaluateTargetHealth` to true for
2813
3008
  # alias records. When `EvaluateTargetHealth` is true, the alias
2814
3009
  # record inherits the health of the referenced AWS resource. such as
2815
3010
  # an ELB load balancer. For more information, see
2816
3011
  # [EvaluateTargetHealth][3].
2817
3012
  #
2818
3013
  # * If you include `HealthCheckConfig` and then use the service to
2819
- # register an instance that creates an alias record, Route 53
3014
+ # register an instance that creates an alias record, Route 53
2820
3015
  # doesn't create the health check.
2821
3016
  #
2822
3017
  # **Charges for health checks**
2823
3018
  #
2824
- # Health checks are basic Route 53 health checks that monitor an AWS
3019
+ # Health checks are basic Route 53 health checks that monitor an AWS
2825
3020
  # endpoint. For information about pricing for health checks, see
2826
- # [Amazon Route 53 Pricing][1].
3021
+ # [Amazon Route 53 Pricing][1].
2827
3022
  #
2828
3023
  #
2829
3024
  #
@@ -2909,9 +3104,125 @@ module Aws::ServiceDiscovery
2909
3104
  :health_check_config,
2910
3105
  :health_check_custom_config,
2911
3106
  :create_date)
3107
+ SENSITIVE = []
3108
+ include Aws::Structure
3109
+ end
3110
+
3111
+ # A custom key-value pair associated with a resource.
3112
+ #
3113
+ # @note When making an API call, you may pass Tag
3114
+ # data as a hash:
3115
+ #
3116
+ # {
3117
+ # key: "TagKey", # required
3118
+ # value: "TagValue", # required
3119
+ # }
3120
+ #
3121
+ # @!attribute [rw] key
3122
+ # The key identifier, or name, of the tag.
3123
+ # @return [String]
3124
+ #
3125
+ # @!attribute [rw] value
3126
+ # The string value associated with the key of the tag. You can set the
3127
+ # value of a tag to an empty string, but you can't set the value of a
3128
+ # tag to null.
3129
+ # @return [String]
3130
+ #
3131
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/Tag AWS API Documentation
3132
+ #
3133
+ class Tag < Struct.new(
3134
+ :key,
3135
+ :value)
3136
+ SENSITIVE = []
3137
+ include Aws::Structure
3138
+ end
3139
+
3140
+ # @note When making an API call, you may pass TagResourceRequest
3141
+ # data as a hash:
3142
+ #
3143
+ # {
3144
+ # resource_arn: "AmazonResourceName", # required
3145
+ # tags: [ # required
3146
+ # {
3147
+ # key: "TagKey", # required
3148
+ # value: "TagValue", # required
3149
+ # },
3150
+ # ],
3151
+ # }
3152
+ #
3153
+ # @!attribute [rw] resource_arn
3154
+ # The Amazon Resource Name (ARN) of the resource that you want to
3155
+ # retrieve tags for.
3156
+ # @return [String]
3157
+ #
3158
+ # @!attribute [rw] tags
3159
+ # The tags to add to the specified resource. Specifying the tag key is
3160
+ # required. You can set the value of a tag to an empty string, but you
3161
+ # can't set the value of a tag to null.
3162
+ # @return [Array<Types::Tag>]
3163
+ #
3164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/TagResourceRequest AWS API Documentation
3165
+ #
3166
+ class TagResourceRequest < Struct.new(
3167
+ :resource_arn,
3168
+ :tags)
3169
+ SENSITIVE = []
2912
3170
  include Aws::Structure
2913
3171
  end
2914
3172
 
3173
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/TagResourceResponse AWS API Documentation
3174
+ #
3175
+ class TagResourceResponse < Aws::EmptyStructure; end
3176
+
3177
+ # The list of tags on the resource is over the quota. The maximum number
3178
+ # of tags that can be applied to a resource is 50.
3179
+ #
3180
+ # @!attribute [rw] message
3181
+ # @return [String]
3182
+ #
3183
+ # @!attribute [rw] resource_name
3184
+ # The name of the resource.
3185
+ # @return [String]
3186
+ #
3187
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/TooManyTagsException AWS API Documentation
3188
+ #
3189
+ class TooManyTagsException < Struct.new(
3190
+ :message,
3191
+ :resource_name)
3192
+ SENSITIVE = []
3193
+ include Aws::Structure
3194
+ end
3195
+
3196
+ # @note When making an API call, you may pass UntagResourceRequest
3197
+ # data as a hash:
3198
+ #
3199
+ # {
3200
+ # resource_arn: "AmazonResourceName", # required
3201
+ # tag_keys: ["TagKey"], # required
3202
+ # }
3203
+ #
3204
+ # @!attribute [rw] resource_arn
3205
+ # The Amazon Resource Name (ARN) of the resource that you want to
3206
+ # retrieve tags for.
3207
+ # @return [String]
3208
+ #
3209
+ # @!attribute [rw] tag_keys
3210
+ # The tag keys to remove from the specified resource.
3211
+ # @return [Array<String>]
3212
+ #
3213
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UntagResourceRequest AWS API Documentation
3214
+ #
3215
+ class UntagResourceRequest < Struct.new(
3216
+ :resource_arn,
3217
+ :tag_keys)
3218
+ SENSITIVE = []
3219
+ include Aws::Structure
3220
+ end
3221
+
3222
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UntagResourceResponse AWS API Documentation
3223
+ #
3224
+ class UntagResourceResponse < Aws::EmptyStructure; end
3225
+
2915
3226
  # @note When making an API call, you may pass UpdateInstanceCustomHealthStatusRequest
2916
3227
  # data as a hash:
2917
3228
  #
@@ -2941,6 +3252,7 @@ module Aws::ServiceDiscovery
2941
3252
  :service_id,
2942
3253
  :instance_id,
2943
3254
  :status)
3255
+ SENSITIVE = []
2944
3256
  include Aws::Structure
2945
3257
  end
2946
3258
 
@@ -2951,7 +3263,7 @@ module Aws::ServiceDiscovery
2951
3263
  # id: "ResourceId", # required
2952
3264
  # service: { # required
2953
3265
  # description: "ResourceDescription",
2954
- # dns_config: { # required
3266
+ # dns_config: {
2955
3267
  # dns_records: [ # required
2956
3268
  # {
2957
3269
  # type: "SRV", # required, accepts SRV, A, AAAA, CNAME
@@ -2980,6 +3292,7 @@ module Aws::ServiceDiscovery
2980
3292
  class UpdateServiceRequest < Struct.new(
2981
3293
  :id,
2982
3294
  :service)
3295
+ SENSITIVE = []
2983
3296
  include Aws::Structure
2984
3297
  end
2985
3298
 
@@ -2997,6 +3310,7 @@ module Aws::ServiceDiscovery
2997
3310
  #
2998
3311
  class UpdateServiceResponse < Struct.new(
2999
3312
  :operation_id)
3313
+ SENSITIVE = []
3000
3314
  include Aws::Structure
3001
3315
  end
3002
3316