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.
CreateDomain is an idempotent operation; running it multiple times using the same domain name will not result in an error response.
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/.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the domain to create. The name can range between 3 and 255 characters and can contain the following characters: a-z, A-Z, 0-9, ‘_’, ‘-‘, and ‘.’. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
AmazonSDB::create_domain
// Instantiate $sdb = new AmazonSDB(); $response = $sdb->create_domain('example-domain'); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/sdb.class.php | Toggle source view (7 lines) | View on GitHub