ResourceGroupsTaggingAPIClient#
Index > ResourceGroupsTaggingAPI > ResourceGroupsTaggingAPIClient
Auto-generated documentation for ResourceGroupsTaggingAPI type annotations stubs module mypy-boto3-resourcegroupstaggingapi.
ResourceGroupsTaggingAPIClient#
Type annotations and code completion for boto3.client("resourcegroupstaggingapi")
.
boto3 documentation
# ResourceGroupsTaggingAPIClient usage example
from boto3.session import Session
from mypy_boto3_resourcegroupstaggingapi.client import ResourceGroupsTaggingAPIClient
def get_resourcegroupstaggingapi_client() -> ResourceGroupsTaggingAPIClient:
return Session().client("resourcegroupstaggingapi")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("resourcegroupstaggingapi").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("resourcegroupstaggingapi")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.ConcurrentModificationException,
client.exceptions.ConstraintViolationException,
client.exceptions.InternalServiceException,
client.exceptions.InvalidParameterException,
client.exceptions.PaginationTokenExpiredException,
client.exceptions.ThrottledException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_resourcegroupstaggingapi.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").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("resourcegroupstaggingapi").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:
...
describe_report_creation#
Describes the status of the StartReportCreation
operation.
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").describe_report_creation
method.
boto3 documentation
# describe_report_creation method definition
def describe_report_creation(
self,
) -> DescribeReportCreationOutputTypeDef: # (1)
...
get_compliance_summary#
Returns a table that shows counts of resources that are noncompliant with their tag policies.
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").get_compliance_summary
method.
boto3 documentation
# get_compliance_summary method definition
def get_compliance_summary(
self,
*,
TargetIdFilters: Sequence[str] = ...,
RegionFilters: Sequence[str] = ...,
ResourceTypeFilters: Sequence[str] = ...,
TagKeyFilters: Sequence[str] = ...,
GroupBy: Sequence[GroupByAttributeType] = ..., # (1)
MaxResults: int = ...,
PaginationToken: str = ...,
) -> GetComplianceSummaryOutputTypeDef: # (2)
...
# get_compliance_summary method usage example with argument unpacking
kwargs: GetComplianceSummaryInputRequestTypeDef = { # (1)
"TargetIdFilters": ...,
}
parent.get_compliance_summary(**kwargs)
get_resources#
Returns all the tagged or previously tagged resources that are located in the specified Amazon Web Services Region for the account.
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").get_resources
method.
boto3 documentation
# get_resources method definition
def get_resources(
self,
*,
PaginationToken: str = ...,
TagFilters: Sequence[TagFilterTypeDef] = ..., # (1)
ResourcesPerPage: int = ...,
TagsPerPage: int = ...,
ResourceTypeFilters: Sequence[str] = ...,
IncludeComplianceDetails: bool = ...,
ExcludeCompliantResources: bool = ...,
ResourceARNList: Sequence[str] = ...,
) -> GetResourcesOutputTypeDef: # (2)
...
# get_resources method usage example with argument unpacking
kwargs: GetResourcesInputRequestTypeDef = { # (1)
"PaginationToken": ...,
}
parent.get_resources(**kwargs)
get_tag_keys#
Returns all tag keys currently in use in the specified Amazon Web Services Region for the calling account.
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").get_tag_keys
method.
boto3 documentation
# get_tag_keys method definition
def get_tag_keys(
self,
*,
PaginationToken: str = ...,
) -> GetTagKeysOutputTypeDef: # (1)
...
# get_tag_keys method usage example with argument unpacking
kwargs: GetTagKeysInputRequestTypeDef = { # (1)
"PaginationToken": ...,
}
parent.get_tag_keys(**kwargs)
get_tag_values#
Returns all tag values for the specified key that are used in the specified Amazon Web Services Region for the calling account.
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").get_tag_values
method.
boto3 documentation
# get_tag_values method definition
def get_tag_values(
self,
*,
Key: str,
PaginationToken: str = ...,
) -> GetTagValuesOutputTypeDef: # (1)
...
# get_tag_values method usage example with argument unpacking
kwargs: GetTagValuesInputRequestTypeDef = { # (1)
"Key": ...,
}
parent.get_tag_values(**kwargs)
start_report_creation#
Generates a report that lists all tagged resources in the accounts across your organization and tells whether each resource is compliant with the effective tag policy.
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").start_report_creation
method.
boto3 documentation
# start_report_creation method definition
def start_report_creation(
self,
*,
S3Bucket: str,
) -> dict[str, Any]:
...
# start_report_creation method usage example with argument unpacking
kwargs: StartReportCreationInputRequestTypeDef = { # (1)
"S3Bucket": ...,
}
parent.start_report_creation(**kwargs)
tag_resources#
Applies one or more tags to the specified resources.
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").tag_resources
method.
boto3 documentation
# tag_resources method definition
def tag_resources(
self,
*,
ResourceARNList: Sequence[str],
Tags: Mapping[str, str],
) -> TagResourcesOutputTypeDef: # (1)
...
# tag_resources method usage example with argument unpacking
kwargs: TagResourcesInputRequestTypeDef = { # (1)
"ResourceARNList": ...,
"Tags": ...,
}
parent.tag_resources(**kwargs)
untag_resources#
Removes the specified tags from the specified resources.
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").untag_resources
method.
boto3 documentation
# untag_resources method definition
def untag_resources(
self,
*,
ResourceARNList: Sequence[str],
TagKeys: Sequence[str],
) -> UntagResourcesOutputTypeDef: # (1)
...
# untag_resources method usage example with argument unpacking
kwargs: UntagResourcesInputRequestTypeDef = { # (1)
"ResourceARNList": ...,
"TagKeys": ...,
}
parent.untag_resources(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("resourcegroupstaggingapi").get_paginator
method with overloads.
client.get_paginator("get_compliance_summary")
-> GetComplianceSummaryPaginatorclient.get_paginator("get_resources")
-> GetResourcesPaginatorclient.get_paginator("get_tag_keys")
-> GetTagKeysPaginatorclient.get_paginator("get_tag_values")
-> GetTagValuesPaginator