cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
209 lines (208 loc) • 5.77 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 [agentaccess-mcp](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonworkspacesagentaccessmcpserver.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class AgentaccessMcp extends PolicyStatement {
servicePrefix: string;
/**
* Grants permission to perform double click at coordinates
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toDoubleClick(): this;
/**
* Grants permission to capture screen state
*
* Access Level: Read
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toGetScreenshot(): this;
/**
* Grants permission to hold key down
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toHoldKey(): this;
/**
* Grants permission to initialize sessions and discover tools
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toInvokeMcp(): this;
/**
* Grants permission to press key or key combination
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toKeyPress(): this;
/**
* Grants permission to perform left mouse click at coordinates
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toLeftClick(): this;
/**
* Grants permission to click and drag between coordinates
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toLeftClickDrag(): this;
/**
* Grants permission to press and hold left mouse button
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toLeftMouseDown(): this;
/**
* Grants permission to release left mouse button
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toLeftMouseUp(): this;
/**
* Grants permission to perform middle mouse click at coordinates
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toMiddleClick(): this;
/**
* Grants permission to move cursor to coordinates
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toMovePointer(): this;
/**
* Grants permission to perform right mouse click at coordinates
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toRightClick(): this;
/**
* Grants permission to scroll in any direction
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toScroll(): this;
/**
* Grants permission to perform triple click at coordinates
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toTripleClick(): this;
/**
* Grants permission to type text string
*
* Access Level: Write
*
* Possible conditions:
* - .ifStackArn()
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*/
toTypeText(): this;
protected accessLevelList: AccessLevelList;
/**
* Filters access by the ARN of the WorkSpaces Applications stack
*
* https://docs.aws.amazon.com/appstream2/latest/developerguide/
*
* Applies to actions:
* - .toDoubleClick()
* - .toGetScreenshot()
* - .toHoldKey()
* - .toInvokeMcp()
* - .toKeyPress()
* - .toLeftClick()
* - .toLeftClickDrag()
* - .toLeftMouseDown()
* - .toLeftMouseUp()
* - .toMiddleClick()
* - .toMovePointer()
* - .toRightClick()
* - .toScroll()
* - .toTripleClick()
* - .toTypeText()
*
* @param value The value(s) to check
* @param operator Works with [arn operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_ARN). **Default:** `ArnLike`
*/
ifStackArn(value: string | string[], operator?: Operator | string): this;
/**
* Statement provider for service [agentaccess-mcp](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonworkspacesagentaccessmcpserver.html).
*
*/
constructor(props?: iam.PolicyStatementProps);
}