aws_sdk_cloudformation/client/get_stack_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 [`GetStackPolicy`](crate::operation::get_stack_policy::builders::GetStackPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`stack_name(impl Into<String>)`](crate::operation::get_stack_policy::builders::GetStackPolicyFluentBuilder::stack_name) / [`set_stack_name(Option<String>)`](crate::operation::get_stack_policy::builders::GetStackPolicyFluentBuilder::set_stack_name):<br>required: **true**<br><p>The name or unique stack ID that's associated with the stack whose policy you want to get.</p><br>
7 /// - On success, responds with [`GetStackPolicyOutput`](crate::operation::get_stack_policy::GetStackPolicyOutput) with field(s):
8 /// - [`stack_policy_body(Option<String>)`](crate::operation::get_stack_policy::GetStackPolicyOutput::stack_policy_body): <p>Structure that contains the stack policy body. (For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html">Prevent updates to stack resources</a> in the <i>CloudFormation User Guide</i>.)</p>
9 /// - On failure, responds with [`SdkError<GetStackPolicyError>`](crate::operation::get_stack_policy::GetStackPolicyError)
10 pub fn get_stack_policy(&self) -> crate::operation::get_stack_policy::builders::GetStackPolicyFluentBuilder {
11 crate::operation::get_stack_policy::builders::GetStackPolicyFluentBuilder::new(self.handle.clone())
12 }
13}