Skip to content

describe_drt_access

describe_drt_access(
    *, config_overrides: Optional[ShieldClientConfig] = None
) -> DescribeDRTAccessResponse

Returns the current role and list of Amazon S3 log buckets used by the Shield Response Team (SRT) to access your Amazon Web Services account while assisting with attack mitigation.

Raises:

  • InternalErrorException –

    Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.

  • ResourceNotFoundException –

    Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_shield/_services/shield.py
def describe_drt_access(
    self, *, config_overrides: Optional[ShieldClientConfig] = None
) -> "capo_shield.types.describe_drt_access_response.DescribeDRTAccessResponse":
    """<p>Returns the current role and list of Amazon S3 log buckets used by the Shield Response Team (SRT) to access your Amazon Web Services account while assisting with attack mitigation.</p>

    Raises:
        capo_shield.errors.internal_error_exception.InternalErrorException: <p>Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.</p>
        capo_shield.errors.resource_not_found_exception.ResourceNotFoundException: <p>Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties. </p>
        capo_shield.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_shield.types.describe_drt_access_request.DescribeDRTAccessRequest]",
    ) -> OperationResponse[
        "capo_shield.types.describe_drt_access_response.DescribeDRTAccessResponse"
    ]:
        import capo_shield._operations.aws_shield_20160616.describe_drt_access

        output, http_response = (
            capo_shield._operations.aws_shield_20160616.describe_drt_access.describe_drt_access(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeDRTAccess")
    )
    input_: capo_shield.types.describe_drt_access_request.DescribeDRTAccessRequest = {}

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