Struct aws_sdk_fms::operation::get_violation_details::builders::GetViolationDetailsFluentBuilder
source · pub struct GetViolationDetailsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetViolationDetails
.
Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.
Implementations§
source§impl GetViolationDetailsFluentBuilder
impl GetViolationDetailsFluentBuilder
sourcepub fn as_input(&self) -> &GetViolationDetailsInputBuilder
pub fn as_input(&self) -> &GetViolationDetailsInputBuilder
Access the GetViolationDetails as a reference.
sourcepub async fn send(
self
) -> Result<GetViolationDetailsOutput, SdkError<GetViolationDetailsError, HttpResponse>>
pub async fn send( self ) -> Result<GetViolationDetailsOutput, SdkError<GetViolationDetailsError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<GetViolationDetailsOutput, GetViolationDetailsError, Self>
pub fn customize( self ) -> CustomizableOperation<GetViolationDetailsOutput, GetViolationDetailsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn policy_id(self, input: impl Into<String>) -> Self
pub fn policy_id(self, input: impl Into<String>) -> Self
The ID of the Firewall Manager policy that you want the details for. You can get violation details for the following policy types:
-
DNS Firewall
-
Imported Network Firewall
-
Network Firewall
-
Security group content audit
-
Network ACL
-
Third-party firewall
sourcepub fn set_policy_id(self, input: Option<String>) -> Self
pub fn set_policy_id(self, input: Option<String>) -> Self
The ID of the Firewall Manager policy that you want the details for. You can get violation details for the following policy types:
-
DNS Firewall
-
Imported Network Firewall
-
Network Firewall
-
Security group content audit
-
Network ACL
-
Third-party firewall
sourcepub fn get_policy_id(&self) -> &Option<String>
pub fn get_policy_id(&self) -> &Option<String>
The ID of the Firewall Manager policy that you want the details for. You can get violation details for the following policy types:
-
DNS Firewall
-
Imported Network Firewall
-
Network Firewall
-
Security group content audit
-
Network ACL
-
Third-party firewall
sourcepub fn member_account(self, input: impl Into<String>) -> Self
pub fn member_account(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID that you want the details for.
sourcepub fn set_member_account(self, input: Option<String>) -> Self
pub fn set_member_account(self, input: Option<String>) -> Self
The Amazon Web Services account ID that you want the details for.
sourcepub fn get_member_account(&self) -> &Option<String>
pub fn get_member_account(&self) -> &Option<String>
The Amazon Web Services account ID that you want the details for.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The ID of the resource that has violations.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The ID of the resource that has violations.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The ID of the resource that has violations.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance
, AWS::EC2::NetworkInterface
, AWS::EC2::SecurityGroup
, AWS::NetworkFirewall::FirewallPolicy
, and AWS::EC2::Subnet
.
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance
, AWS::EC2::NetworkInterface
, AWS::EC2::SecurityGroup
, AWS::NetworkFirewall::FirewallPolicy
, and AWS::EC2::Subnet
.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance
, AWS::EC2::NetworkInterface
, AWS::EC2::SecurityGroup
, AWS::NetworkFirewall::FirewallPolicy
, and AWS::EC2::Subnet
.
Trait Implementations§
source§impl Clone for GetViolationDetailsFluentBuilder
impl Clone for GetViolationDetailsFluentBuilder
source§fn clone(&self) -> GetViolationDetailsFluentBuilder
fn clone(&self) -> GetViolationDetailsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetViolationDetailsFluentBuilder
impl !RefUnwindSafe for GetViolationDetailsFluentBuilder
impl Send for GetViolationDetailsFluentBuilder
impl Sync for GetViolationDetailsFluentBuilder
impl Unpin for GetViolationDetailsFluentBuilder
impl !UnwindSafe for GetViolationDetailsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more