cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
249 lines (248 loc) • 9.22 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement, Operator } from '../../shared';
import { aws_iam as iam } from "aws-cdk-lib";
/**
* Statement provider for service [elemental-inference](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalinference.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class ElementalInference extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to associate a feed with an AWS resource
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_AssociateFeed.html
*/
toAssociateFeed(): this;
/**
* Grants permission to create a new dictionary
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_CreateDictionary.html
*/
toCreateDictionary(): this;
/**
* Grants permission to create a new feed
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_CreateFeed.html
*/
toCreateFeed(): this;
/**
* Grants permission to delete a dictionary
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_DeleteDictionary.html
*/
toDeleteDictionary(): this;
/**
* Grants permission to delete a feed
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_DeleteFeed.html
*/
toDeleteFeed(): this;
/**
* Grants permission to disassociate a feed from an AWS resource
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_DisassociateFeed.html
*/
toDisassociateFeed(): this;
/**
* Grants permission to export dictionary entries
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_ExportDictionaryEntries.html
*/
toExportDictionaryEntries(): this;
/**
* Grants permission to get dictionary details
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_GetDictionary.html
*/
toGetDictionary(): this;
/**
* Grants permission to get feed details
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_GetFeed.html
*/
toGetFeed(): this;
/**
* Grants permission to retrieve metadata for a specific feed output
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_GetMetadata.html
*/
toGetMetadata(): this;
/**
* Grants permission to list dictionaries in the account
*
* Access Level: List
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_ListDictionaries.html
*/
toListDictionaries(): this;
/**
* Grants permission to list feeds in the account
*
* Access Level: List
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_ListFeeds.html
*/
toListFeeds(): this;
/**
* Grants permission to list tags on a resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_ListTagsForResource.html
*/
toListTagsForResource(): this;
/**
* Grants permission to upload media data for a specified feed
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_PutMedia.html
*/
toPutMedia(): this;
/**
* Grants permission to add tags to a resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_TagResource.html
*/
toTagResource(): this;
/**
* Grants permission to remove tags from a resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_UntagResource.html
*/
toUntagResource(): this;
/**
* Grants permission to update dictionary configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_UpdateDictionary.html
*/
toUpdateDictionary(): this;
/**
* Grants permission to update feed configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/elemental-inference/latest/APIReference/API_UpdateFeed.html
*/
toUpdateFeed(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type dictionary to the statement
*
* https://docs.aws.amazon.com/elemental-inference/latest/userguide/elemental-inference-configuration.html
*
* @param id - Identifier for the id.
* @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.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onDictionary(id: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type feed to the statement
*
* https://docs.aws.amazon.com/elemental-inference/latest/userguide/elemental-inference-configuration.html
*
* @param id - Identifier for the id.
* @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.
*
* Possible conditions:
* - .ifAwsResourceTag()
*/
onFeed(id: string, account?: string, region?: string, partition?: string): this;
/**
* Filters access by tags that are passed in the request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag
*
* Applies to actions:
* - .toCreateDictionary()
* - .toCreateFeed()
* - .toTagResource()
*
* @param tagKey The tag key to check
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsRequestTag(tagKey: string, value: string | string[], operator?: Operator | string): this;
/**
* Filters access by tags associated with the resource
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag
*
* Applies to resource types:
* - dictionary
* - feed
*
* @param tagKey The tag key to check
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsResourceTag(tagKey: string, value: string | string[], operator?: Operator | string): this;
/**
* Filters access by tag keys that are passed in the request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys
*
* Applies to actions:
* - .toCreateDictionary()
* - .toCreateFeed()
* - .toTagResource()
* - .toUntagResource()
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsTagKeys(value: string | string[], operator?: Operator | string): this;
/**
* Statement provider for service [elemental-inference](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awselementalinference.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}