Skip to content

get_express_configuration

get_express_configuration(
    *, config_overrides: Optional[RedshiftServerlessClientConfig] = 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/redshift_serverless.py
def get_express_configuration(
    self, *, config_overrides: Optional[RedshiftServerlessClientConfig] = 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.
    """

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

        output, http_response = (
            capo_redshift_serverless._operations.redshift_serverless.get_express_configuration.get_express_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output