pub struct ImportFirewallDomains { /* private fields */ }
Expand description
Fluent builder constructing a request to ImportFirewallDomains
.
Imports domain names from a file into a domain list, for use in a DNS firewall rule group.
Each domain specification in your domain list must satisfy the following requirements:
-
It can optionally start with
*
(asterisk). -
With the exception of the optional starting asterisk, it must only contain the following characters:
A-Z
,a-z
,0-9
,-
(hyphen). -
It must be from 1-255 characters in length.
Implementations
sourceimpl ImportFirewallDomains
impl ImportFirewallDomains
sourcepub async fn send(
self
) -> Result<ImportFirewallDomainsOutput, SdkError<ImportFirewallDomainsError>>
pub async fn send(
self
) -> Result<ImportFirewallDomainsOutput, SdkError<ImportFirewallDomainsError>>
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 firewall_domain_list_id(self, input: impl Into<String>) -> Self
pub fn firewall_domain_list_id(self, input: impl Into<String>) -> Self
The ID of the domain list that you want to modify with the import operation.
sourcepub fn set_firewall_domain_list_id(self, input: Option<String>) -> Self
pub fn set_firewall_domain_list_id(self, input: Option<String>) -> Self
The ID of the domain list that you want to modify with the import operation.
sourcepub fn operation(self, input: FirewallDomainImportOperation) -> Self
pub fn operation(self, input: FirewallDomainImportOperation) -> Self
What you want DNS Firewall to do with the domains that are listed in the file. This must be set to REPLACE
, which updates the domain list to exactly match the list in the file.
sourcepub fn set_operation(self, input: Option<FirewallDomainImportOperation>) -> Self
pub fn set_operation(self, input: Option<FirewallDomainImportOperation>) -> Self
What you want DNS Firewall to do with the domains that are listed in the file. This must be set to REPLACE
, which updates the domain list to exactly match the list in the file.
sourcepub fn domain_file_url(self, input: impl Into<String>) -> Self
pub fn domain_file_url(self, input: impl Into<String>) -> Self
The fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.
The file must be in an S3 bucket that's in the same Region as your DNS Firewall. The file must be a text file and must contain a single domain per line.
sourcepub fn set_domain_file_url(self, input: Option<String>) -> Self
pub fn set_domain_file_url(self, input: Option<String>) -> Self
The fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.
The file must be in an S3 bucket that's in the same Region as your DNS Firewall. The file must be a text file and must contain a single domain per line.
Trait Implementations
sourceimpl Clone for ImportFirewallDomains
impl Clone for ImportFirewallDomains
sourcefn clone(&self) -> ImportFirewallDomains
fn clone(&self) -> ImportFirewallDomains
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ImportFirewallDomains
impl Send for ImportFirewallDomains
impl Sync for ImportFirewallDomains
impl Unpin for ImportFirewallDomains
impl !UnwindSafe for ImportFirewallDomains
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more