pub struct UpdateFirewallDomains { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateFirewallDomains
.
Updates the firewall domain list from an array of domain specifications.
Implementations
sourceimpl UpdateFirewallDomains
impl UpdateFirewallDomains
sourcepub async fn send(
self
) -> Result<UpdateFirewallDomainsOutput, SdkError<UpdateFirewallDomainsError>>
pub async fn send(
self
) -> Result<UpdateFirewallDomainsOutput, SdkError<UpdateFirewallDomainsError>>
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 whose domains you want to update.
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 whose domains you want to update.
sourcepub fn operation(self, input: FirewallDomainUpdateOperation) -> Self
pub fn operation(self, input: FirewallDomainUpdateOperation) -> Self
What you want DNS Firewall to do with the domains that you are providing:
-
ADD
- Add the domains to the ones that are already in the domain list. -
REMOVE
- Search the domain list for the domains and remove them from the list. -
REPLACE
- Update the domain list to exactly match the list that you are providing.
sourcepub fn set_operation(self, input: Option<FirewallDomainUpdateOperation>) -> Self
pub fn set_operation(self, input: Option<FirewallDomainUpdateOperation>) -> Self
What you want DNS Firewall to do with the domains that you are providing:
-
ADD
- Add the domains to the ones that are already in the domain list. -
REMOVE
- Search the domain list for the domains and remove them from the list. -
REPLACE
- Update the domain list to exactly match the list that you are providing.
sourcepub fn domains(self, input: impl Into<String>) -> Self
pub fn domains(self, input: impl Into<String>) -> Self
Appends an item to Domains
.
To override the contents of this collection use set_domains
.
A list of domains to use in the update operation.
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.
sourcepub fn set_domains(self, input: Option<Vec<String>>) -> Self
pub fn set_domains(self, input: Option<Vec<String>>) -> Self
A list of domains to use in the update operation.
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.
Trait Implementations
sourceimpl Clone for UpdateFirewallDomains
impl Clone for UpdateFirewallDomains
sourcefn clone(&self) -> UpdateFirewallDomains
fn clone(&self) -> UpdateFirewallDomains
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 UpdateFirewallDomains
impl Send for UpdateFirewallDomains
impl Sync for UpdateFirewallDomains
impl Unpin for UpdateFirewallDomains
impl !UnwindSafe for UpdateFirewallDomains
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