2024/02/15 - AWS Artifact - 6 new api methods
Changes This is the initial SDK release for AWS Artifact. AWS Artifact provides on-demand access to compliance and third-party compliance reports. This release includes access to List and Get reports, along with their metadata. This release also includes access to AWS Artifact notifications settings.
Get the metadata for a single report.
See also: AWS API Documentation
Request Syntax
client.get_report_metadata( reportId='string', reportVersion=123 )
string
[REQUIRED]
Unique resource ID for the report resource.
integer
Version for the report resource.
dict
Response Syntax
{ 'reportDetails': { 'acceptanceType': 'PASSTHROUGH'|'EXPLICIT', 'arn': 'string', 'category': 'string', 'companyName': 'string', 'createdAt': datetime(2015, 1, 1), 'deletedAt': datetime(2015, 1, 1), 'description': 'string', 'id': 'string', 'lastModifiedAt': datetime(2015, 1, 1), 'name': 'string', 'periodEnd': datetime(2015, 1, 1), 'periodStart': datetime(2015, 1, 1), 'productName': 'string', 'sequenceNumber': 123, 'series': 'string', 'state': 'PUBLISHED'|'UNPUBLISHED', 'statusMessage': 'string', 'termArn': 'string', 'uploadState': 'PROCESSING'|'COMPLETE'|'FAILED'|'FAULT', 'version': 123 } }
Response Structure
(dict) --
reportDetails (dict) --
Report resource detail.
acceptanceType (string) --
Acceptance type for report.
arn (string) --
ARN for the report resource.
category (string) --
Category for the report resource.
companyName (string) --
Associated company name for the report resource.
createdAt (datetime) --
Timestamp indicating when the report resource was created.
deletedAt (datetime) --
Timestamp indicating when the report resource was deleted.
description (string) --
Description for the report resource.
id (string) --
Unique resource ID for the report resource.
lastModifiedAt (datetime) --
Timestamp indicating when the report resource was last modified.
name (string) --
Name for the report resource.
periodEnd (datetime) --
Timestamp indicating the report resource effective end.
periodStart (datetime) --
Timestamp indicating the report resource effective start.
productName (string) --
Associated product name for the report resource.
sequenceNumber (integer) --
Sequence number to enforce optimistic locking.
series (string) --
Series for the report resource.
state (string) --
Current state of the report resource
statusMessage (string) --
The message associated with the current upload state.
termArn (string) --
Unique resource ARN for term resource.
uploadState (string) --
The current state of the document upload.
version (integer) --
Version for the report resource.
Put the account settings for Artifact.
See also: AWS API Documentation
Request Syntax
client.put_account_settings( notificationSubscriptionStatus='SUBSCRIBED'|'NOT_SUBSCRIBED' )
string
Desired notification subscription status.
dict
Response Syntax
{ 'accountSettings': { 'notificationSubscriptionStatus': 'SUBSCRIBED'|'NOT_SUBSCRIBED' } }
Response Structure
(dict) --
accountSettings (dict) --
Account settings for the customer.
notificationSubscriptionStatus (string) --
Notification subscription status of the customer.
Get the Term content associated with a single report.
See also: AWS API Documentation
Request Syntax
client.get_term_for_report( reportId='string', reportVersion=123 )
string
[REQUIRED]
Unique resource ID for the report resource.
integer
Version for the report resource.
dict
Response Syntax
{ 'documentPresignedUrl': 'string', 'termToken': 'string' }
Response Structure
(dict) --
documentPresignedUrl (string) --
Presigned S3 url to access the term content.
termToken (string) --
Unique token representing this request event.
Get the account settings for Artifact.
See also: AWS API Documentation
Request Syntax
client.get_account_settings()
dict
Response Syntax
{ 'accountSettings': { 'notificationSubscriptionStatus': 'SUBSCRIBED'|'NOT_SUBSCRIBED' } }
Response Structure
(dict) --
accountSettings (dict) --
Account settings for the customer.
notificationSubscriptionStatus (string) --
Notification subscription status of the customer.
List available reports.
See also: AWS API Documentation
Request Syntax
client.list_reports( maxResults=123, nextToken='string' )
integer
Maximum number of resources to return in the paginated response.
string
Pagination token to request the next page of resources.
dict
Response Syntax
{ 'nextToken': 'string', 'reports': [ { 'arn': 'string', 'category': 'string', 'companyName': 'string', 'description': 'string', 'id': 'string', 'name': 'string', 'periodEnd': datetime(2015, 1, 1), 'periodStart': datetime(2015, 1, 1), 'productName': 'string', 'series': 'string', 'state': 'PUBLISHED'|'UNPUBLISHED', 'statusMessage': 'string', 'uploadState': 'PROCESSING'|'COMPLETE'|'FAILED'|'FAULT', 'version': 123 }, ] }
Response Structure
(dict) --
nextToken (string) --
Pagination token to request the next page of resources.
reports (list) --
List of report resources.
(dict) --
Summary for report resource.
arn (string) --
ARN for the report resource.
category (string) --
Category for the report resource.
companyName (string) --
Associated company name for the report resource.
description (string) --
Description for the report resource.
id (string) --
Unique resource ID for the report resource.
name (string) --
Name for the report resource.
periodEnd (datetime) --
Timestamp indicating the report resource effective end.
periodStart (datetime) --
Timestamp indicating the report resource effective start.
productName (string) --
Associated product name for the report resource.
series (string) --
Series for the report resource.
state (string) --
Current state of the report resource.
statusMessage (string) --
The message associated with the current upload state.
uploadState (string) --
The current state of the document upload.
version (integer) --
Version for the report resource.
Get the content for a single report.
See also: AWS API Documentation
Request Syntax
client.get_report( reportId='string', reportVersion=123, termToken='string' )
string
[REQUIRED]
Unique resource ID for the report resource.
integer
Version for the report resource.
string
[REQUIRED]
Unique download token provided by GetTermForReport API.
dict
Response Syntax
{ 'documentPresignedUrl': 'string' }
Response Structure
(dict) --
documentPresignedUrl (string) --
Presigned S3 url to access the report content.