aws-sdk-appmesh 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7fb4081f6402bdca5980e77930eacc153f49ade
4
- data.tar.gz: 9b12b06dbcf8cf5b1cc7c0e04d0c1d45012a1558
3
+ metadata.gz: d9ade86c2e902132ac370b44b9f2c82f656f48ac
4
+ data.tar.gz: 4eb8f4500b7314674f42ca7cc179b5b4186e5d50
5
5
  SHA512:
6
- metadata.gz: 909afd64a5b13fd8b9ac93426546ca2133ddee605135c1d81cab06f2f20a913dcb9036b1ec67bd6809ce2908cd44f040fb90e0c507e9396da1802ee7b7eb994d
7
- data.tar.gz: 642c6df9af5a21dda516d1c4f3e1268790cbfcbec9714299c74b42c17c478180d57ddace740e4506daba3494f64f8ffb4e33939ee910791a3efaab89da09bf5c
6
+ metadata.gz: d2794c45b3405c8032237bcb61f0e6a589db29638b8e55cac24d45335a7db8b2e6c4a508ab83bb48456a9782c5124d6d5413222c1dbdc1cd876fe942016eddfb
7
+ data.tar.gz: 4a3be063af00a0360a3a7fbcccb81d52f94e89ab78c172ab9157ccbaaf71036f26da87ac33be4d9e37551b67e670132d8bacf4d6ac49aaaba43ac450da701b23
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-appmesh/customizations'
42
42
  # @service
43
43
  module Aws::AppMesh
44
44
 
45
- GEM_VERSION = '1.1.0'
45
+ GEM_VERSION = '1.2.0'
46
46
 
47
47
  end
@@ -208,9 +208,9 @@ module Aws::AppMesh
208
208
  # Creates a new service mesh. A service mesh is a logical boundary for
209
209
  # network traffic between the services that reside within it.
210
210
  #
211
- # After you create your service mesh, you can create virtual nodes,
212
- # virtual routers, and routes to distribute traffic between the
213
- # applications in your mesh.
211
+ # After you create your service mesh, you can create virtual services,
212
+ # virtual nodes, virtual routers, and routes to distribute traffic
213
+ # between the applications in your mesh.
214
214
  #
215
215
  # @option params [String] :client_token
216
216
  # Unique, case-sensitive identifier that you provide to ensure the
@@ -244,7 +244,7 @@ module Aws::AppMesh
244
244
  # resp.mesh.metadata.version #=> Integer
245
245
  # resp.mesh.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
246
246
  #
247
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateMesh AWS API Documentation
247
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/CreateMesh AWS API Documentation
248
248
  #
249
249
  # @overload create_mesh(params = {})
250
250
  # @param [Hash] params ({})
@@ -296,16 +296,16 @@ module Aws::AppMesh
296
296
  # route_name: "ResourceName", # required
297
297
  # spec: { # required
298
298
  # http_route: {
299
- # action: {
300
- # weighted_targets: [
299
+ # action: { # required
300
+ # weighted_targets: [ # required
301
301
  # {
302
- # virtual_node: "ResourceName",
303
- # weight: 1,
302
+ # virtual_node: "ResourceName", # required
303
+ # weight: 1, # required
304
304
  # },
305
305
  # ],
306
306
  # },
307
- # match: {
308
- # prefix: "String",
307
+ # match: { # required
308
+ # prefix: "String", # required
309
309
  # },
310
310
  # },
311
311
  # },
@@ -328,7 +328,7 @@ module Aws::AppMesh
328
328
  # resp.route.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
329
329
  # resp.route.virtual_router_name #=> String
330
330
  #
331
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateRoute AWS API Documentation
331
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/CreateRoute AWS API Documentation
332
332
  #
333
333
  # @overload create_route(params = {})
334
334
  # @param [Hash] params ({})
@@ -341,8 +341,8 @@ module Aws::AppMesh
341
341
  #
342
342
  # A virtual node acts as logical pointer to a particular task group,
343
343
  # such as an Amazon ECS service or a Kubernetes deployment. When you
344
- # create a virtual node, you must specify the DNS service discovery name
345
- # for your task group.
344
+ # create a virtual node, you must specify the DNS service discovery
345
+ # hostname for your task group.
346
346
  #
347
347
  # Any inbound traffic that your virtual node expects should be specified
348
348
  # as a `listener`. Any outbound traffic that your virtual node expects
@@ -391,7 +391,13 @@ module Aws::AppMesh
391
391
  # client_token: "String",
392
392
  # mesh_name: "ResourceName", # required
393
393
  # spec: { # required
394
- # backends: ["ServiceName"],
394
+ # backends: [
395
+ # {
396
+ # virtual_service: {
397
+ # virtual_service_name: "ServiceName", # required
398
+ # },
399
+ # },
400
+ # ],
395
401
  # listeners: [
396
402
  # {
397
403
  # health_check: {
@@ -403,15 +409,15 @@ module Aws::AppMesh
403
409
  # timeout_millis: 1, # required
404
410
  # unhealthy_threshold: 1, # required
405
411
  # },
406
- # port_mapping: {
407
- # port: 1,
408
- # protocol: "http", # accepts http, tcp
412
+ # port_mapping: { # required
413
+ # port: 1, # required
414
+ # protocol: "http", # required, accepts http, tcp
409
415
  # },
410
416
  # },
411
417
  # ],
412
418
  # service_discovery: {
413
419
  # dns: {
414
- # service_name: "ServiceName",
420
+ # hostname: "Hostname", # required
415
421
  # },
416
422
  # },
417
423
  # },
@@ -427,7 +433,7 @@ module Aws::AppMesh
427
433
  # resp.virtual_node.metadata.uid #=> String
428
434
  # resp.virtual_node.metadata.version #=> Integer
429
435
  # resp.virtual_node.spec.backends #=> Array
430
- # resp.virtual_node.spec.backends[0] #=> String
436
+ # resp.virtual_node.spec.backends[0].virtual_service.virtual_service_name #=> String
431
437
  # resp.virtual_node.spec.listeners #=> Array
432
438
  # resp.virtual_node.spec.listeners[0].health_check.healthy_threshold #=> Integer
