View a markdown version of this page

Actions, resources, and condition keys for AWS Context - Service Authorization Reference

Actions, resources, and condition keys for AWS Context

AWS Context (service prefix: context) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by AWS Context

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

AcceptCurationProposal

context:AcceptCurationProposal

Write

AgenticRetrieve

context:AgenticRetrieve

Read

AgenticRetrieveStream

context:AgenticRetrieveStream

Read

AssociateCurationPolicy

context:AssociateCurationPolicy

Write

CancelOntologyInduction

context:CancelOntologyInduction

Write

CancelTask

context:CancelTask

Write

CreateAgentContext

context:CreateAgentContext

Write

context:TagResource

Tagging, Write

CreateChangeSet

context:CreateChangeSet

Write

CreateConnection

context:CreateConnection

Write

context:TagResource

Tagging, Write

CreateCurationPolicy

context:CreateCurationPolicy

Write

context:TagResource

Tagging, Write

CreateCurationPolicyVersion

context:CreateCurationPolicyVersion

Write

CreateOntology

context:CreateOntology

Write

context:TagResource

Tagging, Write

DeleteAgentContext

context:DeleteAgentContext

Write

DeleteConnection

context:DeleteConnection

Write

DeleteCurationPolicy

context:DeleteCurationPolicy

Write

DeleteOntology

context:DeleteOntology

Write

DeleteOntologyInduction

context:DeleteOntologyInduction

Write

DeleteResourcePolicy

context:DeleteResourcePolicy

Permissions management, Write

DisassociateCurationPolicy

context:DisassociateCurationPolicy

Write

ExecuteSql

context:ExecuteSql

Read

GetAgentContext

context:GetAgentContext

Read

GetChangeSet

context:GetChangeSet

Read

GetConnection

context:GetConnection

Read

GetCurationPolicy

context:GetCurationPolicy

Read

GetCurationProposal

context:GetCurationProposal

Read

GetOntology

context:GetOntology

Read

GetOntologyInduction

context:GetOntologyInduction

Read

GetResourcePolicy

context:GetResourcePolicy

Read

GetTask

context:GetTask

Read

ListAgentContexts

context:ListAgentContexts

List

ListChangeSetOperations

context:ListChangeSetOperations

List

ListChangeSets

context:ListChangeSets

List

ListConnections

context:ListConnections

List

ListCurationPolicies

context:ListCurationPolicies

List

ListCurationProposals

context:ListCurationProposals

List

ListOntologies

context:ListOntologies

List

ListOntologyInductions

context:ListOntologyInductions

List

ListTagsForResource

context:ListTagsForResource

Read

ListTasks

context:ListTasks

List

PutResourcePolicy

context:PutResourcePolicy

Permissions management, Write

PutTrace

context:PutTrace

Write

RejectCurationProposal

context:RejectCurationProposal

Write

SearchAgentContext

context:SearchAgentContext

Read

StartTask

context:CreateChangeSet

Write

context:StartTask

Write

TagResource

context:TagResource

Tagging, Write

TraverseAgentContext

context:TraverseAgentContext

Read

UntagResource

context:UntagResource

Tagging, Write

UpdateAgentContext

context:UpdateAgentContext

Write

UpdateChangeSet

context:UpdateChangeSet

Write

UpdateConnection

context:UpdateConnection

Write

UpdateCurationPolicy

context:UpdateCurationPolicy

Write

Actions defined by AWS Context

You can specify the following actions in the Action element of an IAM policy statement. For each action, the table lists the resource types and condition keys supported by that action. Use policies to grant permissions to perform an operation in AWS. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

Actions Description Resource types (*required) Condition keys Access level

AcceptCurationProposal

Grants permission to accept a curation proposal

agent-context*

aws:ResourceTag/${TagKey}

Write

AgenticRetrieve

Grants permission to retrieve ranked context from an agent context for a natural-language question

agent-context*

aws:ResourceTag/${TagKey}

Read

AgenticRetrieveStream

Grants permission to stream an answer to a natural language question from an agent context

agent-context*

aws:ResourceTag/${TagKey}

Read

AssociateCurationPolicy

Grants permission to associate a curation policy with an agent context

agent-context*

aws:ResourceTag/${TagKey}

Write

curation-policy*

aws:ResourceTag/${TagKey}

CancelOntologyInduction

Grants permission to cancel an ontology induction

ontology-induction*

aws:ResourceTag/${TagKey}

Write

CancelTask

Grants permission to cancel a task

task*

aws:ResourceTag/${TagKey}

Write

CreateAgentContext

Grants permission to create an agent context

agent-context*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateChangeSet

Grants permission to create a change set for an agent context

agent-context*

aws:ResourceTag/${TagKey}

