Struct aws_sdk_cloudformation::input::GetStackPolicyInput  
source · #[non_exhaustive]pub struct GetStackPolicyInput { /* private fields */ }Expand description
The input for the GetStackPolicy action.
Implementations§
source§impl GetStackPolicyInput
 
impl GetStackPolicyInput
sourcepub async fn make_operation(
    &self,
    _config: &Config
) -> Result<Operation<GetStackPolicy, AwsResponseRetryClassifier>, BuildError>
 
pub async fn make_operation(
    &self,
    _config: &Config
) -> Result<Operation<GetStackPolicy, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetStackPolicy>
Examples found in repository?
src/client.rs (line 5709)
5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::GetStackPolicy,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::GetStackPolicyError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }
        /// 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](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::GetStackPolicyOutput,
            aws_smithy_http::result::SdkError<crate::error::GetStackPolicyError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }sourcepub fn builder() -> Builder
 
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetStackPolicyInput.
source§impl GetStackPolicyInput
 
impl GetStackPolicyInput
sourcepub fn stack_name(&self) -> Option<&str>
 
pub fn stack_name(&self) -> Option<&str>
The name or unique stack ID that's associated with the stack whose policy you want to get.
Trait Implementations§
source§impl Clone for GetStackPolicyInput
 
impl Clone for GetStackPolicyInput
source§fn clone(&self) -> GetStackPolicyInput
 
fn clone(&self) -> GetStackPolicyInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read more