From a datashare producer account, removes authorization from the specified datashare.
Parameters:
-
data_share_arn
(Optional[String], default:
None
)
–
The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from.
-
consumer_identifier
(Optional[String], default:
None
)
–
The identifier of the data consumer that is to have authorization removed from the datashare. This identifier is an Amazon Web Services account ID or a keyword, such as ADX.
Raises:
Source code in docs_src/capo_redshift/_services/redshift.py
| def deauthorize_data_share(
self,
*,
config_overrides: Optional[RedshiftClientConfig] = None,
data_share_arn: Optional["capo_redshift.types.string.String"] = None,
consumer_identifier: Optional["capo_redshift.types.string.String"] = None,
) -> "capo_redshift.types.data_share.DataShare":
"""<p>From a datashare producer account, removes authorization from the specified datashare. </p>
Args:
data_share_arn: <p>The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from.</p>
consumer_identifier: <p>The identifier of the data consumer that is to have authorization removed from the datashare. This identifier is an Amazon Web Services account ID or a keyword, such as ADX.</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.deauthorize_data_share_message.DeauthorizeDataShareMessage]",
) -> OperationResponse["capo_redshift.types.data_share.DataShare"]:
import capo_redshift._operations.redshift_service_version20121201.deauthorize_data_share
output, http_response = (
capo_redshift._operations.redshift_service_version20121201.deauthorize_data_share.deauthorize_data_share(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeauthorizeDataShare")
)
input_: capo_redshift.types.deauthorize_data_share_message.DeauthorizeDataShareMessage = {}
if data_share_arn is not None:
input_["data_share_arn"] = data_share_arn
if consumer_identifier is not None:
input_["consumer_identifier"] = consumer_identifier
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|