433
439
  # resp.virtual_node.spec.listeners[0].health_check.interval_millis #=> Integer
@@ -438,11 +444,11 @@ module Aws::AppMesh
438
444
  # resp.virtual_node.spec.listeners[0].health_check.unhealthy_threshold #=> Integer
439
445
  # resp.virtual_node.spec.listeners[0].port_mapping.port #=> Integer
440
446
  # resp.virtual_node.spec.listeners[0].port_mapping.protocol #=> String, one of "http", "tcp"
441
- # resp.virtual_node.spec.service_discovery.dns.service_name #=> String
447
+ # resp.virtual_node.spec.service_discovery.dns.hostname #=> String
442
448
  # resp.virtual_node.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
443
449
  # resp.virtual_node.virtual_node_name #=> String
444
450
  #
445
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateVirtualNode AWS API Documentation
451
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/CreateVirtualNode AWS API Documentation
446
452
  #
447
453
  # @overload create_virtual_node(params = {})
448
454
  # @param [Hash] params ({})
@@ -453,6 +459,9 @@ module Aws::AppMesh
453
459
 
454
460
  # Creates a new virtual router within a service mesh.
455
461
  #
462
+ # Any inbound traffic that your virtual router expects should be
463
+ # specified as a `listener`.
464
+ #
456
465
  # Virtual routers handle traffic for one or more service names within
457
466
  # your mesh. After you create your virtual router, create and associate
458
467
  # routes for your virtual router that direct incoming requests to
@@ -467,7 +476,7 @@ module Aws::AppMesh
467
476
  # not need to pass this option.**
468
477
  #
469
478
  # @option params [required, String] :mesh_name
470
- # The name of the service mesh in which to create the virtual router.
479
+ # The name of the service mesh to create the virtual router in.
471
480
  #
472
481
  # @option params [required, Types::VirtualRouterSpec] :spec
473
482
  # The virtual router specification to apply.
@@ -485,7 +494,14 @@ module Aws::AppMesh
485
494
  # client_token: "String",
486
495
  # mesh_name: "ResourceName", # required
487
496
  # spec: { # required
488
- # service_names: ["ServiceName"],
497
+ # listeners: [ # required
498
+ # {
499
+ # port_mapping: { # required
500
+ # port: 1, # required
501
+ # protocol: "http", # required, accepts http, tcp
502
+ # },
503
+ # },
504
+ # ],
489
505
  # },
490
506
  # virtual_router_name: "ResourceName", # required
491
507
  # })
@@ -498,12 +514,13 @@ module Aws::AppMesh
498
514
  # resp.virtual_router.metadata.last_updated_at #=> Time
499
515
  # resp.virtual_router.metadata.uid #=> String
500
516
  # resp.virtual_router.metadata.version #=> Integer
501
- # resp.virtual_router.spec.service_names #=> Array
502
- # resp.virtual_router.spec.service_names[0] #=> String
517
+ # resp.virtual_router.spec.listeners #=> Array
518
+ # resp.virtual_router.spec.listeners[0].port_mapping.port #=> Integer
519
+ # resp.virtual_router.spec.listeners[0].port_mapping.protocol #=> String, one of "http", "tcp"
503
520
  # resp.virtual_router.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
504
521
  # resp.virtual_router.virtual_router_name #=> String
505
522
  #
506
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateVirtualRouter AWS API Documentation
523
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/CreateVirtualRouter AWS API Documentation
507
524
  #
508
525
  # @overload create_virtual_router(params = {})
509
526
  # @param [Hash] params ({})
@@ -512,10 +529,81 @@ module Aws::AppMesh
512
529
  req.send_request(options)
513
530
  end
514
531
 
532
+ # Creates a virtual service within a service mesh.
533
+ #
534
+ # A virtual service is an abstraction of a real service that is either
535
+ # provided by a virtual node directly, or indirectly by means of a
536
+ # virtual router. Dependent services call your virtual service by its
537
+ # `virtualServiceName`, and those requests are routed to the virtual
538
+ # node or virtual router that is specified as the provider for the
539
+ # virtual service.
540
+ #
541
+ # @option params [String] :client_token
542
+ # Unique, case-sensitive identifier that you provide to ensure the
543
+ # idempotency of the request. Up to 36 letters, numbers, hyphens, and
544
+ # underscores are allowed.
545
+ #
546
+ # **A suitable default value is auto-generated.** You should normally
547
+ # not need to pass this option.**
548
+ #
549
+ # @option params [required, String] :mesh_name
550
+ # The name of the service mesh in which to create the virtual service.
551
+ #
552
+ # @option params [required, Types::VirtualServiceSpec] :spec
553
+ # The virtual service specification to apply.
554
+ #
555
+ # @option params [required, String] :virtual_service_name
556
+ # The name to use for the virtual service.
557
+ #
558
+ # @return [Types::CreateVirtualServiceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
559
+ #
560
+ # * {Types::CreateVirtualServiceOutput#virtual_service #virtual_service} => Types::VirtualServiceData
561
+ #
562
+ # @example Request syntax with placeholder values
563
+ #
564
+ # resp = client.create_virtual_service({
565
+ # client_token: "String",
566
+ # mesh_name: "ResourceName", # required
567
+ # spec: { # required
568
+ # provider: {
569
+ # virtual_node: {
570
+ # virtual_node_name: "ResourceName", # required
571
+ # },
572
+ # virtual_router: {
573
+ # virtual_router_name: "ResourceName", # required
574
+ # },
575
+ # },
576
+ # },
577
+ # virtual_service_name: "ServiceName", # required
578
+ # })
579
+ #
580
+ # @example Response structure
581
+ #
582
+ # resp.virtual_service.mesh_name #=> String
583
+ # resp.virtual_service.metadata.arn #=> String
584
+ # resp.virtual_service.metadata.created_at #=> Time
585
+ # resp.virtual_service.metadata.last_updated_at #=> Time
586
+ # resp.virtual_service.metadata.uid #=> String
587
+ # resp.virtual_service.metadata.version #=> Integer
588
+ # resp.virtual_service.spec.provider.virtual_node.virtual_node_name #=> String
589
+ # resp.virtual_service.spec.provider.virtual_router.virtual_router_name #=> String
590
+ # resp.virtual_service.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
591
+ # resp.virtual_service.virtual_service_name #=> String
592
+ #
593
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/CreateVirtualService AWS API Documentation
594
+ #
595
+ # @overload create_virtual_service(params = {})
596
+ # @param [Hash] params ({})
597
+ def create_virtual_service(params = {}, options = {})
598
+ req = build_request(:create_virtual_service, params)
599
+ req.send_request(options)
600
+ end
601
+
515
602
  # Deletes an existing service mesh.
