pub struct CancelPolicyGeneration { /* private fields */ }
Expand description
Fluent builder constructing a request to CancelPolicyGeneration
.
Cancels the requested policy generation.
Implementations§
source§impl CancelPolicyGeneration
impl CancelPolicyGeneration
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CancelPolicyGeneration, AwsResponseRetryClassifier>, SdkError<CancelPolicyGenerationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CancelPolicyGeneration, AwsResponseRetryClassifier>, SdkError<CancelPolicyGenerationError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CancelPolicyGenerationOutput, SdkError<CancelPolicyGenerationError>>
pub async fn send(
self
) -> Result<CancelPolicyGenerationOutput, SdkError<CancelPolicyGenerationError>>
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.
sourcepub fn job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
The JobId
that is returned by the StartPolicyGeneration
operation. The JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or used with CancelPolicyGeneration
to cancel the policy generation request.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The JobId
that is returned by the StartPolicyGeneration
operation. The JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or used with CancelPolicyGeneration
to cancel the policy generation request.
Trait Implementations§
source§impl Clone for CancelPolicyGeneration
impl Clone for CancelPolicyGeneration
source§fn clone(&self) -> CancelPolicyGeneration
fn clone(&self) -> CancelPolicyGeneration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more