Write

CreateConnection

Grants permission to create a connection to a data source

connection*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateCurationPolicy

Grants permission to create a curation policy

curation-policy*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateCurationPolicyVersion

Grants permission to create a version of a curation policy

curation-policy*

aws:ResourceTag/${TagKey}

Write

CreateOntology

Grants permission to create an ontology

ontology*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

DeleteAgentContext

Grants permission to delete an agent context

agent-context*

aws:ResourceTag/${TagKey}

Write

DeleteConnection

Grants permission to delete a connection

connection*

aws:ResourceTag/${TagKey}

Write

DeleteCurationPolicy

Grants permission to delete a curation policy

curation-policy*

aws:ResourceTag/${TagKey}

Write

DeleteOntology

Grants permission to delete an ontology

ontology*

aws:ResourceTag/${TagKey}

Write

DeleteOntologyInduction

Grants permission to delete an ontology induction

ontology-induction*

aws:ResourceTag/${TagKey}

Write

DeleteResourcePolicy

Grants permission to delete the resource-based policy of an agent context

agent-context*

aws:ResourceTag/${TagKey}

Permissions management, Write

DisassociateCurationPolicy

Grants permission to remove a curation policy from an agent context

agent-context*

aws:ResourceTag/${TagKey}

Write

curation-policy*

aws:ResourceTag/${TagKey}

ExecuteSql

Grants permission to run a SQL query over the data in an agent context

agent-context*

aws:ResourceTag/${TagKey}

Read

GetAgentContext

Grants permission to retrieve the configuration and status of an agent context

agent-context*

aws:ResourceTag/${TagKey}

Read

GetChangeSet

Grants permission to retrieve a change set

agent-context*

aws:ResourceTag/${TagKey}

Read

GetConnection

Grants permission to retrieve the configuration and status of a connection

connection*

aws:ResourceTag/${TagKey}

Read

GetCurationPolicy

Grants permission to retrieve a curation policy

curation-policy*

aws:ResourceTag/${TagKey}

Read

GetCurationProposal

Grants permission to retrieve a curation proposal

agent-context*

aws:ResourceTag/${TagKey}

Read

GetOntology

Grants permission to retrieve an ontology

ontology*

aws:ResourceTag/${TagKey}

Read

GetOntologyInduction

Grants permission to retrieve an ontology induction

ontology-induction*

aws:ResourceTag/${TagKey}

Read

GetResourcePolicy

Grants permission to retrieve the resource-based policy of an agent context

agent-context*

aws:ResourceTag/${TagKey}

Read

GetTask

Grants permission to retrieve a task

task*

aws:ResourceTag/${TagKey}

Read

ListAgentContexts

Grants permission to list the agent contexts in your account

List

ListChangeSetOperations

Grants permission to list the operations in a change set of an agent context

agent-context*

aws:ResourceTag/${TagKey}

List

ListChangeSets

Grants permission to list the change sets of an agent context

agent-context*

aws:ResourceTag/${TagKey}

List

ListConnections

Grants permission to list the connections in your account

List

ListCurationPolicies

Grants permission to list the curation policies in your account, or the ones associated with an agent context

agent-context

aws:ResourceTag/${TagKey}

List

ListCurationProposals

Grants permission to list the curation proposals of an agent context

agent-context*

aws:ResourceTag/${TagKey}

List

ListOntologies

Grants permission to list the ontologies in your account

List

ListOntologyInductions

Grants permission to list the ontology inductions in your account

List

ListTagsForResource

Grants permission to list the tags of an AWS Context resource

agent-context

aws:ResourceTag/${TagKey}

Read

connection

aws:ResourceTag/${TagKey}

curation-policy

aws:ResourceTag/${TagKey}

ontology

aws:ResourceTag/${TagKey}

ontology-induction

aws:ResourceTag/${TagKey}

ListTasks

Grants permission to list the tasks of an agent context

agent-context*

aws:ResourceTag/${TagKey}

List

PutResourcePolicy

Grants permission to attach a resource-based policy to an agent context

agent-context*

aws:ResourceTag/${TagKey}

Permissions management, Write

PutTrace

Grants permission to submit an agent trace as feedback to AWS Context

agent-context*

aws:ResourceTag/${TagKey}

Write

RejectCurationProposal

Grants permission to reject a curation proposal

agent-context*

aws:ResourceTag/${TagKey}

Write

SearchAgentContext

Grants permission to search an agent context

agent-context*

aws:ResourceTag/${TagKey}

Read

StartOntologyInduction

Grants permission to start an ontology induction, which creates an ontology

ontology-induction*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

StartTask

Grants permission to start a task on an agent context

agent-context*

aws:ResourceTag/${TagKey}