516
603
  #
517
- # You must delete all resources (routes, virtual routers, virtual nodes)
518
- # in the service mesh before you can delete the mesh itself.
604
+ # You must delete all resources (virtual services, routes, virtual
605
+ # routers, virtual nodes) in the service mesh before you can delete the
606
+ # mesh itself.
519
607
  #
520
608
  # @option params [required, String] :mesh_name
521
609
  # The name of the service mesh to delete.
@@ -540,7 +628,7 @@ module Aws::AppMesh
540
628
  # resp.mesh.metadata.version #=> Integer
541
629
  # resp.mesh.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
542
630
  #
543
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteMesh AWS API Documentation
631
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DeleteMesh AWS API Documentation
544
632
  #
545
633
  # @overload delete_mesh(params = {})
546
634
  # @param [Hash] params ({})
@@ -552,13 +640,13 @@ module Aws::AppMesh
552
640
  # Deletes an existing route.
553
641
  #
554
642
  # @option params [required, String] :mesh_name
555
- # The name of the service mesh in which to delete the route.
643
+ # The name of the service mesh to delete the route in.
556
644
  #
557
645
  # @option params [required, String] :route_name
558
646
  # The name of the route to delete.
559
647
  #
560
648
  # @option params [required, String] :virtual_router_name
561
- # The name of the virtual router in which to delete the route.
649
+ # The name of the virtual router to delete the route in.
562
650
  #
563
651
  # @return [Types::DeleteRouteOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
564
652
  #
@@ -588,7 +676,7 @@ module Aws::AppMesh
588
676
  # resp.route.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
589
677
  # resp.route.virtual_router_name #=> String
590
678
  #
591
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteRoute AWS API Documentation
679
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DeleteRoute AWS API Documentation
592
680
  #
593
681
  # @overload delete_route(params = {})
594
682
  # @param [Hash] params ({})
@@ -599,8 +687,11 @@ module Aws::AppMesh
599
687
 
600
688
  # Deletes an existing virtual node.
601
689
  #
690
+ # You must delete any virtual services that list a virtual node as a
691
+ # service provider before you can delete the virtual node itself.
692
+ #
602
693
  # @option params [required, String] :mesh_name
603
- # The name of the service mesh in which to delete the virtual node.
694
+ # The name of the service mesh to delete the virtual node in.
604
695
  #
605
696
  # @option params [required, String] :virtual_node_name
606
697
  # The name of the virtual node to delete.
@@ -625,7 +716,7 @@ module Aws::AppMesh
625
716
  # resp.virtual_node.metadata.uid #=> String
626
717
  # resp.virtual_node.metadata.version #=> Integer
627
718
  # resp.virtual_node.spec.backends #=> Array
628
- # resp.virtual_node.spec.backends[0] #=> String
719
+ # resp.virtual_node.spec.backends[0].virtual_service.virtual_service_name #=> String
629
720
  # resp.virtual_node.spec.listeners #=> Array
630
721
  # resp.virtual_node.spec.listeners[0].health_check.healthy_threshold #=> Integer
631
722
  # resp.virtual_node.spec.listeners[0].health_check.interval_millis #=> Integer
@@ -636,11 +727,11 @@ module Aws::AppMesh
636
727
  # resp.virtual_node.spec.listeners[0].health_check.unhealthy_threshold #=> Integer
637
728
  # resp.virtual_node.spec.listeners[0].port_mapping.port #=> Integer
638
729
  # resp.virtual_node.spec.listeners[0].port_mapping.protocol #=> String, one of "http", "tcp"
639
- # resp.virtual_node.spec.service_discovery.dns.service_name #=> String
730
+ # resp.virtual_node.spec.service_discovery.dns.hostname #=> String
640
731
  # resp.virtual_node.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
641
732
  # resp.virtual_node.virtual_node_name #=> String
642
733
  #
643
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteVirtualNode AWS API Documentation
734
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DeleteVirtualNode AWS API Documentation
644
735
  #
645
736
  # @overload delete_virtual_node(params = {})
646
737
  # @param [Hash] params ({})
@@ -655,7 +746,7 @@ module Aws::AppMesh
655
746
  # you can delete the router itself.
656
747
  #
657
748
  # @option params [required, String] :mesh_name
658
- # The name of the service mesh in which to delete the virtual router.
749
+ # The name of the service mesh to delete the virtual router in.
659
750
  #
660
751
  # @option params [required, String] :virtual_router_name
661
752
  # The name of the virtual router to delete.
@@ -679,12 +770,13 @@ module Aws::AppMesh
679
770
  # resp.virtual_router.metadata.last_updated_at #=> Time
680
771
  # resp.virtual_router.metadata.uid #=> String
681
772
  # resp.virtual_router.metadata.version #=> Integer
682
- # resp.virtual_router.spec.service_names #=> Array
683
- # resp.virtual_router.spec.service_names[0] #=> String
773
+ # resp.virtual_router.spec.listeners #=> Array
774
+ # resp.virtual_router.spec.listeners[0].port_mapping.port #=> Integer
775
+ # resp.virtual_router.spec.listeners[0].port_mapping.protocol #=> String, one of "http", "tcp"
684
776
  # resp.virtual_router.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
685
777
  # resp.virtual_router.virtual_router_name #=> String
686
778
  #
687
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteVirtualRouter AWS API Documentation
779
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DeleteVirtualRouter AWS API Documentation
688
780
  #
689
781
  # @overload delete_virtual_router(params = {})
690
782
  # @param [Hash] params ({})
@@ -693,6 +785,47 @@ module Aws::AppMesh
693
785
  req.send_request(options)
694
786
  end
695
787
 
