Struct aws_sdk_route53resolver::operation::import_firewall_domains::builders::ImportFirewallDomainsFluentBuilder
source · pub struct ImportFirewallDomainsFluentBuilder { /* 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§
source§impl ImportFirewallDomainsFluentBuilder
impl ImportFirewallDomainsFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ImportFirewallDomains, AwsResponseRetryClassifier>, SdkError<ImportFirewallDomainsError>>
pub async fn customize( self ) -> Result<CustomizableOperation<ImportFirewallDomains, AwsResponseRetryClassifier>, SdkError<ImportFirewallDomainsError>>
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<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§
source§impl Clone for ImportFirewallDomainsFluentBuilder
impl Clone for ImportFirewallDomainsFluentBuilder
source§fn clone(&self) -> ImportFirewallDomainsFluentBuilder
fn clone(&self) -> ImportFirewallDomainsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more