// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`SetStackPolicy`](crate::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`stack_name(impl Into<String>)`](crate::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder::stack_name) / [`set_stack_name(Option<String>)`](crate::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder::set_stack_name): <p>The name or unique stack ID that you want to associate a policy with.</p>
/// - [`stack_policy_body(impl Into<String>)`](crate::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder::stack_policy_body) / [`set_stack_policy_body(Option<String>)`](crate::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder::set_stack_policy_body): <p>Structure containing the stack policy body. For more information, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html"> Prevent updates to stack resources</a> in the CloudFormation User Guide. You can specify either the <code>StackPolicyBody</code> or the <code>StackPolicyURL</code> parameter, but not both.</p>
/// - [`stack_policy_url(impl Into<String>)`](crate::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder::stack_policy_url) / [`set_stack_policy_url(Option<String>)`](crate::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder::set_stack_policy_url): <p>Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an Amazon S3 bucket in the same Amazon Web Services Region as the stack. You can specify either the <code>StackPolicyBody</code> or the <code>StackPolicyURL</code> parameter, but not both.</p>
/// - On success, responds with [`SetStackPolicyOutput`](crate::operation::set_stack_policy::SetStackPolicyOutput)
/// - On failure, responds with [`SdkError<SetStackPolicyError>`](crate::operation::set_stack_policy::SetStackPolicyError)
pub fn set_stack_policy(
&self,
) -> crate::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder {
crate::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder::new(
self.handle.clone(),
)
}
}