iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
1,550 lines • 347 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',
'CallWithBearerToken',
'CountTokens',
'DetectGeneratedContent',
'ExportAutomatedReasoningPolicyVersion',
'GenerateQuery',
'GetAgent',
'GetAgentActionGroup',
'GetAgentAlias',
'GetAgentCollaborator',
'GetAgentKnowledgeBase',
'GetAgentMemory',
'GetAgentVersion',
'GetAsyncInvoke',
'GetAutomatedReasoningPolicy',
'GetAutomatedReasoningPolicyAnnotations',
'GetAutomatedReasoningPolicyBuildWorkflow',
'GetAutomatedReasoningPolicyBuildWorkflowResultAssets',
'GetAutomatedReasoningPolicyNextScenario',
'GetAutomatedReasoningPolicyTestCase',
'GetAutomatedReasoningPolicyTestResult',
'GetBlueprint',
'GetBlueprintRecommendation',
'GetCustomModel',
'GetCustomModelDeployment',
'GetDataAutomationProject',
'GetDataAutomationStatus',
'GetDataSource',
'GetEvaluationJob',
'GetExecutionFlowSnapshot',
'GetFlow',
'GetFlowAlias',
'GetFlowExecution',
'GetFlowVersion',
'GetFoundationModel',
'GetFoundationModelAvailability',
'GetGuardrail',
'GetImportedModel',
'GetInferenceProfile',
'GetIngestionJob',
'GetInvocationStep',
'GetKnowledgeBase',
'GetKnowledgeBaseDocuments',
'GetMarketplaceModelEndpoint',
'GetModelCopyJob',
'GetModelCustomizationJob',
'GetModelEvaluationJob',
'GetModelImportJob',
'GetModelInvocationJob',
'GetModelInvocationLoggingConfiguration',
'GetPrompt',
'GetPromptRouter',
'GetProvisionedModelThroughput',
'GetResourcePolicy',
'GetSession',
'GetUseCaseForModelAccess',
'InvokeAgent',
'InvokeAutomatedReasoningPolicy',
'InvokeFlow',
'InvokeInlineAgent',
'InvokeModel',
'InvokeModelWithResponseStream',
'InvokeTool',
'ListMarketplaceModelEndpoints',
'ListTagsForResource',
'OptimizePrompt',
'RenderPrompt',
'Retrieve',
'ValidateFlowDefinition'
],
Write: [
'AssociateAgentCollaborator',
'AssociateAgentKnowledgeBase',
'AssociateThirdPartyKnowledgeBase',
'BatchDeleteEvaluationJob',
'CancelAutomatedReasoningPolicyBuildWorkflow',
'CreateAgent',
'CreateAgentActionGroup',
'CreateAgentAlias',
'CreateAutomatedReasoningPolicy',
'CreateAutomatedReasoningPolicyTestCase',
'CreateAutomatedReasoningPolicyVersion',
'CreateBlueprint',
'CreateBlueprintVersion',
'CreateCustomModel',
'CreateCustomModelDeployment',
'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',
'DeleteAutomatedReasoningPolicy',
'DeleteAutomatedReasoningPolicyBuildWorkflow',
'DeleteAutomatedReasoningPolicyTestCase',
'DeleteBlueprint',
'DeleteCustomModel',
'DeleteCustomModelDeployment',
'DeleteDataAutomationProject',
'DeleteDataSource',
'DeleteEnforcedGuardrailConfiguration',
'DeleteFlow',
'DeleteFlowAlias',
'DeleteFlowVersion',
'DeleteFoundationModelAgreement',
'DeleteGuardrail',
'DeleteImportedModel',
'DeleteInferenceProfile',
'DeleteKnowledgeBase',
'DeleteKnowledgeBaseDocuments',
'DeleteMarketplaceModelAgreement',
'DeleteMarketplaceModelEndpoint',
'DeleteModelInvocationLoggingConfiguration',
'DeletePrompt',
'DeletePromptRouter',
'DeleteProvisionedModelThroughput',
'DeleteResourcePolicy',
'DeleteSession',
'DeregisterMarketplaceModelEndpoint',
'DisassociateAgentCollaborator',
'DisassociateAgentKnowledgeBase',
'EndSession',
'IngestKnowledgeBaseDocuments',
'InvokeBlueprintRecommendationAsync',
'InvokeBuilder',
'InvokeDataAutomation',
'InvokeDataAutomationAsync',
'PrepareAgent',
'PrepareFlow',
'PutEnforcedGuardrailConfiguration',
'PutFoundationModelEntitlement',
'PutInvocationStep',
'PutModelInvocationLoggingConfiguration',
'PutResourcePolicy',
'PutUseCaseForModelAccess',
'RegisterMarketplaceModelEndpoint',
'Rerank',
'RetrieveAndGenerate',
'StartAutomatedReasoningPolicyBuildWorkflow',
'StartAutomatedReasoningPolicyTestWorkflow',
'StartFlowExecution',
'StartIngestionJob',
'StopEvaluationJob',
'StopFlowExecution',
'StopIngestionJob',
'StopModelCustomizationJob',
'StopModelInvocationJob',
'UpdateAgent',
'UpdateAgentActionGroup',
'UpdateAgentAlias',
'UpdateAgentCollaborator',
'UpdateAgentKnowledgeBase',
'UpdateAutomatedReasoningPolicy',
'UpdateAutomatedReasoningPolicyAnnotations',
'UpdateAutomatedReasoningPolicyTestCase',
'UpdateBlueprint',
'UpdateCustomModelDeployment',
'UpdateDataAutomationProject',
'UpdateDataSource',
'UpdateFlow',
'UpdateFlowAlias',
'UpdateGuardrail',
'UpdateKnowledgeBase',
'UpdateMarketplaceModelEndpoint',
'UpdatePrompt',
'UpdateProvisionedModelThroughput',
'UpdateSession'
],
List: [
'ListAgentActionGroups',
'ListAgentAliases',
'ListAgentCollaborators',
'ListAgentKnowledgeBases',
'ListAgentVersions',
'ListAgents',
'ListAsyncInvokes',
'ListAutomatedReasoningPolicies',
'ListAutomatedReasoningPolicyBuildWorkflows',
'ListAutomatedReasoningPolicyTestCases',
'ListAutomatedReasoningPolicyTestResults',
'ListBlueprints',
'ListCustomModelDeployments',
'ListCustomModels',
'ListDataAutomationProjects',
'ListDataSources',
'ListEnforcedGuardrailsConfiguration',
'ListEvaluationJobs',
'ListFlowAliases',
'ListFlowExecutionEvents',
'ListFlowExecutions',
'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 use bearer token
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toCallWithBearerToken() {
return this.to('CallWithBearerToken');
}
/**
* Grants permission to cancel a build workflow for an automated reasoning policy
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toCancelAutomatedReasoningPolicyBuildWorkflow() {
return this.to('CancelAutomatedReasoningPolicyBuildWorkflow');
}
/**
* Grants permission to count the number of tokens in an input prompt
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_CountTokens.html
*/
toCountTokens() {
return this.to('CountTokens');
}
/**
* 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 new automated reasoning policy
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
* - .ifBearerTokenType()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toCreateAutomatedReasoningPolicy() {
return this.to('CreateAutomatedReasoningPolicy');
}
/**
* Grants permission to create a test case for an automated reasoning policy
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toCreateAutomatedReasoningPolicyTestCase() {
return this.to('CreateAutomatedReasoningPolicyTestCase');
}
/**
* Grants permission to create a new automated reasoning policy version
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
* - .ifBearerTokenType()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toCreateAutomatedReasoningPolicyVersion() {
return this.to('CreateAutomatedReasoningPolicyVersion');
}
/**
* Grants permission to create a blueprint for custom output from data automation
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* 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 custom model into Bedrock
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
* - .ifBearerTokenType()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModel.html
*/
toCreateCustomModel() {
return this.to('CreateCustomModel');
}
/**
* Grants permission to create a custom model deployment for custom model
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
* - .ifBearerTokenType()
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html
*/
toCreateCustomModelDeployment() {
return this.to('CreateCustomModelDeployment');
}
/**
* Grants permission to create a data automation project
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* 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()
* - .ifBearerTokenType()
*
* 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()
* - .ifBearerTokenType()
*
* 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()
* - .ifBearerTokenType()
*
* 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()
* - .ifBearerTokenType()
*
* 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()
* - .ifBearerTokenType()
*
* 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()
* - .ifBearerTokenType()
*
* 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()
* - .ifBearerTokenType()
*
* 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()
* - .ifBearerTokenType()
*
* 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()
* - .ifBearerTokenType()
*
* 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 an automated reasoning policy or its version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toDeleteAutomatedReasoningPolicy() {
return this.to('DeleteAutomatedReasoningPolicy');
}
/**
* Grants permission to delete a build workflow for an automated reasoning policy
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toDeleteAutomatedReasoningPolicyBuildWorkflow() {
return this.to('DeleteAutomatedReasoningPolicyBuildWorkflow');
}
/**
* Grants permission to delete a test case for an automated reasoning policy
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toDeleteAutomatedReasoningPolicyTestCase() {
return this.to('DeleteAutomatedReasoningPolicyTestCase');
}
/**
* 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 custom model deployment that you created earlier
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html
*/
toDeleteCustomModelDeployment() {
return this.to('DeleteCustomModelDeployment');
}
/**
* 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 account-level enforced guardrail configuration
*
* Access Level: Write
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteEnforcedGuardrailConfiguration.html
*/
toDeleteEnforcedGuardrailConfiguration() {
return this.to('DeleteEnforcedGuardrailConfiguration');
}
/**
* 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 retrieve an automated reasoning policy version artifact
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toExportAutomatedReasoningPolicyVersion() {
return this.to('ExportAutomatedReasoningPolicyVersion');
}
/**
* 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 automated reasoning policy or its version
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGetAutomatedReasoningPolicy() {
return this.to('GetAutomatedReasoningPolicy');
}
/**
* Grants permission to retrieve annotations for a build workflow for an automated reasoning policy
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGetAutomatedReasoningPolicyAnnotations() {
return this.to('GetAutomatedReasoningPolicyAnnotations');
}
/**
* Grants permission to retrieve a build workflow for an automated reasoning policy
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGetAutomatedReasoningPolicyBuildWorkflow() {
return this.to('GetAutomatedReasoningPolicyBuildWorkflow');
}
/**
* Grants permission to retrieve assets for a build workflow for an automated reasoning policy
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGetAutomatedReasoningPolicyBuildWorkflowResultAssets() {
return this.to('GetAutomatedReasoningPolicyBuildWorkflowResultAssets');
}
/**
* Grants permission to retrieve the next unreviewed generated scenario for a build workflow for an automated reasoning policy
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGetAutomatedReasoningPolicyNextScenario() {
return this.to('GetAutomatedReasoningPolicyNextScenario');
}
/**
* Grants permission to retrieve a test case for an automated reasoning policy
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGetAutomatedReasoningPolicyTestCase() {
return this.to('GetAutomatedReasoningPolicyTestCase');
}
/**
* Grants permission to retrieve result for a test case for an automated reasoning policy
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html
*/
toGetAutomatedReasoningPolicyTestResult() {
return this.to('GetAutomatedReasoningPolicyTestResult');
}
/**
* 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 get the properties associated with a custom model deployment. Use this operation to get the status of a custom model deployment
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html
*/
toGetCustomModelDeployment() {
return this.to('GetCustomModelDeployment');
}
/**
* 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 the flow definition for a flow execution
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetExecutionFlowSnapshot.html
*/
toGetExecutionFlowSnapshot() {
return this.to('GetExecutionFlowSnapshot');
}
/**
* 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 execution of a flow alias
*
* Access Level: Read
*
* https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetFlowExecution.html
*/
toGetFlowExecution() {
return this.to('GetFlowExecution');
}
/**
* 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('GetMarketplaceModelEndpoi