#[non_exhaustive]pub struct ResolverQueryLogConfigBuilder { /* private fields */ }
Expand description
A builder for ResolverQueryLogConfig
.
Implementations§
source§impl ResolverQueryLogConfigBuilder
impl ResolverQueryLogConfigBuilder
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID for the account that created the query logging configuration.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID for the account that created the query logging configuration.
sourcepub fn get_owner_id(&self) -> &Option<String>
pub fn get_owner_id(&self) -> &Option<String>
The Amazon Web Services account ID for the account that created the query logging configuration.
sourcepub fn status(self, input: ResolverQueryLogConfigStatus) -> Self
pub fn status(self, input: ResolverQueryLogConfigStatus) -> Self
The status of the specified query logging configuration. Valid values include the following:
-
CREATING
: Resolver is creating the query logging configuration. -
CREATED
: The query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC. -
DELETING
: Resolver is deleting this query logging configuration. -
FAILED
: Resolver can't deliver logs to the location that is specified in the query logging configuration. Here are two common causes:-
The specified destination (for example, an Amazon S3 bucket) was deleted.
-
Permissions don't allow sending logs to the destination.
-
sourcepub fn set_status(self, input: Option<ResolverQueryLogConfigStatus>) -> Self
pub fn set_status(self, input: Option<ResolverQueryLogConfigStatus>) -> Self
The status of the specified query logging configuration. Valid values include the following:
-
CREATING
: Resolver is creating the query logging configuration. -
CREATED
: The query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC. -
DELETING
: Resolver is deleting this query logging configuration. -
FAILED
: Resolver can't deliver logs to the location that is specified in the query logging configuration. Here are two common causes:-
The specified destination (for example, an Amazon S3 bucket) was deleted.
-
Permissions don't allow sending logs to the destination.
-
sourcepub fn get_status(&self) -> &Option<ResolverQueryLogConfigStatus>
pub fn get_status(&self) -> &Option<ResolverQueryLogConfigStatus>
The status of the specified query logging configuration. Valid values include the following:
-
CREATING
: Resolver is creating the query logging configuration. -
CREATED
: The query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC. -
DELETING
: Resolver is deleting this query logging configuration. -
FAILED
: Resolver can't deliver logs to the location that is specified in the query logging configuration. Here are two common causes:-
The specified destination (for example, an Amazon S3 bucket) was deleted.
-
Permissions don't allow sending logs to the destination.
-
An indication of whether the query logging configuration is shared with other Amazon Web Services accounts, or was shared with the current account by another Amazon Web Services account. Sharing is configured through Resource Access Manager (RAM).
An indication of whether the query logging configuration is shared with other Amazon Web Services accounts, or was shared with the current account by another Amazon Web Services account. Sharing is configured through Resource Access Manager (RAM).
An indication of whether the query logging configuration is shared with other Amazon Web Services accounts, or was shared with the current account by another Amazon Web Services account. Sharing is configured through Resource Access Manager (RAM).
sourcepub fn association_count(self, input: i32) -> Self
pub fn association_count(self, input: i32) -> Self
The number of VPCs that are associated with the query logging configuration.
sourcepub fn set_association_count(self, input: Option<i32>) -> Self
pub fn set_association_count(self, input: Option<i32>) -> Self
The number of VPCs that are associated with the query logging configuration.
sourcepub fn get_association_count(&self) -> &Option<i32>
pub fn get_association_count(&self) -> &Option<i32>
The number of VPCs that are associated with the query logging configuration.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN for the query logging configuration.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN for the query logging configuration.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the query logging configuration.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the query logging configuration.
sourcepub fn destination_arn(self, input: impl Into<String>) -> Self
pub fn destination_arn(self, input: impl Into<String>) -> Self
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
sourcepub fn set_destination_arn(self, input: Option<String>) -> Self
pub fn set_destination_arn(self, input: Option<String>) -> Self
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
sourcepub fn get_destination_arn(&self) -> &Option<String>
pub fn get_destination_arn(&self) -> &Option<String>
The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
sourcepub fn creator_request_id(self, input: impl Into<String>) -> Self
pub fn creator_request_id(self, input: impl Into<String>) -> Self
A unique string that identifies the request that created the query logging configuration. The CreatorRequestId
allows failed requests to be retried without the risk of running the operation twice.
sourcepub fn set_creator_request_id(self, input: Option<String>) -> Self
pub fn set_creator_request_id(self, input: Option<String>) -> Self
A unique string that identifies the request that created the query logging configuration. The CreatorRequestId
allows failed requests to be retried without the risk of running the operation twice.
sourcepub fn get_creator_request_id(&self) -> &Option<String>
pub fn get_creator_request_id(&self) -> &Option<String>
A unique string that identifies the request that created the query logging configuration. The CreatorRequestId
allows failed requests to be retried without the risk of running the operation twice.
sourcepub fn creation_time(self, input: impl Into<String>) -> Self
pub fn creation_time(self, input: impl Into<String>) -> Self
The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn set_creation_time(self, input: Option<String>) -> Self
pub fn set_creation_time(self, input: Option<String>) -> Self
The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn get_creation_time(&self) -> &Option<String>
pub fn get_creation_time(&self) -> &Option<String>
The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn build(self) -> ResolverQueryLogConfig
pub fn build(self) -> ResolverQueryLogConfig
Consumes the builder and constructs a ResolverQueryLogConfig
.
Trait Implementations§
source§impl Clone for ResolverQueryLogConfigBuilder
impl Clone for ResolverQueryLogConfigBuilder
source§fn clone(&self) -> ResolverQueryLogConfigBuilder
fn clone(&self) -> ResolverQueryLogConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResolverQueryLogConfigBuilder
impl Default for ResolverQueryLogConfigBuilder
source§fn default() -> ResolverQueryLogConfigBuilder
fn default() -> ResolverQueryLogConfigBuilder
source§impl PartialEq for ResolverQueryLogConfigBuilder
impl PartialEq for ResolverQueryLogConfigBuilder
source§fn eq(&self, other: &ResolverQueryLogConfigBuilder) -> bool
fn eq(&self, other: &ResolverQueryLogConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.