Skip to content

ResourceExplorerClient#

Index > ResourceExplorer > ResourceExplorerClient

Auto-generated documentation for ResourceExplorer type annotations stubs module mypy-boto3-resource-explorer-2.

ResourceExplorerClient#

Type annotations and code completion for boto3.client("resource-explorer-2"). boto3 documentation

# ResourceExplorerClient usage example

from boto3.session import Session
from mypy_boto3_resource_explorer_2.client import ResourceExplorerClient

def get_resource-explorer-2_client() -> ResourceExplorerClient:
    return Session().client("resource-explorer-2")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("resource-explorer-2").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("resource-explorer-2")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.UnauthorizedException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_resource_explorer_2.client import Exceptions

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

Methods#

can_paginate#

Type annotations and code completion for boto3.client("resource-explorer-2").can_paginate method. boto3 documentation

# can_paginate method definition

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

generate_presigned_url#

Type annotations and code completion for boto3.client("resource-explorer-2").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

associate_default_view#

Sets the specified view as the default for the Amazon Web Services Region in which you call this operation.

Type annotations and code completion for boto3.client("resource-explorer-2").associate_default_view method. boto3 documentation

# associate_default_view method definition

def associate_default_view(
    self,
    *,
    ViewArn: str,
) -> AssociateDefaultViewOutputTypeDef:  # (1)
    ...
  1. See AssociateDefaultViewOutputTypeDef
# associate_default_view method usage example with argument unpacking

kwargs: AssociateDefaultViewInputRequestTypeDef = {  # (1)
    "ViewArn": ...,
}

parent.associate_default_view(**kwargs)
  1. See AssociateDefaultViewInputRequestTypeDef

batch_get_view#

Retrieves details about a list of views.

Type annotations and code completion for boto3.client("resource-explorer-2").batch_get_view method. boto3 documentation

# batch_get_view method definition

def batch_get_view(
    self,
    *,
    ViewArns: Sequence[str] = ...,
) -> BatchGetViewOutputTypeDef:  # (1)
    ...
  1. See BatchGetViewOutputTypeDef
# batch_get_view method usage example with argument unpacking

kwargs: BatchGetViewInputRequestTypeDef = {  # (1)
    "ViewArns": ...,
}

parent.batch_get_view(**kwargs)
  1. See BatchGetViewInputRequestTypeDef

create_index#

Turns on Amazon Web Services Resource Explorer in the Amazon Web Services Region in which you called this operation by creating an index.

Type annotations and code completion for boto3.client("resource-explorer-2").create_index method. boto3 documentation

# create_index method definition

