libZSservicesZSamazonka-sdbZSamazonka-sdb
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.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

  • 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.

  • attributeNames :: Maybe [Text]

    The names of the attributes.

  • domainName :: Text

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

  • itemName :: Text

    The name of the item.

Instances

Instances details
Eq GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Read GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Show GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Generic GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Associated Types

type Rep GetAttributes :: Type -> Type #

NFData GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Methods

rnf :: GetAttributes -> () #

Hashable GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

AWSRequest GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Associated Types

type AWSResponse GetAttributes #

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

type Rep GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

type Rep GetAttributes = D1 ('MetaData "GetAttributes" "Amazonka.SDB.GetAttributes" "libZSservicesZSamazonka-sdbZSamazonka-sdb" 'False) (C1 ('MetaCons "GetAttributes'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "consistentRead") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "attributeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "itemName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetAttributes Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

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

$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
Eq GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Read GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Show GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Generic GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Associated Types

type Rep GetAttributesResponse :: Type -> Type #

NFData GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

Methods

rnf :: GetAttributesResponse -> () #

type Rep GetAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.GetAttributes

type Rep GetAttributesResponse = D1 ('MetaData "GetAttributesResponse" "Amazonka.SDB.GetAttributes" "libZSservicesZSamazonka-sdbZSamazonka-sdb" '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:

$sel:attributes: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.