Struct aws_sdk_cloudformation::operation::set_stack_policy::builders::SetStackPolicyInputBuilder
source · #[non_exhaustive]pub struct SetStackPolicyInputBuilder { /* private fields */ }
Expand description
A builder for SetStackPolicyInput
.
Implementations§
source§impl SetStackPolicyInputBuilder
impl SetStackPolicyInputBuilder
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.
This field is required.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.
sourcepub fn build(self) -> Result<SetStackPolicyInput, BuildError>
pub fn build(self) -> Result<SetStackPolicyInput, BuildError>
Consumes the builder and constructs a SetStackPolicyInput
.
source§impl SetStackPolicyInputBuilder
impl SetStackPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SetStackPolicyOutput, SdkError<SetStackPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SetStackPolicyOutput, SdkError<SetStackPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SetStackPolicyInputBuilder
impl Clone for SetStackPolicyInputBuilder
source§fn clone(&self) -> SetStackPolicyInputBuilder
fn clone(&self) -> SetStackPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetStackPolicyInputBuilder
impl Debug for SetStackPolicyInputBuilder
source§impl Default for SetStackPolicyInputBuilder
impl Default for SetStackPolicyInputBuilder
source§fn default() -> SetStackPolicyInputBuilder
fn default() -> SetStackPolicyInputBuilder
source§impl PartialEq for SetStackPolicyInputBuilder
impl PartialEq for SetStackPolicyInputBuilder
source§fn eq(&self, other: &SetStackPolicyInputBuilder) -> bool
fn eq(&self, other: &SetStackPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetStackPolicyInputBuilder
Auto Trait Implementations§
impl Freeze for SetStackPolicyInputBuilder
impl RefUnwindSafe for SetStackPolicyInputBuilder
impl Send for SetStackPolicyInputBuilder
impl Sync for SetStackPolicyInputBuilder
impl Unpin for SetStackPolicyInputBuilder
impl UnwindSafe for SetStackPolicyInputBuilder
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