def create_index(
    self,
    *,
    ClientToken: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateIndexOutputTypeDef:  # (1)
    ...
  1. See CreateIndexOutputTypeDef
# create_index method usage example with argument unpacking

kwargs: CreateIndexInputRequestTypeDef = {  # (1)
    "ClientToken": ...,
}

parent.create_index(**kwargs)
  1. See CreateIndexInputRequestTypeDef

create_view#

Creates a view that users can query by using the Search operation.

Type annotations and code completion for boto3.client("resource-explorer-2").create_view method. boto3 documentation

# create_view method definition

def create_view(
    self,
    *,
    ViewName: str,
    ClientToken: str = ...,
    Filters: SearchFilterTypeDef = ...,  # (1)
    IncludedProperties: Sequence[IncludedPropertyTypeDef] = ...,  # (2)
    Scope: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateViewOutputTypeDef:  # (3)
    ...
  1. See SearchFilterTypeDef
  2. See IncludedPropertyTypeDef
  3. See CreateViewOutputTypeDef
# create_view method usage example with argument unpacking

kwargs: CreateViewInputRequestTypeDef = {  # (1)
    "ViewName": ...,
}

parent.create_view(**kwargs)
  1. See CreateViewInputRequestTypeDef

delete_index#

Deletes the specified index and turns off Amazon Web Services Resource Explorer in the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("resource-explorer-2").delete_index method. boto3 documentation

# delete_index method definition

def delete_index(
    self,
    *,
    Arn: str,
) -> DeleteIndexOutputTypeDef:  # (1)
    ...
  1. See DeleteIndexOutputTypeDef
# delete_index method usage example with argument unpacking

kwargs: DeleteIndexInputRequestTypeDef = {  # (1)
    "Arn": ...,
}

parent.delete_index(**kwargs)
  1. See DeleteIndexInputRequestTypeDef

delete_view#

Deletes the specified view.

Type annotations and code completion for boto3.client("resource-explorer-2").delete_view method. boto3 documentation

# delete_view method definition

def delete_view(
    self,
    *,
    ViewArn: str,
) -> DeleteViewOutputTypeDef:  # (1)
    ...
  1. See DeleteViewOutputTypeDef
# delete_view method usage example with argument unpacking

kwargs: DeleteViewInputRequestTypeDef = {  # (1)
    "ViewArn": ...,
}

parent.delete_view(**kwargs)
  1. See DeleteViewInputRequestTypeDef

disassociate_default_view#

After you call this operation, the affected Amazon Web Services Region no longer has a default view.

Type annotations and code completion for boto3.client("resource-explorer-2").disassociate_default_view method. boto3 documentation

# disassociate_default_view method definition

def disassociate_default_view(
    self,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef

get_account_level_service_configuration#

Retrieves the status of your account's Amazon Web Services service access, and validates the service linked role required to access the multi-account search feature.

Type annotations and code completion for boto3.client("resource-explorer-2").get_account_level_service_configuration method. boto3 documentation

# get_account_level_service_configuration method definition

def get_account_level_service_configuration(
    self,
) -> GetAccountLevelServiceConfigurationOutputTypeDef:  # (1)
    ...
  1. See GetAccountLevelServiceConfigurationOutputTypeDef

get_default_view#

Retrieves the Amazon Resource Name (ARN) of the view that is the default for the Amazon Web Services Region in which you call this operation.

Type annotations and code completion for boto3.client("resource-explorer-2").get_default_view method. boto3 documentation

# get_default_view method definition

def get_default_view(
    self,
) -> GetDefaultViewOutputTypeDef:  # (1)
    ...
  1. See GetDefaultViewOutputTypeDef

get_index#

Retrieves details about the Amazon Web Services Resource Explorer index in the Amazon Web Services Region in which you invoked the operation.

Type annotations and code completion for boto3.client("resource-explorer-2").get_index method. boto3 documentation

# get_index method definition

def get_index(
    self,
) -> GetIndexOutputTypeDef:  # (1)
    ...
  1. See GetIndexOutputTypeDef

get_managed_view#

Retrieves details of the specified Amazon Web Services-managed view.

Type annotations and code completion for boto3.client("resource-explorer-2").get_managed_view method. boto3 documentation

# get_managed_view method definition

def get_managed_view(
    self,
    *,
    ManagedViewArn: str,
) -> GetManagedViewOutputTypeDef:  # (1)
    ...
  1. See GetManagedViewOutputTypeDef
# get_managed_view method usage example with argument unpacking

kwargs: GetManagedViewInputRequestTypeDef = {  # (1)
    "ManagedViewArn": ...,
}

parent.get_managed_view(**kwargs)
  1. See GetManagedViewInputRequestTypeDef

get_view#

Retrieves details of the specified view.

Type annotations and code completion for boto3.client("resource-explorer-2").get_view method. boto3 documentation

# get_view method definition

def get_view(
    self,
    *,
    ViewArn: str,
) -> GetViewOutputTypeDef:  # (1)
    ...
  1. See GetViewOutputTypeDef
# get_view method usage example with argument unpacking

kwargs: GetViewInputRequestTypeDef = {  # (1)
    "ViewArn": ...,
}

parent.get_view(**kwargs)
  1. See GetViewInputRequestTypeDef

list_indexes#

Retrieves a list of all of the indexes in Amazon Web Services Regions that are currently collecting resource information for Amazon Web Services Resource Explorer.

Type annotations and code completion for boto3.client("resource-explorer-2").list_indexes method. boto3 documentation

# list_indexes method definition

def list_indexes(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    Regions: Sequence[str] = ...,
    Type: IndexTypeType = ...,  # (1)
) -> ListIndexesOutputTypeDef:  # (2)
    ...
  1. See IndexTypeType
  2. See ListIndexesOutputTypeDef
# list_indexes method usage example with argument unpacking

kwargs: ListIndexesInputRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_indexes(**kwargs)
  1. See ListIndexesInputRequestTypeDef

list_indexes_for_members#

Retrieves a list of a member's indexes in all Amazon Web Services Regions that are currently collecting resource information for Amazon Web Services Resource Explorer.

Type annotations and code completion for boto3.client("resource-explorer-2").list_indexes_for_members method. boto3 documentation

# list_indexes_for_members method definition

def list_indexes_for_members(
    self,
    *,
    AccountIdList: Sequence[str],
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListIndexesForMembersOutputTypeDef:  # (1)
    ...
  1. See ListIndexesForMembersOutputTypeDef
# list_indexes_for_members method usage example with argument unpacking

kwargs: ListIndexesForMembersInputRequestTypeDef = {  # (1)
    "AccountIdList": ...,
}

parent.list_indexes_for_members(**kwargs)
  1. See ListIndexesForMembersInputRequestTypeDef

list_managed_views#

Lists the Amazon resource names (ARNs) of the Amazon Web Services-managed views available in the Amazon Web Services Region in which you call this operation.

Type annotations and code completion for boto3.client("resource-explorer-2").list_managed_views method. boto3 documentation

# list_managed_views method definition

def list_managed_views(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    ServicePrincipal: str = ...,
) -> ListManagedViewsOutputTypeDef:  # (1)
    ...
  1. See ListManagedViewsOutputTypeDef
# list_managed_views method usage example with argument unpacking

kwargs: ListManagedViewsInputRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_managed_views(**kwargs)
  1. See ListManagedViewsInputRequestTypeDef

list_resources#

Returns a list of resources and their details that match the specified criteria.

Type annotations and code completion for boto3.client("resource-explorer-2").list_resources method. boto3 documentation

# list_resources method definition

def list_resources(
    self,
    *,
    Filters: SearchFilterTypeDef = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    ViewArn: str = ...,
) -> ListResourcesOutputTypeDef:  # (2)
    ...
  1. See SearchFilterTypeDef
  2. See ListResourcesOutputTypeDef
# list_resources method usage example with argument unpacking

kwargs: ListResourcesInputRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.list_resources(**kwargs)
  1. See ListResourcesInputRequestTypeDef

list_supported_resource_types#

Retrieves a list of all resource types currently supported by Amazon Web Services Resource Explorer.

Type annotations and code completion for boto3.client("resource-explorer-2").list_supported_resource_types method. boto3 documentation

# list_supported_resource_types method definition

def list_supported_resource_types(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListSupportedResourceTypesOutputTypeDef:  # (1)
    ...
  1. See ListSupportedResourceTypesOutputTypeDef
# list_supported_resource_types method usage example with argument unpacking

kwargs: ListSupportedResourceTypesInputRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_supported_resource_types(**kwargs)
  1. See ListSupportedResourceTypesInputRequestTypeDef

list_tags_for_resource#

Lists the tags that are attached to the specified resource.

Type annotations and code completion for boto3.client("resource-explorer-2").list_tags_for_resource method. boto3 documentation

# list_tags_for_resource method definition

def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceOutputTypeDef:  # (1)
    ...
  1. See ListTagsForResourceOutputTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceInputRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceInputRequestTypeDef

list_views#

Lists the Amazon resource names (ARNs) of the views available in the Amazon Web Services Region in which you call this operation.

Type annotations and code completion for boto3.client("resource-explorer-2").list_views method. boto3 documentation

# list_views method definition

def list_views(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListViewsOutputTypeDef:  # (1)
    ...
  1. See ListViewsOutputTypeDef
# list_views method usage example with argument unpacking

kwargs: ListViewsInputRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_views(**kwargs)
  1. See ListViewsInputRequestTypeDef

Searches for resources and displays details about all resources that match the specified criteria.

Type annotations and code completion for boto3.client("resource-explorer-2").search method. boto3 documentation

# search method definition

def search(
    self,
    *,
    QueryString: str,
    MaxResults: int = ...,
    NextToken: str = ...,
    ViewArn: str = ...,
) -> SearchOutputTypeDef:  # (1)
    ...
  1. See SearchOutputTypeDef
# search method usage example with argument unpacking

kwargs: SearchInputRequestTypeDef = {  # (1)
    "QueryString": ...,
}

parent.search(**kwargs)
  1. See SearchInputRequestTypeDef

tag_resource#

Adds one or more tag key and value pairs to an Amazon Web Services Resource Explorer view or index.

Type annotations and code completion for boto3.client("resource-explorer-2").tag_resource method. boto3 documentation

# tag_resource method definition

def tag_resource(
    self,
    *,
    resourceArn: str,
    Tags: Mapping[str, str] = ...,
) -> dict[str, Any]:
    ...
# tag_resource method usage example with argument unpacking

kwargs: TagResourceInputRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceInputRequestTypeDef

untag_resource#

Removes one or more tag key and value pairs from an Amazon Web Services Resource Explorer view or index.

Type annotations and code completion for boto3.client("resource-explorer-2").untag_resource method. boto3 documentation

# untag_resource method definition

def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceInputRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceInputRequestTypeDef

update_index_type#

Changes the type of the index from one of the following types to the other.

Type annotations and code completion for boto3.client("resource-explorer-2").update_index_type method. boto3 documentation

# update_index_type method definition

def update_index_type(
    self,
    *,
    Arn: str,
    Type: IndexTypeType,  # (1)
) -> UpdateIndexTypeOutputTypeDef:  # (2)
    ...
  1. See IndexTypeType
  2. See UpdateIndexTypeOutputTypeDef
# update_index_type method usage example with argument unpacking

kwargs: UpdateIndexTypeInputRequestTypeDef = {  # (1)
    "Arn": ...,
    "Type": ...,
}

parent.update_index_type(**kwargs)
  1. See UpdateIndexTypeInputRequestTypeDef

update_view#

Modifies some of the details of a view.

Type annotations and code completion for boto3.client("resource-explorer-2").update_view method. boto3 documentation

# update_view method definition

def update_view(
    self,
    *,
    ViewArn: str,
    Filters: SearchFilterTypeDef = ...,  # (1)
    IncludedProperties: Sequence[IncludedPropertyTypeDef] = ...,  # (2)
) -> UpdateViewOutputTypeDef:  # (3)
    ...
  1. See SearchFilterTypeDef
  2. See IncludedPropertyTypeDef
  3. See UpdateViewOutputTypeDef
# update_view method usage example with argument unpacking

kwargs: UpdateViewInputRequestTypeDef = {  # (1)
    "ViewArn": ...,
}

parent.update_view(**kwargs)
  1. See UpdateViewInputRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("resource-explorer-2").get_paginator method with overloads.