iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
1,581 lines • 276 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Bedrock = void 0;
const shared_1 = require("../../shared");
/**
* 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
*/
class Bedrock extends shared_1.PolicyStatement {
/**
* 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
*/
constructor(sid) {
super(sid);
this.servicePrefix = 'bedrock';
this.accessLevelList = {
'Permissions management': [
'AllowVendedLogDeliveryForResource'
],
Read: [
'ApplyGuardrail',
'DetectGeneratedContent',
'GenerateQuery',
'GetAgent',
'GetAgentActionGroup',
'GetAgentAlias',
'GetAgentCollaborator',
'GetAgentKnowledgeBase',
'GetAgentMemory',
'GetAgentVersion',
'GetAsyncInvoke',
'GetBlueprint',
'GetBlueprintRecommendation',
'GetCustomModel',
'GetDataAutomationProject',
'GetDataAutomationStatus',
'GetDataSource',
'GetEvaluationJob',
'GetFlow',
'GetFlowAlias',
'GetFlowVersion',
'GetFoundationModel',
'GetFoundationModelAvailability',
'GetGuardrail',
'GetImportedModel',
'GetInferenceProfile',
'GetIngestionJob',
'GetInvocationStep',
'GetKnowledgeBase',
'GetKnowledgeBaseDocuments',
'GetMarketplaceModelEndpoint',
'GetModelCopyJob',
'GetModelCustomizationJob',
'GetModelEvaluationJob',
'GetModelImportJob',
'GetModelInvocationJob',
'GetModelInvocationLoggingConfiguration',
'GetPrompt',
'GetPromptRouter',
'GetProvisionedModelThroughput',
'GetResourcePolicy',
'GetSession',
'GetUseCaseForModelAccess',
'InvokeAgent',
'InvokeFlow',
'InvokeInlineAgent',
'InvokeModel',
'InvokeModelWithResponseStream',
'ListMarketplaceModelEndpoints',
'ListTagsForResource',
'OptimizePrompt',
'RenderPrompt',
'Retrieve',
'ValidateFlowDefinition'
],
Write: [
'AssociateAgentCollaborator',
'AssociateAgentKnowledgeBase',
'AssociateThirdPartyKnowledgeBase',
'BatchDeleteEvaluationJob',
'CreateAgent',
'CreateAgentActionGroup',
'CreateAgentAlias',
'CreateBlueprint',
'CreateBlueprintVersion',
'CreateDataAutomationProject',
'CreateDataSource',
'CreateEvaluationJob',
'CreateFlow',
'CreateFlowAlias',
'CreateFlowVersion',
'CreateFoundationModelAgreement',
'CreateGuardrail',
'CreateGuardrailVersion',
'CreateInferenceProfile',
'CreateInvocation',
'CreateKnowledgeBase',
'CreateMarketplaceModelEndpoint',
'CreateModelCopyJob',
'CreateModelCustomizationJob',
'CreateModelEvaluationJob',
'CreateModelImportJob',
'CreateModelInvocationJob',
'CreatePrompt',
'CreatePromptRouter',
'CreatePromptVersion',
'CreateProvisionedModelThroughput',
'CreateSession',
'DeleteAgent',
'DeleteAgentActionGroup',
'DeleteAgentAlias',
'DeleteAgentMemory',
'DeleteAgentVersion',
'DeleteBlueprint',
'DeleteCustomModel',
'DeleteDataAutomationProject',
'DeleteDataSource',
'DeleteFlow',
'DeleteFlowAlias',
'DeleteFlowVersion',
'DeleteFoundationModelAgreement',
'DeleteGuardrail',
'DeleteImportedModel',
'DeleteInferenceProfile',
'DeleteKnowledgeBase',
'DeleteKnowledgeBaseDocuments',
'DeleteMarketplaceModelAgreement',
'DeleteMarketplaceModelEndpoint',
'DeleteModelInvocationLoggingConfiguration',
'DeletePrompt',
'DeletePromptRouter',
'DeleteProvisionedModelThroughput',
'DeleteResourcePolicy',
'DeleteSession',
'DeregisterMarketplaceModelEndpoint',
'DisassociateAgentCollaborator',
'DisassociateAgentKnowledgeBase',
'EndSession',
'IngestKnowledgeBaseDocuments',
'InvokeBlueprintRecommendationAsync',
'InvokeBuilder',
'InvokeDataAutomationAsync',
'PrepareAgent',
'PrepareFlow',
'PutFoundationModelEntitlement',
'PutInvocationStep',
'PutModelInvocationLoggingConfiguration',
'PutResourcePolicy',
'PutUseCaseForModelAccess',
'RegisterMarketplaceModelEndpoint',
'Rerank',
'RetrieveAndGenerate',
'StartIngestionJob',
'StopEvaluationJob',
'StopIngestionJob',
'StopModelCustomizationJob',
'StopModelInvocationJob',
'UpdateAgent',
'UpdateAgentActionGroup',
'UpdateAgentAlias',
'UpdateAgentCollaborator',
'UpdateAgentKnowledgeBase',
'UpdateBlueprint',
'UpdateDataAutomationProject',
'UpdateDataSource',
'UpdateFlow',
'UpdateFlowAlias',
'UpdateGuardrail',
'UpdateKnowledgeBase',
'UpdateMarketplaceModelEndpoint',
'UpdatePrompt',
'UpdateProvisionedModelThroughput',
'UpdateSession'
],
List: [
'ListAgentActionGroups',
'ListAgentAliases',
'ListAgentCollaborators',
'ListAgentKnowledgeBases',
'ListAgentVersions',
'ListAgents',
'ListAsyncInvokes',
'ListBlueprints',
'ListCustomModels',
'ListDataAutomationProjects',
'ListDataSources',
'ListEvaluationJobs',
'ListFlowAliases',
'ListFlowVersions',
'ListFlows',
'ListFoundationModelAgreementOffers',
'ListFoundationModels',
'ListGuardrails',
'ListImportedModels',
'ListInferenceProfiles',
'ListIngestionJobs',
'ListInvocationSteps',
'ListInvocations',
'ListKnowledgeBaseDocuments',
'ListKnowledgeBases',
'ListModelCopyJobs',
'ListModelCustomizationJobs',
'ListModelEvaluationJobs',
'ListModelImportJobs',
'ListModelInvocationJobs',
'ListPromptRouters',
'ListPrompts',
'ListProvisionedModelThroughputs',
'ListSessions'
],
Tagging: [
'TagResource',
'UntagResource'
]
};
}
/**
* Grants permission to configure vended log delivery for a knowledge base
*
* Access Level: Permissions management
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toAllowVendedLogDeliveryForResource() {
return this.to('AllowVendedLogDeliveryForResource');
}
/**
* Grants permission to apply a guardrail
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toApplyGuardrail() {
return this.to('ApplyGuardrail');
}
/**
* Grants permission to associate another existing agent as a collaborator to an existing agent
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_AssociateAgentCollaborator.html
*/
toAssociateAgentCollaborator() {
return this.to('AssociateAgentCollaborator');
}
/**
* 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() {
return this.to('AssociateAgentKnowledgeBase');
}
/**
* 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() {
return this.to('AssociateThirdPartyKnowledgeBase');
}
/**
* Grants permission to batch delete list of bedrock evaluation jobs
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_BatchDeleteEvaluationJob.html
*/
toBatchDeleteEvaluationJob() {
return this.to('BatchDeleteEvaluationJob');
}
/**
* 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() {
return this.to('CreateAgent');
}
/**
* 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() {
return this.to('CreateAgentActionGroup');
}
/**
* 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() {
return this.to('CreateAgentAlias');
}
/**
* Grants permission to create a blueprint for custom output from data automation
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation_CreateBlueprint.html
*/
toCreateBlueprint() {
return this.to('CreateBlueprint');
}
/**
* Grants permission to create a new version for an existing blueprint
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation_CreateBlueprintVersion.html
*/
toCreateBlueprintVersion() {
return this.to('CreateBlueprintVersion');
}
/**
* Grants permission to create a data automation project
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation_CreateDataAutomationProject.html
*/
toCreateDataAutomationProject() {
return this.to('CreateDataAutomationProject');
}
/**
* Grants permission to create a data source
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateDataSource.html
*/
toCreateDataSource() {
return this.to('CreateDataSource');
}
/**
* 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() {
return this.to('CreateEvaluationJob');
}
/**
* Grants permission to create a prompt flow
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateFlow.html
*/
toCreateFlow() {
return this.to('CreateFlow');
}
/**
* Grants permission to create an alias of a prompt flow
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateFlowAlias.html
*/
toCreateFlowAlias() {
return this.to('CreateFlowAlias');
}
/**
* Grants permission to create an immutable version of a prompt flow
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreateFlowVersion.html
*/
toCreateFlowVersion() {
return this.to('CreateFlowVersion');
}
/**
* 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() {
return this.to('CreateFoundationModelAgreement');
}
/**
* 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() {
return this.to('CreateGuardrail');
}
/**
* Grants permission to create a new guardrail version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toCreateGuardrailVersion() {
return this.to('CreateGuardrailVersion');
}
/**
* Grants permission to create inference profiles
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateInferenceProfile.html
*/
toCreateInferenceProfile() {
return this.to('CreateInferenceProfile');
}
/**
* Grants permission to create a new invocation in an existing session
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_CreateInvocation.html
*/
toCreateInvocation() {
return this.to('CreateInvocation');
}
/**
* 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() {
return this.to('CreateKnowledgeBase');
}
/**
* Grants permission to create a marketplace model endpoint
*
* Access Level: Write
*/
toCreateMarketplaceModelEndpoint() {
return this.to('CreateMarketplaceModelEndpoint');
}
/**
* Grants permission to create a job for copying a custom model across region or across account
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelCopyJob.html
*/
toCreateModelCopyJob() {
return this.to('CreateModelCopyJob');
}
/**
* 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() {
return this.to('CreateModelCustomizationJob');
}
/**
* 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() {
return this.to('CreateModelEvaluationJob');
}
/**
* Grants permission to create a job for importing model into Bedrock
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
*/
toCreateModelImportJob() {
return this.to('CreateModelImportJob');
}
/**
* 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() {
return this.to('CreateModelInvocationJob');
}
/**
* Grants permission to create a prompt
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreatePrompt.html
*/
toCreatePrompt() {
return this.to('CreatePrompt');
}
/**
* Grants permission to create a custom prompt router
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreatePromptRouter.html
*/
toCreatePromptRouter() {
return this.to('CreatePromptRouter');
}
/**
* Grants permission to create a version of a prompt
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_CreatePromptVersion.html
*/
toCreatePromptVersion() {
return this.to('CreatePromptVersion');
}
/**
* 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() {
return this.to('CreateProvisionedModelThroughput');
}
/**
* Grants permission to create a new session
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_CreateSession.html
*/
toCreateSession() {
return this.to('CreateSession');
}
/**
* 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() {
return this.to('DeleteAgent');
}
/**
* 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() {
return this.to('DeleteAgentActionGroup');
}
/**
* 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() {
return this.to('DeleteAgentAlias');
}
/**
* Grants permission to delete existing memory for an alias
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_DeleteAgentMemory.html
*/
toDeleteAgentMemory() {
return this.to('DeleteAgentMemory');
}
/**
* 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() {
return this.to('DeleteAgentVersion');
}
/**
* Grants permission to delete a blueprint for data automation
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation_DeleteBlueprint.html
*/
toDeleteBlueprint() {
return this.to('DeleteBlueprint');
}
/**
* 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() {
return this.to('DeleteCustomModel');
}
/**
* Grants permission to delete a data automation project
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation_DeleteDataAutomationProject.html
*/
toDeleteDataAutomationProject() {
return this.to('DeleteDataAutomationProject');
}
/**
* Grants permission to delete a data source
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteDataSource.html
*/
toDeleteDataSource() {
return this.to('DeleteDataSource');
}
/**
* Grants permission to delete a prompt flow
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteFlow.html
*/
toDeleteFlow() {
return this.to('DeleteFlow');
}
/**
* Grants permission to delete an alias of a prompt flow
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteFlowAlias.html
*/
toDeleteFlowAlias() {
return this.to('DeleteFlowAlias');
}
/**
* Grants permission to delete a version of a prompt flow
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteFlowVersion.html
*/
toDeleteFlowVersion() {
return this.to('DeleteFlowVersion');
}
/**
* 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() {
return this.to('DeleteFoundationModelAgreement');
}
/**
* Grants permission to delete a guardrail or its version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toDeleteGuardrail() {
return this.to('DeleteGuardrail');
}
/**
* Grants permission to delete previously created Bedrock imported model
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteImportedModel.html
*/
toDeleteImportedModel() {
return this.to('DeleteImportedModel');
}
/**
* Grants permission to delete inference profiles
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteInferenceProfile.html
*/
toDeleteInferenceProfile() {
return this.to('DeleteInferenceProfile');
}
/**
* Grants permission to delete a knowledge base
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteKnowledgeBase.html
*/
toDeleteKnowledgeBase() {
return this.to('DeleteKnowledgeBase');
}
/**
* Grants permission to delete documents from a knowledge base
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeleteKnowledgeBaseDocuments.html
*/
toDeleteKnowledgeBaseDocuments() {
return this.to('DeleteKnowledgeBaseDocuments');
}
/**
* Grants permission to unsubscribe from a bedrock marketplace enabled AWS marketplace model
*
* Access Level: Write
*
* https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbedrock.html
*/
toDeleteMarketplaceModelAgreement() {
return this.to('DeleteMarketplaceModelAgreement');
}
/**
* Grants permission to delete a marketplace model endpoint
*
* Access Level: Write
*/
toDeleteMarketplaceModelEndpoint() {
return this.to('DeleteMarketplaceModelEndpoint');
}
/**
* Grants permission to delete an existing Invocation logging configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteModelInvocationLoggingConfiguration.html
*/
toDeleteModelInvocationLoggingConfiguration() {
return this.to('DeleteModelInvocationLoggingConfiguration');
}
/**
* Grants permission to delete a prompt or its version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DeletePrompt.html
*/
toDeletePrompt() {
return this.to('DeletePrompt');
}
/**
* Grants permission to delete a custom prompt router
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeletePromptRouter.html
*/
toDeletePromptRouter() {
return this.to('DeletePromptRouter');
}
/**
* 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() {
return this.to('DeleteProvisionedModelThroughput');
}
/**
* Deletes a previously created Bedrock resource policy
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteResourcePolicy.html
*/
toDeleteResourcePolicy() {
return this.to('DeleteResourcePolicy');
}
/**
* Grants permission to delete a Session that you created earlier
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_DeleteSession.html
*/
toDeleteSession() {
return this.to('DeleteSession');
}
/**
* Grants permission to deregister a marketplace model endpoint to make it unusable in Bedrock Marketplace
*
* Access Level: Write
*/
toDeregisterMarketplaceModelEndpoint() {
return this.to('DeregisterMarketplaceModelEndpoint');
}
/**
* 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() {
return this.to('DetectGeneratedContent');
}
/**
* Grants permission to diassociate a collaborator that you associated earlier
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_DisassociateAgentCollaborator.html
*/
toDisassociateAgentCollaborator() {
return this.to('DisassociateAgentCollaborator');
}
/**
* 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() {
return this.to('DisassociateAgentKnowledgeBase');
}
/**
* Grants permission to end a Session that you created earlier
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_EndSession.html
*/
toEndSession() {
return this.to('EndSession');
}
/**
* Grants permission to generate queries associated with user input
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGenerateQuery() {
return this.to('GenerateQuery');
}
/**
* Grants permission to retrieve an existing agent
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgent.html
*/
toGetAgent() {
return this.to('GetAgent');
}
/**
* Grants permission to retrieve an existing action group
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentActionGroup.html
*/
toGetAgentActionGroup() {
return this.to('GetAgentActionGroup');
}
/**
* Grants permission to retrieve an existing alias
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentAlias.html
*/
toGetAgentAlias() {
return this.to('GetAgentAlias');
}
/**
* Grants permission to retrieve an existing collaborator
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetAgentCollaborator.html
*/
toGetAgentCollaborator() {
return this.to('GetAgentCollaborator');
}
/**
* 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() {
return this.to('GetAgentKnowledgeBase');
}
/**
* Grants permission to retrieve existing memory for an alias
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetAgentMemory.html
*/
toGetAgentMemory() {
return this.to('GetAgentMemory');
}
/**
* 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() {
return this.to('GetAgentVersion');
}
/**
* Grants permission to get the properties associated with an asynchronous invocation that you have submitted
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetAsyncInvoke.html
*/
toGetAsyncInvoke() {
return this.to('GetAsyncInvoke');
}
/**
* Grants permission to retrieve an existing blueprint for data automation
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation_GetBlueprint.html
*/
toGetBlueprint() {
return this.to('GetBlueprint');
}
/**
* Grants permission to retrieve blueprint recommendation
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGetBlueprintRecommendation() {
return this.to('GetBlueprintRecommendation');
}
/**
* 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() {
return this.to('GetCustomModel');
}
/**
* Grants permission to retrieve an existing data automation project
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation_GetDataAutomationProject.html
*/
toGetDataAutomationProject() {
return this.to('GetDataAutomationProject');
}
/**
* Grants permission to retrieve the status of a data automation invocation job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation-runtime_GetDataAutomationStatus.html
*/
toGetDataAutomationStatus() {
return this.to('GetDataAutomationStatus');
}
/**
* Grants permission to retrieve an existing data source
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetDataSource.html
*/
toGetDataSource() {
return this.to('GetDataSource');
}
/**
* 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() {
return this.to('GetEvaluationJob');
}
/**
* Grants permission to retrieve an existing prompt flow
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlow.html
*/
toGetFlow() {
return this.to('GetFlow');
}
/**
* Grants permission to retrieve an existing alias of a prompt flow
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlowAlias.html
*/
toGetFlowAlias() {
return this.to('GetFlowAlias');
}
/**
* Grants permission to retrieve an existing version of a prompt flow
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlowVersion.html
*/
toGetFlowVersion() {
return this.to('GetFlowVersion');
}
/**
* 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() {
return this.to('GetFoundationModel');
}
/**
* 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() {
return this.to('GetFoundationModelAvailability');
}
/**
* Grants permission to retrieve a guardrail or its version
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGetGuardrail() {
return this.to('GetGuardrail');
}
/**
* Grants permission to get the properties associated with Bedrock imported model
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetImportedModel.html
*/
toGetImportedModel() {
return this.to('GetImportedModel');
}
/**
* Grants permission to get the properties associated with an inference profile
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetInferenceProfile.html
*/
toGetInferenceProfile() {
return this.to('GetInferenceProfile');
}
/**
* Grants permission to retrieve an existing ingestion job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetIngestionJob.html
*/
toGetIngestionJob() {
return this.to('GetIngestionJob');
}
/**
* Grants permission to get an invocation step from a session
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetInvocationStep.html
*/
toGetInvocationStep() {
return this.to('GetInvocationStep');
}
/**
* Grants permission to retrieve an existing knowledge base
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetKnowledgeBase.html
*/
toGetKnowledgeBase() {
return this.to('GetKnowledgeBase');
}
/**
* Grants permission to get details for documents in a knowledge base
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetKnowledgeBaseDocuments.html
*/
toGetKnowledgeBaseDocuments() {
return this.to('GetKnowledgeBaseDocuments');
}
/**
* Grants permission to get the properties of a marketplace model endpoint
*
* Access Level: Read
*/
toGetMarketplaceModelEndpoint() {
return this.to('GetMarketplaceModelEndpoint');
}
/**
* Grants permission to get the properties associated with a model-copy job. Use this operation to get the status of a model-copy job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelCopyJob.html
*/
toGetModelCopyJob() {
return this.to('GetModelCopyJob');
}
/**
* 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() {
return this.to('GetModelCustomizationJob');
}
/**
* 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() {
return this.to('GetModelEvaluationJob');
}
/**
* Grants permission to get the properties associated with a model import job and is used to get the status of a model import job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelImportJob.html
*/
toGetModelImportJob() {
return this.to('GetModelImportJob');
}
/**
* Grants permission to retrieve a model invocation job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelInvocationJob.html
*/
toGetModelInvocationJob() {
return this.to('GetModelInvocationJob');
}
/**
* Grants permission to retrieve an existing Invocation logging configuration
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetModelInvocationLoggingConfiguration.html
*/
toGetModelInvocationLoggingConfiguration() {
return this.to('GetModelInvocationLoggingConfiguration');
}
/**
* Grants permission to retrieve an existing prompt or its version
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetPrompt.html
*/
toGetPrompt() {
return this.to('GetPrompt');
}
/**
* Grants permission to get the properties associated with a prompt router
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetPromptRouter.html
*/
toGetPromptRouter() {
return this.to('GetPromptRouter');
}
/**
* Grants permission to retrieve a provisioned model throughput
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetProvisionedModelThroughput.html
*/
toGetProvisionedModelThroughput() {
return this.to('GetProvisionedModelThroughput');
}
/**
* Gets the resource policy document for a Bedrock resource
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetResourePolicy.html
*/
toGetResourcePolicy() {
return this.to('GetResourcePolicy');
}
/**
* Grants permission to retrieve an existing session
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html
*/
toGetSession() {
return this.to('GetSession');
}
/**
* 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() {
return this.to('GetUseCaseForModelAccess');
}
/**
* Grants permission to directly ingest documents into a knowledge base
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_IngestKnowledgeBaseDocuments.html
*/
toIngestKnowledgeBaseDocuments() {
return this.to('IngestKnowledgeBaseDocuments');
}
/**
* 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() {
return this.to('InvokeAgent');
}
/**
* Grants permission to invoke blueprint recommendations asynchronously
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toInvokeBlueprintRecommendationAsync() {
return this.to('InvokeBlueprintRecommendationAsync');
}
/**
* Grants permission to use the conversational builder which aids in building supported bedrock resources
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/userguide/agents-create-cb.html
*/
toInvokeBuilder() {
return this.to('InvokeBuilder');
}
/**
* Grants permission to invoke a Bedrock data automation job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation-runtime_InvokeDataAutomationAsync.html
*/
toInvokeDataAutomationAsync() {
return this.to('InvokeDataAutomationAsync');
}
/**
* Grants permission to invoke a prompt flow with user input
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html
*/
toInvokeFlow() {
return this.to('InvokeFlow');
}
/**
* Grants permission to send user input (text-only) to the inline agent for Bedrock
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeInlineAgent.html
*/
toInvokeInlineAgent() {
return this.to('InvokeInlineAgent');
}
/**
* Grants permission to invoke the specified Bedrock model to run inference using the input provided in the request body
*
* Access Level: Read
*
* Possible conditions:
* - .ifInferenceProfileArn()
* - .ifPromptRouterArn()
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
* - .ifGuardrailIdentifier()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html
*/
toInvokeModel() {
return this.to('InvokeModel');
}
/**
* 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
*
* Possible conditions:
* - .ifInferenceProfileArn()
* - .ifPromptRouterArn()
* - .ifGuardrailIdentifier()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html
*/
toInvokeModelWithResponseStream() {
return this.to('InvokeModelWithResponseStream');
}
/**
* 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() {
return this.to('ListAgentActionGroups');
}
/**
* Grants permission to list aliases for an agent
*
* Access Level: List
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListAgentAliases.html
*/
toListAgentAliases() {
return this.to('ListAgentAliases');
}
/**
* Grants permission to list collaborators for an agent
*
* Access Level: List
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListAgentCollaborators.html
*/
toListAgentCollaborators() {
return this.to('ListAgentCollaborators');
}
/**
* 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() {
return this.to('ListAgentKnowledgeBases');
}
/**
* 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() {
return this.to('ListAgentVersions');
}
/**
* Grants permission to list existing agents
*
* Access Level: List
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListAgents.html
*/
toListAgents() {
return this.to('ListAgents');
}
/**
* Grants permission to get a list of asynchronous invocations that you have submitted
*
* Access Level: List
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListAsyncInvokes.html
*/
toListAsyncInvokes() {
return this.to('ListAsyncInvokes');
}
/**
* Grants permission to list existing blueprints for data automation
*
* Access Level: List
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation_ListBlueprints.html
*/
toListBlueprints() {
return this.to('ListBlueprints');
}
/**
* 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() {
return this.to('ListCustomModels');
}
/**
* Grants permission to list existing data automation projects
*
* Access Level: List
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_data-automation_ListDataAutomationProjects.html
*/
toListDataAutomationProjects() {
return this.to('ListDataAutomationProjects');
}
/**
* 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() {
return this.to('ListDataSources');
}
/**
* 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() {
return this.to('ListEvaluationJobs');
}
/**
* Grants permission to list existing aliases of a prompt flow
*
* Access Level: List
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListFlowAliases.html
*/
toListFlowAliases() {
return this.to('ListFlowA