aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateCurationPolicy`](crate::operation::associate_curation_policy::builders::AssociateCurationPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`agent_context_id(impl Into<String>)`](crate::operation::associate_curation_policy::builders::AssociateCurationPolicyFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::associate_curation_policy::builders::AssociateCurationPolicyFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context, by its ID or ARN.</p><br>
    ///   - [`curation_policy_id(impl Into<String>)`](crate::operation::associate_curation_policy::builders::AssociateCurationPolicyFluentBuilder::curation_policy_id) / [`set_curation_policy_id(Option<String>)`](crate::operation::associate_curation_policy::builders::AssociateCurationPolicyFluentBuilder::set_curation_policy_id):<br>required: **true**<br><p>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 <code>ResourceNotFoundException</code>. If it was deleted, the request fails with <code>ConflictException</code>.</p><br>
    /// - On success, responds with [`AssociateCurationPolicyOutput`](crate::operation::associate_curation_policy::AssociateCurationPolicyOutput) with field(s):
    ///   - [`agent_context_id(String)`](crate::operation::associate_curation_policy::AssociateCurationPolicyOutput::agent_context_id): <p>The agent context's ID.</p>
    ///   - [`curation_policy_id(String)`](crate::operation::associate_curation_policy::AssociateCurationPolicyOutput::curation_policy_id): <p>The ID of the curation policy that is associated with the agent context.</p>
    /// - On failure, responds with [`SdkError<AssociateCurationPolicyError>`](crate::operation::associate_curation_policy::AssociateCurationPolicyError)
    pub fn associate_curation_policy(&self) -> crate::operation::associate_curation_policy::builders::AssociateCurationPolicyFluentBuilder {
        crate::operation::associate_curation_policy::builders::AssociateCurationPolicyFluentBuilder::new(self.handle.clone())
    }
}