Skip to content

get_express_configuration async

get_express_configuration(
    *, config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None
) -> GetExpressConfigurationResponse

Returns the configuration of Amazon Redshift Serverless with express configuration. The first call in an Amazon Web Services account and Amazon Web Services Region activates Amazon Redshift Serverless with express configuration in that Region. To use this operation, you must have the redshift-serverless:GetExpressConfiguration permission, and the iam:CreateServiceLinkedRole permission if the account doesn't already have the Amazon Redshift service-linked role.

Raises:

Source code in docs_src/capo_redshift_serverless/_services/async_redshift_serverless.py
async def get_express_configuration(
    self, *, config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None
) -> "capo_redshift_serverless.types.get_express_configuration_response.GetExpressConfigurationResponse":
    """<p>Returns the configuration of Amazon Redshift Serverless with express configuration. The first call in an Amazon Web Services account and Amazon Web Services Region activates Amazon Redshift Serverless with express configuration in that Region. To use this operation, you must have the <code>redshift-serverless:GetExpressConfiguration</code> permission, and the <code>iam:CreateServiceLinkedRole</code> permission if the account doesn't already have the Amazon Redshift service-linked role.</p>

    Raises:
        capo_redshift_serverless.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_redshift_serverless.errors.conflict_exception.ConflictException: <p>The submitted action has conflicts.</p>
        capo_redshift_serverless.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_redshift_serverless.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
        capo_redshift_serverless.errors.validation_exception.ValidationException: <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_redshift_serverless.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_redshift_serverless.types.get_express_configuration_request.GetExpressConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_redshift_serverless.types.get_express_configuration_response.GetExpressConfigurationResponse"
    ]:
        import capo_redshift_serverless._operations.redshift_serverless.get_express_configuration

        (
            output,
            http_response,
        ) = await capo_redshift_serverless._operations.redshift_serverless.get_express_configuration.async_get_express_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetExpressConfiguration")
    )
    input_: capo_redshift_serverless.types.get_express_configuration_request.GetExpressConfigurationRequest = {}

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output