UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

220 lines (219 loc) 8.25 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement, Operator } from '../../shared'; import { aws_iam as iam } from "aws-cdk-lib"; /** * Statement provider for service [kinesisanalytics](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonkinesisanalytics.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Kinesisanalytics extends PolicyStatement { servicePrefix: string; /** * Grants permission to add input to the application * * Access Level: Write * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_AddApplicationInput.html */ toAddApplicationInput(): this; /** * Grants permission to add output to the application * * Access Level: Write * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_AddApplicationOutput.html */ toAddApplicationOutput(): this; /** * Grants permission to add reference data source to the application * * Access Level: Write * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_AddApplicationReferenceDataSource.html */ toAddApplicationReferenceDataSource(): this; /** * Grants permission to create an application * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_CreateApplication.html */ toCreateApplication(): this; /** * Grants permission to delete the application * * Access Level: Write * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DeleteApplication.html */ toDeleteApplication(): this; /** * Grants permission to delete the specified output of the application * * Access Level: Write * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DeleteApplicationOutput.html */ toDeleteApplicationOutput(): this; /** * Grants permission to delete the specified reference data source of the application * * Access Level: Write * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DeleteApplicationReferenceDataSource.html */ toDeleteApplicationReferenceDataSource(): this; /** * Grants permission to describe the specified application * * Access Level: Read * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html */ toDescribeApplication(): this; /** * Grants permission to discover the input schema for the application * * Access Level: Read * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DiscoverInputSchema.html */ toDiscoverInputSchema(): this; /** * Grants permission to Kinesis Data Analytics console to display stream results for Kinesis Data Analytics SQL runtime applications * * Access Level: Read * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/api-permissions-reference.html#api-permissions-reference-gas */ toGetApplicationState(): this; /** * Grants permission to list applications for the account * * Access Level: List * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_ListApplications.html */ toListApplications(): this; /** * Grants permission to fetch the tags associated with the application * * Access Level: Read * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to start the application * * Access Level: Write * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_StartApplication.html */ toStartApplication(): this; /** * Grants permission to stop the application * * Access Level: Write * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_StopApplication.html */ toStopApplication(): this; /** * Grants permission to add tags to the application * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_TagResource.html */ toTagResource(): this; /** * Grants permission to remove the specified tags from the application * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to update the application * * Access Level: Write * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_UpdateApplication.html */ toUpdateApplication(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type application to the statement * * https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works.html * * @param applicationName - Identifier for the applicationName. * @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() */ onApplication(applicationName: string, account?: string, region?: string, partition?: string): this; /** * Filters access by set of values for each of the tags * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateApplication() * - .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 tag-value assoicated with the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to resource types: * - application * * @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 the presence of mandatory tag keys in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateApplication() * - .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 [kinesisanalytics](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonkinesisanalytics.html). * */ constructor(props?: iam.PolicyStatementProps); }