Write

TagResource

Grants permission to add tags to an AWS Context resource

agent-context

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

connection

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

curation-policy

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ontology

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

ontology-induction

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

TraverseAgentContext

Grants permission to traverse an agent context

agent-context*

aws:ResourceTag/${TagKey}

Read

UntagResource

Grants permission to remove tags from an AWS Context resource

agent-context

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

connection

aws:ResourceTag/${TagKey}

aws:TagKeys

curation-policy

aws:ResourceTag/${TagKey}

aws:TagKeys

ontology

aws:ResourceTag/${TagKey}

aws:TagKeys

ontology-induction

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateAgentContext

Grants permission to update the configuration of an agent context

agent-context*

aws:ResourceTag/${TagKey}

Write

UpdateChangeSet

Grants permission to update a change set of an agent context

agent-context*

aws:ResourceTag/${TagKey}

Write

UpdateConnection

Grants permission to update the configuration of a connection

connection*

aws:ResourceTag/${TagKey}

Write

UpdateCurationPolicy

Grants permission to update a curation policy

curation-policy*

aws:ResourceTag/${TagKey}

Write

Permission-only actions for AWS Context

The following actions are defined by AWS Context but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.

Actions Description Resource types (*required) Condition keys Access level

AllowVendedLogDeliveryForResource

Grants permission to configure vended log delivery for an agent context

agent-context*

aws:ResourceTag/${TagKey}

Permissions management, Write

DeleteEvaluation

Grants permission to delete an evaluation

evaluation*

aws:ResourceTag/${TagKey}

Write

GetAgentContextData

Grants permission to retrieve an overview of the data in an agent context

agent-context*

aws:ResourceTag/${TagKey}

Read

GetAgentContextGraph

Grants permission to retrieve the top nodes of an agent context and the edges between them

agent-context*

aws:ResourceTag/${TagKey}

Read

GetAgentContextStatistics

Grants permission to retrieve the node, edge, and curation proposal counts of an agent context, its ingestion counts, and the backfill status of its connections

agent-context*

aws:ResourceTag/${TagKey}

Read

GetAgentContextTraceStatistics

Grants permission to retrieve the trace analysis statistics of an agent context

agent-context*

aws:ResourceTag/${TagKey}

Read

GetEvaluation

Grants permission to retrieve an evaluation

evaluation*

aws:ResourceTag/${TagKey}

Read

GetSampleAgentContextJob

Grants permission to retrieve the sample agent context job in your account

Read

IngestAgentContext

Grants permission to deliver ingestion payloads to the agent contexts subscribed to a data source

agent-context*

aws:ResourceTag/${TagKey}

context:SourceArn

Write

ListEvaluations

Grants permission to list the evaluations of an agent context

agent-context*

aws:ResourceTag/${TagKey}

List

PassConnection

Grants permission to link a connection to an agent context

connection*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

StartEvaluation

Grants permission to start an evaluation of an agent context

agent-context*

aws:ResourceTag/${TagKey}

Write

StartSampleAgentContextJob

Grants permission to start a job that fills your sample agent context with sample data

Write

UpdateOntology

Grants permission to update an ontology

ontology*

aws:ResourceTag/${TagKey}

Write

Resource types defined by AWS Context

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

agent-context

arn:${Partition}:context:${Region}:${Account}:agent-context/${AgentContextId}

aws:ResourceTag/${TagKey}

connection

arn:${Partition}:context:${Region}:${Account}:connection/${ConnectionId}

aws:ResourceTag/${TagKey}

curation-policy

arn:${Partition}:context:${Region}:${Account}:curation-policy/${CurationPolicyId}

aws:ResourceTag/${TagKey}

evaluation

arn:${Partition}:context:${Region}:${Account}:agent-context/${AgentContextId}/evaluation/${EvaluationId}

aws:ResourceTag/${TagKey}

ontology

arn:${Partition}:context:${Region}:${Account}:ontology/${OntologyId}

aws:ResourceTag/${TagKey}

ontology-induction

arn:${Partition}:context:${Region}:${Account}:ontology-induction/${OntologyInductionId}

aws:ResourceTag/${TagKey}

task

arn:${Partition}:context:${Region}:${Account}:agent-context/${AgentContextId}/task/${TaskId}

aws:ResourceTag/${TagKey}

Condition keys for AWS Context

AWS Context defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

aws:RequestTag/${TagKey}

Filters access by a tag's key and value in a request

String

aws:ResourceTag/${TagKey}

Filters actions based on the presence of tag key-value pairs in the request

String

aws:TagKeys

Filters access by the tag keys in a request

ArrayOfString

context:SourceArn

Filters access by the ARN of the data source that an ingestion payload is delivered from

ARN