pub struct Client { /* private fields */ }
Expand description
Client for AWS App Mesh
Client for invoking operations on AWS App Mesh. Each operation on AWS App Mesh is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_appmesh::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Builder
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_appmesh::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the CreateGatewayRoute
operation has
a Client::create_gateway_route
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.create_gateway_route()
.gateway_route_name("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
Source§impl Client
impl Client
Sourcepub fn create_gateway_route(&self) -> CreateGatewayRouteFluentBuilder
pub fn create_gateway_route(&self) -> CreateGatewayRouteFluentBuilder
Constructs a fluent builder for the CreateGatewayRoute
operation.
- The fluent builder is configurable:
gateway_route_name(impl Into<String>)
/set_gateway_route_name(Option<String>)
:
required: trueThe name to use for the gateway route.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to create the gateway route in.
virtual_gateway_name(impl Into<String>)
/set_virtual_gateway_name(Option<String>)
:
required: trueThe name of the virtual gateway to associate the gateway route with. If the virtual gateway is in a shared mesh, then you must be the owner of the virtual gateway resource.
spec(GatewayRouteSpec)
/set_spec(Option<GatewayRouteSpec>)
:
required: trueThe gateway route specification to apply.
tags(TagRef)
/set_tags(Option<Vec::<TagRef>>)
:
required: falseOptional metadata that you can apply to the gateway route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
CreateGatewayRouteOutput
with field(s):gateway_route(Option<GatewayRouteData>)
:The full description of your gateway route following the create call.
- On failure, responds with
SdkError<CreateGatewayRouteError>
Source§impl Client
impl Client
Sourcepub fn create_mesh(&self) -> CreateMeshFluentBuilder
pub fn create_mesh(&self) -> CreateMeshFluentBuilder
Constructs a fluent builder for the CreateMesh
operation.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name to use for the service mesh.
spec(MeshSpec)
/set_spec(Option<MeshSpec>)
:
required: falseThe service mesh specification to apply.
tags(TagRef)
/set_tags(Option<Vec::<TagRef>>)
:
required: falseOptional metadata that you can apply to the service mesh to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
- On success, responds with
CreateMeshOutput
with field(s):mesh(Option<MeshData>)
:The full description of your service mesh following the create call.
- On failure, responds with
SdkError<CreateMeshError>
Source§impl Client
impl Client
Sourcepub fn create_route(&self) -> CreateRouteFluentBuilder
pub fn create_route(&self) -> CreateRouteFluentBuilder
Constructs a fluent builder for the CreateRoute
operation.
- The fluent builder is configurable:
route_name(impl Into<String>)
/set_route_name(Option<String>)
:
required: trueThe name to use for the route.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to create the route in.
virtual_router_name(impl Into<String>)
/set_virtual_router_name(Option<String>)
:
required: trueThe name of the virtual router in which to create the route. If the virtual router is in a shared mesh, then you must be the owner of the virtual router resource.
spec(RouteSpec)
/set_spec(Option<RouteSpec>)
:
required: trueThe route specification to apply.
tags(TagRef)
/set_tags(Option<Vec::<TagRef>>)
:
required: falseOptional metadata that you can apply to the route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
CreateRouteOutput
with field(s):route(Option<RouteData>)
:The full description of your mesh following the create call.
- On failure, responds with
SdkError<CreateRouteError>
Source§impl Client
impl Client
Sourcepub fn create_virtual_gateway(&self) -> CreateVirtualGatewayFluentBuilder
pub fn create_virtual_gateway(&self) -> CreateVirtualGatewayFluentBuilder
Constructs a fluent builder for the CreateVirtualGateway
operation.
- The fluent builder is configurable:
virtual_gateway_name(impl Into<String>)
/set_virtual_gateway_name(Option<String>)
:
required: trueThe name to use for the virtual gateway.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to create the virtual gateway in.
spec(VirtualGatewaySpec)
/set_spec(Option<VirtualGatewaySpec>)
:
required: trueThe virtual gateway specification to apply.
tags(TagRef)
/set_tags(Option<Vec::<TagRef>>)
:
required: falseOptional metadata that you can apply to the virtual gateway to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
CreateVirtualGatewayOutput
with field(s):virtual_gateway(Option<VirtualGatewayData>)
:The full description of your virtual gateway following the create call.
- On failure, responds with
SdkError<CreateVirtualGatewayError>
Source§impl Client
impl Client
Sourcepub fn create_virtual_node(&self) -> CreateVirtualNodeFluentBuilder
pub fn create_virtual_node(&self) -> CreateVirtualNodeFluentBuilder
Constructs a fluent builder for the CreateVirtualNode
operation.
- The fluent builder is configurable:
virtual_node_name(impl Into<String>)
/set_virtual_node_name(Option<String>)
:
required: trueThe name to use for the virtual node.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to create the virtual node in.
spec(VirtualNodeSpec)
/set_spec(Option<VirtualNodeSpec>)
:
required: trueThe virtual node specification to apply.
tags(TagRef)
/set_tags(Option<Vec::<TagRef>>)
:
required: falseOptional metadata that you can apply to the virtual node to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
CreateVirtualNodeOutput
with field(s):virtual_node(Option<VirtualNodeData>)
:The full description of your virtual node following the create call.
- On failure, responds with
SdkError<CreateVirtualNodeError>
Source§impl Client
impl Client
Sourcepub fn create_virtual_router(&self) -> CreateVirtualRouterFluentBuilder
pub fn create_virtual_router(&self) -> CreateVirtualRouterFluentBuilder
Constructs a fluent builder for the CreateVirtualRouter
operation.
- The fluent builder is configurable:
virtual_router_name(impl Into<String>)
/set_virtual_router_name(Option<String>)
:
required: trueThe name to use for the virtual router.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to create the virtual router in.
spec(VirtualRouterSpec)
/set_spec(Option<VirtualRouterSpec>)
:
required: trueThe virtual router specification to apply.
tags(TagRef)
/set_tags(Option<Vec::<TagRef>>)
:
required: falseOptional metadata that you can apply to the virtual router to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
CreateVirtualRouterOutput
with field(s):virtual_router(Option<VirtualRouterData>)
:The full description of your virtual router following the create call.
- On failure, responds with
SdkError<CreateVirtualRouterError>
Source§impl Client
impl Client
Sourcepub fn create_virtual_service(&self) -> CreateVirtualServiceFluentBuilder
pub fn create_virtual_service(&self) -> CreateVirtualServiceFluentBuilder
Constructs a fluent builder for the CreateVirtualService
operation.
- The fluent builder is configurable:
virtual_service_name(impl Into<String>)
/set_virtual_service_name(Option<String>)
:
required: trueThe name to use for the virtual service.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to create the virtual service in.
spec(VirtualServiceSpec)
/set_spec(Option<VirtualServiceSpec>)
:
required: trueThe virtual service specification to apply.
tags(TagRef)
/set_tags(Option<Vec::<TagRef>>)
:
required: falseOptional metadata that you can apply to the virtual service to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
CreateVirtualServiceOutput
with field(s):virtual_service(Option<VirtualServiceData>)
:The full description of your virtual service following the create call.
- On failure, responds with
SdkError<CreateVirtualServiceError>
Source§impl Client
impl Client
Sourcepub fn delete_gateway_route(&self) -> DeleteGatewayRouteFluentBuilder
pub fn delete_gateway_route(&self) -> DeleteGatewayRouteFluentBuilder
Constructs a fluent builder for the DeleteGatewayRoute
operation.
- The fluent builder is configurable:
gateway_route_name(impl Into<String>)
/set_gateway_route_name(Option<String>)
:
required: trueThe name of the gateway route to delete.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to delete the gateway route from.
virtual_gateway_name(impl Into<String>)
/set_virtual_gateway_name(Option<String>)
:
required: trueThe name of the virtual gateway to delete the route from.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DeleteGatewayRouteOutput
with field(s):gateway_route(Option<GatewayRouteData>)
:The gateway route that was deleted.
- On failure, responds with
SdkError<DeleteGatewayRouteError>
Source§impl Client
impl Client
Sourcepub fn delete_mesh(&self) -> DeleteMeshFluentBuilder
pub fn delete_mesh(&self) -> DeleteMeshFluentBuilder
Constructs a fluent builder for the DeleteMesh
operation.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to delete.
- On success, responds with
DeleteMeshOutput
with field(s):mesh(Option<MeshData>)
:The service mesh that was deleted.
- On failure, responds with
SdkError<DeleteMeshError>
Source§impl Client
impl Client
Sourcepub fn delete_route(&self) -> DeleteRouteFluentBuilder
pub fn delete_route(&self) -> DeleteRouteFluentBuilder
Constructs a fluent builder for the DeleteRoute
operation.
- The fluent builder is configurable:
route_name(impl Into<String>)
/set_route_name(Option<String>)
:
required: trueThe name of the route to delete.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to delete the route in.
virtual_router_name(impl Into<String>)
/set_virtual_router_name(Option<String>)
:
required: trueThe name of the virtual router to delete the route in.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DeleteRouteOutput
with field(s):route(Option<RouteData>)
:The route that was deleted.
- On failure, responds with
SdkError<DeleteRouteError>
Source§impl Client
impl Client
Sourcepub fn delete_virtual_gateway(&self) -> DeleteVirtualGatewayFluentBuilder
pub fn delete_virtual_gateway(&self) -> DeleteVirtualGatewayFluentBuilder
Constructs a fluent builder for the DeleteVirtualGateway
operation.
- The fluent builder is configurable:
virtual_gateway_name(impl Into<String>)
/set_virtual_gateway_name(Option<String>)
:
required: trueThe name of the virtual gateway to delete.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to delete the virtual gateway from.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DeleteVirtualGatewayOutput
with field(s):virtual_gateway(Option<VirtualGatewayData>)
:The virtual gateway that was deleted.
- On failure, responds with
SdkError<DeleteVirtualGatewayError>
Source§impl Client
impl Client
Sourcepub fn delete_virtual_node(&self) -> DeleteVirtualNodeFluentBuilder
pub fn delete_virtual_node(&self) -> DeleteVirtualNodeFluentBuilder
Constructs a fluent builder for the DeleteVirtualNode
operation.
- The fluent builder is configurable:
virtual_node_name(impl Into<String>)
/set_virtual_node_name(Option<String>)
:
required: trueThe name of the virtual node to delete.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to delete the virtual node in.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DeleteVirtualNodeOutput
with field(s):virtual_node(Option<VirtualNodeData>)
:The virtual node that was deleted.
- On failure, responds with
SdkError<DeleteVirtualNodeError>
Source§impl Client
impl Client
Sourcepub fn delete_virtual_router(&self) -> DeleteVirtualRouterFluentBuilder
pub fn delete_virtual_router(&self) -> DeleteVirtualRouterFluentBuilder
Constructs a fluent builder for the DeleteVirtualRouter
operation.
- The fluent builder is configurable:
virtual_router_name(impl Into<String>)
/set_virtual_router_name(Option<String>)
:
required: trueThe name of the virtual router to delete.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to delete the virtual router in.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DeleteVirtualRouterOutput
with field(s):virtual_router(Option<VirtualRouterData>)
:The virtual router that was deleted.
- On failure, responds with
SdkError<DeleteVirtualRouterError>
Source§impl Client
impl Client
Sourcepub fn delete_virtual_service(&self) -> DeleteVirtualServiceFluentBuilder
pub fn delete_virtual_service(&self) -> DeleteVirtualServiceFluentBuilder
Constructs a fluent builder for the DeleteVirtualService
operation.
- The fluent builder is configurable:
virtual_service_name(impl Into<String>)
/set_virtual_service_name(Option<String>)
:
required: trueThe name of the virtual service to delete.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to delete the virtual service in.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DeleteVirtualServiceOutput
with field(s):virtual_service(Option<VirtualServiceData>)
:The virtual service that was deleted.
- On failure, responds with
SdkError<DeleteVirtualServiceError>
Source§impl Client
impl Client
Sourcepub fn describe_gateway_route(&self) -> DescribeGatewayRouteFluentBuilder
pub fn describe_gateway_route(&self) -> DescribeGatewayRouteFluentBuilder
Constructs a fluent builder for the DescribeGatewayRoute
operation.
- The fluent builder is configurable:
gateway_route_name(impl Into<String>)
/set_gateway_route_name(Option<String>)
:
required: trueThe name of the gateway route to describe.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the gateway route resides in.
virtual_gateway_name(impl Into<String>)
/set_virtual_gateway_name(Option<String>)
:
required: trueThe name of the virtual gateway that the gateway route is associated with.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DescribeGatewayRouteOutput
with field(s):gateway_route(Option<GatewayRouteData>)
:The full description of your gateway route.
- On failure, responds with
SdkError<DescribeGatewayRouteError>
Source§impl Client
impl Client
Sourcepub fn describe_mesh(&self) -> DescribeMeshFluentBuilder
pub fn describe_mesh(&self) -> DescribeMeshFluentBuilder
Constructs a fluent builder for the DescribeMesh
operation.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to describe.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DescribeMeshOutput
with field(s):mesh(Option<MeshData>)
:The full description of your service mesh.
- On failure, responds with
SdkError<DescribeMeshError>
Source§impl Client
impl Client
Sourcepub fn describe_route(&self) -> DescribeRouteFluentBuilder
pub fn describe_route(&self) -> DescribeRouteFluentBuilder
Constructs a fluent builder for the DescribeRoute
operation.
- The fluent builder is configurable:
route_name(impl Into<String>)
/set_route_name(Option<String>)
:
required: trueThe name of the route to describe.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the route resides in.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
virtual_router_name(impl Into<String>)
/set_virtual_router_name(Option<String>)
:
required: trueThe name of the virtual router that the route is associated with.
- On success, responds with
DescribeRouteOutput
with field(s):route(Option<RouteData>)
:The full description of your route.
- On failure, responds with
SdkError<DescribeRouteError>
Source§impl Client
impl Client
Sourcepub fn describe_virtual_gateway(&self) -> DescribeVirtualGatewayFluentBuilder
pub fn describe_virtual_gateway(&self) -> DescribeVirtualGatewayFluentBuilder
Constructs a fluent builder for the DescribeVirtualGateway
operation.
- The fluent builder is configurable:
virtual_gateway_name(impl Into<String>)
/set_virtual_gateway_name(Option<String>)
:
required: trueThe name of the virtual gateway to describe.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the gateway route resides in.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DescribeVirtualGatewayOutput
with field(s):virtual_gateway(Option<VirtualGatewayData>)
:The full description of your virtual gateway.
- On failure, responds with
SdkError<DescribeVirtualGatewayError>
Source§impl Client
impl Client
Sourcepub fn describe_virtual_node(&self) -> DescribeVirtualNodeFluentBuilder
pub fn describe_virtual_node(&self) -> DescribeVirtualNodeFluentBuilder
Constructs a fluent builder for the DescribeVirtualNode
operation.
- The fluent builder is configurable:
virtual_node_name(impl Into<String>)
/set_virtual_node_name(Option<String>)
:
required: trueThe name of the virtual node to describe.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the virtual node resides in.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DescribeVirtualNodeOutput
with field(s):virtual_node(Option<VirtualNodeData>)
:The full description of your virtual node.
- On failure, responds with
SdkError<DescribeVirtualNodeError>
Source§impl Client
impl Client
Sourcepub fn describe_virtual_router(&self) -> DescribeVirtualRouterFluentBuilder
pub fn describe_virtual_router(&self) -> DescribeVirtualRouterFluentBuilder
Constructs a fluent builder for the DescribeVirtualRouter
operation.
- The fluent builder is configurable:
virtual_router_name(impl Into<String>)
/set_virtual_router_name(Option<String>)
:
required: trueThe name of the virtual router to describe.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the virtual router resides in.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DescribeVirtualRouterOutput
with field(s):virtual_router(Option<VirtualRouterData>)
:The full description of your virtual router.
- On failure, responds with
SdkError<DescribeVirtualRouterError>
Source§impl Client
impl Client
Sourcepub fn describe_virtual_service(&self) -> DescribeVirtualServiceFluentBuilder
pub fn describe_virtual_service(&self) -> DescribeVirtualServiceFluentBuilder
Constructs a fluent builder for the DescribeVirtualService
operation.
- The fluent builder is configurable:
virtual_service_name(impl Into<String>)
/set_virtual_service_name(Option<String>)
:
required: trueThe name of the virtual service to describe.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the virtual service resides in.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
DescribeVirtualServiceOutput
with field(s):virtual_service(Option<VirtualServiceData>)
:The full description of your virtual service.
- On failure, responds with
SdkError<DescribeVirtualServiceError>
Source§impl Client
impl Client
Sourcepub fn list_gateway_routes(&self) -> ListGatewayRoutesFluentBuilder
pub fn list_gateway_routes(&self) -> ListGatewayRoutesFluentBuilder
Constructs a fluent builder for the ListGatewayRoutes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to list gateway routes in.
virtual_gateway_name(impl Into<String>)
/set_virtual_gateway_name(Option<String>)
:
required: trueThe name of the virtual gateway to list gateway routes in.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListGatewayRoutes
request wherelimit
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value.limit(i32)
/set_limit(Option<i32>)
:
required: falseThe maximum number of results returned by
ListGatewayRoutes
in paginated output. When you use this parameter,ListGatewayRoutes
returns onlylimit
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListGatewayRoutes
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListGatewayRoutes
returns up to 100 results and anextToken
value if applicable.mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
ListGatewayRoutesOutput
with field(s):gateway_routes(Vec::<GatewayRouteRef>)
:The list of existing gateway routes for the specified service mesh and virtual gateway.
next_token(Option<String>)
:The
nextToken
value to include in a futureListGatewayRoutes
request. When the results of aListGatewayRoutes
request exceedlimit
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<ListGatewayRoutesError>
Source§impl Client
impl Client
Sourcepub fn list_meshes(&self) -> ListMeshesFluentBuilder
pub fn list_meshes(&self) -> ListMeshesFluentBuilder
Constructs a fluent builder for the ListMeshes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListMeshes
request wherelimit
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value.This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.
limit(i32)
/set_limit(Option<i32>)
:
required: falseThe maximum number of results returned by
ListMeshes
in paginated output. When you use this parameter,ListMeshes
returns onlylimit
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListMeshes
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListMeshes
returns up to 100 results and anextToken
value if applicable.
- On success, responds with
ListMeshesOutput
with field(s):meshes(Vec::<MeshRef>)
:The list of existing service meshes.
next_token(Option<String>)
:The
nextToken
value to include in a futureListMeshes
request. When the results of aListMeshes
request exceedlimit
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<ListMeshesError>
Source§impl Client
impl Client
Sourcepub fn list_routes(&self) -> ListRoutesFluentBuilder
pub fn list_routes(&self) -> ListRoutesFluentBuilder
Constructs a fluent builder for the ListRoutes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to list routes in.
virtual_router_name(impl Into<String>)
/set_virtual_router_name(Option<String>)
:
required: trueThe name of the virtual router to list routes in.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListRoutes
request wherelimit
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value.limit(i32)
/set_limit(Option<i32>)
:
required: falseThe maximum number of results returned by
ListRoutes
in paginated output. When you use this parameter,ListRoutes
returns onlylimit
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListRoutes
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListRoutes
returns up to 100 results and anextToken
value if applicable.mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
ListRoutesOutput
with field(s):routes(Vec::<RouteRef>)
:The list of existing routes for the specified service mesh and virtual router.
next_token(Option<String>)
:The
nextToken
value to include in a futureListRoutes
request. When the results of aListRoutes
request exceedlimit
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<ListRoutesError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) that identifies the resource to list the tags for.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListTagsForResource
request wherelimit
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value.limit(i32)
/set_limit(Option<i32>)
:
required: falseThe maximum number of tag results returned by
ListTagsForResource
in paginated output. When this parameter is used,ListTagsForResource
returns onlylimit
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListTagsForResource
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListTagsForResource
returns up to 100 results and anextToken
value if applicable.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Vec::<TagRef>)
:The tags for the resource.
next_token(Option<String>)
:The
nextToken
value to include in a futureListTagsForResource
request. When the results of aListTagsForResource
request exceedlimit
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn list_virtual_gateways(&self) -> ListVirtualGatewaysFluentBuilder
pub fn list_virtual_gateways(&self) -> ListVirtualGatewaysFluentBuilder
Constructs a fluent builder for the ListVirtualGateways
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to list virtual gateways in.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListVirtualGateways
request wherelimit
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value.limit(i32)
/set_limit(Option<i32>)
:
required: falseThe maximum number of results returned by
ListVirtualGateways
in paginated output. When you use this parameter,ListVirtualGateways
returns onlylimit
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListVirtualGateways
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListVirtualGateways
returns up to 100 results and anextToken
value if applicable.mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
ListVirtualGatewaysOutput
with field(s):virtual_gateways(Vec::<VirtualGatewayRef>)
:The list of existing virtual gateways for the specified service mesh.
next_token(Option<String>)
:The
nextToken
value to include in a futureListVirtualGateways
request. When the results of aListVirtualGateways
request exceedlimit
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<ListVirtualGatewaysError>
Source§impl Client
impl Client
Sourcepub fn list_virtual_nodes(&self) -> ListVirtualNodesFluentBuilder
pub fn list_virtual_nodes(&self) -> ListVirtualNodesFluentBuilder
Constructs a fluent builder for the ListVirtualNodes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to list virtual nodes in.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListVirtualNodes
request wherelimit
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value.limit(i32)
/set_limit(Option<i32>)
:
required: falseThe maximum number of results returned by
ListVirtualNodes
in paginated output. When you use this parameter,ListVirtualNodes
returns onlylimit
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListVirtualNodes
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListVirtualNodes
returns up to 100 results and anextToken
value if applicable.mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
ListVirtualNodesOutput
with field(s):virtual_nodes(Vec::<VirtualNodeRef>)
:The list of existing virtual nodes for the specified service mesh.
next_token(Option<String>)
:The
nextToken
value to include in a futureListVirtualNodes
request. When the results of aListVirtualNodes
request exceedlimit
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<ListVirtualNodesError>
Source§impl Client
impl Client
Sourcepub fn list_virtual_routers(&self) -> ListVirtualRoutersFluentBuilder
pub fn list_virtual_routers(&self) -> ListVirtualRoutersFluentBuilder
Constructs a fluent builder for the ListVirtualRouters
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to list virtual routers in.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListVirtualRouters
request wherelimit
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value.limit(i32)
/set_limit(Option<i32>)
:
required: falseThe maximum number of results returned by
ListVirtualRouters
in paginated output. When you use this parameter,ListVirtualRouters
returns onlylimit
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListVirtualRouters
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListVirtualRouters
returns up to 100 results and anextToken
value if applicable.mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
ListVirtualRoutersOutput
with field(s):virtual_routers(Vec::<VirtualRouterRef>)
:The list of existing virtual routers for the specified service mesh.
next_token(Option<String>)
:The
nextToken
value to include in a futureListVirtualRouters
request. When the results of aListVirtualRouters
request exceedlimit
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<ListVirtualRoutersError>
Source§impl Client
impl Client
Sourcepub fn list_virtual_services(&self) -> ListVirtualServicesFluentBuilder
pub fn list_virtual_services(&self) -> ListVirtualServicesFluentBuilder
Constructs a fluent builder for the ListVirtualServices
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to list virtual services in.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe
nextToken
value returned from a previous paginatedListVirtualServices
request wherelimit
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value.limit(i32)
/set_limit(Option<i32>)
:
required: falseThe maximum number of results returned by
ListVirtualServices
in paginated output. When you use this parameter,ListVirtualServices
returns onlylimit
results in a single page along with anextToken
response element. You can see the remaining results of the initial request by sending anotherListVirtualServices
request with the returnednextToken
value. This value can be between 1 and 100. If you don’t use this parameter,ListVirtualServices
returns up to 100 results and anextToken
value if applicable.mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
ListVirtualServicesOutput
with field(s):virtual_services(Vec::<VirtualServiceRef>)
:The list of existing virtual services for the specified service mesh.
next_token(Option<String>)
:The
nextToken
value to include in a futureListVirtualServices
request. When the results of aListVirtualServices
request exceedlimit
, you can use this value to retrieve the next page of results. This value isnull
when there are no more results to return.
- On failure, responds with
SdkError<ListVirtualServicesError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource to add tags to.
tags(TagRef)
/set_tags(Option<Vec::<TagRef>>)
:
required: trueThe tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource to delete tags from.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueThe keys of the tags to be removed.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_gateway_route(&self) -> UpdateGatewayRouteFluentBuilder
pub fn update_gateway_route(&self) -> UpdateGatewayRouteFluentBuilder
Constructs a fluent builder for the UpdateGatewayRoute
operation.
- The fluent builder is configurable:
gateway_route_name(impl Into<String>)
/set_gateway_route_name(Option<String>)
:
required: trueThe name of the gateway route to update.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the gateway route resides in.
virtual_gateway_name(impl Into<String>)
/set_virtual_gateway_name(Option<String>)
:
required: trueThe name of the virtual gateway that the gateway route is associated with.
spec(GatewayRouteSpec)
/set_spec(Option<GatewayRouteSpec>)
:
required: trueThe new gateway route specification to apply. This overwrites the existing data.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
UpdateGatewayRouteOutput
with field(s):gateway_route(Option<GatewayRouteData>)
:A full description of the gateway route that was updated.
- On failure, responds with
SdkError<UpdateGatewayRouteError>
Source§impl Client
impl Client
Sourcepub fn update_mesh(&self) -> UpdateMeshFluentBuilder
pub fn update_mesh(&self) -> UpdateMeshFluentBuilder
Constructs a fluent builder for the UpdateMesh
operation.
- The fluent builder is configurable:
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh to update.
spec(MeshSpec)
/set_spec(Option<MeshSpec>)
:
required: falseThe service mesh specification to apply.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
- On success, responds with
UpdateMeshOutput
with field(s):mesh(Option<MeshData>)
:An object that represents a service mesh returned by a describe operation.
- On failure, responds with
SdkError<UpdateMeshError>
Source§impl Client
impl Client
Sourcepub fn update_route(&self) -> UpdateRouteFluentBuilder
pub fn update_route(&self) -> UpdateRouteFluentBuilder
Constructs a fluent builder for the UpdateRoute
operation.
- The fluent builder is configurable:
route_name(impl Into<String>)
/set_route_name(Option<String>)
:
required: trueThe name of the route to update.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the route resides in.
virtual_router_name(impl Into<String>)
/set_virtual_router_name(Option<String>)
:
required: trueThe name of the virtual router that the route is associated with.
spec(RouteSpec)
/set_spec(Option<RouteSpec>)
:
required: trueThe new route specification to apply. This overwrites the existing data.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
UpdateRouteOutput
with field(s):route(Option<RouteData>)
:A full description of the route that was updated.
- On failure, responds with
SdkError<UpdateRouteError>
Source§impl Client
impl Client
Sourcepub fn update_virtual_gateway(&self) -> UpdateVirtualGatewayFluentBuilder
pub fn update_virtual_gateway(&self) -> UpdateVirtualGatewayFluentBuilder
Constructs a fluent builder for the UpdateVirtualGateway
operation.
- The fluent builder is configurable:
virtual_gateway_name(impl Into<String>)
/set_virtual_gateway_name(Option<String>)
:
required: trueThe name of the virtual gateway to update.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the virtual gateway resides in.
spec(VirtualGatewaySpec)
/set_spec(Option<VirtualGatewaySpec>)
:
required: trueThe new virtual gateway specification to apply. This overwrites the existing data.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
UpdateVirtualGatewayOutput
with field(s):virtual_gateway(Option<VirtualGatewayData>)
:A full description of the virtual gateway that was updated.
- On failure, responds with
SdkError<UpdateVirtualGatewayError>
Source§impl Client
impl Client
Sourcepub fn update_virtual_node(&self) -> UpdateVirtualNodeFluentBuilder
pub fn update_virtual_node(&self) -> UpdateVirtualNodeFluentBuilder
Constructs a fluent builder for the UpdateVirtualNode
operation.
- The fluent builder is configurable:
virtual_node_name(impl Into<String>)
/set_virtual_node_name(Option<String>)
:
required: trueThe name of the virtual node to update.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the virtual node resides in.
spec(VirtualNodeSpec)
/set_spec(Option<VirtualNodeSpec>)
:
required: trueThe new virtual node specification to apply. This overwrites the existing data.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
UpdateVirtualNodeOutput
with field(s):virtual_node(Option<VirtualNodeData>)
:A full description of the virtual node that was updated.
- On failure, responds with
SdkError<UpdateVirtualNodeError>
Source§impl Client
impl Client
Sourcepub fn update_virtual_router(&self) -> UpdateVirtualRouterFluentBuilder
pub fn update_virtual_router(&self) -> UpdateVirtualRouterFluentBuilder
Constructs a fluent builder for the UpdateVirtualRouter
operation.
- The fluent builder is configurable:
virtual_router_name(impl Into<String>)
/set_virtual_router_name(Option<String>)
:
required: trueThe name of the virtual router to update.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the virtual router resides in.
spec(VirtualRouterSpec)
/set_spec(Option<VirtualRouterSpec>)
:
required: trueThe new virtual router specification to apply. This overwrites the existing data.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
UpdateVirtualRouterOutput
with field(s):virtual_router(Option<VirtualRouterData>)
:A full description of the virtual router that was updated.
- On failure, responds with
SdkError<UpdateVirtualRouterError>
Source§impl Client
impl Client
Sourcepub fn update_virtual_service(&self) -> UpdateVirtualServiceFluentBuilder
pub fn update_virtual_service(&self) -> UpdateVirtualServiceFluentBuilder
Constructs a fluent builder for the UpdateVirtualService
operation.
- The fluent builder is configurable:
virtual_service_name(impl Into<String>)
/set_virtual_service_name(Option<String>)
:
required: trueThe name of the virtual service to update.
mesh_name(impl Into<String>)
/set_mesh_name(Option<String>)
:
required: trueThe name of the service mesh that the virtual service resides in.
spec(VirtualServiceSpec)
/set_spec(Option<VirtualServiceSpec>)
:
required: trueThe new virtual service specification to apply. This overwrites the existing data.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
mesh_owner(impl Into<String>)
/set_mesh_owner(Option<String>)
:
required: falseThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
- On success, responds with
UpdateVirtualServiceOutput
with field(s):virtual_service(Option<VirtualServiceData>)
:A full description of the virtual service that was updated.
- On failure, responds with
SdkError<UpdateVirtualServiceError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);