Authorize Data Share
redshift_authorize_data_share | R Documentation |
From a data producer account, authorizes the sharing of a datashare with one or more consumer accounts or managing entities¶
Description¶
From a data producer account, authorizes the sharing of a datashare with one or more consumer accounts or managing entities. To authorize a datashare for a data consumer, the producer account must have the correct access permissions.
Usage¶
redshift_authorize_data_share(DataShareArn, ConsumerIdentifier,
AllowWrites)
Arguments¶
DataShareArn |
[required] The Amazon Resource Name (ARN) of the datashare namespace that producers are to authorize sharing for. |
ConsumerIdentifier |
[required] The identifier of the data consumer that is authorized to access the datashare. This identifier is an Amazon Web Services account ID or a keyword, such as ADX. |
AllowWrites |
If set to true, allows write operations for a datashare. |
Value¶
A list with the following syntax:
list(
DataShareArn = "string",
ProducerArn = "string",
AllowPubliclyAccessibleConsumers = TRUE|FALSE,
DataShareAssociations = list(
list(
ConsumerIdentifier = "string",
Status = "ACTIVE"|"PENDING_AUTHORIZATION"|"AUTHORIZED"|"DEAUTHORIZED"|"REJECTED"|"AVAILABLE",
ConsumerRegion = "string",
CreatedDate = as.POSIXct(
"2015-01-01"
),
StatusChangeDate = as.POSIXct(
"2015-01-01"
),
ProducerAllowedWrites = TRUE|FALSE,
ConsumerAcceptedWrites = TRUE|FALSE
)
),
ManagedBy = "string",
DataShareType = "INTERNAL"
)
Request syntax¶
svc$authorize_data_share(
DataShareArn = "string",
ConsumerIdentifier = "string",
AllowWrites = TRUE|FALSE
)