UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

52 lines (51 loc) 2.24 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement } from '../../shared'; import { aws_iam as iam } from "aws-cdk-lib"; /** * Statement provider for service [bedrock-websearch](https://docs.aws.amazon.com/service-authorization/latest/reference/list_bedrock-websearch.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class BedrockWebsearch extends PolicyStatement { servicePrefix: string; /** * Grants permission to invoke web fetch tools * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/userguide/security-web-search.html#security-web-search-actions */ toInvokeFetch(): this; /** * Grants permission to invoke web search tools * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/userguide/security-web-search.html#security-web-search-actions */ toInvokeSearch(): this; /** * Grants permission to retrieve content from external web sites outside the AWS boundary * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/userguide/security-web-search.html#security-web-search-actions */ toExternalWebAccess(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type tool to the statement * * https://docs.aws.amazon.com/bedrock/latest/userguide/security-web-search.html#security-web-search-actions * * @param toolName - Identifier for the toolName. * @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. */ onTool(toolName: string, region?: string, partition?: string): this; /** * Statement provider for service [bedrock-websearch](https://docs.aws.amazon.com/service-authorization/latest/reference/list_bedrock-websearch.html). * */ constructor(props?: iam.PolicyStatementProps); }