ArtifactClient#
Auto-generated documentation for Artifact type annotations stubs module mypy-boto3-artifact.
ArtifactClient#
Type annotations and code completion for boto3.client("artifact")
.
boto3 documentation
# ArtifactClient usage example
from boto3.session import Session
from mypy_boto3_artifact.client import ArtifactClient
def get_artifact_client() -> ArtifactClient:
return Session().client("artifact")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("artifact").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("artifact")
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.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_artifact.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("artifact").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("artifact").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("artifact").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:
...
get_account_settings#
Get the account settings for Artifact.
Type annotations and code completion for boto3.client("artifact").get_account_settings
method.
boto3 documentation
# get_account_settings method definition
def get_account_settings(
self,
) -> GetAccountSettingsResponseTypeDef: # (1)
...
get_report#
Get the content for a single report.
Type annotations and code completion for boto3.client("artifact").get_report
method.
boto3 documentation
# get_report method definition
def get_report(
self,
*,
reportId: str,
termToken: str,
reportVersion: int = ...,
) -> GetReportResponseTypeDef: # (1)
...
# get_report method usage example with argument unpacking
kwargs: GetReportRequestRequestTypeDef = { # (1)
"reportId": ...,
"termToken": ...,
}
parent.get_report(**kwargs)
get_report_metadata#
Get the metadata for a single report.
Type annotations and code completion for boto3.client("artifact").get_report_metadata
method.
boto3 documentation
# get_report_metadata method definition
def get_report_metadata(
self,
*,
reportId: str,
reportVersion: int = ...,
) -> GetReportMetadataResponseTypeDef: # (1)
...
# get_report_metadata method usage example with argument unpacking
kwargs: GetReportMetadataRequestRequestTypeDef = { # (1)
"reportId": ...,
}
parent.get_report_metadata(**kwargs)
get_term_for_report#
Get the Term content associated with a single report.
Type annotations and code completion for boto3.client("artifact").get_term_for_report
method.
boto3 documentation
# get_term_for_report method definition
def get_term_for_report(
self,
*,
reportId: str,
reportVersion: int = ...,
) -> GetTermForReportResponseTypeDef: # (1)
...
# get_term_for_report method usage example with argument unpacking
kwargs: GetTermForReportRequestRequestTypeDef = { # (1)
"reportId": ...,
}
parent.get_term_for_report(**kwargs)
list_reports#
List available reports.
Type annotations and code completion for boto3.client("artifact").list_reports
method.
boto3 documentation
# list_reports method definition
def list_reports(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListReportsResponseTypeDef: # (1)
...
# list_reports method usage example with argument unpacking
kwargs: ListReportsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_reports(**kwargs)
put_account_settings#
Put the account settings for Artifact.
Type annotations and code completion for boto3.client("artifact").put_account_settings
method.
boto3 documentation
# put_account_settings method definition
def put_account_settings(
self,
*,
notificationSubscriptionStatus: NotificationSubscriptionStatusType = ..., # (1)
) -> PutAccountSettingsResponseTypeDef: # (2)
...
# put_account_settings method usage example with argument unpacking
kwargs: PutAccountSettingsRequestRequestTypeDef = { # (1)
"notificationSubscriptionStatus": ...,
}
parent.put_account_settings(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("artifact").get_paginator
method with overloads.
client.get_paginator("list_reports")
-> ListReportsPaginator