Struct rusoto_fms::FmsClient
source · [−]pub struct FmsClient { /* private fields */ }
Expand description
A client for the FMS API.
Implementations
sourceimpl FmsClient
impl FmsClient
sourcepub fn new(region: Region) -> FmsClient
pub fn new(region: Region) -> FmsClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> FmsClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> FmsClient
Trait Implementations
sourceimpl Fms for FmsClient
impl Fms for FmsClient
sourcefn associate_admin_account<'life0, 'async_trait>(
&'life0 self,
input: AssociateAdminAccountRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<AssociateAdminAccountError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn associate_admin_account<'life0, 'async_trait>(
&'life0 self,
input: AssociateAdminAccountRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<AssociateAdminAccountError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Sets the AWS Firewall Manager administrator account. AWS Firewall Manager must be associated with the master account of your AWS organization or associated with a member account that has the appropriate permissions. If the account ID that you submit is not an AWS Organizations master account, AWS Firewall Manager will set the appropriate permissions for the given member account.
The account that you associate with AWS Firewall Manager is called the AWS Firewall Manager administrator account.
sourcefn delete_apps_list<'life0, 'async_trait>(
&'life0 self,
input: DeleteAppsListRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteAppsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_apps_list<'life0, 'async_trait>(
&'life0 self,
input: DeleteAppsListRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteAppsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Permanently deletes an AWS Firewall Manager applications list.
sourcefn delete_notification_channel<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteNotificationChannelError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_notification_channel<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteNotificationChannelError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes an AWS Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
sourcefn delete_policy<'life0, 'async_trait>(
&'life0 self,
input: DeletePolicyRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeletePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_policy<'life0, 'async_trait>(
&'life0 self,
input: DeletePolicyRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeletePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Permanently deletes an AWS Firewall Manager policy.
sourcefn delete_protocols_list<'life0, 'async_trait>(
&'life0 self,
input: DeleteProtocolsListRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteProtocolsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_protocols_list<'life0, 'async_trait>(
&'life0 self,
input: DeleteProtocolsListRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteProtocolsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Permanently deletes an AWS Firewall Manager protocols list.
sourcefn disassociate_admin_account<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DisassociateAdminAccountError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn disassociate_admin_account<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DisassociateAdminAccountError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Disassociates the account that has been set as the AWS Firewall Manager administrator account. To set a different account as the administrator account, you must submit an AssociateAdminAccount
request.
sourcefn get_admin_account<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<GetAdminAccountResponse, RusotoError<GetAdminAccountError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_admin_account<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<GetAdminAccountResponse, RusotoError<GetAdminAccountError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.
sourcefn get_apps_list<'life0, 'async_trait>(
&'life0 self,
input: GetAppsListRequest
) -> Pin<Box<dyn Future<Output = Result<GetAppsListResponse, RusotoError<GetAppsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_apps_list<'life0, 'async_trait>(
&'life0 self,
input: GetAppsListRequest
) -> Pin<Box<dyn Future<Output = Result<GetAppsListResponse, RusotoError<GetAppsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns information about the specified AWS Firewall Manager applications list.
sourcefn get_compliance_detail<'life0, 'async_trait>(
&'life0 self,
input: GetComplianceDetailRequest
) -> Pin<Box<dyn Future<Output = Result<GetComplianceDetailResponse, RusotoError<GetComplianceDetailError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_compliance_detail<'life0, 'async_trait>(
&'life0 self,
input: GetComplianceDetailRequest
) -> Pin<Box<dyn Future<Output = Result<GetComplianceDetailResponse, RusotoError<GetComplianceDetailError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns detailed compliance information about the specified member account. Details include resources that are in and out of compliance with the specified policy. Resources are considered noncompliant for AWS WAF and Shield Advanced policies if the specified policy has not been applied to them. Resources are considered noncompliant for security group policies if they are in scope of the policy, they violate one or more of the policy rules, and remediation is disabled or not possible. Resources are considered noncompliant for Network Firewall policies if a firewall is missing in the VPC, if the firewall endpoint isn't set up in an expected Availability Zone and subnet, if a subnet created by the Firewall Manager doesn't have the expected route table, and for modifications to a firewall policy that violate the Firewall Manager policy's rules.
sourcefn get_notification_channel<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<GetNotificationChannelResponse, RusotoError<GetNotificationChannelError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_notification_channel<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<GetNotificationChannelResponse, RusotoError<GetNotificationChannelError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
sourcefn get_policy<'life0, 'async_trait>(
&'life0 self,
input: GetPolicyRequest
) -> Pin<Box<dyn Future<Output = Result<GetPolicyResponse, RusotoError<GetPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_policy<'life0, 'async_trait>(
&'life0 self,
input: GetPolicyRequest
) -> Pin<Box<dyn Future<Output = Result<GetPolicyResponse, RusotoError<GetPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns information about the specified AWS Firewall Manager policy.
sourcefn get_protection_status<'life0, 'async_trait>(
&'life0 self,
input: GetProtectionStatusRequest
) -> Pin<Box<dyn Future<Output = Result<GetProtectionStatusResponse, RusotoError<GetProtectionStatusError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_protection_status<'life0, 'async_trait>(
&'life0 self,
input: GetProtectionStatusRequest
) -> Pin<Box<dyn Future<Output = Result<GetProtectionStatusResponse, RusotoError<GetProtectionStatusError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack. Other policy types are currently unsupported.
sourcefn get_protocols_list<'life0, 'async_trait>(
&'life0 self,
input: GetProtocolsListRequest
) -> Pin<Box<dyn Future<Output = Result<GetProtocolsListResponse, RusotoError<GetProtocolsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_protocols_list<'life0, 'async_trait>(
&'life0 self,
input: GetProtocolsListRequest
) -> Pin<Box<dyn Future<Output = Result<GetProtocolsListResponse, RusotoError<GetProtocolsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns information about the specified AWS Firewall Manager protocols list.
sourcefn get_violation_details<'life0, 'async_trait>(
&'life0 self,
input: GetViolationDetailsRequest
) -> Pin<Box<dyn Future<Output = Result<GetViolationDetailsResponse, RusotoError<GetViolationDetailsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_violation_details<'life0, 'async_trait>(
&'life0 self,
input: GetViolationDetailsRequest
) -> Pin<Box<dyn Future<Output = Result<GetViolationDetailsResponse, RusotoError<GetViolationDetailsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves violations for a resource based on the specified AWS Firewall Manager policy and AWS account.
sourcefn list_apps_lists<'life0, 'async_trait>(
&'life0 self,
input: ListAppsListsRequest
) -> Pin<Box<dyn Future<Output = Result<ListAppsListsResponse, RusotoError<ListAppsListsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_apps_lists<'life0, 'async_trait>(
&'life0 self,
input: ListAppsListsRequest
) -> Pin<Box<dyn Future<Output = Result<ListAppsListsResponse, RusotoError<ListAppsListsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns an array of AppsListDataSummary
objects.
sourcefn list_compliance_status<'life0, 'async_trait>(
&'life0 self,
input: ListComplianceStatusRequest
) -> Pin<Box<dyn Future<Output = Result<ListComplianceStatusResponse, RusotoError<ListComplianceStatusError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_compliance_status<'life0, 'async_trait>(
&'life0 self,
input: ListComplianceStatusRequest
) -> Pin<Box<dyn Future<Output = Result<ListComplianceStatusResponse, RusotoError<ListComplianceStatusError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns an array of PolicyComplianceStatus
objects. Use PolicyComplianceStatus
to get a summary of which member accounts are protected by the specified policy.
sourcefn list_member_accounts<'life0, 'async_trait>(
&'life0 self,
input: ListMemberAccountsRequest
) -> Pin<Box<dyn Future<Output = Result<ListMemberAccountsResponse, RusotoError<ListMemberAccountsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_member_accounts<'life0, 'async_trait>(
&'life0 self,
input: ListMemberAccountsRequest
) -> Pin<Box<dyn Future<Output = Result<ListMemberAccountsResponse, RusotoError<ListMemberAccountsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns a MemberAccounts
object that lists the member accounts in the administrator's AWS organization.
The ListMemberAccounts
must be submitted by the account that is set as the AWS Firewall Manager administrator.
sourcefn list_policies<'life0, 'async_trait>(
&'life0 self,
input: ListPoliciesRequest
) -> Pin<Box<dyn Future<Output = Result<ListPoliciesResponse, RusotoError<ListPoliciesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_policies<'life0, 'async_trait>(
&'life0 self,
input: ListPoliciesRequest
) -> Pin<Box<dyn Future<Output = Result<ListPoliciesResponse, RusotoError<ListPoliciesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns an array of PolicySummary
objects.
sourcefn list_protocols_lists<'life0, 'async_trait>(
&'life0 self,
input: ListProtocolsListsRequest
) -> Pin<Box<dyn Future<Output = Result<ListProtocolsListsResponse, RusotoError<ListProtocolsListsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_protocols_lists<'life0, 'async_trait>(
&'life0 self,
input: ListProtocolsListsRequest
) -> Pin<Box<dyn Future<Output = Result<ListProtocolsListsResponse, RusotoError<ListProtocolsListsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns an array of ProtocolsListDataSummary
objects.
Retrieves the list of tags for the specified AWS resource.
sourcefn put_apps_list<'life0, 'async_trait>(
&'life0 self,
input: PutAppsListRequest
) -> Pin<Box<dyn Future<Output = Result<PutAppsListResponse, RusotoError<PutAppsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn put_apps_list<'life0, 'async_trait>(
&'life0 self,
input: PutAppsListRequest
) -> Pin<Box<dyn Future<Output = Result<PutAppsListResponse, RusotoError<PutAppsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates an AWS Firewall Manager applications list.
sourcefn put_notification_channel<'life0, 'async_trait>(
&'life0 self,
input: PutNotificationChannelRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<PutNotificationChannelError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn put_notification_channel<'life0, 'async_trait>(
&'life0 self,
input: PutNotificationChannelRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<PutNotificationChannelError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
To perform this action outside of the console, you must configure the SNS topic to allow the Firewall Manager role AWSServiceRoleForFMS
to publish SNS logs. For more information, see Firewall Manager required permissions for API actions in the AWS Firewall Manager Developer Guide.
sourcefn put_policy<'life0, 'async_trait>(
&'life0 self,
input: PutPolicyRequest
) -> Pin<Box<dyn Future<Output = Result<PutPolicyResponse, RusotoError<PutPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn put_policy<'life0, 'async_trait>(
&'life0 self,
input: PutPolicyRequest
) -> Pin<Box<dyn Future<Output = Result<PutPolicyResponse, RusotoError<PutPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates an AWS Firewall Manager policy.
Firewall Manager provides the following types of policies:
-
An AWS WAF policy (type WAFV2), which defines rule groups to run first in the corresponding AWS WAF web ACL and rule groups to run last in the web ACL.
-
An AWS WAF Classic policy (type WAF), which defines a rule group.
-
A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources.
-
A security group policy, which manages VPC security groups across your AWS organization.
-
An AWS Network Firewall policy, which provides firewall rules to filter network traffic in specified Amazon VPCs.
Each policy is specific to one of the types. If you want to enforce more than one policy type across accounts, create multiple policies. You can create multiple policies for each type.
You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information about subscribing to Shield Advanced, see CreateSubscription.
sourcefn put_protocols_list<'life0, 'async_trait>(
&'life0 self,
input: PutProtocolsListRequest
) -> Pin<Box<dyn Future<Output = Result<PutProtocolsListResponse, RusotoError<PutProtocolsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn put_protocols_list<'life0, 'async_trait>(
&'life0 self,
input: PutProtocolsListRequest
) -> Pin<Box<dyn Future<Output = Result<PutProtocolsListResponse, RusotoError<PutProtocolsListError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates an AWS Firewall Manager protocols list.
sourcefn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Adds one or more tags to an AWS resource.
sourcefn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Removes one or more tags from an AWS resource.
Auto Trait Implementations
impl !RefUnwindSafe for FmsClient
impl Send for FmsClient
impl Sync for FmsClient
impl Unpin for FmsClient
impl !UnwindSafe for FmsClient
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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