#[non_exhaustive]pub struct CreateFirewallInput { /* private fields */ }
Implementations§
source§impl CreateFirewallInput
impl CreateFirewallInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFirewall, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFirewall, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateFirewall
>
Examples found in repository?
822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateFirewall,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateFirewallError>,
> {
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::CreateFirewallOutput,
aws_smithy_http::result::SdkError<crate::error::CreateFirewallError>,
> {
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 CreateFirewallInput
.
source§impl CreateFirewallInput
impl CreateFirewallInput
sourcepub fn firewall_name(&self) -> Option<&str>
pub fn firewall_name(&self) -> Option<&str>
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
sourcepub fn firewall_policy_arn(&self) -> Option<&str>
pub fn firewall_policy_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the FirewallPolicy
that you want to use for the firewall.
sourcepub fn vpc_id(&self) -> Option<&str>
pub fn vpc_id(&self) -> Option<&str>
The unique identifier of the VPC where Network Firewall should create the firewall.
You can't change this setting after you create the firewall.
sourcepub fn subnet_mappings(&self) -> Option<&[SubnetMapping]>
pub fn subnet_mappings(&self) -> Option<&[SubnetMapping]>
The public subnets to use for your Network Firewall firewalls. Each subnet must belong to a different Availability Zone in the VPC. Network Firewall creates a firewall endpoint in each subnet.
sourcepub fn delete_protection(&self) -> bool
pub fn delete_protection(&self) -> bool
A flag indicating whether it is possible to delete the firewall. A setting of TRUE
indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE
.
sourcepub fn subnet_change_protection(&self) -> bool
pub fn subnet_change_protection(&self) -> bool
A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE
.
sourcepub fn firewall_policy_change_protection(&self) -> bool
pub fn firewall_policy_change_protection(&self) -> bool
A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE
.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the firewall.
The key:value pairs to associate with the resource.
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 resources.
Trait Implementations§
source§impl Clone for CreateFirewallInput
impl Clone for CreateFirewallInput
source§fn clone(&self) -> CreateFirewallInput
fn clone(&self) -> CreateFirewallInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more