libZSservicesZSamazonka-redshiftZSamazonka-redshift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Redshift.AuthorizeDataShare

Description

From a data producer account, authorizes the sharing of a datashare with one or more consumer accounts. To authorize a datashare for a data consumer, the producer account must have the correct access privileges.

Synopsis

Creating a Request

data AuthorizeDataShare Source #

See: newAuthorizeDataShare smart constructor.

Constructors

AuthorizeDataShare' 

Fields

  • dataShareArn :: Text

    The Amazon Resource Name (ARN) of the datashare that producers are to authorize sharing for.

  • consumerIdentifier :: Text

    The identifier of the data consumer that is authorized to access the datashare. This identifier is an AWS account ID.

Instances

Instances details
Eq AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

Read AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

Show AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

Generic AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

Associated Types

type Rep AuthorizeDataShare :: Type -> Type #

NFData AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

Methods

rnf :: AuthorizeDataShare -> () #

Hashable AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

AWSRequest AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

Associated Types

type AWSResponse AuthorizeDataShare #

ToHeaders AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

ToPath AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

ToQuery AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

type Rep AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

type Rep AuthorizeDataShare = D1 ('MetaData "AuthorizeDataShare" "Amazonka.Redshift.AuthorizeDataShare" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "AuthorizeDataShare'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataShareArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "consumerIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse AuthorizeDataShare Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeDataShare

newAuthorizeDataShare Source #

Create a value of AuthorizeDataShare with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dataShareArn:AuthorizeDataShare', authorizeDataShare_dataShareArn - The Amazon Resource Name (ARN) of the datashare that producers are to authorize sharing for.

$sel:consumerIdentifier:AuthorizeDataShare', authorizeDataShare_consumerIdentifier - The identifier of the data consumer that is authorized to access the datashare. This identifier is an AWS account ID.

Request Lenses

authorizeDataShare_dataShareArn :: Lens' AuthorizeDataShare Text Source #

The Amazon Resource Name (ARN) of the datashare that producers are to authorize sharing for.

authorizeDataShare_consumerIdentifier :: Lens' AuthorizeDataShare Text Source #

The identifier of the data consumer that is authorized to access the datashare. This identifier is an AWS account ID.

Destructuring the Response

data DataShare Source #

See: newDataShare smart constructor.

Constructors

DataShare' 

Fields

Instances

Instances details
Eq DataShare Source # 
Instance details

Defined in Amazonka.Redshift.Types.DataShare

Read DataShare Source # 
Instance details

Defined in Amazonka.Redshift.Types.DataShare

Show DataShare Source # 
Instance details

Defined in Amazonka.Redshift.Types.DataShare

Generic DataShare Source # 
Instance details

Defined in Amazonka.Redshift.Types.DataShare

Associated Types

type Rep DataShare :: Type -> Type #

NFData DataShare Source # 
Instance details

Defined in Amazonka.Redshift.Types.DataShare

Methods

rnf :: DataShare -> () #

Hashable DataShare Source # 
Instance details

Defined in Amazonka.Redshift.Types.DataShare

FromXML DataShare Source # 
Instance details

Defined in Amazonka.Redshift.Types.DataShare

type Rep DataShare Source # 
Instance details

Defined in Amazonka.Redshift.Types.DataShare

type Rep DataShare = D1 ('MetaData "DataShare" "Amazonka.Redshift.Types.DataShare" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "DataShare'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "producerArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dataShareAssociations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DataShareAssociation]))) :*: (S1 ('MetaSel ('Just "dataShareArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "allowPubliclyAccessibleConsumers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))))

newDataShare :: DataShare Source #

Create a value of DataShare with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:producerArn:DataShare', dataShare_producerArn - The Amazon Resource Name (ARN) of the producer.

$sel:dataShareAssociations:DataShare', dataShare_dataShareAssociations - A value that specifies when the datashare has an association between a producer and data consumers.

$sel:dataShareArn:DataShare', dataShare_dataShareArn - An Amazon Resource Name (ARN) that references the datashare that is owned by a specific namespace of the producer cluster. A datashare ARN is in the arn:aws:redshift:{region}:{account-id}:{datashare}:{namespace-guid}/{datashare-name} format.

$sel:allowPubliclyAccessibleConsumers:DataShare', dataShare_allowPubliclyAccessibleConsumers - A value that specifies whether the datashare can be shared to a publicly accessible cluster.

Response Lenses

dataShare_producerArn :: Lens' DataShare (Maybe Text) Source #

The Amazon Resource Name (ARN) of the producer.

dataShare_dataShareAssociations :: Lens' DataShare (Maybe [DataShareAssociation]) Source #

A value that specifies when the datashare has an association between a producer and data consumers.

dataShare_dataShareArn :: Lens' DataShare (Maybe Text) Source #

An Amazon Resource Name (ARN) that references the datashare that is owned by a specific namespace of the producer cluster. A datashare ARN is in the arn:aws:redshift:{region}:{account-id}:{datashare}:{namespace-guid}/{datashare-name} format.

dataShare_allowPubliclyAccessibleConsumers :: Lens' DataShare (Maybe Bool) Source #

A value that specifies whether the datashare can be shared to a publicly accessible cluster.