import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class Sdb extends PolicyStatement { public servicePrefix = 'sdb' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Performs multiple DeleteAttributes operations in a single call, which reduces round trips and latencies.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_BatchDeleteAttributes.html
     */ public toBatchDeleteAttributes ( ) { return this . to ( 'BatchDeleteAttributes' ) ; } /**
     * With the BatchPutAttributes operation, you can perform multiple PutAttribute operations in a single call. With the BatchPutAttributes operation, you can perform multiple PutAttribute operations in a single call.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_BatchPutAttributes.html
     */ public toBatchPutAttributes ( ) { return this . to ( 'BatchPutAttributes' ) ; } /**
     * The CreateDomain operation creates a new domain.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_CreateDomain.html
     */ public toCreateDomain ( ) { return this . to ( 'CreateDomain' ) ; } /**
     * Deletes one or more attributes associated with the item.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_DeleteAttributes.html
     */ public toDeleteAttributes ( ) { return this . to ( 'DeleteAttributes' ) ; } /**
     * The DeleteDomain operation deletes a domain.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_DeleteDomain.html
     */ public toDeleteDomain ( ) { return this . to ( 'DeleteDomain' ) ; } /**
     * Returns information about the domain, including when the domain was created, the number of items and attributes, and the size of attribute names and values.
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_DomainMetadata.html
     */ public toDomainMetadata ( ) { return this . to ( 'DomainMetadata' ) ; } /**
     * Returns all of the attributes associated with the item.
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_GetAttributes.html
     */ public toGetAttributes ( ) { return this . to ( 'GetAttributes' ) ; } /**
     * Description for ListDomains
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_ListDomains.html
     */ public toListDomains ( ) { return this . to ( 'ListDomains' ) ; } /**
     * The PutAttributes operation creates or replaces attributes in an item.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_PutAttributes.html
     */ public toPutAttributes ( ) { return this . to ( 'PutAttributes' ) ; } /**
     * Description for Select
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/API_Select.html
     */ public toSelect ( ) { return this . to ( 'Select' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'BatchDeleteAttributes' , 'BatchPutAttributes' , 'CreateDomain' , 'DeleteAttributes' , 'DeleteDomain' , 'PutAttributes' ] , Read : [ 'DomainMetadata' , 'GetAttributes' , 'Select' ] , List : [ 'ListDomains' ] } ; param domainName param account param region param partition public onDomain ( domainName , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:sdb:${ region || '*' }:${ account || '*' }:domain/${ domainName }` ) ; } }