UNPKG

iam-floyd

Version:

AWS IAM policy statement generator with fluent interface

42 lines (41 loc) 1.51 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement } from '../../shared'; /** * Statement provider for service [aws-mcp](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsmcpserver.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class AwsMcp extends PolicyStatement { servicePrefix: string; /** * Statement provider for service [aws-mcp](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsmcpserver.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ constructor(sid?: string); /** * Grants permission to call read-only tools in MCP service * * Access Level: Read * * https://docs.aws.amazon.com/aws-mcp/latest/userguide/security-iam.html */ toCallReadOnlyTool(): this; /** * Grants permission to call AWS Read and Write apis in MCP Service * * Access Level: Write * * https://docs.aws.amazon.com/aws-mcp/latest/userguide/security-iam.html */ toCallReadWriteTool(): this; /** * Grants permission to use MCP service * * Access Level: List * * https://docs.aws.amazon.com/aws-mcp/latest/userguide/security-iam.html */ toInvokeMcp(): this; protected accessLevelList: AccessLevelList; }