start_cache_report
async
¶
start_cache_report(
file_share_arn: FileShareARN,
role: Role,
location_arn: LocationARN,
bucket_region: RegionId,
client_token: ClientToken,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
vpc_endpoint_dns_name: Optional[DNSHostName] = None,
inclusion_filters: Optional[CacheReportFilterList] = None,
exclusion_filters: Optional[CacheReportFilterList] = None,
tags: Optional[Tags] = None,
) -> StartCacheReportOutput
Starts generating a report of the file metadata currently cached by an S3 File Gateway for a specific file share. You can use this report to identify and resolve issues if you have files failing upload from your gateway to Amazon S3. The report is a CSV file containing a list of files which match the set of filter parameters you specify in the request.
The Files Failing Upload flag is reset every 24 hours and during gateway reboot. If this report captures the files after the reset, but before they become flagged again, they will not be reported as Files Failing Upload.
The following requirements must be met to successfully generate a cache report:
-
You must have
s3:PutObjectands3:AbortMultipartUploadpermissions for the Amazon S3 bucket where you want to store the cache report. -
No other cache reports can currently be in-progress for the specified file share.
-
There must be fewer than 10 existing cache reports for the specified file share.
-
The gateway must be online and connected to Amazon Web Services.
-
The root disk must have at least 20GB of free space when report generation starts.
-
You must specify at least one value for
InclusionFiltersorExclusionFiltersin the request.
Parameters:
-
role(Role) –The ARN of the IAM role used when saving the cache report to Amazon S3.
-
location_arn(LocationARN) –The ARN of the Amazon S3 bucket where you want to save the cache report.
We do not recommend saving the cache report to the same Amazon S3 bucket for which you are generating the report.
This field does not accept access point ARNs.
-
bucket_region(RegionId) –The Amazon Web Services Region of the Amazon S3 bucket where you want to save the cache report.
-
vpc_endpoint_dns_name(Optional[DNSHostName], default:None) –The DNS name of the VPC endpoint associated with the Amazon S3 where you want to save the cache report. Optional.
-
inclusion_filters(Optional[CacheReportFilterList], default:None) –The list of filters and parameters that determine which files are included in the report. You must specify at least one value for
InclusionFiltersorExclusionFiltersin aStartCacheReportrequest. -
exclusion_filters(Optional[CacheReportFilterList], default:None) –The list of filters and parameters that determine which files are excluded from the report. You must specify at least one value for
InclusionFiltersorExclusionFiltersin aStartCacheReportrequest. -
client_token(ClientToken) –A unique identifier that you use to ensure idempotent report generation if you need to retry an unsuccessful
StartCacheReportrequest. If you retry a request, use the sameClientTokenyou specified in the initial request. -
tags(Optional[Tags], default:None) –A list of up to 50 key/value tags that you can assign to the cache report. Using tags can help you categorize your reports and more easily locate them in search results.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_storage_gateway/_services/async_storage_gateway.py
5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 | |