#[non_exhaustive]pub struct DescribeStacksInput {
pub stack_name: Option<String>,
pub next_token: Option<String>,
}
Expand description
The input for DescribeStacks
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>
If you don't pass a parameter to StackName
, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks
and DescribeStacks
permissions.
Consider using the ListStacks
API if you're not passing a parameter to StackName
.
The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request:
{ "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }
The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:
-
Running stacks: You can specify either the stack's name or its unique stack ID.
-
Deleted stacks: You must specify the unique stack ID.
Default: There is no default value.
next_token: Option<String>
A string that identifies the next page of stacks that you want to retrieve.
Implementations§
source§impl DescribeStacksInput
impl DescribeStacksInput
sourcepub fn stack_name(&self) -> Option<&str>
pub fn stack_name(&self) -> Option<&str>
If you don't pass a parameter to StackName
, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks
and DescribeStacks
permissions.
Consider using the ListStacks
API if you're not passing a parameter to StackName
.
The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request:
{ "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }
The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:
-
Running stacks: You can specify either the stack's name or its unique stack ID.
-
Deleted stacks: You must specify the unique stack ID.
Default: There is no default value.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
A string that identifies the next page of stacks that you want to retrieve.
source§impl DescribeStacksInput
impl DescribeStacksInput
sourcepub fn builder() -> DescribeStacksInputBuilder
pub fn builder() -> DescribeStacksInputBuilder
Creates a new builder-style object to manufacture DescribeStacksInput
.
Trait Implementations§
source§impl Clone for DescribeStacksInput
impl Clone for DescribeStacksInput
source§fn clone(&self) -> DescribeStacksInput
fn clone(&self) -> DescribeStacksInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DescribeStacksInput
impl Debug for DescribeStacksInput
source§impl PartialEq for DescribeStacksInput
impl PartialEq for DescribeStacksInput
source§fn eq(&self, other: &DescribeStacksInput) -> bool
fn eq(&self, other: &DescribeStacksInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DescribeStacksInput
Auto Trait Implementations§
impl Freeze for DescribeStacksInput
impl RefUnwindSafe for DescribeStacksInput
impl Send for DescribeStacksInput
impl Sync for DescribeStacksInput
impl Unpin for DescribeStacksInput
impl UnwindSafe for DescribeStacksInput
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