Context / Client / associate_curation_policy
associate_curation_policy¶
- Context.Client.associate_curation_policy(**kwargs)¶
Associates a curation policy with an agent context. The agent context enforces the policy’s latest published version, including versions published later. Returns the association.
See also: AWS API Documentation
Request Syntax
response = client.associate_curation_policy( agentContextId='string', curationPolicyId='string' )
- Parameters:
agentContextId (string) –
[REQUIRED]
The agent context, by its ID or ARN.
curationPolicyId (string) –
[REQUIRED]
The 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.
- Return type:
dict
- Returns:
Response Syntax
{ 'agentContextId': 'string', 'curationPolicyId': 'string' }
Response Structure
(dict) –
The association between an agent context and a curation policy. The agent context enforces the policy’s latest published version.
agentContextId (string) –
The agent context’s ID.
curationPolicyId (string) –
The ID of the curation policy that is associated with the agent context.
Exceptions