UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

1,011 lines (1,010 loc) 38 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 [bedrock](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Bedrock extends PolicyStatement { servicePrefix: string; /** * Grants permission to apply a guardrail * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toApplyGuardrail(): this; /** * Grants permission to associate a knowledge base with an agent * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_AssociateAgentKnowledgeBase.html */ toAssociateAgentKnowledgeBase(): this; /** * Grants permission to use 3rd party platform to store knowledge data * * Access Level: Write * * Possible conditions: * - .ifThirdPartyKnowledgeBaseCredentialsSecretArn() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toAssociateThirdPartyKnowledgeBase(): this; /** * Grants permission to create a new agent and a test agent alias pointing to the DRAFT agent version * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgent.html */ toCreateAgent(): this; /** * Grants permission to create a new action group in an existing agent * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentActionGroup.html */ toCreateAgentActionGroup(): this; /** * Grants permission to create a new alias for an agent * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateAgentAlias.html */ toCreateAgentAlias(): this; /** * Grants permission to create a data source * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateDataSource.html */ toCreateDataSource(): this; /** * Grants permission to create a job for evaluation foundation models or custom models * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateEvaluationJob.html */ toCreateEvaluationJob(): this; /** * Grants permission to create a new foundation model agreement * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html */ toCreateFoundationModelAgreement(): this; /** * Grants permission to create a new guardrail * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toCreateGuardrail(): this; /** * Grants permission to create a new guardrail version * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toCreateGuardrailVersion(): this; /** * Grants permission to create a knowledge base * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateKnowledgeBase.html */ toCreateKnowledgeBase(): this; /** * Grants permission to create a job for customizing the model with your custom training data * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelCustomizationJob.html */ toCreateModelCustomizationJob(): this; /** * Grants permission to create a job for evaluation foundation models or custom models * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelEvaluationJob.html */ toCreateModelEvaluationJob(): this; /** * Grants permission to create a new model invocation job * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelInvocationJob.html */ toCreateModelInvocationJob(): this; /** * Grants permission to create a new provisioned model throughput * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateProvisionedModelThroughput.html */ toCreateProvisionedModelThroughput(): this; /** * Grants permission to delete an Agent that you created earlier * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteAgent.html */ toDeleteAgent(): this; /** * Grants permission to delete an actionGroup that you created earlier * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteAgentActionGroup.html */ toDeleteAgentActionGroup(): this; /** * Grants permission to delete an AgentAlias that you created earlier * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteAgentAlias.html */ toDeleteAgentAlias(): this; /** * Grants permission to delete an Agent Version that you created earlier * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteAgentVersion.html */ toDeleteAgentVersion(): this; /** * Grants permission to delete a custom model that you created earlier * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html */ toDeleteCustomModel(): this; /** * Grants permission to delete a data source * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteDataSource.html */ toDeleteDataSource(): this; /** * Grants permission to delete a foundation model agreement that you created earlier * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html */ toDeleteFoundationModelAgreement(): this; /** * Grants permission to delete a guardrail or its version * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toDeleteGuardrail(): this; /** * Grants permission to delete a knowledge base * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteKnowledgeBase.html */ toDeleteKnowledgeBase(): this; /** * Grants permission to delete an existing Invocation logging configuration * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteModelInvocationLoggingConfiguration.html */ toDeleteModelInvocationLoggingConfiguration(): this; /** * Grants permission to delete a provisioned model throughput that you created earlier * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteProvisionedModelThroughput.html */ toDeleteProvisionedModelThroughput(): this; /** * Grants permission to detect if the provided content is generated using Amazon Bedrock * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toDetectGeneratedContent(): this; /** * Grants permission to disassociate a knowledge base from the agent * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DisassociateAgentKnowledgeBase.html */ toDisassociateAgentKnowledgeBase(): this; /** * Grants permission to retrieve an existing agent * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgent.html */ toGetAgent(): this; /** * Grants permission to retrieve an existing action group * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html */ toGetAgentActionGroup(): this; /** * Grants permission to retrieve an existing alias * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentAlias.html */ toGetAgentAlias(): this; /** * Grants permission to describe a knowledge base associated with an agent * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentKnowledgeBase.html */ toGetAgentKnowledgeBase(): this; /** * Grants permission to retrieve an existing version of an agent * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentVersion.html */ toGetAgentVersion(): this; /** * Grants permission to get the properties associated with a Bedrock custom model that you have created * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModel.html */ toGetCustomModel(): this; /** * Grants permission to retrieve an existing data source * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetDataSource.html */ toGetDataSource(): this; /** * Grants permission to get the properties associated with a evaluation job. Use this operation to get the status of a evaluation job * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetEvaluationJob.html */ toGetEvaluationJob(): this; /** * Grants permission to get the properties associated with a Bedrock foundation model * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html */ toGetFoundationModel(): this; /** * Grants permission to get the availability of a foundation model * * Access Level: Read * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html */ toGetFoundationModelAvailability(): this; /** * Grants permission to retrieve a guardrail or its version * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toGetGuardrail(): this; /** * Grants permission to retrieve an existing ingestion job * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetIngestionJob.html */ toGetIngestionJob(): this; /** * Grants permission to retrieve an existing knowledge base * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetKnowledgeBase.html */ toGetKnowledgeBase(): this; /** * Grants permission to get the properties associated with a model-customization job. Use this operation to get the status of a model-customization job * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelCustomizationJob.html */ toGetModelCustomizationJob(): this; /** * Grants permission to get the properties associated with a model-evaluation job. Use this operation to get the status of a model-evaluation job * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelEvaluationJob.html */ toGetModelEvaluationJob(): this; /** * Grants permission to retrieve a model invocation job * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelInvocationJob.html */ toGetModelInvocationJob(): this; /** * Grants permission to retrieve an existing Invocation logging configuration * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelInvocationLoggingConfiguration.html */ toGetModelInvocationLoggingConfiguration(): this; /** * Grants permission to retrieve a provisioned model throughput * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetProvisionedModelThroughput.html */ toGetProvisionedModelThroughput(): this; /** * Grants permission to retrieve a use case for model access * * Access Level: Read * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html */ toGetUseCaseForModelAccess(): this; /** * Grants permission to send user input (text-only) to the alias of an agent for Bedrock * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html */ toInvokeAgent(): this; /** * Grants permission to invoke the specified Bedrock model to run inference using the input provided in the request body * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html */ toInvokeModel(): this; /** * Grants permission to invoke the specified Bedrock model to run inference using the input provided in the request body with streaming response * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html */ toInvokeModelWithResponseStream(): this; /** * Grants permission to list action groups in an agent * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListAgentActionGroups.html */ toListAgentActionGroups(): this; /** * Grants permission to list aliases for an agent * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListAgentAliases.html */ toListAgentAliases(): this; /** * Grants permission to list knowledge bases associated with an agent * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListAgentKnowledgeBases.html */ toListAgentKnowledgeBases(): this; /** * Grants permission to list existing versions of an agent * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListAgentVersions.html */ toListAgentVersions(): this; /** * Grants permission to list existing agents * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListAgents.html */ toListAgents(): this; /** * Grants permission to get a list of Bedrock custom models that you have created * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModels.html */ toListCustomModels(): this; /** * Grants permission to list existing data sources in an knowledge base * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListDataSources.html */ toListDataSources(): this; /** * Grants permission to get the list of evaluation jobs that you have submitted * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListEvaluationJobs.html */ toListEvaluationJobs(): this; /** * Grants permission to get a list of foundation model agreement offers * * Access Level: List * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html */ toListFoundationModelAgreementOffers(): this; /** * Grants permission to list Bedrock foundation models that you can use * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html */ toListFoundationModels(): this; /** * Grants permission to list guardrails or its versions * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toListGuardrails(): this; /** * Grants permission to list ingestion jobs in a data source * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListIngestionJobs.html */ toListIngestionJobs(): this; /** * Grants permission to list existing knowledge bases * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListKnowledgeBases.html */ toListKnowledgeBases(): this; /** * Grants permission to get the list of model customization jobs that you have submitted * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListModelCustomizationJobs.html */ toListModelCustomizationJobs(): this; /** * Grants permission to get the list of model evaluation jobs that you have submitted * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListModelEvaluationJobs.html */ toListModelEvaluationJobs(): this; /** * Grants permission to list model invocation jobs that you created earlier * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListModelInvocationJobs.html */ toListModelInvocationJobs(): this; /** * Grants permission to list provisioned model throughputs that you created earlier * * Access Level: List * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListProvisionedModelThroughputs.html */ toListProvisionedModelThroughputs(): this; /** * Grants permission to list tags for a Bedrock resource * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to prepare an existing agent to receive runtime requests * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PrepareAgent.html */ toPrepareAgent(): this; /** * Grants permission to put entitlement to access a foundation model * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html */ toPutFoundationModelEntitlement(): this; /** * Grants permission to create an existing Invocation logging configuration * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_PutModelInvocationLoggingConfiguration.html */ toPutModelInvocationLoggingConfiguration(): this; /** * Grants permission to put a use case for model access * * Access Level: Write * * https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html */ toPutUseCaseForModelAccess(): this; /** * Grants permission to retrieve ingested data from a knowledge base * * Access Level: Read * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toRetrieve(): this; /** * Grants permission to send user input to perform retrieval and generation * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toRetrieveAndGenerate(): this; /** * Grants permission to start an ingestion job * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_StartIngestionJob.html */ toStartIngestionJob(): this; /** * Grants permission to stop a evaluation job while in progress * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_StopEvaluationJob.html */ toStopEvaluationJob(): this; /** * Grants permission to stop a Bedrock model customization job while in progress * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_StopModelCustomizationJob.html */ toStopModelCustomizationJob(): this; /** * Grants permission to stop a model invocation job that you started earlier * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_StopModelInvocationJob.html */ toStopModelInvocationJob(): this; /** * Grants permission to Tag a Bedrock resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_TagResource.html */ toTagResource(): this; /** * Grants permission to Untag a Bedrock resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to update an existing agent * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgent.html */ toUpdateAgent(): this; /** * Grants permission to update an existing action group * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentActionGroup.html */ toUpdateAgentActionGroup(): this; /** * Grants permission to update an existing alias * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentAlias.html */ toUpdateAgentAlias(): this; /** * Grants permission to update a knowledge base associated with an agent * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateAgentKnowledgeBase.html */ toUpdateAgentKnowledgeBase(): this; /** * Grants permission to update a data source * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateDataSource.html */ toUpdateDataSource(): this; /** * Grants permission to update a guardrail * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html */ toUpdateGuardrail(): this; /** * Grants permission to update a knowledge base * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_UpdateKnowledgeBase.html */ toUpdateKnowledgeBase(): this; /** * Grants permission to update a provisioned model throughput that you created earlier * * Access Level: Write * * https://docs.aws.amazon.com/bedrock/latest/APIReference/API_UpdateProvisionedModelThroughput.html */ toUpdateProvisionedModelThroughput(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type foundation-model to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param resourceId - Identifier for the resourceId. * @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. */ onFoundationModel(resourceId: string, region?: string, partition?: string): this; /** * Adds a resource of type custom-model to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param resourceId - Identifier for the resourceId. * @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() */ onCustomModel(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type provisioned-model to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param resourceId - Identifier for the resourceId. * @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() */ onProvisionedModel(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type model-customization-job to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param resourceId - Identifier for the resourceId. * @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() */ onModelCustomizationJob(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type agent to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param agentId - Identifier for the agentId. * @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() */ onAgent(agentId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type agent-alias to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param agentId - Identifier for the agentId. * @param agentAliasId - Identifier for the agentAliasId. * @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() */ onAgentAlias(agentId: string, agentAliasId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type knowledge-base to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param knowledgeBaseId - Identifier for the knowledgeBaseId. * @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() */ onKnowledgeBase(knowledgeBaseId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type model-evaluation-job to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param resourceId - Identifier for the resourceId. * @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() */ onModelEvaluationJob(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type evaluation-job to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param resourceId - Identifier for the resourceId. * @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() */ onEvaluationJob(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type model-invocation-job to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param jobIdentifier - Identifier for the jobIdentifier. * @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() */ onModelInvocationJob(jobIdentifier: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type guardrail to the statement * * https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html * * @param guardrailId - Identifier for the guardrailId. * @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() */ onGuardrail(guardrailId: string, account?: string, region?: string, partition?: string): this; /** * Filters access by creating requests based on the allowed set of values for each of the mandatory tags * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-globally-available * * Applies to actions: * - .toCreateAgent() * - .toCreateAgentActionGroup() * - .toCreateAgentAlias() * - .toCreateEvaluationJob() * - .toCreateGuardrail() * - .toCreateKnowledgeBase() * - .toCreateModelCustomizationJob() * - .toCreateModelEvaluationJob() * - .toCreateModelInvocationJob() * - .toCreateProvisionedModelThroughput() * - .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 having actions based on the tag value associated with the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-globally-available * * Applies to resource types: * - custom-model * - provisioned-model * - model-customization-job * - agent * - agent-alias * - knowledge-base * - model-evaluation-job * - evaluation-job * - model-invocation-job * - guardrail * * @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 creating requests based on the presence of mandatory tags in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-globally-available * * Applies to actions: * - .toCreateAgent() * - .toCreateAgentActionGroup() * - .toCreateAgentAlias() * - .toCreateEvaluationJob() * - .toCreateGuardrail() * - .toCreateKnowledgeBase() * - .toCreateModelCustomizationJob() * - .toCreateModelEvaluationJob() * - .toCreateModelInvocationJob() * - .toCreateProvisionedModelThroughput() * - .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; /** * Filters access by the secretArn containing the credentials of the third party platform * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-globally-available * * Applies to actions: * - .toAssociateThirdPartyKnowledgeBase() * * @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` */ ifThirdPartyKnowledgeBaseCredentialsSecretArn(value: string | string[], operator?: Operator | string): this; /** * Statement provider for service [bedrock](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html). * */ constructor(props?: iam.PolicyStatementProps); }