Struct aws_sdk_cloudformation::operation::set_stack_policy::builders::SetStackPolicyFluentBuilder
source · pub struct SetStackPolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SetStackPolicy
.
Sets a stack policy for a specified stack.
Implementations§
source§impl SetStackPolicyFluentBuilder
impl SetStackPolicyFluentBuilder
sourcepub fn as_input(&self) -> &SetStackPolicyInputBuilder
pub fn as_input(&self) -> &SetStackPolicyInputBuilder
Access the SetStackPolicy as a reference.
sourcepub async fn send(
self
) -> Result<SetStackPolicyOutput, SdkError<SetStackPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<SetStackPolicyOutput, SdkError<SetStackPolicyError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<SetStackPolicyOutput, SetStackPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<SetStackPolicyOutput, SetStackPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn stack_name(self, input: impl Into<String>) -> Self
pub fn stack_name(self, input: impl Into<String>) -> Self
The name or unique stack ID that you want to associate a policy with.
sourcepub fn set_stack_name(self, input: Option<String>) -> Self
pub fn set_stack_name(self, input: Option<String>) -> Self
The name or unique stack ID that you want to associate a policy with.
sourcepub fn get_stack_name(&self) -> &Option<String>
pub fn get_stack_name(&self) -> &Option<String>
The name or unique stack ID that you want to associate a policy with.
sourcepub fn stack_policy_body(self, input: impl Into<String>) -> Self
pub fn stack_policy_body(self, input: impl Into<String>) -> Self
Structure containing the stack policy body. For more information, go to Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the StackPolicyBody
or the StackPolicyURL
parameter, but not both.
sourcepub fn set_stack_policy_body(self, input: Option<String>) -> Self
pub fn set_stack_policy_body(self, input: Option<String>) -> Self
Structure containing the stack policy body. For more information, go to Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the StackPolicyBody
or the StackPolicyURL
parameter, but not both.
sourcepub fn get_stack_policy_body(&self) -> &Option<String>
pub fn get_stack_policy_body(&self) -> &Option<String>
Structure containing the stack policy body. For more information, go to Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the StackPolicyBody
or the StackPolicyURL
parameter, but not both.
sourcepub fn stack_policy_url(self, input: impl Into<String>) -> Self
pub fn stack_policy_url(self, input: impl Into<String>) -> Self
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. The location for an Amazon S3 bucket must start with https://
. You can specify either the StackPolicyBody
or the StackPolicyURL
parameter, but not both.
sourcepub fn set_stack_policy_url(self, input: Option<String>) -> Self
pub fn set_stack_policy_url(self, input: Option<String>) -> Self
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. The location for an Amazon S3 bucket must start with https://
. You can specify either the StackPolicyBody
or the StackPolicyURL
parameter, but not both.
sourcepub fn get_stack_policy_url(&self) -> &Option<String>
pub fn get_stack_policy_url(&self) -> &Option<String>
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. The location for an Amazon S3 bucket must start with https://
. You can specify either the StackPolicyBody
or the StackPolicyURL
parameter, but not both.
Trait Implementations§
source§impl Clone for SetStackPolicyFluentBuilder
impl Clone for SetStackPolicyFluentBuilder
source§fn clone(&self) -> SetStackPolicyFluentBuilder
fn clone(&self) -> SetStackPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SetStackPolicyFluentBuilder
impl !RefUnwindSafe for SetStackPolicyFluentBuilder
impl Send for SetStackPolicyFluentBuilder
impl Sync for SetStackPolicyFluentBuilder
impl Unpin for SetStackPolicyFluentBuilder
impl !UnwindSafe for SetStackPolicyFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more