#[non_exhaustive]pub struct UpdateFirewallPolicyInput { /* private fields */ }
Implementations§
source§impl UpdateFirewallPolicyInput
impl UpdateFirewallPolicyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateFirewallPolicy, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateFirewallPolicy, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateFirewallPolicy
>
Examples found in repository?
3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateFirewallPolicy,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateFirewallPolicyError>,
> {
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::UpdateFirewallPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateFirewallPolicyError>,
> {
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 UpdateFirewallPolicyInput
.
source§impl UpdateFirewallPolicyInput
impl UpdateFirewallPolicyInput
sourcepub fn update_token(&self) -> Option<&str>
pub fn update_token(&self) -> Option<&str>
A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token.
sourcepub fn firewall_policy_arn(&self) -> Option<&str>
pub fn firewall_policy_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the firewall policy.
You must specify the ARN or the name, and you can specify both.
sourcepub fn firewall_policy_name(&self) -> Option<&str>
pub fn firewall_policy_name(&self) -> Option<&str>
The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.
You must specify the ARN or the name, and you can specify both.
sourcepub fn firewall_policy(&self) -> Option<&FirewallPolicy>
pub fn firewall_policy(&self) -> Option<&FirewallPolicy>
The updated firewall policy to use for the firewall.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the firewall policy.
sourcepub fn dry_run(&self) -> bool
pub fn dry_run(&self) -> bool
Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.
If set to TRUE
, Network Firewall checks whether the request can run successfully, but doesn't actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set to FALSE
, but doesn't make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.
If set to FALSE
, Network Firewall makes the requested changes to your resources.
sourcepub fn encryption_configuration(&self) -> Option<&EncryptionConfiguration>
pub fn encryption_configuration(&self) -> Option<&EncryptionConfiguration>
A complex type that contains settings for encryption of your firewall policy resources.
Trait Implementations§
source§impl Clone for UpdateFirewallPolicyInput
impl Clone for UpdateFirewallPolicyInput
source§fn clone(&self) -> UpdateFirewallPolicyInput
fn clone(&self) -> UpdateFirewallPolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more