Skip to content

send_agent_organizational_report_data_to_s3

send_agent_organizational_report_data_to_s3(
    report_id: UUID,
    format: OrganizationalReportFormat,
    bucket_arn: S3BucketArn,
    object_key: S3ObjectKey,
    *,
    config_overrides: Optional[WellArchitectedClientConfig] = None,
) -> SendAgentOrganizationalReportDataToS3Response

Writes the data artifact for a completed Organizational Report directly into a caller-owned S3 bucket. The artifact is written in the requested format to the supplied bucketArn and objectKey, and the resulting S3 location is returned in deliveredTo. This operation creates an S3 object and should not be retried indiscriminately. To download the artifact through a short-lived presigned URL instead, use GetAgentOrganizationalReportData.

Parameters:

  • report_id (UUID) –

    Identifier of the report whose data is being delivered.

  • format (OrganizationalReportFormat) –

    Format of the delivered artifact (CSV, JSON, or PARQUET).

  • bucket_arn (S3BucketArn) –

    ARN of the caller-owned S3 bucket that will receive the artifact.

  • object_key (S3ObjectKey) –

    S3 object key under bucketArn where the artifact will be written.

Raises:

Source code in docs_src/capo_wellarchitected/_services/well_architected.py
def send_agent_organizational_report_data_to_s3(
    self,
    report_id: "capo_wellarchitected.types.uuid.UUID",
    format: "capo_wellarchitected.types.organizational_report_format.OrganizationalReportFormat",
    bucket_arn: "capo_wellarchitected.types.s3_bucket_arn.S3BucketArn",
    object_key: "capo_wellarchitected.types.s3_object_key.S3ObjectKey",
    *,
    config_overrides: Optional[WellArchitectedClientConfig] = None,
) -> "capo_wellarchitected.types.send_agent_organizational_report_data_to_s3_response.SendAgentOrganizationalReportDataToS3Response":
    """<p>Writes the data artifact for a completed Organizational Report directly into a caller-owned S3 bucket. The artifact is written in the requested format to the supplied bucketArn and objectKey, and the resulting S3 location is returned in deliveredTo. This operation creates an S3 object and should not be retried indiscriminately. To download the artifact through a short-lived presigned URL instead, use GetAgentOrganizationalReportData.</p>

    Args:
        report_id: <p>Identifier of the report whose data is being delivered.</p>
        format: <p>Format of the delivered artifact (CSV, JSON, or PARQUET).</p>
        bucket_arn: <p>ARN of the caller-owned S3 bucket that will receive the artifact.</p>
        object_key: <p>S3 object key under bucketArn where the artifact will be written.</p>

    Raises:
        capo_wellarchitected.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_wellarchitected.errors.internal_server_exception.InternalServerException: <p>There is a problem with the Well-Architected Tool API service.</p>
        capo_wellarchitected.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found.</p>
        capo_wellarchitected.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_wellarchitected.errors.validation_exception.ValidationException: <p>The user input is not valid.</p>
        capo_wellarchitected.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_wellarchitected.types.send_agent_organizational_report_data_to_s3_request.SendAgentOrganizationalReportDataToS3Request]",
    ) -> OperationResponse[
        "capo_wellarchitected.types.send_agent_organizational_report_data_to_s3_response.SendAgentOrganizationalReportDataToS3Response"
    ]:
        import capo_wellarchitected._operations.well_architected_api_service_lambda.send_agent_organizational_report_data_to_s3

        output, http_response = (
            capo_wellarchitected._operations.well_architected_api_service_lambda.send_agent_organizational_report_data_to_s3.send_agent_organizational_report_data_to_s3(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("SendAgentOrganizationalReportDataToS3")
    )
    input_: capo_wellarchitected.types.send_agent_organizational_report_data_to_s3_request.SendAgentOrganizationalReportDataToS3Request = {
        "report_id": report_id,
        "format": format,
        "bucket_arn": bucket_arn,
        "object_key": object_key,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output