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/async_redshift.py
| async def reject_data_share(
self,
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_redshift.types.reject_data_share_message.RejectDataShareMessage]",
) -> AsyncOperationResponse["capo_redshift.types.data_share.DataShare"]:
import capo_redshift._operations.redshift_service_version20121201.reject_data_share
(
output,
http_response,
) = await capo_redshift._operations.redshift_service_version20121201.reject_data_share.async_reject_data_share(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|