#[non_exhaustive]pub struct SetStackPolicyInput {
pub stack_name: Option<String>,
pub stack_policy_body: Option<String>,
pub stack_policy_url: Option<String>,
}
Expand description
The input for the SetStackPolicy
action.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.stack_name: Option<String>
The name or unique stack ID that you want to associate a policy with.
stack_policy_body: 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.
stack_policy_url: 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.
Implementations§
source§impl SetStackPolicyInput
impl SetStackPolicyInput
sourcepub fn stack_name(&self) -> Option<&str>
pub fn stack_name(&self) -> Option<&str>
The name or unique stack ID that you want to associate a policy with.
sourcepub fn stack_policy_body(&self) -> Option<&str>
pub fn stack_policy_body(&self) -> Option<&str>
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) -> Option<&str>
pub fn stack_policy_url(&self) -> Option<&str>
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.
source§impl SetStackPolicyInput
impl SetStackPolicyInput
sourcepub fn builder() -> SetStackPolicyInputBuilder
pub fn builder() -> SetStackPolicyInputBuilder
Creates a new builder-style object to manufacture SetStackPolicyInput
.
Trait Implementations§
source§impl Clone for SetStackPolicyInput
impl Clone for SetStackPolicyInput
source§fn clone(&self) -> SetStackPolicyInput
fn clone(&self) -> SetStackPolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetStackPolicyInput
impl Debug for SetStackPolicyInput
source§impl PartialEq for SetStackPolicyInput
impl PartialEq for SetStackPolicyInput
source§fn eq(&self, other: &SetStackPolicyInput) -> bool
fn eq(&self, other: &SetStackPolicyInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetStackPolicyInput
Auto Trait Implementations§
impl Freeze for SetStackPolicyInput
impl RefUnwindSafe for SetStackPolicyInput
impl Send for SetStackPolicyInput
impl Sync for SetStackPolicyInput
impl Unpin for SetStackPolicyInput
impl UnwindSafe for SetStackPolicyInput
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