aws_sdk_entityresolution/client/put_policy.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`PutPolicy`](crate::operation::put_policy::builders::PutPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`arn(impl Into<String>)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::set_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.</p><br>
7 /// - [`token(impl Into<String>)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::token) / [`set_token(Option<String>)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::set_token):<br>required: **false**<br><p>A unique identifier for the current revision of the policy.</p><br>
8 /// - [`policy(impl Into<String>)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::policy) / [`set_policy(Option<String>)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::set_policy):<br>required: **true**<br><p>The resource-based policy.</p><important> <p>If you set the value of the <code>effect</code> parameter in the <code>policy</code> to <code>Deny</code> for the <code>PutPolicy</code> operation, you must also set the value of the <code>effect</code> parameter to <code>Deny</code> for the <code>AddPolicyStatement</code> operation.</p> </important><br>
9 /// - On success, responds with [`PutPolicyOutput`](crate::operation::put_policy::PutPolicyOutput) with field(s):
10 /// - [`arn(String)`](crate::operation::put_policy::PutPolicyOutput::arn): <p>The Entity Resolution resource ARN.</p>
11 /// - [`token(String)`](crate::operation::put_policy::PutPolicyOutput::token): <p>A unique identifier for the current revision of the policy.</p>
12 /// - [`policy(Option<String>)`](crate::operation::put_policy::PutPolicyOutput::policy): <p>The resource-based policy.</p>
13 /// - On failure, responds with [`SdkError<PutPolicyError>`](crate::operation::put_policy::PutPolicyError)
14 pub fn put_policy(&self) -> crate::operation::put_policy::builders::PutPolicyFluentBuilder {
15 crate::operation::put_policy::builders::PutPolicyFluentBuilder::new(self.handle.clone())
16 }
17}