788
+ # Deletes an existing virtual service.
789
+ #
790
+ # @option params [required, String] :mesh_name
791
+ # The name of the service mesh to delete the virtual service in.
792
+ #
793
+ # @option params [required, String] :virtual_service_name
794
+ # The name of the virtual service to delete.
795
+ #
796
+ # @return [Types::DeleteVirtualServiceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
797
+ #
798
+ # * {Types::DeleteVirtualServiceOutput#virtual_service #virtual_service} => Types::VirtualServiceData
799
+ #
800
+ # @example Request syntax with placeholder values
801
+ #
802
+ # resp = client.delete_virtual_service({
803
+ # mesh_name: "ResourceName", # required
804
+ # virtual_service_name: "ServiceName", # required
805
+ # })
806
+ #
807
+ # @example Response structure
808
+ #
809
+ # resp.virtual_service.mesh_name #=> String
810
+ # resp.virtual_service.metadata.arn #=> String
811
+ # resp.virtual_service.metadata.created_at #=> Time
812
+ # resp.virtual_service.metadata.last_updated_at #=> Time
813
+ # resp.virtual_service.metadata.uid #=> String
814
+ # resp.virtual_service.metadata.version #=> Integer
815
+ # resp.virtual_service.spec.provider.virtual_node.virtual_node_name #=> String
816
+ # resp.virtual_service.spec.provider.virtual_router.virtual_router_name #=> String
817
+ # resp.virtual_service.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
818
+ # resp.virtual_service.virtual_service_name #=> String
819
+ #
820
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DeleteVirtualService AWS API Documentation
821
+ #
822
+ # @overload delete_virtual_service(params = {})
823
+ # @param [Hash] params ({})
824
+ def delete_virtual_service(params = {}, options = {})
825
+ req = build_request(:delete_virtual_service, params)
826
+ req.send_request(options)
827
+ end
828
+
696
829
  # Describes an existing service mesh.
697
830
  #
698
831
  # @option params [required, String] :mesh_name
@@ -718,7 +851,7 @@ module Aws::AppMesh
718
851
  # resp.mesh.metadata.version #=> Integer
719
852
  # resp.mesh.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
720
853
  #
721
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeMesh AWS API Documentation
854
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DescribeMesh AWS API Documentation
722
855
  #
723
856
  # @overload describe_mesh(params = {})
724
857
  # @param [Hash] params ({})
@@ -730,13 +863,13 @@ module Aws::AppMesh
730
863
  # Describes an existing route.
731
864
  #
732
865
  # @option params [required, String] :mesh_name
733
- # The name of the service mesh in which the route resides.
866
+ # The name of the service mesh that the route resides in.
734
867
  #
735
868
  # @option params [required, String] :route_name
736
869
  # The name of the route to describe.
737
870
  #
738
871
  # @option params [required, String] :virtual_router_name
739
- # The name of the virtual router with which the route is associated.
872
+ # The name of the virtual router that the route is associated with.
740
873
  #
741
874
  # @return [Types::DescribeRouteOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
742
875
  #
@@ -766,7 +899,7 @@ module Aws::AppMesh
766
899
  # resp.route.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
767
900
  # resp.route.virtual_router_name #=> String
768
901
  #
769
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeRoute AWS API Documentation
902
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DescribeRoute AWS API Documentation
770
903
  #
771
904
  # @overload describe_route(params = {})
772
905
  # @param [Hash] params ({})
@@ -778,7 +911,7 @@ module Aws::AppMesh
778
911
  # Describes an existing virtual node.
779
912
  #
780
913
  # @option params [required, String] :mesh_name
781
- # The name of the service mesh in which the virtual node resides.
914
+ # The name of the service mesh that the virtual node resides in.
782
915
  #
783
916
  # @option params [required, String] :virtual_node_name
784
917
  # The name of the virtual node to describe.
@@ -803,7 +936,7 @@ module Aws::AppMesh
803
936
  # resp.virtual_node.metadata.uid #=> String
804
937
  # resp.virtual_node.metadata.version #=> Integer
805
938
  # resp.virtual_node.spec.backends #=> Array
806
- # resp.virtual_node.spec.backends[0] #=> String
939
+ # resp.virtual_node.spec.backends[0].virtual_service.virtual_service_name #=> String
807
940
  # resp.virtual_node.spec.listeners #=> Array
808
941
  # resp.virtual_node.spec.listeners[0].health_check.healthy_threshold #=> Integer
809
942
  # resp.virtual_node.spec.listeners[0].health_check.interval_millis #=> Integer
@@ -814,11 +947,11 @@ module Aws::AppMesh
814
947
  # resp.virtual_node.spec.listeners[0].health_check.unhealthy_threshold #=> Integer
815
948
  # resp.virtual_node.spec.listeners[0].port_mapping.port #=> Integer
816
949
  # resp.virtual_node.spec.listeners[0].port_mapping.protocol #=> String, one of "http", "tcp"
817
- # resp.virtual_node.spec.service_discovery.dns.service_name #=> String
950
+ # resp.virtual_node.spec.service_discovery.dns.hostname #=> String
818
951
  # resp.virtual_node.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
819
952
  # resp.virtual_node.virtual_node_name #=> String
820
953
  #
821
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeVirtualNode AWS API Documentation
954
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DescribeVirtualNode AWS API Documentation
822
955
  #
823
956
  # @overload describe_virtual_node(params = {})
824
957
  # @param [Hash] params ({})
@@ -830,7 +963,7 @@ module Aws::AppMesh
830
963
  # Describes an existing virtual router.
831
964
  #
832
965
  # @option params [required, String] :mesh_name
833
- # The name of the service mesh in which the virtual router resides.
966
+ # The name of the service mesh that the virtual router resides in.
834
967
  #
835
968
  # @option params [required, String] :virtual_router_name
836
969
  # The name of the virtual router to describe.
@@ -854,12 +987,13 @@ module Aws::AppMesh
854
987
  # resp.virtual_router.metadata.last_updated_at #=> Time
855
988
  # resp.virtual_router.metadata.uid #=> String
856
989
  # resp.virtual_router.metadata.version #=> Integer
857
- # resp.virtual_router.spec.service_names #=> Array
858
- # resp.virtual_router.spec.service_names[0] #=> String
990
+ # resp.virtual_router.spec.listeners #=> Array
991
+ # resp.virtual_router.spec.listeners[0].port_mapping.port #=> Integer
992
+ # resp.virtual_router.spec.listeners[0].port_mapping.protocol #=> String, one of "http", "tcp"
859
993
  # resp.virtual_router.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
