Struct aws_sdk_cloudformation::client::fluent_builders::SetStackPolicy [−][src]
pub struct SetStackPolicy<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to SetStackPolicy
.
Sets a stack policy for a specified stack.
Implementations
impl<C, M, R> SetStackPolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> SetStackPolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<SetStackPolicyOutput, SdkError<SetStackPolicyError>> where
R::Policy: SmithyRetryPolicy<SetStackPolicyInputOperationOutputAlias, SetStackPolicyOutput, SetStackPolicyError, SetStackPolicyInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<SetStackPolicyOutput, SdkError<SetStackPolicyError>> where
R::Policy: SmithyRetryPolicy<SetStackPolicyInputOperationOutputAlias, SetStackPolicyOutput, SetStackPolicyError, SetStackPolicyInputOperationRetryAlias>,
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, which can be set when configuring the client.
The name or unique stack ID that you want to associate a policy with.
The name or unique stack ID that you want to associate a policy with.
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.
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.
Location of a file containing the stack policy. The URL must point to a policy
(maximum size: 16 KB) located in an S3 bucket in the same
Region as the stack. You can specify either the StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
Location of a file containing the stack policy. The URL must point to a policy
(maximum size: 16 KB) located in an S3 bucket in the same
Region as the stack. You can specify either the StackPolicyBody
or the
StackPolicyURL
parameter, but not both.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for SetStackPolicy<C, M, R>
impl<C, M, R> Send for SetStackPolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for SetStackPolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for SetStackPolicy<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for SetStackPolicy<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more