create_data_grant
¶
create_data_grant(
name: DataGrantName,
grant_distribution_scope: GrantDistributionScope,
receiver_principal: ReceiverPrincipal,
source_data_set_id: Id,
*,
config_overrides: Optional[DataExchangeClientConfig] = None,
ends_at: Optional[Timestamp] = None,
description: Optional[Description] = None,
tags: Optional[MapOf__string] = None,
) -> CreateDataGrantResponse
This operation creates a data grant.
Parameters:
-
name(DataGrantName) –The name of the data grant.
-
grant_distribution_scope(GrantDistributionScope) –The distribution scope of the data grant.
-
receiver_principal(ReceiverPrincipal) –The Amazon Web Services account ID of the data grant receiver.
-
source_data_set_id(Id) –The ID of the data set used to create the data grant.
-
ends_at(Optional[Timestamp], default:None) –The timestamp of when access to the associated data set ends.
-
description(Optional[Description], default:None) –The description of the data grant.
-
tags(Optional[MapOf__string], default:None) –The tags to add to the data grant. A tag is a key-value pair.
Raises:
-
AccessDeniedException–Access to the resource is denied.
-
InternalServerException–An exception occurred with the service.
-
ResourceNotFoundException–The resource couldn't be found.
-
ServiceLimitExceededException–The request has exceeded the quotas imposed by the service.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request was invalid.
-
UnknownServiceError–The service returned an error code this client does not model.