aws_sdk_fms/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 /// - [`policy(Policy)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::policy) / [`set_policy(Option<Policy>)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::set_policy):<br>required: **true**<br><p>The details of the Firewall Manager policy to be created.</p><br>
7 /// - [`tag_list(Tag)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::tag_list) / [`set_tag_list(Option<Vec::<Tag>>)`](crate::operation::put_policy::builders::PutPolicyFluentBuilder::set_tag_list):<br>required: **false**<br><p>The tags to add to the Amazon Web Services resource.</p><br>
8 /// - On success, responds with [`PutPolicyOutput`](crate::operation::put_policy::PutPolicyOutput) with field(s):
9 /// - [`policy(Option<Policy>)`](crate::operation::put_policy::PutPolicyOutput::policy): <p>The details of the Firewall Manager policy.</p>
10 /// - [`policy_arn(Option<String>)`](crate::operation::put_policy::PutPolicyOutput::policy_arn): <p>The Amazon Resource Name (ARN) of the policy.</p>
11 /// - On failure, responds with [`SdkError<PutPolicyError>`](crate::operation::put_policy::PutPolicyError)
12 pub fn put_policy(&self) -> crate::operation::put_policy::builders::PutPolicyFluentBuilder {
13 crate::operation::put_policy::builders::PutPolicyFluentBuilder::new(self.handle.clone())
14 }
15}