From a datashare consumer account, rejects the specified datashare.
Parameters:
-
data_share_arn
(Optional[String], default:
None
)
–
The Amazon Resource Name (ARN) of the datashare to reject.
Raises:
Source code in docs_src/capo_redshift/_services/redshift.py
| def reject_data_share(
self,
*,
config_overrides: Optional[RedshiftClientConfig] = None,
data_share_arn: Optional["capo_redshift.types.string.String"] = None,
) -> "capo_redshift.types.data_share.DataShare":
"""<p>From a datashare consumer account, rejects the specified datashare.</p>
Args:
data_share_arn: <p>The Amazon Resource Name (ARN) of the datashare to reject.</p>
Raises:
capo_redshift.errors.invalid_data_share_fault.InvalidDataShareFault: <p>There is an error with the datashare.</p>
capo_redshift.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_redshift.types.reject_data_share_message.RejectDataShareMessage]",
) -> OperationResponse["capo_redshift.types.data_share.DataShare"]:
import capo_redshift._operations.redshift_service_version20121201.reject_data_share
output, http_response = (
capo_redshift._operations.redshift_service_version20121201.reject_data_share.reject_data_share(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("RejectDataShare")
)
input_: capo_redshift.types.reject_data_share_message.RejectDataShareMessage = {}
if data_share_arn is not None:
input_["data_share_arn"] = data_share_arn
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|