860
994
  # resp.virtual_router.virtual_router_name #=> String
861
995
  #
862
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeVirtualRouter AWS API Documentation
996
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DescribeVirtualRouter AWS API Documentation
863
997
  #
864
998
  # @overload describe_virtual_router(params = {})
865
999
  # @param [Hash] params ({})
@@ -868,17 +1002,58 @@ module Aws::AppMesh
868
1002
  req.send_request(options)
869
1003
  end
870
1004
 
1005
+ # Describes an existing virtual service.
1006
+ #
1007
+ # @option params [required, String] :mesh_name
1008
+ # The name of the service mesh that the virtual service resides in.
1009
+ #
1010
+ # @option params [required, String] :virtual_service_name
1011
+ # The name of the virtual service to describe.
1012
+ #
1013
+ # @return [Types::DescribeVirtualServiceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1014
+ #
1015
+ # * {Types::DescribeVirtualServiceOutput#virtual_service #virtual_service} => Types::VirtualServiceData
1016
+ #
1017
+ # @example Request syntax with placeholder values
1018
+ #
1019
+ # resp = client.describe_virtual_service({
1020
+ # mesh_name: "ResourceName", # required
1021
+ # virtual_service_name: "ServiceName", # required
1022
+ # })
1023
+ #
1024
+ # @example Response structure
1025
+ #
1026
+ # resp.virtual_service.mesh_name #=> String
1027
+ # resp.virtual_service.metadata.arn #=> String
1028
+ # resp.virtual_service.metadata.created_at #=> Time
1029
+ # resp.virtual_service.metadata.last_updated_at #=> Time
1030
+ # resp.virtual_service.metadata.uid #=> String
1031
+ # resp.virtual_service.metadata.version #=> Integer
1032
+ # resp.virtual_service.spec.provider.virtual_node.virtual_node_name #=> String
1033
+ # resp.virtual_service.spec.provider.virtual_router.virtual_router_name #=> String
1034
+ # resp.virtual_service.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
1035
+ # resp.virtual_service.virtual_service_name #=> String
1036
+ #
1037
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DescribeVirtualService AWS API Documentation
1038
+ #
1039
+ # @overload describe_virtual_service(params = {})
1040
+ # @param [Hash] params ({})
1041
+ def describe_virtual_service(params = {}, options = {})
1042
+ req = build_request(:describe_virtual_service, params)
1043
+ req.send_request(options)
1044
+ end
1045
+
871
1046
  # Returns a list of existing service meshes.
872
1047
  #
873
1048
  # @option params [Integer] :limit
874
- # The maximum number of mesh results returned by `ListMeshes` in
875
- # paginated output. When this parameter is used, `ListMeshes` only
876
- # returns `limit` results in a single page along with a `nextToken`
877
- # response element. The remaining results of the initial request can be
878
- # seen by sending another `ListMeshes` request with the returned
879
- # `nextToken` value. This value can be between 1 and 100. If this
880
- # parameter is not used, then `ListMeshes` returns up to 100 results and
881
- # a `nextToken` value if applicable.
1049
+ # The maximum number of results returned by `ListMeshes` in paginated
1050
+ # output. When you use this parameter, `ListMeshes` returns only `limit`
1051
+ # results in a single page along with a `nextToken` response element.
1052
+ # You can see the remaining results of the initial request by sending
1053
+ # another `ListMeshes` request with the returned `nextToken` value. This
1054
+ # value can be between 1 and 100. If you don't use this parameter,
1055
+ # `ListMeshes` returns up to 100 results and a `nextToken` value if
1056
+ # applicable.
882
1057
  #
883
1058
  # @option params [String] :next_token
884
1059
  # The `nextToken` value returned from a previous paginated `ListMeshes`
@@ -911,7 +1086,7 @@ module Aws::AppMesh
911
1086
  # resp.meshes[0].mesh_name #=> String
912
1087
  # resp.next_token #=> String
913
1088
  #
914
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListMeshes AWS API Documentation
1089
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/ListMeshes AWS API Documentation
915
1090
  #
916
1091
  # @overload list_meshes(params = {})
917
1092
  # @param [Hash] params ({})
@@ -923,14 +1098,14 @@ module Aws::AppMesh
923
1098
  # Returns a list of existing routes in a service mesh.
924
1099
  #
925
1100
  # @option params [Integer] :limit
926
- # The maximum number of mesh results returned by `ListRoutes` in
927
- # paginated output. When this parameter is used, `ListRoutes` only
928
- # returns `limit` results in a single page along with a `nextToken`
929
- # response element. The remaining results of the initial request can be
930
- # seen by sending another `ListRoutes` request with the returned
931
- # `nextToken` value. This value can be between 1 and 100. If this
932
- # parameter is not used, then `ListRoutes` returns up to 100 results and
933
- # a `nextToken` value if applicable.
1101
+ # The maximum number of results returned by `ListRoutes` in paginated
1102
+ # output. When you use this parameter, `ListRoutes` returns only `limit`
1103
+ # results in a single page along with a `nextToken` response element.
1104
+ # You can see the remaining results of the initial request by sending
1105
+ # another `ListRoutes` request with the returned `nextToken` value. This
1106
+ # value can be between 1 and 100. If you don't use this parameter,
1107
+ # `ListRoutes` returns up to 100 results and a `nextToken` value if
1108
+ # applicable.
934
1109
  #
935
1110
  # @option params [required, String] :mesh_name
936
1111
  # The name of the service mesh in which to list routes.
@@ -942,7 +1117,7 @@ module Aws::AppMesh
942
1117
  # results that returned the `nextToken` value.
943
1118
  #
944
1119
  # @option params [required, String] :virtual_router_name
945
- # The name of the virtual router in which to list routes.
1120
+ # The name of the virtual router to list routes in.
946
1121
  #
947
1122
  # @return [Types::ListRoutesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
948
1123
  #
@@ -967,7 +1142,7 @@ module Aws::AppMesh
967
1142
  # resp.routes[0].route_name #=> String
