Struct aws_sdk_cloudformation::operation::describe_stacks::builders::DescribeStacksInputBuilder
source · #[non_exhaustive]pub struct DescribeStacksInputBuilder { /* private fields */ }
Expand description
A builder for DescribeStacksInput
.
Implementations§
source§impl DescribeStacksInputBuilder
impl DescribeStacksInputBuilder
sourcepub fn stack_name(self, input: impl Into<String>) -> Self
pub fn stack_name(self, input: impl Into<String>) -> Self
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 set_stack_name(self, input: Option<String>) -> Self
pub fn set_stack_name(self, input: Option<String>) -> Self
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 get_stack_name(&self) -> &Option<String>
pub fn get_stack_name(&self) -> &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.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
A string that identifies the next page of stacks that you want to retrieve.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
A string that identifies the next page of stacks that you want to retrieve.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
A string that identifies the next page of stacks that you want to retrieve.
sourcepub fn build(self) -> Result<DescribeStacksInput, BuildError>
pub fn build(self) -> Result<DescribeStacksInput, BuildError>
Consumes the builder and constructs a DescribeStacksInput
.
source§impl DescribeStacksInputBuilder
impl DescribeStacksInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DescribeStacksOutput, SdkError<DescribeStacksError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DescribeStacksOutput, SdkError<DescribeStacksError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DescribeStacksInputBuilder
impl Clone for DescribeStacksInputBuilder
source§fn clone(&self) -> DescribeStacksInputBuilder
fn clone(&self) -> DescribeStacksInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DescribeStacksInputBuilder
impl Debug for DescribeStacksInputBuilder
source§impl Default for DescribeStacksInputBuilder
impl Default for DescribeStacksInputBuilder
source§fn default() -> DescribeStacksInputBuilder
fn default() -> DescribeStacksInputBuilder
source§impl PartialEq for DescribeStacksInputBuilder
impl PartialEq for DescribeStacksInputBuilder
source§fn eq(&self, other: &DescribeStacksInputBuilder) -> bool
fn eq(&self, other: &DescribeStacksInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.