iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
285 lines (284 loc) • 9.67 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement } from '../../shared';
/**
* Statement provider for service [cloudsearch](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazoncloudsearch.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Cloudsearch extends PolicyStatement {
servicePrefix: string;
/**
* Statement provider for service [cloudsearch](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazoncloudsearch.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
constructor(sid?: string);
/**
* Attaches resource tags to an Amazon CloudSearch domain
*
* Access Level: Tagging
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_AddTags.html
*/
toAddTags(): this;
/**
* Indexes the search suggestions
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_BuildSuggesters.html
*/
toBuildSuggesters(): this;
/**
* Creates a new search domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_CreateDomain.html
*/
toCreateDomain(): this;
/**
* Configures an analysis scheme that can be applied to a text or text-array field to define language-specific text processing options
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DefineAnalysisScheme.html
*/
toDefineAnalysisScheme(): this;
/**
* Configures an Expression for the search domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DefineExpression.html
*/
toDefineExpression(): this;
/**
* Configures an IndexField for the search domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DefineIndexField.html
*/
toDefineIndexField(): this;
/**
* Configures a suggester for a domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DefineSuggester.html
*/
toDefineSuggester(): this;
/**
* Deletes an analysis scheme
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DeleteAnalysisScheme.html
*/
toDeleteAnalysisScheme(): this;
/**
* Permanently deletes a search domain and all of its data
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DeleteDomain.html
*/
toDeleteDomain(): this;
/**
* Removes an Expression from the search domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DeleteExpression.html
*/
toDeleteExpression(): this;
/**
* Removes an IndexField from the search domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DeleteIndexField.html
*/
toDeleteIndexField(): this;
/**
* Deletes a suggester
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DeleteSuggester.html
*/
toDeleteSuggester(): this;
/**
* Gets the analysis schemes configured for a domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DescribeAnalysisSchemes.html
*/
toDescribeAnalysisSchemes(): this;
/**
* Gets the availability options configured for a domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DescribeAvailabilityOptions.html
*/
toDescribeAvailabilityOptions(): this;
/**
* Gets the domain endpoint options configured for a domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DescribeDomainEndpointOptions.html
*/
toDescribeDomainEndpointOptions(): this;
/**
* Gets information about the search domains owned by this account
*
* Access Level: List
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DescribeDomains.html
*/
toDescribeDomains(): this;
/**
* Gets the expressions configured for the search domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DescribeExpressions.html
*/
toDescribeExpressions(): this;
/**
* Gets information about the index fields configured for the search domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DescribeIndexFields.html
*/
toDescribeIndexFields(): this;
/**
* Gets the scaling parameters configured for a domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DescribeScalingParameters.html
*/
toDescribeScalingParameters(): this;
/**
* Gets information about the access policies that control access to the domain's document and search endpoints
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DescribeServiceAccessPolicies.html
*/
toDescribeServiceAccessPolicies(): this;
/**
* Gets the suggesters configured for a domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DescribeSuggesters.html
*/
toDescribeSuggesters(): this;
/**
* Tells the search domain to start indexing its documents using the latest indexing options
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_IndexDocuments.html
*/
toIndexDocuments(): this;
/**
* Lists all search domains owned by an account
*
* Access Level: List
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_ListDomainNames.html
*/
toListDomainNames(): this;
/**
* Displays all of the resource tags for an Amazon CloudSearch domain
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_ListTags.html
*/
toListTags(): this;
/**
* Removes the specified resource tags from an Amazon ES domain
*
* Access Level: Tagging
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_RemoveTags.html
*/
toRemoveTags(): this;
/**
* Configures the availability options for a domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_UpdateAvailabilityOptions.html
*/
toUpdateAvailabilityOptions(): this;
/**
* Configures the domain endpoint options for a domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_UpdateDomainEndpointOptions.html
*/
toUpdateDomainEndpointOptions(): this;
/**
* Configures scaling parameters for a domain
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_UpdateScalingParameters.html
*/
toUpdateScalingParameters(): this;
/**
* Configures the access rules that control access to the domain's document and search endpoints
*
* Access Level: Permissions management
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_UpdateServiceAccessPolicies.html
*/
toUpdateServiceAccessPolicies(): this;
/**
* Allows access to the document service operations
*
* Access Level: Write
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html#cloudsearch-actions
*/
toDocument(): this;
/**
* Allows access to the search operations
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html#cloudsearch-actions
*/
toSearch(): this;
/**
* Allows access to the suggest operations
*
* Access Level: Read
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html#cloudsearch-actions
*/
toSuggest(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type domain to the statement
*
* https://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.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;
}