968
1143
  # resp.routes[0].virtual_router_name #=> String
969
1144
  #
970
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListRoutes AWS API Documentation
1145
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/ListRoutes AWS API Documentation
971
1146
  #
972
1147
  # @overload list_routes(params = {})
973
1148
  # @param [Hash] params ({})
@@ -979,17 +1154,17 @@ module Aws::AppMesh
979
1154
  # Returns a list of existing virtual nodes.
980
1155
  #
981
1156
  # @option params [Integer] :limit
982
- # The maximum number of mesh results returned by `ListVirtualNodes` in
983
- # paginated output. When this parameter is used, `ListVirtualNodes` only
984
- # returns `limit` results in a single page along with a `nextToken`
985
- # response element. The remaining results of the initial request can be
986
- # seen by sending another `ListVirtualNodes` request with the returned
987
- # `nextToken` value. This value can be between 1 and 100. If this
988
- # parameter is not used, then `ListVirtualNodes` returns up to 100
1157
+ # The maximum number of results returned by `ListVirtualNodes` in
1158
+ # paginated output. When you use this parameter, `ListVirtualNodes`
1159
+ # returns only `limit` results in a single page along with a `nextToken`
1160
+ # response element. You can see the remaining results of the initial
1161
+ # request by sending another `ListVirtualNodes` request with the
1162
+ # returned `nextToken` value. This value can be between 1 and 100. If
1163
+ # you don't use this parameter, `ListVirtualNodes` returns up to 100
989
1164
  # results and a `nextToken` value if applicable.
990
1165
  #
991
1166
  # @option params [required, String] :mesh_name
992
- # The name of the service mesh in which to list virtual nodes.
1167
+ # The name of the service mesh to list virtual nodes in.
993
1168
  #
994
1169
  # @option params [String] :next_token
995
1170
  # The `nextToken` value returned from a previous paginated
@@ -1018,7 +1193,7 @@ module Aws::AppMesh
1018
1193
  # resp.virtual_nodes[0].mesh_name #=> String
1019
1194
  # resp.virtual_nodes[0].virtual_node_name #=> String
1020
1195
  #
1021
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListVirtualNodes AWS API Documentation
1196
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/ListVirtualNodes AWS API Documentation
1022
1197
  #
1023
1198
  # @overload list_virtual_nodes(params = {})
1024
1199
  # @param [Hash] params ({})
@@ -1030,17 +1205,17 @@ module Aws::AppMesh
1030
1205
  # Returns a list of existing virtual routers in a service mesh.
1031
1206
  #
1032
1207
  # @option params [Integer] :limit
1033
- # The maximum number of mesh results returned by `ListVirtualRouters` in
1034
- # paginated output. When this parameter is used, `ListVirtualRouters`
1035
- # only returns `limit` results in a single page along with a `nextToken`
1036
- # response element. The remaining results of the initial request can be
1037
- # seen by sending another `ListVirtualRouters` request with the returned
1038
- # `nextToken` value. This value can be between 1 and 100. If this
1039
- # parameter is not used, then `ListVirtualRouters` returns up to 100
1208
+ # The maximum number of results returned by `ListVirtualRouters` in
1209
+ # paginated output. When you use this parameter, `ListVirtualRouters`
1210
+ # returns only `limit` results in a single page along with a `nextToken`
1211
+ # response element. You can see the remaining results of the initial
1212
+ # request by sending another `ListVirtualRouters` request with the
1213
+ # returned `nextToken` value. This value can be between 1 and 100. If
1214
+ # you don't use this parameter, `ListVirtualRouters` returns up to 100
1040
1215
  # results and a `nextToken` value if applicable.
1041
1216
  #
1042
1217
  # @option params [required, String] :mesh_name
1043
- # The name of the service mesh in which to list virtual routers.
1218
+ # The name of the service mesh to list virtual routers in.
1044
1219
  #
1045
1220
  # @option params [String] :next_token
1046
1221
  # The `nextToken` value returned from a previous paginated
@@ -1069,7 +1244,7 @@ module Aws::AppMesh
1069
1244
  # resp.virtual_routers[0].mesh_name #=> String
1070
1245
  # resp.virtual_routers[0].virtual_router_name #=> String
1071
1246
  #
1072
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListVirtualRouters AWS API Documentation
1247
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/ListVirtualRouters AWS API Documentation
1073
1248
  #
1074
1249
  # @overload list_virtual_routers(params = {})
1075
1250
  # @param [Hash] params ({})
@@ -1078,6 +1253,57 @@ module Aws::AppMesh
1078
1253
  req.send_request(options)
1079
1254
  end
1080
1255
 
1256
+ # Returns a list of existing virtual services in a service mesh.
1257
+ #
1258
+ # @option params [Integer] :limit
1259
+ # The maximum number of results returned by `ListVirtualServices` in
1260
+ # paginated output. When you use this parameter, `ListVirtualServices`
1261
+ # returns only `limit` results in a single page along with a `nextToken`
1262
+ # response element. You can see the remaining results of the initial
1263
+ # request by sending another `ListVirtualServices` request with the
1264
+ # returned `nextToken` value. This value can be between 1 and 100. If
1265
+ # you don't use this parameter, `ListVirtualServices` returns up to 100
1266
+ # results and a `nextToken` value if applicable.
1267
+ #
1268
+ # @option params [required, String] :mesh_name
1269
+ # The name of the service mesh to list virtual services in.
1270
+ #
1271
+ # @option params [String] :next_token
1272
+ # The `nextToken` value returned from a previous paginated
1273
+ # `ListVirtualServices` request where `limit` was used and the results
1274
+ # exceeded the value of that parameter. Pagination continues from the
1275
+ # end of the previous results that returned the `nextToken` value.
1276
+ #
1277
+ # @return [Types::ListVirtualServicesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1278
+ #
1279
+ # * {Types::ListVirtualServicesOutput#next_token #next_token} => String
1280
+ # * {Types::ListVirtualServicesOutput#virtual_services #virtual_services} => Array<Types::VirtualServiceRef>
1281
+ #
1282
+ # @example Request syntax with placeholder values
1283
+ #
1284
+ # resp = client.list_virtual_services({
1285
+ # limit: 1,
1286
+ # mesh_name: "ResourceName", # required
1287
+ # next_token: "String",
1288
+ # })
1289
+ #
1290
+ # @example Response structure
1291
+ #
1292
+ # resp.next_token #=> String
1293
+ # resp.virtual_services #=> Array
1294
+ # resp.virtual_services[0].arn #=> String
1295
+ # resp.virtual_services[0].mesh_name #=> String
1296
+ # resp.virtual_services[0].virtual_service_name #=> String
1297
+ #
1298
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/ListVirtualServices AWS API Documentation
1299
+ #
1300
+ # @overload list_virtual_services(params = {})
1301
+ # @param [Hash] params ({})
1302
+ def list_virtual_services(params = {}, options = {})
1303
+ req = build_request(:list_virtual_services, params)
1304
+ req.send_request(options)
1305
+ end
1306
+
1081
1307
  # Updates an existing route for a specified service mesh and virtual
