pub struct Client { /* private fields */ }Expand description
Client for AWS Context
Client for invoking operations on AWS Context. Each operation on AWS Context is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_context::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Builder struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_context::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the AcceptCurationProposal operation has
a Client::accept_curation_proposal, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.accept_curation_proposal()
.curation_proposal_id("example")
.send()
.await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
Implementations§
Source§impl Client
impl Client
Sourcepub fn accept_curation_proposal(&self) -> AcceptCurationProposalFluentBuilder
pub fn accept_curation_proposal(&self) -> AcceptCurationProposalFluentBuilder
Constructs a fluent builder for the AcceptCurationProposal operation.
- The fluent builder is configurable:
curation_proposal_id(impl Into<String>)/set_curation_proposal_id(Option<String>):
required: trueThe ID of the proposal to accept.
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context that the proposal belongs to, by its ID or ARN. If the proposal belongs to another agent context, the request fails with
ResourceNotFoundException.revision_id(impl Into<String>)/set_revision_id(Option<String>):
required: trueThe revisionId the curator observed. A mismatch means a stale view.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier that you provide to make the request idempotent. For 8 hours, a retry with the same token returns the proposal’s current state, and the same token used with another proposal returns a
ValidationException.
- On success, responds with
AcceptCurationProposalOutputwith field(s):change_set_id(String):The change set this proposal reviews. UpdateChangeSet edits that change set in place, so this ID never changes.
title(Option<String>):A one-line English title that AWS Context composes for the proposal, at most 1,024 characters. For example,
Add ‘orders’ and 2 more entities, and 20 relationships,Add ‘orders → customers’ and 2 more relationships, orAssociate ontology ‘my-ontology’ version 2. The title names the lead node (the node that starts the most edges, otherwise the first node) by its name, or by its ID if it has no name. For an edge-only change, it names the lead relationship’s two node IDs. For an ontology load, it names the ontology ID and version. The title is for display only. It is not translated and is not meant to be parsed.For an
ACL_RESTRICTEDchange set (seeaccessControl), the title contains only the verb and the counts, with no node, edge, type, or ontology. The title is absent when the change set is unreadable or has nothing to describe, such as a change set that records a connection’s removal. A node name or ID, ontology ID, or ontology version longer than 128 characters is truncated to 128 characters, ending in….generated_by(Option<Activity>):The activity that generated the change set (see
Activity). This member can be absent, so handle a proposal that has no activity. For example, it’s absent when the change set is unreadable, when AWS Context wrote the change set to load an ontology’s schema, when the change set records a connection’s removal, and when this API version doesn’t recognize the activity.revision_id(String):An opaque revision token. Pass it back as
revisionIdwhen you accept or reject the proposal.status(CurationProposalStatus):The status of the curation proposal, such as
PENDING_REVIEWwhile it waits for a decision,APPROVEDorREJECTEDonce it is decided, orARCHIVEDwhen the connection that produced it was removed from the agent context. New values can be added, so handle a status that you don’t recognize.Valid values:
-
PENDING_REVIEW- Waiting for a curator’s decision. The only status Accept and Reject act on. -
APPROVED- A curator accepted it. Its change set is published or publishing. -
REJECTED- Closed without applying its change set: a curator rejected it, or the service did when a holding policy’s review window passed with no decision (statusReasonCodeREQUEST_EXPIRED). -
SUPERSEDED- A newer proposal for the same document replaced it. -
FAILED- The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again. -
PUBLISHING- Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED. -
ARCHIVED- The connection that produced it was removed from the agent context.statusReason.codeis CONNECTION_REMOVED.
-
status_reason_code(Option<StatusReasonCode>):Why the service decided the proposal, when it did: REQUEST_EXPIRED when a holding policy’s auto-reject window passed with no decision. Absent when a curator decided it.
Valid values:
-
REQUEST_EXPIRED- The auto-reject window of a policy that held the proposal passed with no decision, so the service rejected it. -
CONNECTION_REMOVED- The connection was removed from the agent context. AWS Context removes the data that only that connection produced, and archives the connection’s pending proposals.
-
access_control(Option<AccessControl>):Who can read the authorizing change set’s content. See
AccessControl. If the value isACL_RESTRICTED,ListChangeSetOperationsonchangeSetIdreturns the operations only to an allowed end user. Any other caller getsAccessDeniedException, andGetChangeSetreturns only metadata, and the proposal’s title has no node names or edge endpoints. The service returnsaccessControlon every proposal.Valid values:
-
ACL_RESTRICTED- Only an allowed end user can read the content (its operations), and the change set can’t be edited. Every caller can read its metadata, and its proposal’stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
agent_context_id(String):The agent context’s ID.
expires_at(Option<DateTime>):The date and time when the review window closes, which is when a holding policy’s
autoRejectAfterSecondselapses. If no curator has decided the proposal by then, AWS Context rejects it withstatusReasonCodeREQUEST_EXPIRED. Present only whilestatusisPENDING_REVIEWand a holding policy set a window. Absent on every other status.created_at(DateTime):The date and time when the curation proposal was created.
updated_at(DateTime):The date and time when the curation proposal was last updated, such as when its change set was edited or the proposal was decided. Equal to
createdAtuntil the first update.status_reason(Option<StatusReason>):Why AWS Context closed the proposal. Set on an
ARCHIVEDproposal. Absent otherwise.id(String):The proposal’s opaque instance ID. Requests take it as
curationProposalId.triggering_policies(Option<Vec::<TriggeringPolicy>>):The policies that routed this change set to review (the
HOLD_FOR_REVIEWentries in the change set’s evaluation). Absent if none held it.
- On failure, responds with
SdkError<AcceptCurationProposalError>
Source§impl Client
impl Client
Sourcepub fn agentic_retrieve(&self) -> AgenticRetrieveFluentBuilder
pub fn agentic_retrieve(&self) -> AgenticRetrieveFluentBuilder
Constructs a fluent builder for the AgenticRetrieve operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: true
The agent context to retrieve from, by its ID or ARN.messages(Message)/set_messages(Option<Vec::<Message>>):
required: true
The conversation, as an ordered list of turns. A single-question caller sends one user message. The list carries multi-turn history so a follow-up resolves against earlier turns.session_id(impl Into<String>)/set_session_id(Option<String>):
required: false
Optional. A key that you supply to group related calls, for example the turns of one conversation, for trace storage and analysis. Grouping is per account, across agent contexts, so use a value that is unique to each conversation.analysis_configuration(AnalysisConfiguration)/set_analysis_configuration(Option<AnalysisConfiguration>):
required: false
Optional controls for post-call analysis of the retrieval: whether its trace is stored for analysis.retrieval_configuration(RetrievalConfiguration)/set_retrieval_configuration(Option<RetrievalConfiguration>):
required: false
Optional bounds and configuration for the agent loop.
- On success, responds with
AgenticRetrieveOutputwith field(s):retrieved_context(Vec::<RetrievedContext>): The ranked, structured context that the agent assembled across all iterations, without duplicates. Always present. Each entry is a graph node, a graph edge, or a document.answer(Option<String>): The synthesized natural-language answer, when one was generated.citations(Option<Vec::<Citation>>): Maps spans of answer to the supporting entities, when an answer was generated.authorization_required(Option<AuthorizationRequired>): Present when you must authorize access to a third-party resource. IfretrievedContextis empty, no result was retrieved. Otherwise, the result leaves out one or more resources that you have not authorized. ShowauthorizationUrlto the user and retry after they consent.
- On failure, responds with
SdkError<AgenticRetrieveError>
Source§impl Client
impl Client
Sourcepub fn agentic_retrieve_stream(&self) -> AgenticRetrieveStreamFluentBuilder
pub fn agentic_retrieve_stream(&self) -> AgenticRetrieveStreamFluentBuilder
Constructs a fluent builder for the AgenticRetrieveStream operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context to retrieve from, by its ID or ARN.
messages(Message)/set_messages(Option<Vec::<Message>>):
required: trueThe conversation, as an ordered list of turns. A single-question caller sends one user message. The list carries multi-turn history so a follow-up resolves against earlier turns.
session_id(impl Into<String>)/set_session_id(Option<String>):
required: falseOptional. A key that you supply to group related calls, for example the turns of one conversation, for trace storage and analysis. Grouping is per account, across agent contexts, so use a value that is unique to each conversation.
analysis_configuration(AnalysisConfiguration)/set_analysis_configuration(Option<AnalysisConfiguration>):
required: falseOptional controls for post-call analysis of the retrieval: whether its trace is stored for analysis. Trace events are streamed either way.
retrieval_configuration(StreamRetrievalConfiguration)/set_retrieval_configuration(Option<StreamRetrievalConfiguration>):
required: falseOptional bounds and configuration for the agent loop.
- On success, responds with
AgenticRetrieveStreamOutputwith field(s):stream(EventReceiver<AgenticRetrieveStreamOutput, AgenticRetrieveStreamOutputError>):The events of the retrieval, in order: progress events while the agent context is searched, chunks of the answer as it is written, and a final result with the answer and the retrieved context. An error event ends the stream.
- On failure, responds with
SdkError<AgenticRetrieveStreamError>
Source§impl Client
impl Client
Sourcepub fn associate_curation_policy(&self) -> AssociateCurationPolicyFluentBuilder
pub fn associate_curation_policy(&self) -> AssociateCurationPolicyFluentBuilder
Constructs a fluent builder for the AssociateCurationPolicy operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context, by its ID or ARN.
curation_policy_id(impl Into<String>)/set_curation_policy_id(Option<String>):
required: trueThe ID of the curation policy to associate with the agent context. If the policy doesn’t exist in your account, the request fails with
ResourceNotFoundException. If it was deleted, the request fails withConflictException.
- On success, responds with
AssociateCurationPolicyOutputwith field(s):agent_context_id(String):The agent context’s ID.
curation_policy_id(String):The ID of the curation policy that is associated with the agent context.
- On failure, responds with
SdkError<AssociateCurationPolicyError>
Source§impl Client
impl Client
Sourcepub fn cancel_ontology_induction(&self) -> CancelOntologyInductionFluentBuilder
pub fn cancel_ontology_induction(&self) -> CancelOntologyInductionFluentBuilder
Constructs a fluent builder for the CancelOntologyInduction operation.
- The fluent builder is configurable:
ontology_induction_id(impl Into<String>)/set_ontology_induction_id(Option<String>):
required: trueThe ID or Amazon Resource Name (ARN) of the ontology induction to cancel.
- On success, responds with
CancelOntologyInductionOutputwith field(s):id(String):The ID of the induction, assigned by AWS Context.
arn(String):The Amazon Resource Name (ARN) of the ontology induction.
status(OntologyInductionStatus):The status of the induction after the cancel request. Always CANCELLED.
- On failure, responds with
SdkError<CancelOntologyInductionError>
Source§impl Client
impl Client
Sourcepub fn cancel_task(&self) -> CancelTaskFluentBuilder
pub fn cancel_task(&self) -> CancelTaskFluentBuilder
Constructs a fluent builder for the CancelTask operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context, as an ID or ARN.
task_id(impl Into<String>)/set_task_id(Option<String>):
required: trueThe ID of the task to cancel.
- On success, responds with
CancelTaskOutputwith field(s):id(String):The ID of the task. Pass it as
taskIdto GetTask or CancelTask.arn(String):The Amazon Resource Name (ARN) of the task.
agent_context_id(String):The agent context’s ID.
r#type(TaskType):The type of the task. It is set by the
inputConfigurationmember that the task was started with:IMPORT_DATA_DICTIONARY,IMPORT_VERIFIED_QUERIES, orIMPORT_ONTOLOGY.status(TaskStatus):The status of the task. A task moves from
PENDINGtoIN_PROGRESSand endsCOMPLETED,FAILED, orCANCELLED. After CancelTask, it isCANCELLINGuntil it stops.description(Option<String>):The description of the task, as given to StartTask.
created_at(DateTime):The date and time when the task was created.
updated_at(DateTime):The date and time when the task was last updated, such as when its status changed. Equal to
createdAtuntil the task first changes.status_reason_code(Option<TaskStatusReasonCode>):The code for why the task failed. Present only when
statusisFAILED.Valid values:
-
GRAPH_NOT_ACTIVE- The agent context was deleted, or was not yet available, while the task ran. -
ONTOLOGY_INVALID- An ontology is missing, has no loadable source, or its source is unsafe or too large. -
ONTOLOGY_IMPORT_UNAVAILABLE- An ontology couldn’t be imported because of a temporary problem. Start a new task. -
ONTOLOGY_ALREADY_IMPORTED- This ontology version is already imported into the agent context.
-
status_message(Option<String>):The reason the task failed. Present only when status is FAILED.
statistics(Option<TaskStatistics>):Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is
COMPLETED,FAILED, orCANCELLED.input_configuration(Option<TaskInputConfigurationSummary>):A summary of the input that the task was started with. Each document is returned as its name, size, and content type, not its content, and each ontology is returned as its ARN and, if set, its version.
outputs(Option<Vec::<TaskOutput>>):What the task created, in creation order. Set when it finishes.
- On failure, responds with
SdkError<CancelTaskError>
Source§impl Client
impl Client
Sourcepub fn create_agent_context(&self) -> CreateAgentContextFluentBuilder
pub fn create_agent_context(&self) -> CreateAgentContextFluentBuilder
Constructs a fluent builder for the CreateAgentContext operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseClient idempotency token. The AWS SDKs generate one when it is absent. An identical request with the same token returns the existing agent context. The same token with a different request returns ValidationException.
trustedIdentitySourceswith the same entries in another order is the same request.name(impl Into<String>)/set_name(Option<String>):
required: falseOptional. The name of the agent context. If you omit it, the name is
default. You can change it later with UpdateAgentContext.description(impl Into<String>)/set_description(Option<String>):
required: falseOptional human-readable description of the agent context. An empty string is the same as none.
connection_mappings(ConnectionMapping)/set_connection_mappings(Option<Vec::<ConnectionMapping>>):
required: trueThe connection mappings for this agent context, up to 20. CreateAgentContext requires at least one: an empty list returns
ValidationException. Each entry binds a connection to one or more ontologies, optionally scoped by a data filter, extraction depth, and path segments. Each referenced connection must exist, be owned by your account, and beACTIVE. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.trace_analysis_config(TraceAnalysisConfig)/set_trace_analysis_config(Option<TraceAnalysisConfig>):
required: falseThe agent context’s trace analysis settings. Optional. You can change it with UpdateAgentContext.
workforce_sign_in_config(WorkforceSignInConfig)/set_workforce_sign_in_config(Option<WorkforceSignInConfig>):
required: falseOptional workforce sign-in settings. A config with
signInUrlturns sign-in on (statusdefaults to ENABLED).statusENABLED withoutsignInUrlis a ValidationException. You can change it with UpdateAgentContext.entity_resolution_config(EntityResolutionConfig)/set_entity_resolution_config(Option<EntityResolutionConfig>):
required: falseOptional entity resolution settings. When the config or its
statusis absent,statusreads ENABLED. You can change it with UpdateAgentContext.trusted_identity_sources(TrustedIdentitySource)/set_trusted_identity_sources(Option<Vec::<TrustedIdentitySource>>):
required: falseOptional identity sources to trust in addition to your account. At most 100 unique entries, each with exactly one member. Order is not significant. An empty list and an absent member are the same value: only your account is trusted. You can change it with UpdateAgentContext.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags to add to the agent context when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can’t start with
aws:. To add tags, you also needcontext:TagResourcepermission on the new agent context. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.curation_policy_ids(impl Into<String>)/set_curation_policy_ids(Option<Vec::<String>>):
required: falseCuration policies to associate with the new agent context, as IDs or ARNs, instead of the default curation policies. If you omit it or the list is empty, AWS Context associates the default curation policies. Each policy must be
ACTIVEand owned by your account, and you needcontext:AssociateCurationPolicypermission on each. AWS Context checks both again on aclientTokenretry. If a policy doesn’t exist, the request fails withResourceNotFoundException. If one has been deleted, it fails withConflictException. Change the policies later with AssociateCurationPolicy and DisassociateCurationPolicy.
- On success, responds with
CreateAgentContextOutputwith field(s):id(String):The agent context’s opaque ID.
arn(String):The ARN of the agent context, in the form
arn:<partition>:context:<region>:<account-id>:agent-context/<id>.name(String):The name of the agent context. If you didn’t specify a name when you created it, the name is
default.description(Option<String>):A human-readable description, if one was set.
status(AgentContextStatus):The agent context’s lifecycle status.
Valid values:
-
CREATING- The agent context is being created. -
ACTIVE- The agent context is ready to use. -
UPDATING- The agent context is being updated. -
DELETING- The agent context is being deleted. -
FAILED- The agent context failed.
-
created_at(DateTime):The date and time when the agent context was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.connection_mappings(Option<Vec::<ConnectionMapping>>):The agent context’s connection mappings.
encryption_config(Option<EncryptionConfig>):The agent context’s encryption settings.
trace_analysis_config(Option<TraceAnalysisConfig>):The agent context’s trace analysis settings.
workforce_sign_in_config(Option<WorkforceSignInConfig>):How your employees sign in to this agent context’s MCP server through your identity provider (workforce sign-in).
statusreads ENABLED while a sign-in URL is stored, DISABLED otherwise.entity_resolution_config(Option<EntityResolutionConfig>):The agent context’s entity resolution settings. Populated on every response path that returns the resource.
mcp_server_url(Option<String>):The Model Context Protocol (MCP) server URL to give your employees while workforce sign-in is
ENABLED. The URL is the agent context’s MCP endpoint, withworkforceSignInConfig.signInUrlas itslogin_hintquery parameter and the ID that AWS Context assigns to that sign-in URL as itstenantIdquery parameter. Absent while workforce sign-in isDISABLED.trusted_identity_sources(Option<Vec::<TrustedIdentitySource>>):Identity sources this agent context trusts in addition to its owner’s account. Absent or empty: only the owner’s account is trusted.
- On failure, responds with
SdkError<CreateAgentContextError>
Source§impl Client
impl Client
Sourcepub fn create_change_set(&self) -> CreateChangeSetFluentBuilder
pub fn create_change_set(&self) -> CreateChangeSetFluentBuilder
Constructs a fluent builder for the CreateChangeSet operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier that you provide to make the request idempotent. A retry with the same token returns the same change set.
access_control_config(AccessControlConfig)/set_access_control_config(Option<AccessControlConfig>):
required: falseWho can read the nodes that this change set writes. AWS Context refuses it on a change set that only deletes. If you omit it, every reader of the agent context can read a node that the change creates, and every other node keeps its access control. If you specify it, it replaces the access control of every node that the change set writes, and an absent or empty
accessControlListlets nobody read them.agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context to change, by its ID or ARN.
operations(ChangeSetOperation)/set_operations(Option<Vec::<ChangeSetOperation>>):
required: trueThe operations to write, each a
ChangeSetOperation, from 1 to 1,000. If the list is empty or names the same entity twice, the request fails withValidationException.
- On success, responds with
CreateChangeSetOutputwith field(s):status(ChangeSetStatus):PENDING (held for curator review) or PUBLISHED (applied). A replay reports the change set’s current one.
access_control(Option<AccessControl>):See
AccessControl. The service returns it on every response.Valid values:
-
ACL_RESTRICTED- Only an allowed end user can read the content (its operations), and the change set can’t be edited. Every caller can read its metadata, and its proposal’stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
id(String):The ID of the change set, which AWS Context assigns. The create is idempotent on
clientToken: a retry with the same token returns the same change set. Treat this ID as opaque, and don’t assume any relationship toclientToken.
- On failure, responds with
SdkError<CreateChangeSetError>
Source§impl Client
impl Client
Sourcepub fn create_connection(&self) -> CreateConnectionFluentBuilder
pub fn create_connection(&self) -> CreateConnectionFluentBuilder
Constructs a fluent builder for the CreateConnection operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA client idempotency token. It is optional, so the AWS SDKs can generate it automatically and reuse it on retries. A retry with an identical request returns the original connection. A different request returns
ValidationException.acknowledgements,tagsand, once the connection isACTIVE,publishare not compared with the original request. A create refused for a missing acknowledgement records no token.name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.
data_source(DataSourceReference)/set_data_source(Option<DataSourceReference>):
required: trueThe external data source that this connection binds to: its
typeandlocation.arn. The ARN must be in your account, except forGLUE_DATA_CATALOG, where it can name a catalog or an AWS Glue connection in another account.-
GLUE_DATA_CATALOG- An AWS Glue Data Catalog ARN (:catalogor:catalog/<path>), or the ARN of an existing AWS Glue connection (:connection/<name>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can’t specifyscopewith an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails withConflictException. If its validation failed, the request fails withAccessDeniedException. -
DATABRICKSorSNOWFLAKE- The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matchestype. AWS Context validates its Credential Broker settings, if present, and doesn’t store them.
-
scope(DataSourceScope)/set_scope(Option<DataSourceScope>):
required: falseOptional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most one
databricksCatalog, and a SNOWFLAKE scope onesnowflakeDatabase. A GLUE_DATA_CATALOG scope can select by service with aglueServicesegment (seeDataSourceScope). An unknown service name, a repeated or misplacedglueServicesegment, a later level of another service, orglueServiceon another connection type returns ValidationException.access_config(AccessConfig)/set_access_config(Option<AccessConfig>):
required: falseThe access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.
For
GLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASE,iamRoleis the IAM role that AWS Context assumes to read the source and the AWS Glue connections inglueConnectionMappings. If you omitaccessConfigor set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection thatiamRolecan read the source, and the request fails if it can’t. A source in another account with noiamRoleisn’t checked when the connection is created. AnaccessConfigwith no variant is stored as absent and is not returned on the connection.For
DATABRICKSandSNOWFLAKE, AWS Glue reads the source with theROLE_ARNof the AWS Glue connection indataSource, not withaccessConfig. For these types,accessConfigis reserved for other roles.sync_schedule(SyncSchedule)/set_sync_schedule(Option<SyncSchedule>):
required: falseHow often AWS Context re-syncs a
DATABRICKSorSNOWFLAKEsource. If you omit it, the default isDAILY. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections. You can change it with UpdateConnection.ingestion_config(IngestionConfig)/set_ingestion_config(Option<IngestionConfig>):
required: trueThe ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection’s agent contexts. It is separate from
accessConfig, which names the role that AWS Context assumes to read the source. Required, because a connection can’t ingest data without a role that its data producer can assume. You must haveiam:PassRolepermission to pass this role to the data producer, and the role must be in your account.glue_connection_mappings(GlueConnectionMapping)/set_glue_connection_mappings(Option<Vec::<GlueConnectionMapping>>):
required: falseThe AWS Glue connection to use for each
redshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath. Optional. You can specify 0–20 entries. The following rules apply:-
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase. -
redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional. -
snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN. -
While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry’spathnever namesglueService. -
A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service’s metadata, and you cannot query its data.
-
publish(bool)/set_publish(Option<bool>):
required: falseSpecifies whether to configure catalog synchronization and wait for it to be provisioned during this call. If you omit it, the default is
true. For aDATABRICKSorSNOWFLAKEconnection,falsevalidates only the AWS Glue connection. The connection is returned asCREATINGwithsubStatusGLUE_CONNECTION_VALIDATED, and you publish it later by calling UpdateConnection withpublishset totrue. Ignored forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections, which have no sync job.acknowledgements(impl Into<String>)/set_acknowledgements(Option<Vec::<String>>):
required: falseThe conditions that you acknowledge AWS Context can’t honor. Specify
CUSTOMER_MANAGED_KEYwhen the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails withValidationException. An unknown or repeated value also fails withValidationException.tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can’t start with
aws:. To add tags, you also needcontext:TagResourcepermission on the new connection. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.
- On success, responds with
CreateConnectionOutputwith field(s):id(String):The ID of the connection.
arn(String):The ARN of the connection.
name(String):The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.
data_source(Option<DataSourceReference>):The typed reference to the external data source that this connection binds to. Its
type, the authoritative kind of data source, is indataSource.type.scope(Option<DataSourceScope>):The hierarchical subset of the data source this connection ingests.
access_config(Option<AccessConfig>):Per-connection access configuration: the IAM role used for data access.
sync_schedule(Option<SyncSchedule>):The effective sync schedule. Present for
DATABRICKSandSNOWFLAKEconnections (DAILYif you didn’t specify one). Absent forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections, which are event-driven.ingestion_config(Option<IngestionConfig>):The connection’s ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.
glue_connection_mappings(Option<Vec::<GlueConnectionMapping>>):The AWS Glue connection for each
redshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope. Absent when none is configured.status(ConnectionStatus):The connection’s status. Valid values:
-
CREATING- Validation or provisioning is still in progress. -
ACTIVE- The data source is reachable and, for aDATABRICKSorSNOWFLAKEconnection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn’t mean that a crawl has started or completed. -
UPDATING- The connection is being updated. -
DELETING- The connection is being deleted. -
FAILED- Validation or provisioning failed, and the connection can’t recover.
-
failure(Option<ConnectionFailure>):The reason the connection is FAILED. Absent in every other status.
sub_status(Option<ResourceSubStatus>):The last milestone a third-party connection’s lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with
publish: falsemeans it is waiting for UpdateConnectionpublish: true.created_at(DateTime):The date and time when the connection was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.
- On failure, responds with
SdkError<CreateConnectionError>
Source§impl Client
impl Client
Sourcepub fn create_curation_policy(&self) -> CreateCurationPolicyFluentBuilder
pub fn create_curation_policy(&self) -> CreateCurationPolicyFluentBuilder
Constructs a fluent builder for the CreateCurationPolicy operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier that you provide to make the request idempotent. A retry with the same token and the same parameters returns the curation policy that the first request created. If you don’t specify one, the AWS SDKs generate one.
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the curation policy. 3 to 63 characters: it must start with a letter and can contain only ASCII letters, digits, and hyphens.
description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the curation policy. Up to 1,024 characters, with no control characters.
policy_document(impl Into<String>)/set_policy_document(Option<String>):
required: trueThe policy’s rules, as a Cedar policy document.
auto_reject_after_seconds(i64)/set_auto_reject_after_seconds(Option<i64>):
required: falseThe number of seconds that a curation proposal held for review under this policy can wait for a decision before it is rejected automatically. Valid range: 86,400 (1 day) to 15,552,000 (180 days). If you omit it, proposals held under this policy are never rejected automatically.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags to add to the curation policy when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can’t start with
aws:. To add tags, you also needcontext:TagResourcepermission on the new curation policy. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.
- On success, responds with
CreateCurationPolicyOutputwith field(s):id(String):The ID of the curation policy. Requests take it as
curationPolicyId.arn(String):The ARN of the curation policy.
name(String):The name of the curation policy.
last_published_version(Option<String>):Newest published version. Absent until the policy’s first version is created (a DRAFT that has never been published has no version).
revision_id(String):An opaque revision token for the working copy. Pass it as
revisionIdonUpdateCurationPolicy. The update applies only if the token still matches the current working copy.created_at(DateTime):The date and time when the curation policy was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.auto_reject_after_seconds(Option<i64>):The number of seconds that a proposal held for review under this policy can wait for a decision before AWS Context rejects it with
statusReasonCodeREQUEST_EXPIRED. From 86,400 seconds (1 day) to 15,552,000 seconds (180 days). Absent if proposals held under this policy are never rejected automatically.description(Option<String>):The description of the curation policy.
policy_document(String):The policy’s rules, as a Cedar policy document: the rule the engine evaluates. Always present on the resource.
status(CurationPolicyStatus):The policy’s status.
Valid values:
-
DRAFT- The policy has never been published, so no agent context enforces it. -
ACTIVE- The policy has a published version, which the agent contexts associated with it enforce. -
DELETED- The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.
-
- On failure, responds with
SdkError<CreateCurationPolicyError>
Source§impl Client
impl Client
Sourcepub fn create_curation_policy_version(
&self,
) -> CreateCurationPolicyVersionFluentBuilder
pub fn create_curation_policy_version( &self, ) -> CreateCurationPolicyVersionFluentBuilder
Constructs a fluent builder for the CreateCurationPolicyVersion operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA token that makes a retry safe. A retry with the same token and the same parameters returns the current policy instead of creating another version. A token used with different parameters is a ValidationException, checked first, and a retry with the same parameters after the policy was deleted is a ConflictException. Required at run time. The AWS SDKs generate one.
curation_policy_id(impl Into<String>)/set_curation_policy_id(Option<String>):
required: trueThe ID of the curation policy to publish a new version of.
revision_id(impl Into<String>)/set_revision_id(Option<String>):
required: trueThe
revisionIdof the working copy to publish, as last read. A working copy whose revision has since advanced is a ConflictException.
- On success, responds with
CreateCurationPolicyVersionOutputwith field(s):id(String):The ID of the curation policy. Requests take it as
curationPolicyId.arn(String):The ARN of the curation policy.
name(String):The name of the curation policy.
last_published_version(Option<String>):Newest published version. Absent until the policy’s first version is created (a DRAFT that has never been published has no version).
revision_id(String):An opaque revision token for the working copy. Pass it as
revisionIdonUpdateCurationPolicy. The update applies only if the token still matches the current working copy.created_at(DateTime):The date and time when the curation policy was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.auto_reject_after_seconds(Option<i64>):The number of seconds that a proposal held for review under this policy can wait for a decision before AWS Context rejects it with
statusReasonCodeREQUEST_EXPIRED. From 86,400 seconds (1 day) to 15,552,000 seconds (180 days). Absent if proposals held under this policy are never rejected automatically.description(Option<String>):The description of the curation policy.
policy_document(String):The policy’s rules, as a Cedar policy document: the rule the engine evaluates. Always present on the resource.
status(CurationPolicyStatus):The policy’s status.
Valid values:
-
DRAFT- The policy has never been published, so no agent context enforces it. -
ACTIVE- The policy has a published version, which the agent contexts associated with it enforce. -
DELETED- The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.
-
- On failure, responds with
SdkError<CreateCurationPolicyVersionError>
Source§impl Client
impl Client
Sourcepub fn create_ontology(&self) -> CreateOntologyFluentBuilder
pub fn create_ontology(&self) -> CreateOntologyFluentBuilder
Constructs a fluent builder for the CreateOntology operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseClient idempotency token. A reused token with an identical request returns the existing ontology with no second write. A reused token with a different request (any member differs, for example
name,description,sourceFormat, orsource) is a ValidationException namingclientToken, never a ConflictException. The AWS SDKs generate the token automatically. A request that arrives without a token is a ValidationException.name(impl Into<String>)/set_name(Option<String>):
required: trueFriendly display name for the ontology (for example, “Sales Org”). AWS Context assigns the ontology its opaque ID. This name is a non-unique label. You can rename the ontology in the AWS Context console.
description(impl Into<String>)/set_description(Option<String>):
required: falseOptional description of the ontology. Part of the idempotency comparison on a replay.
source_format(OntologySourceFormat)/set_source_format(Option<OntologySourceFormat>):
required: trueThe format of
source. The only supported value isTURTLE.source(impl Into<String>)/set_source(Option<String>):
required: trueAn OWL ontology to derive the template from, in
sourceFormat.tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags to add to the ontology when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can’t start with
aws:. To add tags, you also needcontext:TagResourcepermission on the new ontology. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.
- On success, responds with
CreateOntologyOutputwith field(s):id(String):The ID of the ontology, assigned by AWS Context.
arn(String):The ARN of the created ontology.
updated_at(DateTime):When the ontology last changed. On create, the creation time. On a replay, the current value.
name(Option<String>):The display name as stored. On a replay, the current one.
description(Option<String>):The description as stored. Absent when there is none. On a replay, the current one.
version(Option<String>):The initial version that CreateOntology created, in MAJOR.MINOR.PATCH form, for example
1.0.0.validation_issues(Option<Vec::<OntologyValidationIssue>>):Non-fatal warnings from the derivation, such as
SYNTHESIZED_NODE_IDor a widened datatype. AWS Context also stores them on the version, and GetOntology returns them invalidationIssues. Absent or empty if the derivation produced no warnings.
- On failure, responds with
SdkError<CreateOntologyError>
Source§impl Client
impl Client
Sourcepub fn delete_agent_context(&self) -> DeleteAgentContextFluentBuilder
pub fn delete_agent_context(&self) -> DeleteAgentContextFluentBuilder
Constructs a fluent builder for the DeleteAgentContext operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context to delete, by its ID or ARN.
- On success, responds with
DeleteAgentContextOutput - On failure, responds with
SdkError<DeleteAgentContextError>
Source§impl Client
impl Client
Sourcepub fn delete_connection(&self) -> DeleteConnectionFluentBuilder
pub fn delete_connection(&self) -> DeleteConnectionFluentBuilder
Constructs a fluent builder for the DeleteConnection operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)/set_connection_id(Option<String>):
required: trueThe connection to delete, by its ID (which starts with
conn-) or its ARN.deletion_mode(DeletionMode)/set_deletion_mode(Option<DeletionMode>):
required: falseSpecifies what happens to the connectivity resources behind the connection: the AWS Glue connection, whether AWS Context created it or you specified an existing one. AWS Context keeps the AWS Glue connections named in
glueConnectionMappings. This member doesn’t affect agent context content. To remove the connection’s content from an agent context, remove the connection from the agent context with UpdateAgentContext. AWS Context never changes your source data. If you omit it, the default isRETAIN. It has no effect onGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections.
- On success, responds with
DeleteConnectionOutput - On failure, responds with
SdkError<DeleteConnectionError>
Source§impl Client
impl Client
Sourcepub fn delete_curation_policy(&self) -> DeleteCurationPolicyFluentBuilder
pub fn delete_curation_policy(&self) -> DeleteCurationPolicyFluentBuilder
Constructs a fluent builder for the DeleteCurationPolicy operation.
- The fluent builder is configurable:
curation_policy_id(impl Into<String>)/set_curation_policy_id(Option<String>):
required: trueThe ID of the curation policy to delete.
- On success, responds with
DeleteCurationPolicyOutput - On failure, responds with
SdkError<DeleteCurationPolicyError>
Source§impl Client
impl Client
Sourcepub fn delete_ontology(&self) -> DeleteOntologyFluentBuilder
pub fn delete_ontology(&self) -> DeleteOntologyFluentBuilder
Constructs a fluent builder for the DeleteOntology operation.
- The fluent builder is configurable:
ontology_id(impl Into<String>)/set_ontology_id(Option<String>):
required: trueThe ontology to delete, by its ID or ARN. ListOntologies and GetOntology return its ARN.
- On success, responds with
DeleteOntologyOutput - On failure, responds with
SdkError<DeleteOntologyError>
Source§impl Client
impl Client
Sourcepub fn delete_ontology_induction(&self) -> DeleteOntologyInductionFluentBuilder
pub fn delete_ontology_induction(&self) -> DeleteOntologyInductionFluentBuilder
Constructs a fluent builder for the DeleteOntologyInduction operation.
- The fluent builder is configurable:
ontology_induction_id(impl Into<String>)/set_ontology_induction_id(Option<String>):
required: trueThe ID or Amazon Resource Name (ARN) of the ontology induction to delete.
- On success, responds with
DeleteOntologyInductionOutput - On failure, responds with
SdkError<DeleteOntologyInductionError>
Source§impl Client
impl Client
Sourcepub fn delete_resource_policy(&self) -> DeleteResourcePolicyFluentBuilder
pub fn delete_resource_policy(&self) -> DeleteResourcePolicyFluentBuilder
Constructs a fluent builder for the DeleteResourcePolicy operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueARN of the agent context.
expected_revision_id(impl Into<String>)/set_expected_revision_id(Option<String>):
required: falseThe revision that you last read. The delete succeeds only if it matches the stored revision.
- On success, responds with
DeleteResourcePolicyOutput - On failure, responds with
SdkError<DeleteResourcePolicyError>
Source§impl Client
impl Client
Sourcepub fn disassociate_curation_policy(
&self,
) -> DisassociateCurationPolicyFluentBuilder
pub fn disassociate_curation_policy( &self, ) -> DisassociateCurationPolicyFluentBuilder
Constructs a fluent builder for the DisassociateCurationPolicy operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context to unlink the policy from, by its ID or ARN.
curation_policy_id(impl Into<String>)/set_curation_policy_id(Option<String>):
required: trueThe ID of the curation policy to disassociate from the agent context.
- On success, responds with
DisassociateCurationPolicyOutput - On failure, responds with
SdkError<DisassociateCurationPolicyError>
Source§impl Client
impl Client
Sourcepub fn execute_sql(&self) -> ExecuteSqlFluentBuilder
pub fn execute_sql(&self) -> ExecuteSqlFluentBuilder
Constructs a fluent builder for the ExecuteSql operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context that owns the connection, by ID or full ARN.
connection_id(impl Into<String>)/set_connection_id(Option<String>):
required: trueThe connection to run against. Must be a GLUE_DATA_CATALOG connection linked to the agent context. Its access configuration (
accessConfig) determines how AWS Context reads the tables.query(SqlDataQuery)/set_query(Option<SqlDataQuery>):
required: trueThe query to run: a SQL statement and the AWS Glue tables that it reads. For the SQL rules and limits, see
SqlQuery.
- On success, responds with
ExecuteSqlOutputwith field(s):column_metadata(Vec::<SqlColumnMetadata>):One entry per result column, in result order.
rows[i].values[j]is the value ofcolumnMetadata[j].rows(Vec::<SqlRow>):The result rows, in result order. Each row holds a positional list of typed values, one per column.
- On failure, responds with
SdkError<ExecuteSqlError>
Source§impl Client
impl Client
Sourcepub fn get_agent_context(&self) -> GetAgentContextFluentBuilder
pub fn get_agent_context(&self) -> GetAgentContextFluentBuilder
Constructs a fluent builder for the GetAgentContext operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context to return, by its ID or ARN.
- On success, responds with
GetAgentContextOutputwith field(s):id(String):The agent context’s opaque ID.
arn(String):The ARN of the agent context, in the form
arn:<partition>:context:<region>:<account-id>:agent-context/<id>.name(String):The name of the agent context. If you didn’t specify a name when you created it, the name is
default.description(Option<String>):A human-readable description, if one was set.
status(AgentContextStatus):The agent context’s lifecycle status.
Valid values:
-
CREATING- The agent context is being created. -
ACTIVE- The agent context is ready to use. -
UPDATING- The agent context is being updated. -
DELETING- The agent context is being deleted. -
FAILED- The agent context failed.
-
created_at(DateTime):The date and time when the agent context was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.connection_mappings(Option<Vec::<ConnectionMapping>>):The agent context’s connection mappings.
encryption_config(Option<EncryptionConfig>):The agent context’s encryption settings.
trace_analysis_config(Option<TraceAnalysisConfig>):The agent context’s trace analysis settings.
workforce_sign_in_config(Option<WorkforceSignInConfig>):How your employees sign in to this agent context’s MCP server through your identity provider (workforce sign-in).
statusreads ENABLED while a sign-in URL is stored, DISABLED otherwise.entity_resolution_config(Option<EntityResolutionConfig>):The agent context’s entity resolution settings. Populated on every response path that returns the resource.
mcp_server_url(Option<String>):The Model Context Protocol (MCP) server URL to give your employees while workforce sign-in is
ENABLED. The URL is the agent context’s MCP endpoint, withworkforceSignInConfig.signInUrlas itslogin_hintquery parameter and the ID that AWS Context assigns to that sign-in URL as itstenantIdquery parameter. Absent while workforce sign-in isDISABLED.trusted_identity_sources(Option<Vec::<TrustedIdentitySource>>):Identity sources this agent context trusts in addition to its owner’s account. Absent or empty: only the owner’s account is trusted.
- On failure, responds with
SdkError<GetAgentContextError>
Source§impl Client
impl Client
Sourcepub fn get_change_set(&self) -> GetChangeSetFluentBuilder
pub fn get_change_set(&self) -> GetChangeSetFluentBuilder
Constructs a fluent builder for the GetChangeSet operation.
- The fluent builder is configurable:
change_set_id(impl Into<String>)/set_change_set_id(Option<String>):
required: trueThe change set to fetch, by its opaque instance ID.
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context that owns the change set, by its ID or ARN.
- On success, responds with
GetChangeSetOutputwith field(s):agent_context_id(String):The agent context’s ID.
status(ChangeSetStatus):The status of the change set. Valid values:
-
DRAFT- AWS Context is evaluating the change set against the agent context’s curation policies. -
PENDING- Held for review as a curation proposal. While the change set isPENDING, you can remove operations from it withUpdateChangeSet. -
AUTHORIZED- The change set is approved, and AWS Context is applying it. -
SUPPRESSED- AWS Context won’t apply the change set, because a curation policy denied it or its curation proposal was closed without approval. -
PUBLISHED- AWS Context applied the change set to the agent context. -
FAILED- AWS Context couldn’t apply the change set.
SUPPRESSEDandPUBLISHEDare final. AFAILEDchange set can still change toPUBLISHEDorPENDINGif AWS Context retries applying it. New values can be added, so handle a status that you don’t recognize.-
created_at(DateTime):The date and time when the change set was created.
updated_at(DateTime):The date and time when the change set was last updated, such as when its status changed or its operations were edited.
access_control(Option<AccessControl>):See
AccessControl. The service returns it on every item.Valid values:
-
ACL_RESTRICTED- Only an allowed end user can read the content (its operations), and the change set can’t be edited. Every caller can read its metadata, and its proposal’stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
generated_by(Option<Activity>):The activity that generated the change set. A change set that an
IMPORT_ONTOLOGYtask writes carriesIMPORT_ONTOLOGY_TASK, and one that aCreateChangeSetcall makes carriesDIRECT_MODIFICATION. A sync of a connected data source’s own metadata, such as an AWS Glue Data Catalog sync, carriesDATA_SOURCE_INGESTION. To list the change sets that carry a value, filterListChangeSetson it.This member can be absent, so handle a change set that has no activity. For example, it’s absent on a change set that records a connection’s removal, on a change set that AWS Context wrote when it loaded an ontology’s schema, and on a change set whose activity this API version doesn’t recognize.
status_reason(Option<StatusReason>):Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator’s decision. Absent when AWS Context gave no reason.
id(String):The change set’s opaque instance ID. Requests take it as
changeSetId.change_set_version(Option<i32>):The change set’s latest version. Pass it to
UpdateChangeSet. Each version is immutable. The number increases by one on each edit and each status change.connection_arn(Option<String>):The ARN of the connection that produced this change set. Absent for a change that no connection produced, such as a direct
CreateChangeSetcall, and for everyACL_RESTRICTEDchange set, because the connection would identify the source of the restricted content.
- On failure, responds with
SdkError<GetChangeSetError>
Source§impl Client
impl Client
Sourcepub fn get_connection(&self) -> GetConnectionFluentBuilder
pub fn get_connection(&self) -> GetConnectionFluentBuilder
Constructs a fluent builder for the GetConnection operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)/set_connection_id(Option<String>):
required: trueThe connection to return, by its ID (which starts with
conn-) or its ARN.
- On success, responds with
GetConnectionOutputwith field(s):id(String):The ID of the connection.
arn(String):The ARN of the connection.
name(String):The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.
data_source(Option<DataSourceReference>):The typed reference to the external data source that this connection binds to. Its
type, the authoritative kind of data source, is indataSource.type.scope(Option<DataSourceScope>):The hierarchical subset of the data source this connection ingests.
access_config(Option<AccessConfig>):Per-connection access configuration: the IAM role used for data access.
sync_schedule(Option<SyncSchedule>):The effective sync schedule. Present for
DATABRICKSandSNOWFLAKEconnections (DAILYif you didn’t specify one). Absent forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections, which are event-driven.ingestion_config(Option<IngestionConfig>):The connection’s ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.
glue_connection_mappings(Option<Vec::<GlueConnectionMapping>>):The AWS Glue connection for each
redshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope. Absent when none is configured.status(ConnectionStatus):The connection’s status. Valid values:
-
CREATING- Validation or provisioning is still in progress. -
ACTIVE- The data source is reachable and, for aDATABRICKSorSNOWFLAKEconnection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn’t mean that a crawl has started or completed. -
UPDATING- The connection is being updated. -
DELETING- The connection is being deleted. -
FAILED- Validation or provisioning failed, and the connection can’t recover.
-
failure(Option<ConnectionFailure>):The reason the connection is FAILED. Absent in every other status.
sub_status(Option<ResourceSubStatus>):The last milestone a third-party connection’s lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with
publish: falsemeans it is waiting for UpdateConnectionpublish: true.created_at(DateTime):The date and time when the connection was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.
- On failure, responds with
SdkError<GetConnectionError>
Source§impl Client
impl Client
Sourcepub fn get_curation_policy(&self) -> GetCurationPolicyFluentBuilder
pub fn get_curation_policy(&self) -> GetCurationPolicyFluentBuilder
Constructs a fluent builder for the GetCurationPolicy operation.
- The fluent builder is configurable:
curation_policy_id(impl Into<String>)/set_curation_policy_id(Option<String>):
required: trueThe ID of the curation policy to return.
version(impl Into<String>)/set_version(Option<String>):
required: falseThe version to return:
DRAFTfor the working copy, or a published version number. If you omit it, AWS Context returns the working copy.
- On success, responds with
GetCurationPolicyOutputwith field(s):id(String):The ID of the curation policy. Requests take it as
curationPolicyId.arn(String):The ARN of the curation policy.
name(String):The name of the curation policy.
last_published_version(Option<String>):Newest published version. Absent until the policy’s first version is created (a DRAFT that has never been published has no version).
revision_id(String):An opaque revision token for the working copy. Pass it as
revisionIdonUpdateCurationPolicy. The update applies only if the token still matches the current working copy.created_at(DateTime):The date and time when the curation policy was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.auto_reject_after_seconds(Option<i64>):The number of seconds that a proposal held for review under this policy can wait for a decision before AWS Context rejects it with
statusReasonCodeREQUEST_EXPIRED. From 86,400 seconds (1 day) to 15,552,000 seconds (180 days). Absent if proposals held under this policy are never rejected automatically.description(Option<String>):The description of the curation policy.
policy_document(String):The policy’s rules, as a Cedar policy document: the rule the engine evaluates. Always present on the resource.
status(CurationPolicyStatus):The policy’s status.
Valid values:
-
DRAFT- The policy has never been published, so no agent context enforces it. -
ACTIVE- The policy has a published version, which the agent contexts associated with it enforce. -
DELETED- The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.
-
- On failure, responds with
SdkError<GetCurationPolicyError>
Source§impl Client
impl Client
Sourcepub fn get_curation_proposal(&self) -> GetCurationProposalFluentBuilder
pub fn get_curation_proposal(&self) -> GetCurationProposalFluentBuilder
Constructs a fluent builder for the GetCurationProposal operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context that the proposal belongs to, by its ID or ARN. If the proposal belongs to another agent context, the request fails with
ResourceNotFoundException.curation_proposal_id(impl Into<String>)/set_curation_proposal_id(Option<String>):
required: trueThe proposal to fetch, by its opaque instance ID.
- On success, responds with
GetCurationProposalOutputwith field(s):change_set_id(String):The change set this proposal reviews. UpdateChangeSet edits that change set in place, so this ID never changes.
title(Option<String>):A one-line English title that AWS Context composes for the proposal, at most 1,024 characters. For example,
Add ‘orders’ and 2 more entities, and 20 relationships,Add ‘orders → customers’ and 2 more relationships, orAssociate ontology ‘my-ontology’ version 2. The title names the lead node (the node that starts the most edges, otherwise the first node) by its name, or by its ID if it has no name. For an edge-only change, it names the lead relationship’s two node IDs. For an ontology load, it names the ontology ID and version. The title is for display only. It is not translated and is not meant to be parsed.For an
ACL_RESTRICTEDchange set (seeaccessControl), the title contains only the verb and the counts, with no node, edge, type, or ontology. The title is absent when the change set is unreadable or has nothing to describe, such as a change set that records a connection’s removal. A node name or ID, ontology ID, or ontology version longer than 128 characters is truncated to 128 characters, ending in….generated_by(Option<Activity>):The activity that generated the change set (see
Activity). This member can be absent, so handle a proposal that has no activity. For example, it’s absent when the change set is unreadable, when AWS Context wrote the change set to load an ontology’s schema, when the change set records a connection’s removal, and when this API version doesn’t recognize the activity.revision_id(String):An opaque revision token. Pass it back as
revisionIdwhen you accept or reject the proposal.status(CurationProposalStatus):The status of the curation proposal, such as
PENDING_REVIEWwhile it waits for a decision,APPROVEDorREJECTEDonce it is decided, orARCHIVEDwhen the connection that produced it was removed from the agent context. New values can be added, so handle a status that you don’t recognize.Valid values:
-
PENDING_REVIEW- Waiting for a curator’s decision. The only status Accept and Reject act on. -
APPROVED- A curator accepted it. Its change set is published or publishing. -
REJECTED- Closed without applying its change set: a curator rejected it, or the service did when a holding policy’s review window passed with no decision (statusReasonCodeREQUEST_EXPIRED). -
SUPERSEDED- A newer proposal for the same document replaced it. -
FAILED- The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again. -
PUBLISHING- Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED. -
ARCHIVED- The connection that produced it was removed from the agent context.statusReason.codeis CONNECTION_REMOVED.
-
status_reason_code(Option<StatusReasonCode>):Why the service decided the proposal, when it did: REQUEST_EXPIRED when a holding policy’s auto-reject window passed with no decision. Absent when a curator decided it.
Valid values:
-
REQUEST_EXPIRED- The auto-reject window of a policy that held the proposal passed with no decision, so the service rejected it. -
CONNECTION_REMOVED- The connection was removed from the agent context. AWS Context removes the data that only that connection produced, and archives the connection’s pending proposals.
-
access_control(Option<AccessControl>):Who can read the authorizing change set’s content. See
AccessControl. If the value isACL_RESTRICTED,ListChangeSetOperationsonchangeSetIdreturns the operations only to an allowed end user. Any other caller getsAccessDeniedException, andGetChangeSetreturns only metadata, and the proposal’s title has no node names or edge endpoints. The service returnsaccessControlon every proposal.Valid values:
-
ACL_RESTRICTED- Only an allowed end user can read the content (its operations), and the change set can’t be edited. Every caller can read its metadata, and its proposal’stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
agent_context_id(String):The agent context’s ID.
expires_at(Option<DateTime>):The date and time when the review window closes, which is when a holding policy’s
autoRejectAfterSecondselapses. If no curator has decided the proposal by then, AWS Context rejects it withstatusReasonCodeREQUEST_EXPIRED. Present only whilestatusisPENDING_REVIEWand a holding policy set a window. Absent on every other status.created_at(DateTime):The date and time when the curation proposal was created.
updated_at(DateTime):The date and time when the curation proposal was last updated, such as when its change set was edited or the proposal was decided. Equal to
createdAtuntil the first update.status_reason(Option<StatusReason>):Why AWS Context closed the proposal. Set on an
ARCHIVEDproposal. Absent otherwise.id(String):The proposal’s opaque instance ID. Requests take it as
curationProposalId.triggering_policies(Option<Vec::<TriggeringPolicy>>):The policies that routed this change set to review (the
HOLD_FOR_REVIEWentries in the change set’s evaluation). Absent if none held it.
- On failure, responds with
SdkError<GetCurationProposalError>
Source§impl Client
impl Client
Sourcepub fn get_ontology(&self) -> GetOntologyFluentBuilder
pub fn get_ontology(&self) -> GetOntologyFluentBuilder
Constructs a fluent builder for the GetOntology operation.
- The fluent builder is configurable:
ontology_id(impl Into<String>)/set_ontology_id(Option<String>):
required: trueThe ontology to return, by its ID or ARN (see
OntologyIdentifier).version(impl Into<String>)/set_version(Option<String>):
required: falseThe version to return, in MAJOR.MINOR.PATCH form, for example
1.0.0. If you omit it, GetOntology returns the current default version.source_format(OntologySourceFormat)/set_source_format(Option<OntologySourceFormat>):
required: falseReturn the version’s source document in
source, in this format, in place of the template. The response then has notemplate. The format must be the version’ssourceFormat. On aDRAFTontology, GetOntology returns the draft, with or withoutversion(its only version is 1.0.0). If the ontology is AWS managed, whose source is never returned, or the version has no source document, the request fails withValidationException. If you omit it, the response has the template and no source.
- On success, responds with
GetOntologyOutputwith field(s):arn(String):The ARN of the ontology. It has no account for an AWS managed ontology, and includes the account for a customer-owned one. Use it to address the same ontology again.
version(String):The version of the ontology, in MAJOR.MINOR.PATCH form, for example
1.0.0.template(Option<String>):The serialized template JSON for this version (see OntologyTemplate).
created_at(Option<DateTime>):When this version was created. Absent when the stored version carries no creation time.
published_at(Option<DateTime>):Publish time of the DEFAULT version. Absent for non-default versions, and while the ontology is DRAFT: a DRAFT ontology stays a draft until you publish it in the AWS Context console.
name(Option<String>):The ontology’s current display name. The same for every version. Absent for an AWS managed ontology, which has no name, and for a customer-owned ontology that was created without a name and hasn’t been named since.
description(Option<String>):The ontology’s description. The same for every version. Absent when the ontology has none.
derivation_version(Option<String>):Identifies the derivation rules that produced this template. Node ID formulas don’t change after a version is published.
id(String):The ID of the ontology, assigned by AWS Context.
status(OntologyStatus):The ontology’s status. PUBLISHED for every ontology CreateOntology made. Check it before using the template: a DRAFT ontology stays a draft until you publish it in the AWS Context console, and until then its template is the empty template of version 1.0.0 and GetOntology returns the draft.
updated_at(DateTime):When the ontology itself last changed. Equal to the ontology’s creation time until the first update. The top-level
createdAt(from the version fields) is the returned version’s creation time, not the ontology’s.ontology_induction_id(Option<String>):The induction that made the ontology. Absent for an ontology CreateOntology made.
source(Option<String>):The source document of the returned version, or the draft of a
DRAFTontology, with or withoutversion. Set only when the request setsourceFormat. Absent otherwise.source_format(Option<OntologySourceFormat>):The format of the version’s source document. On a
DRAFT,TURTLE, the format of the draft. Set whether or not the request asked forsource, and asourcein the response is in this format. On an AWS managed ontology, it names the format that its template was derived from, but its source is never returned (seesourceFormaton the request).revision_id(Option<String>):The revision of the draft. Set only for a DRAFT ontology.
validation_issues(Option<Vec::<OntologyValidationIssue>>):Non-fatal warnings raised while deriving the returned version. On a DRAFT, the warnings from deriving the draft.
- On failure, responds with
SdkError<GetOntologyError>
Source§impl Client
impl Client
Sourcepub fn get_ontology_induction(&self) -> GetOntologyInductionFluentBuilder
pub fn get_ontology_induction(&self) -> GetOntologyInductionFluentBuilder
Constructs a fluent builder for the GetOntologyInduction operation.
- The fluent builder is configurable:
ontology_induction_id(impl Into<String>)/set_ontology_induction_id(Option<String>):
required: trueThe ID or Amazon Resource Name (ARN) of the ontology induction to return.
- On success, responds with
GetOntologyInductionOutputwith field(s):id(String):The ID of the induction, assigned by AWS Context.
arn(String):The Amazon Resource Name (ARN) of the ontology induction.
status(OntologyInductionStatus):The status of the ontology induction:
INDUCINGwhile it runs, thenDRAFTonce it has created a draft ontology, orFAILED. An induction that CancelOntologyInduction stops isCANCELLED.DRAFT,FAILED, andCANCELLEDare final.failure(Option<OntologyInductionFailure>):Why the induction is FAILED. Absent in every other status.
ontology_name(Option<String>):The name the induction’s ontology gets, as StartOntologyInduction took it (
ontologyName). Once the ontology exists, its current name is GetOntology’s.ontology_description(Option<String>):The description the induction’s ontology gets (
ontologyDescription). Absent when there is none.ontology_id(Option<String>):The ontology the induction created. Present exactly when the status is DRAFT: the ontology is created as DRAFT, in the same step that makes the induction DRAFT. Absent while INDUCING, and on a FAILED or CANCELLED induction, which never has an ontology. Returned even after the ontology is deleted.
ontology_arn(Option<String>):The ARN of
ontologyId. Present when it is.created_at(DateTime):The date and time when the ontology induction was created.
updated_at(DateTime):The date and time when the ontology induction was last updated. Set when the induction is created, and updated on every change, such as a change of status.
seed_ontology_id(Option<String>):The seed ontology the induction started from. Absent when started without a seed. Returned in every status.
prompt(Option<String>):The prompt that the induction was started with. Absent if the induction was started without a prompt.
input_config(Option<OntologyInductionInputConfigSummary>):What the induction was started from, without the document content.
- On failure, responds with
SdkError<GetOntologyInductionError>
Source§impl Client
impl Client
Sourcepub fn get_resource_policy(&self) -> GetResourcePolicyFluentBuilder
pub fn get_resource_policy(&self) -> GetResourcePolicyFluentBuilder
Constructs a fluent builder for the GetResourcePolicy operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueARN of the agent context.
- On success, responds with
GetResourcePolicyOutputwith field(s):resource_arn(String):ARN of the agent context.
policy(String):The resource-based policy document.
revision_id(String):Current revision. Pass it to PutResourcePolicy or DeleteResourcePolicy as
expectedRevisionId.
- On failure, responds with
SdkError<GetResourcePolicyError>
Source§impl Client
impl Client
Sourcepub fn get_task(&self) -> GetTaskFluentBuilder
pub fn get_task(&self) -> GetTaskFluentBuilder
Constructs a fluent builder for the GetTask operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context, as an ID or ARN.
task_id(impl Into<String>)/set_task_id(Option<String>):
required: trueThe ID of the task to return.
- On success, responds with
GetTaskOutputwith field(s):id(String):The ID of the task. Pass it as
taskIdto GetTask or CancelTask.arn(String):The Amazon Resource Name (ARN) of the task.
agent_context_id(String):The agent context’s ID.
r#type(TaskType):The type of the task. It is set by the
inputConfigurationmember that the task was started with:IMPORT_DATA_DICTIONARY,IMPORT_VERIFIED_QUERIES, orIMPORT_ONTOLOGY.status(TaskStatus):The status of the task. A task moves from
PENDINGtoIN_PROGRESSand endsCOMPLETED,FAILED, orCANCELLED. After CancelTask, it isCANCELLINGuntil it stops.description(Option<String>):The description of the task, as given to StartTask.
created_at(DateTime):The date and time when the task was created.
updated_at(DateTime):The date and time when the task was last updated, such as when its status changed. Equal to
createdAtuntil the task first changes.status_reason_code(Option<TaskStatusReasonCode>):The code for why the task failed. Present only when
statusisFAILED.Valid values:
-
GRAPH_NOT_ACTIVE- The agent context was deleted, or was not yet available, while the task ran. -
ONTOLOGY_INVALID- An ontology is missing, has no loadable source, or its source is unsafe or too large. -
ONTOLOGY_IMPORT_UNAVAILABLE- An ontology couldn’t be imported because of a temporary problem. Start a new task. -
ONTOLOGY_ALREADY_IMPORTED- This ontology version is already imported into the agent context.
-
status_message(Option<String>):The reason the task failed. Present only when status is FAILED.
statistics(Option<TaskStatistics>):Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is
COMPLETED,FAILED, orCANCELLED.input_configuration(Option<TaskInputConfigurationSummary>):A summary of the input that the task was started with. Each document is returned as its name, size, and content type, not its content, and each ontology is returned as its ARN and, if set, its version.
outputs(Option<Vec::<TaskOutput>>):What the task created, in creation order. Set when it finishes.
- On failure, responds with
SdkError<GetTaskError>
Source§impl Client
impl Client
Sourcepub fn list_agent_contexts(&self) -> ListAgentContextsFluentBuilder
pub fn list_agent_contexts(&self) -> ListAgentContextsFluentBuilder
Constructs a fluent builder for the ListAgentContexts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results per page (upper bound, not a target). Defaults to 50 when absent. The service might return fewer items.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOpaque pagination cursor from a prior response. Omit for the first page.
- On success, responds with
ListAgentContextsOutputwith field(s):items(Vec::<AgentContextSummary>):The agent contexts in your account, as summaries, most recently updated first.
next_token(Option<String>):Pagination cursor for the next page. Absent when no more results exist.
- On failure, responds with
SdkError<ListAgentContextsError>
Source§impl Client
impl Client
Sourcepub fn list_change_set_operations(&self) -> ListChangeSetOperationsFluentBuilder
pub fn list_change_set_operations(&self) -> ListChangeSetOperationsFluentBuilder
Constructs a fluent builder for the ListChangeSetOperations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
change_set_id(impl Into<String>)/set_change_set_id(Option<String>):
required: trueThe change set whose operations to page through, by its opaque instance ID.
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context that owns the change set, as an ID or ARN. Authorization is on this agent context’s ARN, and a change set of another agent context is a ResourceNotFoundException.
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of operations per page (upper bound, not a target). Defaults to 50. A value outside 1–100 fails with
ValidationException.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe pagination token from a previous response. Omit it for the first page.
The request fails with
ValidationException, and you must start again without a token, in these cases:-
The token was issued before an
UpdateChangeSetedit, and the change set is stillPENDING. -
The token was issued while an edited change set was
PENDING, and the change set’s status has since changed. -
The token was issued to another end user or for another change set.
On an
ACL_RESTRICTEDchange set, AWS Context checks access before it reads the token, so a caller without access getsAccessDeniedExceptionwhatever token it sends. For an allowed end user, the token also carries the access decision, which expires after a few minutes. AWS Context then checks access again before it returns the page.-
- On success, responds with
ListChangeSetOperationsOutputwith field(s):items(Vec::<ChangeSetOperation>):This page of the change set’s operations.
next_token(Option<String>):Pagination cursor for the next page. Absent when no more operations remain.
- On failure, responds with
SdkError<ListChangeSetOperationsError>
Source§impl Client
impl Client
Sourcepub fn list_change_sets(&self) -> ListChangeSetsFluentBuilder
pub fn list_change_sets(&self) -> ListChangeSetsFluentBuilder
Constructs a fluent builder for the ListChangeSets operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context whose change sets you want to list, by its ID or ARN.
status(ChangeSetStatus)/set_status(Option<ChangeSetStatus>):
required: trueThe status of the change sets to list, for example
PUBLISHED. Required. A request lists one status, so to list several statuses, make one request for each. If you specify a value that isn’t listed, the request fails withValidationException.access_control(AccessControl)/set_access_control(Option<AccessControl>):
required: falseThe
accessControlvalue to list change sets for. If you omit it, every change set in the status is listed, each with itsaccessControl. If you specify a value that isn’t listed, the request fails withValidationException.Valid values:
-
ACL_RESTRICTED- Only an allowed end user can read the content (its operations), and the change set can’t be edited. Every caller can read its metadata, and its proposal’stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
generated_by(Activity)/set_generated_by(Option<Activity>):
required: falseThe activity that generated the change sets to list, for example
ENTITY_RESOLUTION. If you omit it, change sets from every activity are listed. If you specify a value that isn’t listed, the request fails withValidationException. A change set without ageneratedBy, for example one that AWS Context wrote when it loaded an ontology’s schema, matches no value.Valid values:
-
DATA_SOURCE_EXTRACTION- AWS Context extracted the content from a connected data source with a model, for example from the documents of an Amazon Bedrock knowledge base. -
DATA_SOURCE_INGESTION- AWS Context ingested content from a connected data source as a repeatable projection of the source, such as an AWS Glue Data Catalog sync. -
ENTITY_RESOLUTION- AWS Context merged duplicate entities into one canonical entity. -
ONTOLOGY_GROUNDING- AWS Context linked an ontology class to the data entities that instantiate it. -
TRACE_ANALYSIS- AWS Context derived skills and instructions from recorded agent sessions. -
IMPORT_DATA_DICTIONARY_TASK- AnIMPORT_DATA_DICTIONARYtask wrote the content. Change sets from earlierIMPORT_VERIFIED_QUERIEStasks can also carry this value. -
IMPORT_VERIFIED_QUERIES_TASK- AnIMPORT_VERIFIED_QUERIEStask wrote the content. -
IMPORT_ONTOLOGY_TASK- AnIMPORT_ONTOLOGYtask imported an ontology. -
DIRECT_MODIFICATION- A person, an agent, or an application calledCreateChangeSetdirectly.
-
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results per page (upper bound, not a target). The service might return fewer.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOpaque pagination cursor from a prior response. Omit for the first page.
- On success, responds with
ListChangeSetsOutputwith field(s):items(Vec::<ChangeSetSummary>):The change set summaries. Always present, and empty when there are none. Stop paging when
nextTokenis absent, not when a page is short.next_token(Option<String>):Pagination cursor for the next page. Absent when no more results exist.
- On failure, responds with
SdkError<ListChangeSetsError>
Source§impl Client
impl Client
Sourcepub fn list_connections(&self) -> ListConnectionsFluentBuilder
pub fn list_connections(&self) -> ListConnectionsFluentBuilder
Constructs a fluent builder for the ListConnections operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results per page (upper bound, not a target). Defaults to 50 when absent. The service might return fewer items.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOpaque pagination cursor from a prior response. Omit for the first page.
- On success, responds with
ListConnectionsOutputwith field(s):items(Vec::<ConnectionSummary>):The connections in your account, as summaries. Always present, and empty when the account has no connections.
next_token(Option<String>):Pagination cursor for the next page. Absent when no more results exist.
- On failure, responds with
SdkError<ListConnectionsError>
Source§impl Client
impl Client
Sourcepub fn list_curation_policies(&self) -> ListCurationPoliciesFluentBuilder
pub fn list_curation_policies(&self) -> ListCurationPoliciesFluentBuilder
Constructs a fluent builder for the ListCurationPolicies operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: falseThe agent context whose associated policies you want to list, by its ID or ARN. If you omit it, every policy in your account is listed.
status(CurationPolicyStatusFilter)/set_status(Option<CurationPolicyStatusFilter>):
required: falseReturn only policies with this status. If you omit it, policies in both statuses are returned.
Valid values:
-
DRAFT- Policies that have never been published. -
ACTIVE- Policies with a published version.
-
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results per page (upper bound, not a target). The service might return fewer. Defaults to 50. A value outside 1–100 fails with
ValidationException.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOpaque pagination cursor from a prior response. Omit for the first page.
- On success, responds with
ListCurationPoliciesOutputwith field(s):items(Vec::<CurationPolicySummary>):The matching policies, as summaries: the agent context’s associated policies, or every policy in your account when
agentContextIdis omitted, in no particular order. The account-wide list is eventually consistent, so a policy created moments ago might be missing. Always present, and empty when there are none.next_token(Option<String>):Pagination cursor for the next page. Absent when no more results exist.
- On failure, responds with
SdkError<ListCurationPoliciesError>
Source§impl Client
impl Client
Sourcepub fn list_curation_proposals(&self) -> ListCurationProposalsFluentBuilder
pub fn list_curation_proposals(&self) -> ListCurationProposalsFluentBuilder
Constructs a fluent builder for the ListCurationProposals operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context whose proposals you want to list, by its ID or ARN.
status(CurationProposalStatus)/set_status(Option<CurationProposalStatus>):
required: trueThe status to scope the queue to, for example, PENDING_REVIEW for the review queue. Required: a request lists one status, so list each status you want in its own request.
Valid values:
-
PENDING_REVIEW- Waiting for a curator’s decision. The only status Accept and Reject act on. -
APPROVED- A curator accepted it. Its change set is published or publishing. -
REJECTED- Closed without applying its change set: a curator rejected it, or the service did when a holding policy’s review window passed with no decision (statusReasonCodeREQUEST_EXPIRED). -
SUPERSEDED- A newer proposal for the same document replaced it. -
FAILED- The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again. -
PUBLISHING- Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED. -
ARCHIVED- The connection that produced it was removed from the agent context.statusReason.codeis CONNECTION_REMOVED.
-
access_control(AccessControl)/set_access_control(Option<AccessControl>):
required: falseThe
accessControlvalue to list proposals for. If you omit it, every proposal in the status is listed, each with itsaccessControl. If you specify a value that isn’t listed, the request fails withValidationException.Valid values:
-
ACL_RESTRICTED- Only an allowed end user can read the content (its operations), and the change set can’t be edited. Every caller can read its metadata, and its proposal’stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results per page (upper bound, not a target). The service might return fewer. Defaults to 50. A value outside 1–100 fails with
ValidationException.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOpaque pagination cursor from a prior response. Omit for the first page.
- On success, responds with
ListCurationProposalsOutputwith field(s):items(Vec::<CurationProposalSummary>):The curation proposals, as summaries. Always present, and empty when there are none.
next_token(Option<String>):Pagination cursor for the next page. Absent when no more results exist.
- On failure, responds with
SdkError<ListCurationProposalsError>
Source§impl Client
impl Client
Sourcepub fn list_ontologies(&self) -> ListOntologiesFluentBuilder
pub fn list_ontologies(&self) -> ListOntologiesFluentBuilder
Constructs a fluent builder for the ListOntologies operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of ontology summaries to return in one page, 1–100. Defaults to 50. A value outside this range fails with ValidationException. AWS Context doesn’t clamp it.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOpaque continuation token from a prior response’s nextToken. Omit on the first page.
- On success, responds with
ListOntologiesOutputwith field(s):items(Vec::<OntologySummary>):One entry for each ontology that you own. Always present, and empty when you have none.
next_token(Option<String>):The token for the next page of results. Pass it as
nextTokenin your next request. Absent on the last page. Treat the token as opaque.
- On failure, responds with
SdkError<ListOntologiesError>
Source§impl Client
impl Client
Sourcepub fn list_ontology_inductions(&self) -> ListOntologyInductionsFluentBuilder
pub fn list_ontology_inductions(&self) -> ListOntologyInductionsFluentBuilder
Constructs a fluent builder for the ListOntologyInductions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of inductions to return in one page, from 1 to 100. Defaults to 50.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOpaque continuation token from a prior response’s nextToken. Omit on the first page.
- On success, responds with
ListOntologyInductionsOutputwith field(s):items(Vec::<OntologyInductionSummary>):The ontology inductions in your account. Always present, and empty when there are none.
next_token(Option<String>):The token for the next page of results. Absent on the last page.
- On failure, responds with
SdkError<ListOntologyInductionsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe ARN of the resource whose tags you want to list.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(HashMap::<String, String>):The resource’s tags, including any
aws:system tags. Empty when the resource has no tags.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn list_tasks(&self) -> ListTasksFluentBuilder
pub fn list_tasks(&self) -> ListTasksFluentBuilder
Constructs a fluent builder for the ListTasks operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context, as an ID or ARN.
status(TaskStatus)/set_status(Option<TaskStatus>):
required: falseSpecify a status to list only the tasks with that status.
r#type(TaskType)/set_type(Option<TaskType>):
required: falseSpecify a type to list only the tasks of that type.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of tasks to return in one page, from 1–100. The service can return fewer. Defaults to 20. A value outside 1–100 fails with
ValidationException.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe pagination token from a previous ListTasks response. Omit it for the first page, and keep the
statusandtypefilters the same on every page.
- On success, responds with
ListTasksOutputwith field(s):items(Vec::<TaskSummary>):The tasks. Always present, and empty when there are none.
next_token(Option<String>):The token for the next page of results. Absent on the last page.
- On failure, responds with
SdkError<ListTasksError>
Source§impl Client
impl Client
Sourcepub fn put_resource_policy(&self) -> PutResourcePolicyFluentBuilder
pub fn put_resource_policy(&self) -> PutResourcePolicyFluentBuilder
Constructs a fluent builder for the PutResourcePolicy operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueARN of the agent context to attach the policy to.
policy(impl Into<String>)/set_policy(Option<String>):
required: trueThe resource-based policy document.
expected_revision_id(impl Into<String>)/set_expected_revision_id(Option<String>):
required: falseThe revision that you last read. The write succeeds only if it matches the stored revision.
- On success, responds with
PutResourcePolicyOutputwith field(s):resource_arn(String):ARN of the agent context.
revision_id(String):Revision of the stored policy after this call.
- On failure, responds with
SdkError<PutResourcePolicyError>
Source§impl Client
impl Client
Sourcepub fn put_trace(&self) -> PutTraceFluentBuilder
pub fn put_trace(&self) -> PutTraceFluentBuilder
Constructs a fluent builder for the PutTrace operation.
- The fluent builder is configurable:
session_id(impl Into<String>)/set_session_id(Option<String>):
required: falseThe agent session this trace belongs to and the grouping key: multiple PutTrace calls with the same
sessionIdare one session. Optional. If you omit it, the service generates one and returns it in the response. It is not thetraceId: an OTLP batch carries many trace_ids under one session.client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseMakes the call idempotent. A retry with the same token and the same request returns the same
sessionIdand does not write the traces again. Reusing the token fails withValidationExceptionif the request is different, or if another caller reuses it whenaccessControlConfignames no entries. A token is honored for 8 hours after its first use. WhenaccessControlConfignames no entries and the caller’s end user cannot be resolved at the time of the retry, the retry fails withValidationExceptioneven if the first attempt stored traces. To complete them, resend with explicit entries under a new token.format(TraceFormat)/set_format(Option<TraceFormat>):
required: trueThe format of the documents in
traceDocuments. Valid values:-
OTEL- OpenTelemetry traces in OTLP/JSON. -
ANTHROPIC- Claude Code session logs, one log line per document. -
BEDROCK_CONVERSE- Amazon Bedrock Converse messages, one message (roleandcontent) per document, in conversation order. -
KIRO- Kiro IDE or Kiro CLI session logs.
-
trace_documents(Blob)/set_trace_documents(Option<Vec::<Blob>>):
required: trueThe raw trace documents, in the trace schema that
formatselects. You can send 1–100 documents per call, and each document can be up to 5 MiB (5,242,880 bytes) before encoding. If you use an AWS SDK, pass each document’s raw bytes. If you call PutTrace through the agent context’s MCP server or another JSON client, send each document as a base64-encoded string.agent_context_arns(impl Into<String>)/set_agent_context_arns(Option<Vec::<String>>):
required: trueThe ARNs of the agent contexts that the traces are about: 1–10
agent-context/ARNs that name at most 5 distinct agent contexts, in this Region and partition, all in your account. If you name more, the request fails withValidationException. AWS Context authorizescontext:PutTraceonce for each agent context. If any authorization is denied, the whole call fails withAccessDeniedException, and nothing is stored. After authorization, if trace analysis is disabled for an agent context, the call fails withValidationException, and nothing is stored.trace_metadata(impl Into<String>, impl Into<String>)/set_trace_metadata(Option<HashMap::<String, String>>):
required: falseClient-supplied key-value pairs, stored with the traces as-is. The key
analysisModeis reserved. A request that sets it fails withAccessDeniedException.access_control_config(AccessControlConfig)/set_access_control_config(Option<AccessControlConfig>):
required: falseThe principals who can see the insights that AWS Context generates from the traces. If you provide entries, the caller is not included unless an entry names it.
If you provide no entries (
accessControlConfigabsent, oraccessControlListabsent or empty), only the end user that the caller’s trusted identity propagation session names can see the insights. If the session names no end user, or there is no session, the call fails withValidationExceptionand stores nothing. In that case, name the principals, or sendALLOWforso that every reader of the agent contexts can see the insights.An entry other than
withoutprincipalType, aprincipalIdthat is not valid Unicode, or entries that total more than 65,536 bytes of UTF-8 are rejected withValidationException. AWS Context stores principal IDs as given and does not verify them against a directory. A session’s access control is the union of its traces’ entries. A call that would take that union over 100 entries, or over 65,536 bytes of UTF-8, fails withValidationExceptionand stores nothing.
- On success, responds with
PutTraceOutputwith field(s):session_id(String):The session ID for the traces: the
sessionIdthat you specified, or one that AWS Context generated if you omitted it. A successful response means that AWS Context stored every document. A failed call might leave some documents stored. To store the rest without duplicates, retry with the sameclientToken.
- On failure, responds with
SdkError<PutTraceError>
Source§impl Client
impl Client
Sourcepub fn reject_curation_proposal(&self) -> RejectCurationProposalFluentBuilder
pub fn reject_curation_proposal(&self) -> RejectCurationProposalFluentBuilder
Constructs a fluent builder for the RejectCurationProposal operation.
- The fluent builder is configurable:
curation_proposal_id(impl Into<String>)/set_curation_proposal_id(Option<String>):
required: trueThe ID of the proposal to reject.
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context that the proposal belongs to, by its ID or ARN. If the proposal belongs to another agent context, the request fails with
ResourceNotFoundException.revision_id(impl Into<String>)/set_revision_id(Option<String>):
required: trueThe revisionId the curator observed. A mismatch means a stale view.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier that you provide to make the request idempotent. For 8 hours, a retry with the same token returns the rejected proposal, and the same token used with another proposal returns a
ValidationException.
- On success, responds with
RejectCurationProposalOutputwith field(s):change_set_id(String):The change set this proposal reviews. UpdateChangeSet edits that change set in place, so this ID never changes.
title(Option<String>):A one-line English title that AWS Context composes for the proposal, at most 1,024 characters. For example,
Add ‘orders’ and 2 more entities, and 20 relationships,Add ‘orders → customers’ and 2 more relationships, orAssociate ontology ‘my-ontology’ version 2. The title names the lead node (the node that starts the most edges, otherwise the first node) by its name, or by its ID if it has no name. For an edge-only change, it names the lead relationship’s two node IDs. For an ontology load, it names the ontology ID and version. The title is for display only. It is not translated and is not meant to be parsed.For an
ACL_RESTRICTEDchange set (seeaccessControl), the title contains only the verb and the counts, with no node, edge, type, or ontology. The title is absent when the change set is unreadable or has nothing to describe, such as a change set that records a connection’s removal. A node name or ID, ontology ID, or ontology version longer than 128 characters is truncated to 128 characters, ending in….generated_by(Option<Activity>):The activity that generated the change set (see
Activity). This member can be absent, so handle a proposal that has no activity. For example, it’s absent when the change set is unreadable, when AWS Context wrote the change set to load an ontology’s schema, when the change set records a connection’s removal, and when this API version doesn’t recognize the activity.revision_id(String):An opaque revision token. Pass it back as
revisionIdwhen you accept or reject the proposal.status(CurationProposalStatus):The status of the curation proposal, such as
PENDING_REVIEWwhile it waits for a decision,APPROVEDorREJECTEDonce it is decided, orARCHIVEDwhen the connection that produced it was removed from the agent context. New values can be added, so handle a status that you don’t recognize.Valid values:
-
PENDING_REVIEW- Waiting for a curator’s decision. The only status Accept and Reject act on. -
APPROVED- A curator accepted it. Its change set is published or publishing. -
REJECTED- Closed without applying its change set: a curator rejected it, or the service did when a holding policy’s review window passed with no decision (statusReasonCodeREQUEST_EXPIRED). -
SUPERSEDED- A newer proposal for the same document replaced it. -
FAILED- The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again. -
PUBLISHING- Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED. -
ARCHIVED- The connection that produced it was removed from the agent context.statusReason.codeis CONNECTION_REMOVED.
-
status_reason_code(Option<StatusReasonCode>):Why the service decided the proposal, when it did: REQUEST_EXPIRED when a holding policy’s auto-reject window passed with no decision. Absent when a curator decided it.
Valid values:
-
REQUEST_EXPIRED- The auto-reject window of a policy that held the proposal passed with no decision, so the service rejected it. -
CONNECTION_REMOVED- The connection was removed from the agent context. AWS Context removes the data that only that connection produced, and archives the connection’s pending proposals.
-
access_control(Option<AccessControl>):Who can read the authorizing change set’s content. See
AccessControl. If the value isACL_RESTRICTED,ListChangeSetOperationsonchangeSetIdreturns the operations only to an allowed end user. Any other caller getsAccessDeniedException, andGetChangeSetreturns only metadata, and the proposal’s title has no node names or edge endpoints. The service returnsaccessControlon every proposal.Valid values:
-
ACL_RESTRICTED- Only an allowed end user can read the content (its operations), and the change set can’t be edited. Every caller can read its metadata, and its proposal’stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
agent_context_id(String):The agent context’s ID.
expires_at(Option<DateTime>):The date and time when the review window closes, which is when a holding policy’s
autoRejectAfterSecondselapses. If no curator has decided the proposal by then, AWS Context rejects it withstatusReasonCodeREQUEST_EXPIRED. Present only whilestatusisPENDING_REVIEWand a holding policy set a window. Absent on every other status.created_at(DateTime):The date and time when the curation proposal was created.
updated_at(DateTime):The date and time when the curation proposal was last updated, such as when its change set was edited or the proposal was decided. Equal to
createdAtuntil the first update.status_reason(Option<StatusReason>):Why AWS Context closed the proposal. Set on an
ARCHIVEDproposal. Absent otherwise.id(String):The proposal’s opaque instance ID. Requests take it as
curationProposalId.triggering_policies(Option<Vec::<TriggeringPolicy>>):The policies that routed this change set to review (the
HOLD_FOR_REVIEWentries in the change set’s evaluation). Absent if none held it.
- On failure, responds with
SdkError<RejectCurationProposalError>
Source§impl Client
impl Client
Sourcepub fn search_agent_context(&self) -> SearchAgentContextFluentBuilder
pub fn search_agent_context(&self) -> SearchAgentContextFluentBuilder
Constructs a fluent builder for the SearchAgentContext operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum number of results to return per page.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOpaque continuation token from a prior response. Omit on the first page.
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context to search, by ID or full Amazon Resource Name (ARN).
query(impl Into<String>)/set_query(Option<String>):
required: trueThe natural-language query or keywords to search for in the agent context. AWS Context interprets it based on
searchType: as literal text forKEYWORD, as a semantic concept forSEMANTIC, or as both forAUTO.filter(SearchFilter)/set_filter(Option<SearchFilter>):
required: falseOptional filter on node attributes: a single comparison, or
andAllof comparisons that must all match.search_type(SearchAgentContextType)/set_search_type(Option<SearchAgentContextType>):
required: trueThe search strategy to use. Valid values:
-
KEYWORD- Full-text keyword matching (BM25). -
SEMANTIC- Vector similarity of embeddings. -
AUTO- Keyword matches first, then semantic matches for the remaining results.
-
- On success, responds with
SearchAgentContextOutputwith field(s):next_token(Option<String>):Pagination cursor for the next page. Absent when there are no more results.
items(Vec::<SearchAgentContextResultEntity>):The matching entities, ranked by relevance.
authorization_required(Option<AuthorizationRequired>):Present when the end user must authorize access to a third-party resource before the search can run. In that case,
itemsis empty. ShowauthorizationUrlto the end user, and retry after the user consents. Through the agent context’s MCP server, you receive this as an MCP elicitation request that contains the URL.
- On failure, responds with
SdkError<SearchAgentContextError>
Source§impl Client
impl Client
Sourcepub fn start_ontology_induction(&self) -> StartOntologyInductionFluentBuilder
pub fn start_ontology_induction(&self) -> StartOntologyInductionFluentBuilder
Constructs a fluent builder for the StartOntologyInduction operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier that you provide to make the request idempotent. A retry of the same request with the same token returns the induction that the first request created, and the same token used with a different request returns a
ValidationException. If that induction, or the ontology it created, was deleted since, a retry with the token fails withConflictException.ontology_name(impl Into<String>)/set_ontology_name(Option<String>):
required: trueThe new ontology’s display name.
ontology_description(impl Into<String>)/set_ontology_description(Option<String>):
required: falseOptional. The new ontology’s description. An empty string is the same as none.
input_config(OntologyInductionInputConfig)/set_input_config(Option<OntologyInductionInputConfig>):
required: trueThe input to induce the ontology from. Set exactly one member.
seed_ontology_id(impl Into<String>)/set_seed_ontology_id(Option<String>):
required: falseOptional. An existing ontology to start from, by ID or ARN. If you omit it, AWS Context induces the ontology from the documents alone. The seed must be an ontology that you own, it must be
PUBLISHED, and its current version must be derived from a Turtle source document. You also needcontext:GetOntologypermission on the seed. If the seed doesn’t exist, the request fails withResourceNotFoundException. If it can’t be used, the request fails withValidationException. If the seed’s source document is deleted while the induction runs, is larger than 400,000 bytes, or doesn’t parse, the induction fails withSEED_INVALID.prompt(impl Into<String>)/set_prompt(Option<String>):
required: falseOptional. Instructions for the induction.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags to add to the induction when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can’t start with
aws:. To add tags, you also needcontext:TagResourcepermission on the new induction. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException. These tags go on the induction only.ontologyTagsgo on the ontology.ontology_tags(impl Into<String>, impl Into<String>)/set_ontology_tags(Option<HashMap::<String, String>>):
required: falseTags to add to the ontology the induction creates at DRAFT, with the same limits and rules as
tags. They are checked here, and supplying them also requirescontext:TagResourceon the new ontology. These tags go on the ontology only.tagsgo on the induction.
- On success, responds with
StartOntologyInductionOutputwith field(s):id(String):The ID of the induction, assigned by AWS Context.
arn(String):The Amazon Resource Name (ARN) of the ontology induction.
status(OntologyInductionStatus):Always INDUCING on a fresh start. The stored status on an idempotent replay. The ontology is created at DRAFT: GetOntologyInduction returns its ID from then on. It stays a draft until you publish it in the AWS Context console.
- On failure, responds with
SdkError<StartOntologyInductionError>
Source§impl Client
impl Client
Sourcepub fn start_task(&self) -> StartTaskFluentBuilder
pub fn start_task(&self) -> StartTaskFluentBuilder
Constructs a fluent builder for the StartTask operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context, as an ID or ARN.
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier that you provide to ensure that the request completes no more than one time. The token is scoped to your account and the agent context. If you reuse a token on the same agent context with different parameters, the request fails with
ValidationException.description(impl Into<String>)/set_description(Option<String>):
required: falseA description of the task. Up to 1,024 characters, with no control characters.
input_configuration(TaskInputConfiguration)/set_input_configuration(Option<TaskInputConfiguration>):
required: trueWhat the task imports. Set exactly one member. The member that you set determines the task’s
type.access_control_config(AccessControlConfig)/set_access_control_config(Option<AccessControlConfig>):
required: falseWho can see the content that the task adds to the agent context. AWS Context supports only one entry:
ALLOWwithprincipalId*, so that every reader of the agent context can see it. If you omit it or send no entries, AWS Context uses that entry. If you name any other principal, include aDENYentry, or send more than one entry, the request fails withValidationException, and no task is started.
- On success, responds with
StartTaskOutputwith field(s):id(String):The ID of the task. Pass it as
taskIdto GetTask or CancelTask.arn(String):The Amazon Resource Name (ARN) of the task.
agent_context_id(String):The agent context’s ID.
r#type(TaskType):The type of the task. It is set by the
inputConfigurationmember that the task was started with:IMPORT_DATA_DICTIONARY,IMPORT_VERIFIED_QUERIES, orIMPORT_ONTOLOGY.status(TaskStatus):The status of the task. A task moves from
PENDINGtoIN_PROGRESSand endsCOMPLETED,FAILED, orCANCELLED. After CancelTask, it isCANCELLINGuntil it stops.description(Option<String>):The description of the task, as given to StartTask.
created_at(DateTime):The date and time when the task was created.
updated_at(DateTime):The date and time when the task was last updated, such as when its status changed. Equal to
createdAtuntil the task first changes.status_reason_code(Option<TaskStatusReasonCode>):The code for why the task failed. Present only when
statusisFAILED.Valid values:
-
GRAPH_NOT_ACTIVE- The agent context was deleted, or was not yet available, while the task ran. -
ONTOLOGY_INVALID- An ontology is missing, has no loadable source, or its source is unsafe or too large. -
ONTOLOGY_IMPORT_UNAVAILABLE- An ontology couldn’t be imported because of a temporary problem. Start a new task. -
ONTOLOGY_ALREADY_IMPORTED- This ontology version is already imported into the agent context.
-
status_message(Option<String>):The reason the task failed. Present only when status is FAILED.
statistics(Option<TaskStatistics>):Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is
COMPLETED,FAILED, orCANCELLED.input_configuration(Option<TaskInputConfigurationSummary>):A summary of the input that the task was started with. Each document is returned as its name, size, and content type, not its content, and each ontology is returned as its ARN and, if set, its version.
outputs(Option<Vec::<TaskOutput>>):What the task created, in creation order. Set when it finishes.
- On failure, responds with
SdkError<StartTaskError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe ARN of the resource to tag.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: trueThe tags to add, 1–200 per request. Keys must not start with
aws:.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn traverse_agent_context(&self) -> TraverseAgentContextFluentBuilder
pub fn traverse_agent_context(&self) -> TraverseAgentContextFluentBuilder
Constructs a fluent builder for the TraverseAgentContext operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseMaximum total neighbors to return per page.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOpaque continuation token from a prior response. Omit on the first page.
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context to traverse, by ID or full Amazon Resource Name (ARN).
node_id(impl Into<String>)/set_node_id(Option<String>):
required: trueThe ID of the seed node to start traversal from.
traversal_strategy(TraversalStrategy)/set_traversal_strategy(Option<TraversalStrategy>):
required: trueTraversal directives: which edge types to follow, direction, and max depth.
- On success, responds with
TraverseAgentContextOutputwith field(s):next_token(Option<String>):Pagination cursor for the next page. Absent when there are no more results.
items(Vec::<NeighborNode>):The neighbors reached from the seed node.
authorization_required(Option<AuthorizationRequired>):Present when the end user must authorize access to a third-party resource before the traversal can run. In that case,
itemsis empty. ShowauthorizationUrlto the end user, and retry after the user consents. Through the agent context’s MCP server, you receive this as an MCP elicitation request that contains the URL.
- On failure, responds with
SdkError<TraverseAgentContextError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe ARN of the resource to untag.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueThe keys of the tags to remove, 1–200 per request.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_agent_context(&self) -> UpdateAgentContextFluentBuilder
pub fn update_agent_context(&self) -> UpdateAgentContextFluentBuilder
Constructs a fluent builder for the UpdateAgentContext operation.
- The fluent builder is configurable:
agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context to update, by its ID or ARN.
name(impl Into<String>)/set_name(Option<String>):
required: falseThe new name. If you omit it, the name is unchanged.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe new description. Absent leaves the description unchanged. An empty string removes it.
connection_mappings(ConnectionMapping)/set_connection_mappings(Option<Vec::<ConnectionMapping>>):
required: falseThe connection mappings for this agent context, 0–20 entries. If you provide a list, it replaces the stored set: AWS Context removes entries that are not in the list, adds new entries, and overwrites retained entries with exactly the values that you provide, without merging fields. An empty list removes all connection links. If you omit this member, the existing links are unchanged.
Each newly referenced connection must exist, be owned by your account, and be
ACTIVE. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.trace_analysis_config(TraceAnalysisConfig)/set_trace_analysis_config(Option<TraceAnalysisConfig>):
required: falseMerged into the agent context’s trace analysis settings: an absent member leaves its stored value unchanged.
statusENABLED requires a role, supplied here or already on the agent context. A role supplied withoutstatusrequires the agent context’sstatusto read ENABLED.workforce_sign_in_config(WorkforceSignInConfig)/set_workforce_sign_in_config(Option<WorkforceSignInConfig>):
required: falseMerged into the agent context’s workforce sign-in settings: an absent member leaves its stored value unchanged.
signInUrlreplaces the stored URL and reads ENABLED.statusDISABLED removes the stored URL.statusENABLED requires a URL, supplied here or already on the agent context.entity_resolution_config(EntityResolutionConfig)/set_entity_resolution_config(Option<EntityResolutionConfig>):
required: falseMerged into the agent context’s entity resolution settings: an absent member leaves its stored value unchanged.
trusted_identity_sources(TrustedIdentitySource)/set_trusted_identity_sources(Option<Vec::<TrustedIdentitySource>>):
required: falseIdentity sources to trust in addition to your account. A present list replaces the stored list,
[]clears it so only your account is trusted, and an absent field leaves it unchanged. Order is not significant: a list with the stored entries in another order changes nothing. A change takes effect within about a minute.
- On success, responds with
UpdateAgentContextOutputwith field(s):id(String):The agent context’s opaque ID.
arn(String):The ARN of the agent context, in the form
arn:<partition>:context:<region>:<account-id>:agent-context/<id>.name(String):The name of the agent context. If you didn’t specify a name when you created it, the name is
default.description(Option<String>):A human-readable description, if one was set.
status(AgentContextStatus):The agent context’s lifecycle status.
Valid values:
-
CREATING- The agent context is being created. -
ACTIVE- The agent context is ready to use. -
UPDATING- The agent context is being updated. -
DELETING- The agent context is being deleted. -
FAILED- The agent context failed.
-
created_at(DateTime):The date and time when the agent context was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.connection_mappings(Option<Vec::<ConnectionMapping>>):The agent context’s connection mappings.
encryption_config(Option<EncryptionConfig>):The agent context’s encryption settings.
trace_analysis_config(Option<TraceAnalysisConfig>):The agent context’s trace analysis settings.
workforce_sign_in_config(Option<WorkforceSignInConfig>):How your employees sign in to this agent context’s MCP server through your identity provider (workforce sign-in).
statusreads ENABLED while a sign-in URL is stored, DISABLED otherwise.entity_resolution_config(Option<EntityResolutionConfig>):The agent context’s entity resolution settings. Populated on every response path that returns the resource.
mcp_server_url(Option<String>):The Model Context Protocol (MCP) server URL to give your employees while workforce sign-in is
ENABLED. The URL is the agent context’s MCP endpoint, withworkforceSignInConfig.signInUrlas itslogin_hintquery parameter and the ID that AWS Context assigns to that sign-in URL as itstenantIdquery parameter. Absent while workforce sign-in isDISABLED.trusted_identity_sources(Option<Vec::<TrustedIdentitySource>>):Identity sources this agent context trusts in addition to its owner’s account. Absent or empty: only the owner’s account is trusted.
- On failure, responds with
SdkError<UpdateAgentContextError>
Source§impl Client
impl Client
Sourcepub fn update_change_set(&self) -> UpdateChangeSetFluentBuilder
pub fn update_change_set(&self) -> UpdateChangeSetFluentBuilder
Constructs a fluent builder for the UpdateChangeSet operation.
- The fluent builder is configurable:
change_set_id(impl Into<String>)/set_change_set_id(Option<String>):
required: trueThe change set to edit: the
changeSetIdthat GetCurationProposal returns.agent_context_id(impl Into<String>)/set_agent_context_id(Option<String>):
required: trueThe agent context that the change set belongs to, by its ID or ARN. AWS Context authorizes the request on this agent context’s ARN. If the change set belongs to another agent context, the request fails with
ResourceNotFoundException.change_set_version(i32)/set_change_set_version(Option<i32>):
required: trueThe change set version that you read with GetChangeSet. The edit applies only if it’s still the latest version. Otherwise, the request fails with
ConflictException.client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseA unique, case-sensitive identifier that you provide to make the request idempotent. For 8 hours, a retry of the same request with the same token returns the change set’s latest version without writing again, and the same token used for another change set or a different request returns a
ValidationException.operations_to_remove(ChangeSetOperation)/set_operations_to_remove(Option<Vec::<ChangeSetOperation>>):
required: trueOperations to remove, copied unchanged from
ListChangeSetOperations. A retry must resend the same list with the same clientToken.
- On success, responds with
UpdateChangeSetOutputwith field(s):agent_context_id(String):The agent context’s ID.
status(ChangeSetStatus):The status of the change set. Valid values:
-
DRAFT- AWS Context is evaluating the change set against the agent context’s curation policies. -
PENDING- Held for review as a curation proposal. While the change set isPENDING, you can remove operations from it withUpdateChangeSet. -
AUTHORIZED- The change set is approved, and AWS Context is applying it. -
SUPPRESSED- AWS Context won’t apply the change set, because a curation policy denied it or its curation proposal was closed without approval. -
PUBLISHED- AWS Context applied the change set to the agent context. -
FAILED- AWS Context couldn’t apply the change set.
SUPPRESSEDandPUBLISHEDare final. AFAILEDchange set can still change toPUBLISHEDorPENDINGif AWS Context retries applying it. New values can be added, so handle a status that you don’t recognize.-
created_at(DateTime):The date and time when the change set was created.
updated_at(DateTime):The date and time when the change set was last updated, such as when its status changed or its operations were edited.
access_control(Option<AccessControl>):See
AccessControl. The service returns it on every item.Valid values:
-
ACL_RESTRICTED- Only an allowed end user can read the content (its operations), and the change set can’t be edited. Every caller can read its metadata, and its proposal’stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
-
generated_by(Option<Activity>):The activity that generated the change set. A change set that an
IMPORT_ONTOLOGYtask writes carriesIMPORT_ONTOLOGY_TASK, and one that aCreateChangeSetcall makes carriesDIRECT_MODIFICATION. A sync of a connected data source’s own metadata, such as an AWS Glue Data Catalog sync, carriesDATA_SOURCE_INGESTION. To list the change sets that carry a value, filterListChangeSetson it.This member can be absent, so handle a change set that has no activity. For example, it’s absent on a change set that records a connection’s removal, on a change set that AWS Context wrote when it loaded an ontology’s schema, and on a change set whose activity this API version doesn’t recognize.
status_reason(Option<StatusReason>):Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator’s decision. Absent when AWS Context gave no reason.
id(String):The change set’s opaque instance ID. Requests take it as
changeSetId.change_set_version(i32):The version the edit created. Pass it to the next UpdateChangeSet.
- On failure, responds with
SdkError<UpdateChangeSetError>
Source§impl Client
impl Client
Sourcepub fn update_connection(&self) -> UpdateConnectionFluentBuilder
pub fn update_connection(&self) -> UpdateConnectionFluentBuilder
Constructs a fluent builder for the UpdateConnection operation.
- The fluent builder is configurable:
connection_id(impl Into<String>)/set_connection_id(Option<String>):
required: trueThe connection to update, by its ID (which starts with
conn-) or its ARN.name(impl Into<String>)/set_name(Option<String>):
required: falseThe new name. If you omit it, the name is unchanged.
scope(DataSourceScope)/set_scope(Option<DataSourceScope>):
required: falseThe new ingestion scope for the connection. If you omit it, the existing scope is unchanged. The rules of
CreateConnectionRequest.scopeapply, with the following additions:-
A
DATABRICKSorSNOWFLAKEscope names at most onedatabricksCatalogorsnowflakeDatabase, unless the existing scope already names each one. -
If the stored scope has a selector with a
glueServicesegment, the new scope can’t be empty. Every selector that it adds must also have aglueServicesegment. Otherwise, the request fails withValidationException. You can keep a selector that the stored scope already has, so resending the stored scope unchanged succeeds.
-
access_config(AccessConfig)/set_access_config(Option<AccessConfig>):
required: falseThe updated access configuration for the data source. If you omit it, the existing configuration is unchanged. If you provide one, it replaces the stored configuration, including its variant.
For
DATABRICKSandSNOWFLAKE, a configuration with no variant clears a storediamRole, and the connection is then returned with noaccessConfig.For
GLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASE, you cannot add or remove theiamRole. An update that adds aniamRoleto a connection stored without one fails withValidationException. So does an update that provides a configuration withoutiamRolefor a connection that has one. You can replace a stored role with another role. To change how such a connection reads its data source, delete the connection and create it again.sync_schedule(SyncSchedule)/set_sync_schedule(Option<SyncSchedule>):
required: falseThe new sync schedule for a
DATABRICKSorSNOWFLAKEsource. If you omit it, the existing schedule is unchanged. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections.ingestion_config(IngestionConfig)/set_ingestion_config(Option<IngestionConfig>):
required: trueThe ingestion configuration: the IAM role that a data producer assumes to push data into this connection. Required on every update, so that an existing connection always has an ingestion role that AWS Context can authorize. You must have
iam:PassRolepermission to pass this role to the data producer, and the role must be in your account. You can’t clear the role.glue_connection_mappings(GlueConnectionMapping)/set_glue_connection_mappings(Option<Vec::<GlueConnectionMapping>>):
required: falseThe AWS Glue connection for each
redshiftNamespace, and for eachrdsInstanceandrdsDatabasepair, inscope. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changesscope, or changes the role of a connection to another account’s catalog, AWS Context validates the kept list again. The rules are those ofCreateConnectionRequest.glueConnectionMappings. You can’t change the list of aSNOWFLAKEconnection, which is keyed bysnowflakeDatabase: omit it or send it unchanged.publish(bool)/set_publish(Option<bool>):
required: falseSpecifies whether to publish a third-party connection created with
publish: false. Iftrue, AWS Context configures catalog synchronization. The connection moves to ACTIVE when AWS Glue finishes provisioning the managed crawler. This has no effect on an ACTIVE connection.falseis not accepted, because a connection can’t be unpublished. Delete the connection instead.
- On success, responds with
UpdateConnectionOutputwith field(s):id(String):The ID of the connection.
arn(String):The ARN of the connection.
name(String):The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.
data_source(Option<DataSourceReference>):The typed reference to the external data source that this connection binds to. Its
type, the authoritative kind of data source, is indataSource.type.scope(Option<DataSourceScope>):The hierarchical subset of the data source this connection ingests.
access_config(Option<AccessConfig>):Per-connection access configuration: the IAM role used for data access.
sync_schedule(Option<SyncSchedule>):The effective sync schedule. Present for
DATABRICKSandSNOWFLAKEconnections (DAILYif you didn’t specify one). Absent forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections, which are event-driven.ingestion_config(Option<IngestionConfig>):The connection’s ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.
glue_connection_mappings(Option<Vec::<GlueConnectionMapping>>):The AWS Glue connection for each
redshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope. Absent when none is configured.status(ConnectionStatus):The connection’s status. Valid values:
-
CREATING- Validation or provisioning is still in progress. -
ACTIVE- The data source is reachable and, for aDATABRICKSorSNOWFLAKEconnection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn’t mean that a crawl has started or completed. -
UPDATING- The connection is being updated. -
DELETING- The connection is being deleted. -
FAILED- Validation or provisioning failed, and the connection can’t recover.
-
failure(Option<ConnectionFailure>):The reason the connection is FAILED. Absent in every other status.
sub_status(Option<ResourceSubStatus>):The last milestone a third-party connection’s lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with
publish: falsemeans it is waiting for UpdateConnectionpublish: true.created_at(DateTime):The date and time when the connection was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.
- On failure, responds with
SdkError<UpdateConnectionError>
Source§impl Client
impl Client
Sourcepub fn update_curation_policy(&self) -> UpdateCurationPolicyFluentBuilder
pub fn update_curation_policy(&self) -> UpdateCurationPolicyFluentBuilder
Constructs a fluent builder for the UpdateCurationPolicy operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):
required: falseMakes a retry safe: the same token with the same parameters returns the current policy instead of a ConflictException. A token used with different parameters is a ValidationException whose message names
clientToken, checked first. A retry with the same parameters after the policy was deleted is a ConflictException.curation_policy_id(impl Into<String>)/set_curation_policy_id(Option<String>):
required: trueThe ID of the curation policy to update.
revision_id(impl Into<String>)/set_revision_id(Option<String>):
required: trueThe
revisionIdof the working copy that you edited, as you last read it. If a concurrent edit advanced the revision, the request fails withConflictException.name(impl Into<String>)/set_name(Option<String>):
required: falseThe new name. If you omit it, the name is unchanged. This operation updates only the members that you include. You can’t use it to clear an optional member.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe new description. If you omit it, the description is unchanged.
policy_document(impl Into<String>)/set_policy_document(Option<String>):
required: falseThe new Cedar policy document. If you omit it, the document is unchanged.
auto_reject_after_seconds(i64)/set_auto_reject_after_seconds(Option<i64>):
required: falseThe new auto-reject window, in seconds, from 86,400 (1 day) to 15,552,000 (180 days). If you omit it, the window is unchanged. You can’t clear it with this operation.
- On success, responds with
UpdateCurationPolicyOutputwith field(s):id(String):The ID of the curation policy. Requests take it as
curationPolicyId.arn(String):The ARN of the curation policy.
name(String):The name of the curation policy.
last_published_version(Option<String>):Newest published version. Absent until the policy’s first version is created (a DRAFT that has never been published has no version).
revision_id(String):An opaque revision token for the working copy. Pass it as
revisionIdonUpdateCurationPolicy. The update applies only if the token still matches the current working copy.created_at(DateTime):The date and time when the curation policy was created.
updated_at(DateTime):When the resource last changed. Equal to
createdAtuntil the first update.auto_reject_after_seconds(Option<i64>):The number of seconds that a proposal held for review under this policy can wait for a decision before AWS Context rejects it with
statusReasonCodeREQUEST_EXPIRED. From 86,400 seconds (1 day) to 15,552,000 seconds (180 days). Absent if proposals held under this policy are never rejected automatically.description(Option<String>):The description of the curation policy.
policy_document(String):The policy’s rules, as a Cedar policy document: the rule the engine evaluates. Always present on the resource.
status(CurationPolicyStatus):The policy’s status.
Valid values:
-
DRAFT- The policy has never been published, so no agent context enforces it. -
ACTIVE- The policy has a published version, which the agent contexts associated with it enforce. -
DELETED- The policy is deleted. Nothing enforces it, and only GetCurationPolicy still returns it.
-
- On failure, responds with
SdkError<UpdateCurationPolicyError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Forget for Client
impl Freeze for Client
impl Move for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);