amazonka-sdb-2.0: Amazon SimpleDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SDB.GetAttributes

Description

Returns all of the attributes associated with the specified item. Optionally, the attributes returned can be limited to one or more attributes by specifying an attribute name parameter.

If the item does not exist on the replica that was accessed for this operation, an empty set is returned. The system does not return an error as it cannot guarantee the item does not exist on other replicas.

Synopsis

Creating a Request

data GetAttributes Source #

See: newGetAttributes smart constructor.

Constructors

GetAttributes' 

Fields

  • attributeNames :: Maybe [Text]

    The names of the attributes.

  • consistentRead :: Maybe Bool

    Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If true, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.

  • domainName :: Text

    The name of the domain in which to perform the operation.

  • itemName :: Text

    The name of the item.

Instances

Instances details
ToHeaders GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

ToPath GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

ToQuery GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

AWSRequest GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Associated Types

type AWSResponse GetAttributes #

Generic GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Associated Types

type Rep GetAttributes :: Type -> Type #

Read GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Show GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

NFData GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Methods

rnf :: GetAttributes -> () #

Eq GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Hashable GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

type AWSResponse GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

type Rep GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

type Rep GetAttributes = D1 ('MetaData "GetAttributes" "Amazonka.SDB.GetAttributes" "amazonka-sdb-2.0-7a0e7nVPNy1GutfrhcqnW8" 'False) (C1 ('MetaCons "GetAttributes'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attributeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "consistentRead") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "itemName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newGetAttributes Source #

Create a value of GetAttributes 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:attributeNames:GetAttributes', getAttributes_attributeNames - The names of the attributes.

$sel:consistentRead:GetAttributes', getAttributes_consistentRead - Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If true, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.

$sel:domainName:GetAttributes', getAttributes_domainName - The name of the domain in which to perform the operation.

$sel:itemName:GetAttributes', getAttributes_itemName - The name of the item.

Request Lenses

getAttributes_consistentRead :: Lens' GetAttributes (Maybe Bool) Source #

Determines whether or not strong consistency should be enforced when data is read from SimpleDB. If true, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.

getAttributes_domainName :: Lens' GetAttributes Text Source #

The name of the domain in which to perform the operation.

Destructuring the Response

data GetAttributesResponse Source #

See: newGetAttributesResponse smart constructor.

Constructors

GetAttributesResponse' 

Fields

Instances

Instances details
Generic GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Associated Types

type Rep GetAttributesResponse :: Type -> Type #

Read GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Show GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

NFData GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Methods

rnf :: GetAttributesResponse -> () #

Eq GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

type Rep GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

type Rep GetAttributesResponse = D1 ('MetaData "GetAttributesResponse" "Amazonka.SDB.GetAttributes" "amazonka-sdb-2.0-7a0e7nVPNy1GutfrhcqnW8" 'False) (C1 ('MetaCons "GetAttributesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Attribute])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetAttributesResponse Source #

Create a value of GetAttributesResponse 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:

GetAttributesResponse, getAttributesResponse_attributes - The list of attributes returned by the operation.

$sel:httpStatus:GetAttributesResponse', getAttributesResponse_httpStatus - The response's http status code.

Response Lenses

getAttributesResponse_attributes :: Lens' GetAttributesResponse (Maybe [Attribute]) Source #

The list of attributes returned by the operation.