[−][src]Struct rusoto_servicediscovery::ServiceDiscoveryClient
A client for the ServiceDiscovery API.
Implementations
impl ServiceDiscoveryClient
[src]
pub fn new(region: Region) -> ServiceDiscoveryClient
[src]
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> ServiceDiscoveryClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
[src]
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> ServiceDiscoveryClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> ServiceDiscoveryClient
[src]
Trait Implementations
impl Clone for ServiceDiscoveryClient
[src]
pub fn clone(&self) -> ServiceDiscoveryClient
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ServiceDiscovery for ServiceDiscoveryClient
[src]
pub fn create_http_namespace<'life0, 'async_trait>(
&'life0 self,
input: CreateHttpNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<CreateHttpNamespaceResponse, RusotoError<CreateHttpNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: CreateHttpNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<CreateHttpNamespaceResponse, RusotoError<CreateHttpNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates an HTTP namespace. Service instances that you register using an HTTP namespace can be discovered using a DiscoverInstances
request but can't be discovered using DNS.
For the current limit on the number of namespaces that you can create using the same AWS account, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.
pub fn create_private_dns_namespace<'life0, 'async_trait>(
&'life0 self,
input: CreatePrivateDnsNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<CreatePrivateDnsNamespaceResponse, RusotoError<CreatePrivateDnsNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: CreatePrivateDnsNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<CreatePrivateDnsNamespaceResponse, RusotoError<CreatePrivateDnsNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates a private namespace based on DNS, which will be visible only inside a specified Amazon VPC. The namespace defines your service naming scheme. For example, if you name your namespace example.com
and name your service backend
, the resulting DNS name for the service will be backend.example.com
. For the current limit on the number of namespaces that you can create using the same AWS account, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.
pub fn create_public_dns_namespace<'life0, 'async_trait>(
&'life0 self,
input: CreatePublicDnsNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<CreatePublicDnsNamespaceResponse, RusotoError<CreatePublicDnsNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: CreatePublicDnsNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<CreatePublicDnsNamespaceResponse, RusotoError<CreatePublicDnsNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates a public namespace based on DNS, which will be visible on the internet. The namespace defines your service naming scheme. For example, if you name your namespace example.com
and name your service backend
, the resulting DNS name for the service will be backend.example.com
. For the current limit on the number of namespaces that you can create using the same AWS account, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.
pub fn create_service<'life0, 'async_trait>(
&'life0 self,
input: CreateServiceRequest
) -> Pin<Box<dyn Future<Output = Result<CreateServiceResponse, RusotoError<CreateServiceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: CreateServiceRequest
) -> Pin<Box<dyn Future<Output = Result<CreateServiceResponse, RusotoError<CreateServiceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates a service, which defines the configuration for the following entities:
-
For public and private DNS namespaces, one of the following combinations of DNS records in Amazon Route 53:
-
A
-
AAAA
-
A and AAAA
-
SRV
-
CNAME
-
-
Optionally, a health check
After you create the service, you can submit a RegisterInstance request, and AWS Cloud Map uses the values in the configuration to create the specified entities.
For the current limit on the number of instances that you can register using the same namespace and using the same service, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.
pub fn delete_namespace<'life0, 'async_trait>(
&'life0 self,
input: DeleteNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteNamespaceResponse, RusotoError<DeleteNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: DeleteNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteNamespaceResponse, RusotoError<DeleteNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a namespace from the current account. If the namespace still contains one or more services, the request fails.
pub fn delete_service<'life0, 'async_trait>(
&'life0 self,
input: DeleteServiceRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteServiceResponse, RusotoError<DeleteServiceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: DeleteServiceRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteServiceResponse, RusotoError<DeleteServiceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a specified service. If the service still contains one or more registered instances, the request fails.
pub fn deregister_instance<'life0, 'async_trait>(
&'life0 self,
input: DeregisterInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<DeregisterInstanceResponse, RusotoError<DeregisterInstanceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: DeregisterInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<DeregisterInstanceResponse, RusotoError<DeregisterInstanceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes the Amazon Route 53 DNS records and health check, if any, that AWS Cloud Map created for the specified instance.
pub fn discover_instances<'life0, 'async_trait>(
&'life0 self,
input: DiscoverInstancesRequest
) -> Pin<Box<dyn Future<Output = Result<DiscoverInstancesResponse, RusotoError<DiscoverInstancesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: DiscoverInstancesRequest
) -> Pin<Box<dyn Future<Output = Result<DiscoverInstancesResponse, RusotoError<DiscoverInstancesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Discovers registered instances for a specified namespace and service. You can use DiscoverInstances
to discover instances for any type of namespace. For public and private DNS namespaces, you can also use DNS queries to discover instances.
pub fn get_instance<'life0, 'async_trait>(
&'life0 self,
input: GetInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<GetInstanceResponse, RusotoError<GetInstanceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: GetInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<GetInstanceResponse, RusotoError<GetInstanceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Gets information about a specified instance.
pub fn get_instances_health_status<'life0, 'async_trait>(
&'life0 self,
input: GetInstancesHealthStatusRequest
) -> Pin<Box<dyn Future<Output = Result<GetInstancesHealthStatusResponse, RusotoError<GetInstancesHealthStatusError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: GetInstancesHealthStatusRequest
) -> Pin<Box<dyn Future<Output = Result<GetInstancesHealthStatusResponse, RusotoError<GetInstancesHealthStatusError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Gets the current health status (Healthy
, Unhealthy
, or Unknown
) of one or more instances that are associated with a specified service.
There is a brief delay between when you register an instance and when the health status for the instance is available.
pub fn get_namespace<'life0, 'async_trait>(
&'life0 self,
input: GetNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<GetNamespaceResponse, RusotoError<GetNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: GetNamespaceRequest
) -> Pin<Box<dyn Future<Output = Result<GetNamespaceResponse, RusotoError<GetNamespaceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Gets information about a namespace.
pub fn get_operation<'life0, 'async_trait>(
&'life0 self,
input: GetOperationRequest
) -> Pin<Box<dyn Future<Output = Result<GetOperationResponse, RusotoError<GetOperationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: GetOperationRequest
) -> Pin<Box<dyn Future<Output = Result<GetOperationResponse, RusotoError<GetOperationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Gets information about any operation that returns an operation ID in the response, such as a CreateService
request.
To get a list of operations that match specified criteria, see ListOperations.
pub fn get_service<'life0, 'async_trait>(
&'life0 self,
input: GetServiceRequest
) -> Pin<Box<dyn Future<Output = Result<GetServiceResponse, RusotoError<GetServiceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: GetServiceRequest
) -> Pin<Box<dyn Future<Output = Result<GetServiceResponse, RusotoError<GetServiceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Gets the settings for a specified service.
pub fn list_instances<'life0, 'async_trait>(
&'life0 self,
input: ListInstancesRequest
) -> Pin<Box<dyn Future<Output = Result<ListInstancesResponse, RusotoError<ListInstancesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: ListInstancesRequest
) -> Pin<Box<dyn Future<Output = Result<ListInstancesResponse, RusotoError<ListInstancesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists summary information about the instances that you registered by using a specified service.
pub fn list_namespaces<'life0, 'async_trait>(
&'life0 self,
input: ListNamespacesRequest
) -> Pin<Box<dyn Future<Output = Result<ListNamespacesResponse, RusotoError<ListNamespacesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: ListNamespacesRequest
) -> Pin<Box<dyn Future<Output = Result<ListNamespacesResponse, RusotoError<ListNamespacesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists summary information about the namespaces that were created by the current AWS account.
pub fn list_operations<'life0, 'async_trait>(
&'life0 self,
input: ListOperationsRequest
) -> Pin<Box<dyn Future<Output = Result<ListOperationsResponse, RusotoError<ListOperationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: ListOperationsRequest
) -> Pin<Box<dyn Future<Output = Result<ListOperationsResponse, RusotoError<ListOperationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists operations that match the criteria that you specify.
pub fn list_services<'life0, 'async_trait>(
&'life0 self,
input: ListServicesRequest
) -> Pin<Box<dyn Future<Output = Result<ListServicesResponse, RusotoError<ListServicesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: ListServicesRequest
) -> Pin<Box<dyn Future<Output = Result<ListServicesResponse, RusotoError<ListServicesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists summary information for all the services that are associated with one or more specified namespaces.
pub fn list_tags_for_resource<'life0, 'async_trait>(
&'life0 self,
input: ListTagsForResourceRequest
) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: ListTagsForResourceRequest
) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists tags for the specified resource.
pub fn register_instance<'life0, 'async_trait>(
&'life0 self,
input: RegisterInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<RegisterInstanceResponse, RusotoError<RegisterInstanceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: RegisterInstanceRequest
) -> Pin<Box<dyn Future<Output = Result<RegisterInstanceResponse, RusotoError<RegisterInstanceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates or updates one or more records and, optionally, creates a health check based on the settings in a specified service. When you submit a RegisterInstance
request, the following occurs:
-
For each DNS record that you define in the service that is specified by
ServiceId
, a record is created or updated in the hosted zone that is associated with the corresponding namespace. -
If the service includes
HealthCheckConfig
, a health check is created based on the settings in the health check configuration. -
The health check, if any, is associated with each of the new or updated records.
One RegisterInstance
request must complete before you can submit another request and specify the same service ID and instance ID.
For more information, see CreateService.
When AWS Cloud Map receives a DNS query for the specified DNS name, it returns the applicable value:
-
If the health check is healthy: returns all the records
-
If the health check is unhealthy: returns the applicable value for the last healthy instance
-
If you didn't specify a health check configuration: returns all the records
For the current limit on the number of instances that you can register using the same namespace and using the same service, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.
pub fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Adds one or more tags to the specified resource.
pub fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Removes one or more tags from the specified resource.
pub fn update_instance_custom_health_status<'life0, 'async_trait>(
&'life0 self,
input: UpdateInstanceCustomHealthStatusRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UpdateInstanceCustomHealthStatusError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: UpdateInstanceCustomHealthStatusRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UpdateInstanceCustomHealthStatusError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Submits a request to change the health status of a custom health check to healthy or unhealthy.
You can use UpdateInstanceCustomHealthStatus
to change the status only for custom health checks, which you define using HealthCheckCustomConfig
when you create a service. You can't use it to change the status for Route 53 health checks, which you define using HealthCheckConfig
.
For more information, see HealthCheckCustomConfig.
pub fn update_service<'life0, 'async_trait>(
&'life0 self,
input: UpdateServiceRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateServiceResponse, RusotoError<UpdateServiceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
input: UpdateServiceRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateServiceResponse, RusotoError<UpdateServiceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Submits a request to perform the following operations:
-
Update the TTL setting for existing
DnsRecords
configurations -
Add, update, or delete
HealthCheckConfig
for a specified serviceYou can't add, update, or delete a
HealthCheckCustomConfig
configuration.
For public and private DNS namespaces, note the following:
-
If you omit any existing
DnsRecords
orHealthCheckConfig
configurations from anUpdateService
request, the configurations are deleted from the service. -
If you omit an existing
HealthCheckCustomConfig
configuration from anUpdateService
request, the configuration is not deleted from the service.
When you update settings for a service, AWS Cloud Map also updates the corresponding settings in all the records and health checks that were created by using the specified service.
Auto Trait Implementations
impl !RefUnwindSafe for ServiceDiscoveryClient
[src]
impl Send for ServiceDiscoveryClient
[src]
impl Sync for ServiceDiscoveryClient
[src]
impl Unpin for ServiceDiscoveryClient
[src]
impl !UnwindSafe for ServiceDiscoveryClient
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,