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:
...
create_compliance_inquiry#
Create a new compliance inquiry.
Type annotations and code completion for boto3.client("artifact").create_compliance_inquiry method.
boto3 documentation
# create_compliance_inquiry method definition
def create_compliance_inquiry(
self,
*,
name: str,
inquiryContent: InquiryContentTypeDef, # (1)
clientToken: str = ...,
supportMode: InquirySupportModeType = ..., # (2)
tags: Mapping[str, str] = ...,
) -> CreateComplianceInquiryResponseTypeDef: # (3)
...
# create_compliance_inquiry method usage example with argument unpacking
kwargs: CreateComplianceInquiryRequestTypeDef = { # (1)
"name": ...,
"inquiryContent": ...,
}
parent.create_compliance_inquiry(**kwargs)
export_compliance_inquiry#
Export a compliance inquiry report.
Type annotations and code completion for boto3.client("artifact").export_compliance_inquiry method.
boto3 documentation
# export_compliance_inquiry method definition
def export_compliance_inquiry(
self,
*,
complianceInquiryId: str,
queryIdentifiers: Sequence[int] = ...,
includeCitations: bool = ...,
) -> ExportComplianceInquiryResponseTypeDef: # (1)
...
# export_compliance_inquiry method usage example with argument unpacking
kwargs: ExportComplianceInquiryRequestTypeDef = { # (1)
"complianceInquiryId": ...,
}
parent.export_compliance_inquiry(**kwargs)
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_compliance_inquiry_metadata#
Get the metadata for a single compliance inquiry.
Type annotations and code completion for boto3.client("artifact").get_compliance_inquiry_metadata method.
boto3 documentation
# get_compliance_inquiry_metadata method definition
def get_compliance_inquiry_metadata(
self,
*,
complianceInquiryId: str,
) -> GetComplianceInquiryMetadataResponseTypeDef: # (1)
...
# get_compliance_inquiry_metadata method usage example with argument unpacking
kwargs: GetComplianceInquiryMetadataRequestTypeDef = { # (1)
"complianceInquiryId": ...,
}
parent.get_compliance_inquiry_metadata(**kwargs)
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_compliance_inquiries#
List available compliance inquiries.
Type annotations and code completion for boto3.client("artifact").list_compliance_inquiries method.
boto3 documentation
# list_compliance_inquiries method definition
def list_compliance_inquiries(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListComplianceInquiriesResponseTypeDef: # (1)
...
# list_compliance_inquiries method usage example with argument unpacking
kwargs: ListComplianceInquiriesRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_compliance_inquiries(**kwargs)
list_compliance_inquiry_queries#
List queries within a compliance inquiry.
Type annotations and code completion for boto3.client("artifact").list_compliance_inquiry_queries method.
boto3 documentation
# list_compliance_inquiry_queries method definition
def list_compliance_inquiry_queries(
self,
*,
complianceInquiryId: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListComplianceInquiryQueriesResponseTypeDef: # (1)
...
# list_compliance_inquiry_queries method usage example with argument unpacking
kwargs: ListComplianceInquiryQueriesRequestTypeDef = { # (1)
"complianceInquiryId": ...,
}
parent.list_compliance_inquiry_queries(**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_report_versions#
List available report versions for a given report.
Type annotations and code completion for boto3.client("artifact").list_report_versions method.
boto3 documentation
# list_report_versions method definition
def list_report_versions(
self,
*,
reportId: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListReportVersionsResponseTypeDef: # (1)
...
# list_report_versions method usage example with argument unpacking
kwargs: ListReportVersionsRequestTypeDef = { # (1)
"reportId": ...,
}
parent.list_report_versions(**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)
list_tags_for_resource#
List tags for a resource.
Type annotations and code completion for boto3.client("artifact").list_tags_for_resource method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**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)
tag_resource#
Add tags to a resource.
Type annotations and code completion for boto3.client("artifact").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: TagResourceRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Remove tags from a resource.
Type annotations and code completion for boto3.client("artifact").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: UntagResourceRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("artifact").get_paginator method with overloads.
client.get_paginator("list_compliance_inquiries")-> ListComplianceInquiriesPaginatorclient.get_paginator("list_compliance_inquiry_queries")-> ListComplianceInquiryQueriesPaginatorclient.get_paginator("list_customer_agreements")-> ListCustomerAgreementsPaginatorclient.get_paginator("list_report_versions")-> ListReportVersionsPaginatorclient.get_paginator("list_reports")-> ListReportsPaginator