cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
145 lines (144 loc) • 5.97 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement } from '../../shared';
import { aws_iam as iam } from "aws-cdk-lib";
/**
* Statement provider for service [sdb](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonsimpledb.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Sdb extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to perform multiple DeleteAttributes operations in a single call, which reduces round trips and latencies
*
* Access Level: Write
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_BatchDeleteAttributes.html
*/
toBatchDeleteAttributes(): this;
/**
* Grants permission to perform multiple PutAttribute operations in a single call, which reduces round trips and latencies
*
* Access Level: Write
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_BatchPutAttributes.html
*/
toBatchPutAttributes(): this;
/**
* Grants permission to create a new domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_CreateDomain.html
*/
toCreateDomain(): this;
/**
* Grants permission to delete one or more attributes associated with the item
*
* Access Level: Write
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_DeleteAttributes.html
*/
toDeleteAttributes(): this;
/**
* Grants permission to delete a domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_DeleteDomain.html
*/
toDeleteDomain(): this;
/**
* Grants permission to return 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/SDB_API_DomainMetadata.html
*/
toDomainMetadata(): this;
/**
* Grants permission to return all of the attributes associated with the item
*
* Access Level: Read
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_GetAttributes.html
*/
toGetAttributes(): this;
/**
* Grants permission to return information for an existing domain export arn
*
* Access Level: Read
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_GetExport.html
*/
toGetExport(): this;
/**
* Grants permission to list all domains
*
* Access Level: List
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_ListDomains.html
*/
toListDomains(): this;
/**
* Grants permission to list all exports that were created. The results are paginated and can be filtered by domain name
*
* Access Level: List
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_ListExports.html
*/
toListExports(): this;
/**
* Grants permission to create or replace attributes in an item
*
* Access Level: Write
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_PutAttributes.html
*/
toPutAttributes(): this;
/**
* Grants permission to execute a query against the items in a domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_Select.html
*/
toSelect(): this;
/**
* Grants permission to initiates the export of a SimpleDB domain to an S3 bucket
*
* Access Level: Write
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_StartDomainExport.html
*/
toStartDomainExport(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type domain to the statement
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/DataModel.html
*
* @param domainName - Identifier for the domainName.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*/
onDomain(domainName: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type export to the statement
*
* https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/DataModel.html
*
* @param domainName - Identifier for the domainName.
* @param exportUUID - Identifier for the exportUUID.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*/
onExport(domainName: string, exportUUID: string, account?: string, region?: string, partition?: string): this;
/**
* Statement provider for service [sdb](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonsimpledb.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}