Skip to content

ApplicationDiscoveryServiceClient#

Index > ApplicationDiscoveryService > ApplicationDiscoveryServiceClient

Auto-generated documentation for ApplicationDiscoveryService type annotations stubs module mypy-boto3-discovery.

ApplicationDiscoveryServiceClient#

Type annotations and code completion for boto3.client("discovery"). boto3 documentation

# ApplicationDiscoveryServiceClient usage example

from boto3.session import Session
from mypy_boto3_discovery.client import ApplicationDiscoveryServiceClient

def get_discovery_client() -> ApplicationDiscoveryServiceClient:
    return Session().client("discovery")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("discovery").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("discovery")

try:
    do_something(client)
except (
    client.exceptions.AuthorizationErrorException,
    client.exceptions.ClientError,
    client.exceptions.ConflictErrorException,
    client.exceptions.HomeRegionNotSetException,
    client.exceptions.InvalidParameterException,
    client.exceptions.InvalidParameterValueException,
    client.exceptions.LimitExceededException,
    client.exceptions.OperationNotPermittedException,
    client.exceptions.ResourceInUseException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServerInternalErrorException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_discovery.client import Exceptions

def handle_error(exc: Exceptions.AuthorizationErrorException) -> None:
    ...

Methods#

associate_configuration_items_to_application#

Associates one or more configuration items with an application.

Type annotations and code completion for boto3.client("discovery").associate_configuration_items_to_application method. boto3 documentation

# associate_configuration_items_to_application method definition

def associate_configuration_items_to_application(
    self,
    *,
    applicationConfigurationId: str,
    configurationIds: Sequence[str],
) -> Dict[str, Any]:
    ...
# associate_configuration_items_to_application method usage example with argument unpacking

kwargs: AssociateConfigurationItemsToApplicationRequestRequestTypeDef = {  # (1)
    "applicationConfigurationId": ...,
    "configurationIds": ...,
}

parent.associate_configuration_items_to_application(**kwargs)
  1. See AssociateConfigurationItemsToApplicationRequestRequestTypeDef

batch_delete_agents#

Deletes one or more agents or collectors as specified by ID.

Type annotations and code completion for boto3.client("discovery").batch_delete_agents method. boto3 documentation

# batch_delete_agents method definition

def batch_delete_agents(
    self,
    *,
    deleteAgents: Sequence[DeleteAgentTypeDef],  # (1)
) -> BatchDeleteAgentsResponseTypeDef:  # (2)
    ...
  1. See DeleteAgentTypeDef
  2. See BatchDeleteAgentsResponseTypeDef
# batch_delete_agents method usage example with argument unpacking

kwargs: BatchDeleteAgentsRequestRequestTypeDef = {  # (1)
    "deleteAgents": ...,
}

parent.batch_delete_agents(**kwargs)
  1. See BatchDeleteAgentsRequestRequestTypeDef

batch_delete_import_data#

Deletes one or more import tasks, each identified by their import ID.

Type annotations and code completion for boto3.client("discovery").batch_delete_import_data method. boto3 documentation

# batch_delete_import_data method definition

def batch_delete_import_data(
    self,
    *,
    importTaskIds: Sequence[str],
    deleteHistory: bool = ...,
) -> BatchDeleteImportDataResponseTypeDef:  # (1)
    ...
  1. See BatchDeleteImportDataResponseTypeDef
# batch_delete_import_data method usage example with argument unpacking

kwargs: BatchDeleteImportDataRequestRequestTypeDef = {  # (1)
    "importTaskIds": ...,
}

parent.batch_delete_import_data(**kwargs)
  1. See BatchDeleteImportDataRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("discovery").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("discovery").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_application#

Creates an application with the given name and description.

Type annotations and code completion for boto3.client("discovery").create_application method. boto3 documentation

# create_application method definition

def create_application(
    self,
    *,
    name: str,
    description: str = ...,
) -> CreateApplicationResponseTypeDef:  # (1)
    ...
  1. See CreateApplicationResponseTypeDef
# create_application method usage example with argument unpacking

kwargs: CreateApplicationRequestRequestTypeDef = {  # (1)
    "name": ...,
}

parent.create_application(**kwargs)
  1. See CreateApplicationRequestRequestTypeDef

create_tags#

Creates one or more tags for configuration items.

Type annotations and code completion for boto3.client("discovery").create_tags method. boto3 documentation

# create_tags method definition

def create_tags(
    self,
    *,
    configurationIds: Sequence[str],
    tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
# create_tags method usage example with argument unpacking

kwargs: CreateTagsRequestRequestTypeDef = {  # (1)
    "configurationIds": ...,
    "tags": ...,
}

parent.create_tags(**kwargs)
  1. See CreateTagsRequestRequestTypeDef

delete_applications#

Deletes a list of applications and their associations with configuration items.

Type annotations and code completion for boto3.client("discovery").delete_applications method. boto3 documentation

# delete_applications method definition

def delete_applications(
    self,
    *,
    configurationIds: Sequence[str],
) -> Dict[str, Any]:
    ...
# delete_applications method usage example with argument unpacking

kwargs: DeleteApplicationsRequestRequestTypeDef = {  # (1)
    "configurationIds": ...,
}

parent.delete_applications(**kwargs)
  1. See DeleteApplicationsRequestRequestTypeDef

delete_tags#

Deletes the association between configuration items and one or more tags.

Type annotations and code completion for boto3.client("discovery").delete_tags method. boto3 documentation

# delete_tags method definition

def delete_tags(
    self,
    *,
    configurationIds: Sequence[str],
    tags: Sequence[TagTypeDef] = ...,  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
# delete_tags method usage example with argument unpacking

kwargs: DeleteTagsRequestRequestTypeDef = {  # (1)
    "configurationIds": ...,
}

parent.delete_tags(**kwargs)
  1. See DeleteTagsRequestRequestTypeDef

describe_agents#

Lists agents or collectors as specified by ID or other filters.

Type annotations and code completion for boto3.client("discovery").describe_agents method. boto3 documentation

# describe_agents method definition

def describe_agents(
    self,
    *,
    agentIds: Sequence[str] = ...,
    filters: Sequence[FilterTypeDef] = ...,  # (1)
    maxResults: int = ...,
    nextToken: str = ...,
) -> DescribeAgentsResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeAgentsResponseTypeDef
# describe_agents method usage example with argument unpacking

kwargs: DescribeAgentsRequestRequestTypeDef = {  # (1)
    "agentIds": ...,
}

parent.describe_agents(**kwargs)
  1. See DescribeAgentsRequestRequestTypeDef

describe_batch_delete_configuration_task#

Takes a unique deletion task identifier as input and returns metadata about a configuration deletion task.

Type annotations and code completion for boto3.client("discovery").describe_batch_delete_configuration_task method. boto3 documentation

# describe_batch_delete_configuration_task method definition

def describe_batch_delete_configuration_task(
    self,
    *,
    taskId: str,
) -> DescribeBatchDeleteConfigurationTaskResponseTypeDef:  # (1)
    ...
  1. See DescribeBatchDeleteConfigurationTaskResponseTypeDef
# describe_batch_delete_configuration_task method usage example with argument unpacking

kwargs: DescribeBatchDeleteConfigurationTaskRequestRequestTypeDef = {  # (1)
    "taskId": ...,
}

parent.describe_batch_delete_configuration_task(**kwargs)
  1. See DescribeBatchDeleteConfigurationTaskRequestRequestTypeDef

describe_configurations#

Retrieves attributes for a list of configuration item IDs.

Type annotations and code completion for boto3.client("discovery").describe_configurations method. boto3 documentation

# describe_configurations method definition

def describe_configurations(
    self,
    *,
    configurationIds: Sequence[str],
) -> DescribeConfigurationsResponseTypeDef:  # (1)
    ...
  1. See DescribeConfigurationsResponseTypeDef
# describe_configurations method usage example with argument unpacking

kwargs: DescribeConfigurationsRequestRequestTypeDef = {  # (1)
    "configurationIds": ...,
}

parent.describe_configurations(**kwargs)
  1. See DescribeConfigurationsRequestRequestTypeDef

describe_continuous_exports#

Lists exports as specified by ID.

Type annotations and code completion for boto3.client("discovery").describe_continuous_exports method. boto3 documentation

# describe_continuous_exports method definition

def describe_continuous_exports(
    self,
    *,
    exportIds: Sequence[str] = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> DescribeContinuousExportsResponseTypeDef:  # (1)
    ...
  1. See DescribeContinuousExportsResponseTypeDef
# describe_continuous_exports method usage example with argument unpacking

kwargs: DescribeContinuousExportsRequestRequestTypeDef = {  # (1)
    "exportIds": ...,
}

parent.describe_continuous_exports(**kwargs)
  1. See DescribeContinuousExportsRequestRequestTypeDef

describe_export_configurations#

DescribeExportConfigurations is deprecated.

Type annotations and code completion for boto3.client("discovery").describe_export_configurations method.