Struct rusoto_discovery::DiscoveryClient
source · [−]pub struct DiscoveryClient { /* private fields */ }
Expand description
A client for the AWS Application Discovery Service API.
Implementations
sourceimpl DiscoveryClient
impl DiscoveryClient
sourcepub fn new(region: Region) -> DiscoveryClient
pub fn new(region: Region) -> DiscoveryClient
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
) -> DiscoveryClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> DiscoveryClient
Trait Implementations
sourceimpl Clone for DiscoveryClient
impl Clone for DiscoveryClient
sourcefn clone(&self) -> DiscoveryClient
fn clone(&self) -> DiscoveryClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Discovery for DiscoveryClient
impl Discovery for DiscoveryClient
sourcefn associate_configuration_items_to_application<'life0, 'async_trait>(
&'life0 self,
input: AssociateConfigurationItemsToApplicationRequest
) -> Pin<Box<dyn Future<Output = Result<AssociateConfigurationItemsToApplicationResponse, RusotoError<AssociateConfigurationItemsToApplicationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn associate_configuration_items_to_application<'life0, 'async_trait>(
&'life0 self,
input: AssociateConfigurationItemsToApplicationRequest
) -> Pin<Box<dyn Future<Output = Result<AssociateConfigurationItemsToApplicationResponse, RusotoError<AssociateConfigurationItemsToApplicationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Associates one or more configuration items with an application.
sourcefn batch_delete_import_data<'life0, 'async_trait>(
&'life0 self,
input: BatchDeleteImportDataRequest
) -> Pin<Box<dyn Future<Output = Result<BatchDeleteImportDataResponse, RusotoError<BatchDeleteImportDataError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn batch_delete_import_data<'life0, 'async_trait>(
&'life0 self,
input: BatchDeleteImportDataRequest
) -> Pin<Box<dyn Future<Output = Result<BatchDeleteImportDataResponse, RusotoError<BatchDeleteImportDataError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes one or more import tasks, each identified by their import ID. Each import task has a number of records that can identify servers or applications.
AWS Application Discovery Service has built-in matching logic that will identify when discovered servers match existing entries that you've previously discovered, the information for the already-existing discovered server is updated. When you delete an import task that contains records that were used to match, the information in those matched records that comes from the deleted records will also be deleted.
sourcefn create_application<'life0, 'async_trait>(
&'life0 self,
input: CreateApplicationRequest
) -> Pin<Box<dyn Future<Output = Result<CreateApplicationResponse, RusotoError<CreateApplicationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_application<'life0, 'async_trait>(
&'life0 self,
input: CreateApplicationRequest
) -> Pin<Box<dyn Future<Output = Result<CreateApplicationResponse, RusotoError<CreateApplicationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates an application with the given name and description.
Creates one or more tags for configuration items. Tags are metadata that help you categorize IT assets. This API accepts a list of multiple configuration items.
sourcefn delete_applications<'life0, 'async_trait>(
&'life0 self,
input: DeleteApplicationsRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteApplicationsResponse, RusotoError<DeleteApplicationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_applications<'life0, 'async_trait>(
&'life0 self,
input: DeleteApplicationsRequest
) -> Pin<Box<dyn Future<Output = Result<DeleteApplicationsResponse, RusotoError<DeleteApplicationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a list of applications and their associations with configuration items.
Deletes the association between configuration items and one or more tags. This API accepts a list of multiple configuration items.
sourcefn describe_agents<'life0, 'async_trait>(
&'life0 self,
input: DescribeAgentsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeAgentsResponse, RusotoError<DescribeAgentsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_agents<'life0, 'async_trait>(
&'life0 self,
input: DescribeAgentsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeAgentsResponse, RusotoError<DescribeAgentsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists agents or connectors as specified by ID or other filters. All agents/connectors associated with your user account can be listed if you call DescribeAgents
as is without passing any parameters.
sourcefn describe_configurations<'life0, 'async_trait>(
&'life0 self,
input: DescribeConfigurationsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeConfigurationsResponse, RusotoError<DescribeConfigurationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_configurations<'life0, 'async_trait>(
&'life0 self,
input: DescribeConfigurationsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeConfigurationsResponse, RusotoError<DescribeConfigurationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves attributes for a list of configuration item IDs.
All of the supplied IDs must be for the same asset type from one of the following:
-
server
-
application
-
process
-
connection
Output fields are specific to the asset type specified. For example, the output for a server configuration item includes a list of attributes about the server, such as host name, operating system, number of network cards, etc.
For a complete list of outputs for each asset type, see Using the DescribeConfigurations Action in the AWS Application Discovery Service User Guide.
sourcefn describe_continuous_exports<'life0, 'async_trait>(
&'life0 self,
input: DescribeContinuousExportsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeContinuousExportsResponse, RusotoError<DescribeContinuousExportsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_continuous_exports<'life0, 'async_trait>(
&'life0 self,
input: DescribeContinuousExportsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeContinuousExportsResponse, RusotoError<DescribeContinuousExportsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists exports as specified by ID. All continuous exports associated with your user account can be listed if you call DescribeContinuousExports
as is without passing any parameters.
sourcefn describe_export_configurations<'life0, 'async_trait>(
&'life0 self,
input: DescribeExportConfigurationsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeExportConfigurationsResponse, RusotoError<DescribeExportConfigurationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_export_configurations<'life0, 'async_trait>(
&'life0 self,
input: DescribeExportConfigurationsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeExportConfigurationsResponse, RusotoError<DescribeExportConfigurationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
DescribeExportConfigurations
is deprecated. Use DescribeImportTasks, instead.
sourcefn describe_export_tasks<'life0, 'async_trait>(
&'life0 self,
input: DescribeExportTasksRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeExportTasksResponse, RusotoError<DescribeExportTasksError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_export_tasks<'life0, 'async_trait>(
&'life0 self,
input: DescribeExportTasksRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeExportTasksResponse, RusotoError<DescribeExportTasksError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieve status of one or more export tasks. You can retrieve the status of up to 100 export tasks.
sourcefn describe_import_tasks<'life0, 'async_trait>(
&'life0 self,
input: DescribeImportTasksRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeImportTasksResponse, RusotoError<DescribeImportTasksError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn describe_import_tasks<'life0, 'async_trait>(
&'life0 self,
input: DescribeImportTasksRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeImportTasksResponse, RusotoError<DescribeImportTasksError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns an array of import tasks for your account, including status information, times, IDs, the Amazon S3 Object URL for the import file, and more.
Retrieves a list of configuration items that have tags as specified by the key-value pairs, name and value, passed to the optional parameter filters
.
There are three valid tag filter names:
-
tagKey
-
tagValue
-
configurationId
Also, all configuration items associated with your user account that have tags can be listed if you call DescribeTags
as is without passing any parameters.
sourcefn disassociate_configuration_items_from_application<'life0, 'async_trait>(
&'life0 self,
input: DisassociateConfigurationItemsFromApplicationRequest
) -> Pin<Box<dyn Future<Output = Result<DisassociateConfigurationItemsFromApplicationResponse, RusotoError<DisassociateConfigurationItemsFromApplicationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn disassociate_configuration_items_from_application<'life0, 'async_trait>(
&'life0 self,
input: DisassociateConfigurationItemsFromApplicationRequest
) -> Pin<Box<dyn Future<Output = Result<DisassociateConfigurationItemsFromApplicationResponse, RusotoError<DisassociateConfigurationItemsFromApplicationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Disassociates one or more configuration items from an application.
sourcefn export_configurations<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<ExportConfigurationsResponse, RusotoError<ExportConfigurationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn export_configurations<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<ExportConfigurationsResponse, RusotoError<ExportConfigurationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deprecated. Use StartExportTask
instead.
Exports all discovered configuration data to an Amazon S3 bucket or an application that enables you to view and evaluate the data. Data includes tags and tag associations, processes, connections, servers, and system performance. This API returns an export ID that you can query using the DescribeExportConfigurations API. The system imposes a limit of two configuration exports in six hours.
sourcefn get_discovery_summary<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<GetDiscoverySummaryResponse, RusotoError<GetDiscoverySummaryError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_discovery_summary<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<GetDiscoverySummaryResponse, RusotoError<GetDiscoverySummaryError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves a short summary of discovered assets.
This API operation takes no request parameters and is called as is at the command prompt as shown in the example.
sourcefn list_configurations<'life0, 'async_trait>(
&'life0 self,
input: ListConfigurationsRequest
) -> Pin<Box<dyn Future<Output = Result<ListConfigurationsResponse, RusotoError<ListConfigurationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_configurations<'life0, 'async_trait>(
&'life0 self,
input: ListConfigurationsRequest
) -> Pin<Box<dyn Future<Output = Result<ListConfigurationsResponse, RusotoError<ListConfigurationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves a list of configuration items as specified by the value passed to the required parameter configurationType
. Optional filtering may be applied to refine search results.
sourcefn list_server_neighbors<'life0, 'async_trait>(
&'life0 self,
input: ListServerNeighborsRequest
) -> Pin<Box<dyn Future<Output = Result<ListServerNeighborsResponse, RusotoError<ListServerNeighborsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_server_neighbors<'life0, 'async_trait>(
&'life0 self,
input: ListServerNeighborsRequest
) -> Pin<Box<dyn Future<Output = Result<ListServerNeighborsResponse, RusotoError<ListServerNeighborsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves a list of servers that are one network hop away from a specified server.
sourcefn start_continuous_export<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<StartContinuousExportResponse, RusotoError<StartContinuousExportError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn start_continuous_export<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<StartContinuousExportResponse, RusotoError<StartContinuousExportError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Start the continuous flow of agent's discovered data into Amazon Athena.
sourcefn start_data_collection_by_agent_ids<'life0, 'async_trait>(
&'life0 self,
input: StartDataCollectionByAgentIdsRequest
) -> Pin<Box<dyn Future<Output = Result<StartDataCollectionByAgentIdsResponse, RusotoError<StartDataCollectionByAgentIdsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn start_data_collection_by_agent_ids<'life0, 'async_trait>(
&'life0 self,
input: StartDataCollectionByAgentIdsRequest
) -> Pin<Box<dyn Future<Output = Result<StartDataCollectionByAgentIdsResponse, RusotoError<StartDataCollectionByAgentIdsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Instructs the specified agents or connectors to start collecting data.
sourcefn start_export_task<'life0, 'async_trait>(
&'life0 self,
input: StartExportTaskRequest
) -> Pin<Box<dyn Future<Output = Result<StartExportTaskResponse, RusotoError<StartExportTaskError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn start_export_task<'life0, 'async_trait>(
&'life0 self,
input: StartExportTaskRequest
) -> Pin<Box<dyn Future<Output = Result<StartExportTaskResponse, RusotoError<StartExportTaskError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Begins the export of discovered data to an S3 bucket.
If you specify agentIds
in a filter, the task exports up to 72 hours of detailed data collected by the identified Application Discovery Agent, including network, process, and performance details. A time range for exported agent data may be set by using startTime
and endTime
. Export of detailed agent data is limited to five concurrently running exports.
If you do not include an agentIds
filter, summary data is exported that includes both AWS Agentless Discovery Connector data and summary data from AWS Discovery Agents. Export of summary data is limited to two exports per day.
sourcefn start_import_task<'life0, 'async_trait>(
&'life0 self,
input: StartImportTaskRequest
) -> Pin<Box<dyn Future<Output = Result<StartImportTaskResponse, RusotoError<StartImportTaskError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn start_import_task<'life0, 'async_trait>(
&'life0 self,
input: StartImportTaskRequest
) -> Pin<Box<dyn Future<Output = Result<StartImportTaskResponse, RusotoError<StartImportTaskError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Starts an import task, which allows you to import details of your on-premises environment directly into AWS Migration Hub without having to use the Application Discovery Service (ADS) tools such as the Discovery Connector or Discovery Agent. This gives you the option to perform migration assessment and planning directly from your imported data, including the ability to group your devices as applications and track their migration status.
To start an import request, do this:
-
Download the specially formatted comma separated value (CSV) import template, which you can find here: https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/importtemplate.csv.
-
Fill out the template with your server and application data.
-
Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL. Your import file must be in the CSV format.
-
Use the console or the
StartImportTask
command with the AWS CLI or one of the AWS SDKs to import the records from your file.
For more information, including step-by-step procedures, see Migration Hub Import in the AWS Application Discovery Service User Guide.
There are limits to the number of import tasks you can create (and delete) in an AWS account. For more information, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/adsservice_limits.html">AWS Application Discovery Service Limits in the AWS Application Discovery Service User Guide.
sourcefn stop_continuous_export<'life0, 'async_trait>(
&'life0 self,
input: StopContinuousExportRequest
) -> Pin<Box<dyn Future<Output = Result<StopContinuousExportResponse, RusotoError<StopContinuousExportError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn stop_continuous_export<'life0, 'async_trait>(
&'life0 self,
input: StopContinuousExportRequest
) -> Pin<Box<dyn Future<Output = Result<StopContinuousExportResponse, RusotoError<StopContinuousExportError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Stop the continuous flow of agent's discovered data into Amazon Athena.
sourcefn stop_data_collection_by_agent_ids<'life0, 'async_trait>(
&'life0 self,
input: StopDataCollectionByAgentIdsRequest
) -> Pin<Box<dyn Future<Output = Result<StopDataCollectionByAgentIdsResponse, RusotoError<StopDataCollectionByAgentIdsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn stop_data_collection_by_agent_ids<'life0, 'async_trait>(
&'life0 self,
input: StopDataCollectionByAgentIdsRequest
) -> Pin<Box<dyn Future<Output = Result<StopDataCollectionByAgentIdsResponse, RusotoError<StopDataCollectionByAgentIdsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Instructs the specified agents or connectors to stop collecting data.
sourcefn update_application<'life0, 'async_trait>(
&'life0 self,
input: UpdateApplicationRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, RusotoError<UpdateApplicationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_application<'life0, 'async_trait>(
&'life0 self,
input: UpdateApplicationRequest
) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, RusotoError<UpdateApplicationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates metadata about an application.
Auto Trait Implementations
impl !RefUnwindSafe for DiscoveryClient
impl Send for DiscoveryClient
impl Sync for DiscoveryClient
impl Unpin for DiscoveryClient
impl !UnwindSafe for DiscoveryClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more