Skip to main content

domains

Creates, updates, deletes, gets or lists a domains resource.

Overview

Namedomains
TypeResource
Idaws.sdb.domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
domain_namestringA list of domain names that match the expression.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_domainsselectregionMaxNumberOfDomains, NextTokenThe ListDomains operation lists all domains associated with the Access Key ID. It returns domain names up to the limit set by MaxNumberOfDomains. A NextToken is returned if there are more than MaxNumberOfDomains domains. Calling ListDomains successive times with the NextToken provided by the operation returns up to MaxNumberOfDomains more domain names with each successive operation call.
create_domaininsertDomainName, regionThe CreateDomain operation creates a new domain. The domain name should be unique among the domains associated with the Access Key ID provided in the request. The CreateDomain operation may take 10 or more seconds to complete. The client can create up to 100 domains per account. If the client requires additional domains, go to http:​//aws.amazon.com/contact-us/simpledb-limit-request/.
delete_domaindeleteDomainName, regionThe DeleteDomain operation deletes a domain. Any items (and their attributes) in the domain are deleted as well. The DeleteDomain operation might take 10 or more seconds to complete.
domain_metadataexecDomainName, regionReturns information about the domain, including when the domain was created, the number of items and attributes in the domain, and the size of the attribute names and values.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
DomainNamestringThe name of the domain for which to display the metadata of.
regionstringAWS region (default: us-east-1)
MaxNumberOfDomainsintegerThe maximum number of domain names you want returned. The range is 1 to 100. The default setting is 100.
NextTokenstringA string informing Amazon SimpleDB where to start the next list of domain names.

SELECT examples

The ListDomains operation lists all domains associated with the Access Key ID. It returns domain names up to the limit set by MaxNumberOfDomains. A NextToken is returned if there are more than MaxNumberOfDomains domains. Calling ListDomains successive times with the NextToken provided by the operation returns up to MaxNumberOfDomains more domain names with each successive operation call.

SELECT
domain_name
FROM aws.sdb.domains
WHERE region = '{{ region }}' -- required
AND MaxNumberOfDomains = '{{ MaxNumberOfDomains }}'
AND NextToken = '{{ NextToken }}'
;

INSERT examples

The CreateDomain operation creates a new domain. The domain name should be unique among the domains associated with the Access Key ID provided in the request. The CreateDomain operation may take 10 or more seconds to complete. The client can create up to 100 domains per account. If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/.

INSERT INTO aws.sdb.domains (
DomainName,
region
)
SELECT
'{{ DomainName }}',
'{{ region }}'
;

DELETE examples

The DeleteDomain operation deletes a domain. Any items (and their attributes) in the domain are deleted as well. The DeleteDomain operation might take 10 or more seconds to complete.

DELETE FROM aws.sdb.domains
WHERE DomainName = '{{ DomainName }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Returns information about the domain, including when the domain was created, the number of items and attributes in the domain, and the size of the attribute names and values.

EXEC aws.sdb.domains.domain_metadata
@DomainName='{{ DomainName }}' --required,
@region='{{ region }}' --required
;