1082
1308
  # router.
1083
1309
  #
@@ -1090,7 +1316,7 @@ module Aws::AppMesh
1090
1316
  # not need to pass this option.**
1091
1317
  #
1092
1318
  # @option params [required, String] :mesh_name
1093
- # The name of the service mesh in which the route resides.
1319
+ # The name of the service mesh that the route resides in.
1094
1320
  #
1095
1321
  # @option params [required, String] :route_name
1096
1322
  # The name of the route to update.
@@ -1100,7 +1326,7 @@ module Aws::AppMesh
1100
1326
  # data.
1101
1327
  #
1102
1328
  # @option params [required, String] :virtual_router_name
1103
- # The name of the virtual router with which the route is associated.
1329
+ # The name of the virtual router that the route is associated with.
1104
1330
  #
1105
1331
  # @return [Types::UpdateRouteOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1106
1332
  #
@@ -1114,16 +1340,16 @@ module Aws::AppMesh
1114
1340
  # route_name: "ResourceName", # required
1115
1341
  # spec: { # required
1116
1342
  # http_route: {
1117
- # action: {
1118
- # weighted_targets: [
1343
+ # action: { # required
1344
+ # weighted_targets: [ # required
1119
1345
  # {
1120
- # virtual_node: "ResourceName",
1121
- # weight: 1,
1346
+ # virtual_node: "ResourceName", # required
1347
+ # weight: 1, # required
1122
1348
  # },
1123
1349
  # ],
1124
1350
  # },
1125
- # match: {
1126
- # prefix: "String",
1351
+ # match: { # required
1352
+ # prefix: "String", # required
1127
1353
  # },
1128
1354
  # },
1129
1355
  # },
@@ -1146,7 +1372,7 @@ module Aws::AppMesh
1146
1372
  # resp.route.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
1147
1373
  # resp.route.virtual_router_name #=> String
1148
1374
  #
1149
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/UpdateRoute AWS API Documentation
1375
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/UpdateRoute AWS API Documentation
1150
1376
  #
1151
1377
  # @overload update_route(params = {})
1152
1378
  # @param [Hash] params ({})
@@ -1166,7 +1392,7 @@ module Aws::AppMesh
1166
1392
  # not need to pass this option.**
1167
1393
  #
1168
1394
  # @option params [required, String] :mesh_name
1169
- # The name of the service mesh in which the virtual node resides.
1395
+ # The name of the service mesh that the virtual node resides in.
1170
1396
  #
1171
1397
  # @option params [required, Types::VirtualNodeSpec] :spec
1172
1398
  # The new virtual node specification to apply. This overwrites the
@@ -1185,7 +1411,13 @@ module Aws::AppMesh
1185
1411
  # client_token: "String",
1186
1412
  # mesh_name: "ResourceName", # required
1187
1413
  # spec: { # required
1188
- # backends: ["ServiceName"],
1414
+ # backends: [
1415
+ # {
1416
+ # virtual_service: {
1417
+ # virtual_service_name: "ServiceName", # required
1418
+ # },
1419
+ # },
1420
+ # ],
1189
1421
  # listeners: [
1190
1422
  # {
1191
1423
  # health_check: {
@@ -1197,15 +1429,15 @@ module Aws::AppMesh
1197
1429
  # timeout_millis: 1, # required
1198
1430
  # unhealthy_threshold: 1, # required
1199
1431
  # },
1200
- # port_mapping: {
1201
- # port: 1,
1202
- # protocol: "http", # accepts http, tcp
1432
+ # port_mapping: { # required
1433
+ # port: 1, # required
1434
+ # protocol: "http", # required, accepts http, tcp
1203
1435
  # },
1204
1436
  # },
1205
1437
  # ],
1206
1438
  # service_discovery: {
1207
1439
  # dns: {
1208
- # service_name: "ServiceName",
1440
+ # hostname: "Hostname", # required
1209
1441
  # },
1210
1442
  # },
1211
1443
  # },
@@ -1221,7 +1453,7 @@ module Aws::AppMesh
1221
1453
  # resp.virtual_node.metadata.uid #=> String
1222
1454
  # resp.virtual_node.metadata.version #=> Integer
1223
1455
  # resp.virtual_node.spec.backends #=> Array
1224
- # resp.virtual_node.spec.backends[0] #=> String
1456
+ # resp.virtual_node.spec.backends[0].virtual_service.virtual_service_name #=> String
1225
1457
  # resp.virtual_node.spec.listeners #=> Array
1226
1458
  # resp.virtual_node.spec.listeners[0].health_check.healthy_threshold #=> Integer
1227
1459
  # resp.virtual_node.spec.listeners[0].health_check.interval_millis #=> Integer
@@ -1232,11 +1464,11 @@ module Aws::AppMesh
1232
1464
  # resp.virtual_node.spec.listeners[0].health_check.unhealthy_threshold #=> Integer
1233
1465
  # resp.virtual_node.spec.listeners[0].port_mapping.port #=> Integer
1234
1466
  # resp.virtual_node.spec.listeners[0].port_mapping.protocol #=> String, one of "http", "tcp"
1235
- # resp.virtual_node.spec.service_discovery.dns.service_name #=> String
1467
+ # resp.virtual_node.spec.service_discovery.dns.hostname #=> String
1236
1468
  # resp.virtual_node.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
