1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutProjectPolicy`](crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project_arn(impl Into<String>)`](crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder::project_arn) / [`set_project_arn(Option<String>)`](crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder::set_project_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the project that the project policy is attached to.</p><br>
    ///   - [`policy_name(impl Into<String>)`](crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder::set_policy_name):<br>required: **true**<br><p>A name for the policy.</p><br>
    ///   - [`policy_revision_id(impl Into<String>)`](crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder::policy_revision_id) / [`set_policy_revision_id(Option<String>)`](crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder::set_policy_revision_id):<br>required: **false**<br><p>The revision ID for the Project Policy. Each time you modify a policy, Amazon Rekognition Custom Labels generates and assigns a new <code>PolicyRevisionId</code> and then deletes the previous version of the policy.</p><br>
    ///   - [`policy_document(impl Into<String>)`](crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder::policy_document) / [`set_policy_document(Option<String>)`](crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder::set_policy_document):<br>required: **true**<br><p>A resource policy to add to the model. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON policy reference</a>. </p><br>
    /// - On success, responds with [`PutProjectPolicyOutput`](crate::operation::put_project_policy::PutProjectPolicyOutput) with field(s):
    ///   - [`policy_revision_id(Option<String>)`](crate::operation::put_project_policy::PutProjectPolicyOutput::policy_revision_id): <p>The ID of the project policy.</p>
    /// - On failure, responds with [`SdkError<PutProjectPolicyError>`](crate::operation::put_project_policy::PutProjectPolicyError)
    pub fn put_project_policy(&self) -> crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder {
        crate::operation::put_project_policy::builders::PutProjectPolicyFluentBuilder::new(self.handle.clone())
    }
}