ArtifactClient#
Auto-generated documentation for Artifact type annotations stubs module types-boto3-artifact.
ArtifactClient#
Type annotations and code completion for boto3.client("artifact").
 boto3 documentation
# ArtifactClient usage example
from boto3.session import Session
from types_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 types_boto3_artifact.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...Methods#
can_paginate#
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:
    ...generate_presigned_url#
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: GetReportRequestTypeDef = {  # (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: GetReportMetadataRequestTypeDef = {  # (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: GetTermForReportRequestTypeDef = {  # (1)
    "reportId": ...,
}
parent.get_term_for_report(**kwargs)list_customer_agreements#
List active customer-agreements applicable to calling identity.
Type annotations and code completion for boto3.client("artifact").list_customer_agreements method.
 boto3 documentation
# list_customer_agreements method definition
def list_customer_agreements(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListCustomerAgreementsResponseTypeDef:  # (1)
    ...# list_customer_agreements method usage example with argument unpacking
kwargs: ListCustomerAgreementsRequestTypeDef = {  # (1)
    "maxResults": ...,
}
parent.list_customer_agreements(**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: ListReportsRequestTypeDef = {  # (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: PutAccountSettingsRequestTypeDef = {  # (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_customer_agreements")-> ListCustomerAgreementsPaginator
- client.get_paginator("list_reports")-> ListReportsPaginator