1237
1469
  # resp.virtual_node.virtual_node_name #=> String
1238
1470
  #
1239
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/UpdateVirtualNode AWS API Documentation
1471
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/UpdateVirtualNode AWS API Documentation
1240
1472
  #
1241
1473
  # @overload update_virtual_node(params = {})
1242
1474
  # @param [Hash] params ({})
@@ -1256,7 +1488,7 @@ module Aws::AppMesh
1256
1488
  # not need to pass this option.**
1257
1489
  #
1258
1490
  # @option params [required, String] :mesh_name
1259
- # The name of the service mesh in which the virtual router resides.
1491
+ # The name of the service mesh that the virtual router resides in.
1260
1492
  #
1261
1493
  # @option params [required, Types::VirtualRouterSpec] :spec
1262
1494
  # The new virtual router specification to apply. This overwrites the
@@ -1275,7 +1507,14 @@ module Aws::AppMesh
1275
1507
  # client_token: "String",
1276
1508
  # mesh_name: "ResourceName", # required
1277
1509
  # spec: { # required
1278
- # service_names: ["ServiceName"],
1510
+ # listeners: [ # required
1511
+ # {
1512
+ # port_mapping: { # required
1513
+ # port: 1, # required
1514
+ # protocol: "http", # required, accepts http, tcp
1515
+ # },
1516
+ # },
1517
+ # ],
1279
1518
  # },
1280
1519
  # virtual_router_name: "ResourceName", # required
1281
1520
  # })
@@ -1288,12 +1527,13 @@ module Aws::AppMesh
1288
1527
  # resp.virtual_router.metadata.last_updated_at #=> Time
1289
1528
  # resp.virtual_router.metadata.uid #=> String
1290
1529
  # resp.virtual_router.metadata.version #=> Integer
1291
- # resp.virtual_router.spec.service_names #=> Array
1292
- # resp.virtual_router.spec.service_names[0] #=> String
1530
+ # resp.virtual_router.spec.listeners #=> Array
1531
+ # resp.virtual_router.spec.listeners[0].port_mapping.port #=> Integer
1532
+ # resp.virtual_router.spec.listeners[0].port_mapping.protocol #=> String, one of "http", "tcp"
1293
1533
  # resp.virtual_router.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
1294
1534
  # resp.virtual_router.virtual_router_name #=> String
1295
1535
  #
1296
- # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/UpdateVirtualRouter AWS API Documentation
1536
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/UpdateVirtualRouter AWS API Documentation
1297
1537
  #
1298
1538
  # @overload update_virtual_router(params = {})
1299
1539
  # @param [Hash] params ({})
@@ -1302,6 +1542,70 @@ module Aws::AppMesh
1302
1542
  req.send_request(options)
1303
1543
  end
1304
1544
 
1545
+ # Updates an existing virtual service in a specified service mesh.
1546
+ #
1547
+ # @option params [String] :client_token
1548
+ # Unique, case-sensitive identifier that you provide to ensure the
1549
+ # idempotency of the request. Up to 36 letters, numbers, hyphens, and
1550
+ # underscores are allowed.
1551
+ #
1552
+ # **A suitable default value is auto-generated.** You should normally
1553
+ # not need to pass this option.**
1554
+ #
1555
+ # @option params [required, String] :mesh_name
1556
+ # The name of the service mesh that the virtual service resides in.
1557
+ #
1558
+ # @option params [required, Types::VirtualServiceSpec] :spec
1559
+ # The new virtual service specification to apply. This overwrites the
1560
+ # existing data.
1561
+ #
1562
+ # @option params [required, String] :virtual_service_name
1563
+ # The name of the virtual service to update.
1564
+ #
1565
+ # @return [Types::UpdateVirtualServiceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1566
+ #
1567
+ # * {Types::UpdateVirtualServiceOutput#virtual_service #virtual_service} => Types::VirtualServiceData
1568
+ #
1569
+ # @example Request syntax with placeholder values
1570
+ #
1571
+ # resp = client.update_virtual_service({
1572
+ # client_token: "String",
1573
+ # mesh_name: "ResourceName", # required
1574
+ # spec: { # required
1575
+ # provider: {
1576
+ # virtual_node: {
1577
+ # virtual_node_name: "ResourceName", # required
1578
+ # },
1579
+ # virtual_router: {
1580
+ # virtual_router_name: "ResourceName", # required
1581
+ # },
1582
+ # },
1583
+ # },
1584
+ # virtual_service_name: "ServiceName", # required
1585
+ # })
1586
+ #
1587
+ # @example Response structure
1588
+ #
1589
+ # resp.virtual_service.mesh_name #=> String
1590
+ # resp.virtual_service.metadata.arn #=> String
1591
+ # resp.virtual_service.metadata.created_at #=> Time
1592
+ # resp.virtual_service.metadata.last_updated_at #=> Time
1593
+ # resp.virtual_service.metadata.uid #=> String
1594
+ # resp.virtual_service.metadata.version #=> Integer
1595
+ # resp.virtual_service.spec.provider.virtual_node.virtual_node_name #=> String
1596
+ # resp.virtual_service.spec.provider.virtual_router.virtual_router_name #=> String
1597
+ # resp.virtual_service.status.status #=> String, one of "ACTIVE", "DELETED", "INACTIVE"
1598
+ # resp.virtual_service.virtual_service_name #=> String
1599
+ #
1600
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/UpdateVirtualService AWS API Documentation
1601
+ #
1602
+ # @overload update_virtual_service(params = {})
1603
+ # @param [Hash] params ({})
1604
+ def update_virtual_service(params = {}, options = {})
1605
+ req = build_request(:update_virtual_service, params)
1606
+ req.send_request(options)
1607
+ end
1608
+
1305
1609
  # @!endgroup
1306
1610
 
1307
1611
  # @param params ({})
@@ -1315,7 +1619,7 @@ module Aws::AppMesh
1315
1619
  params: params,
1316
1620
  config: config)
1317
1621
  context[:gem_name] = 'aws-sdk-appmesh'
1318
- context[:gem_version] = '1.1.0'
1622
+ context[:gem_version] = '1.2.0'
1319
1623
  Seahorse::Client::Request.new(handlers, context)
1320
1624
  end
1321
1625