Struct aws_sdk_fms::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for Firewall Management Service
Client for invoking operations on Firewall Management Service. Each operation on Firewall Management Service is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_fms::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_fms::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_fms::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn associate_admin_account(&self) -> AssociateAdminAccount
pub fn associate_admin_account(&self) -> AssociateAdminAccount
Constructs a fluent builder for the AssociateAdminAccount
operation.
- The fluent builder is configurable:
admin_account(impl Into<String>)
/set_admin_account(Option<String>)
:The Amazon Web Services account ID to associate with Firewall Manager as the Firewall Manager administrator account. This must be an Organizations member account. For more information about Organizations, see Managing the Amazon Web Services Accounts in Your Organization.
- On success, responds with
AssociateAdminAccountOutput
- On failure, responds with
SdkError<AssociateAdminAccountError>
sourcepub fn associate_third_party_firewall(&self) -> AssociateThirdPartyFirewall
pub fn associate_third_party_firewall(&self) -> AssociateThirdPartyFirewall
Constructs a fluent builder for the AssociateThirdPartyFirewall
operation.
- The fluent builder is configurable:
third_party_firewall(ThirdPartyFirewall)
/set_third_party_firewall(Option<ThirdPartyFirewall>)
:The name of the third-party firewall vendor.
- On success, responds with
AssociateThirdPartyFirewallOutput
with field(s):third_party_firewall_status(Option<ThirdPartyFirewallAssociationStatus>)
:The current status for setting a Firewall Manager policy administrator’s account as an administrator of the third-party firewall tenant.
-
ONBOARDING
- The Firewall Manager policy administrator is being designated as a tenant administrator. -
ONBOARD_COMPLETE
- The Firewall Manager policy administrator is designated as a tenant administrator. -
OFFBOARDING
- The Firewall Manager policy administrator is being removed as a tenant administrator. -
OFFBOARD_COMPLETE
- The Firewall Manager policy administrator has been removed as a tenant administrator. -
NOT_EXIST
- The Firewall Manager policy administrator doesn’t exist as a tenant administrator.
-
- On failure, responds with
SdkError<AssociateThirdPartyFirewallError>
sourcepub fn delete_apps_list(&self) -> DeleteAppsList
pub fn delete_apps_list(&self) -> DeleteAppsList
Constructs a fluent builder for the DeleteAppsList
operation.
- The fluent builder is configurable:
list_id(impl Into<String>)
/set_list_id(Option<String>)
:The ID of the applications list that you want to delete. You can retrieve this ID from
PutAppsList
,ListAppsLists
, andGetAppsList
.
- On success, responds with
DeleteAppsListOutput
- On failure, responds with
SdkError<DeleteAppsListError>
sourcepub fn delete_notification_channel(&self) -> DeleteNotificationChannel
pub fn delete_notification_channel(&self) -> DeleteNotificationChannel
Constructs a fluent builder for the DeleteNotificationChannel
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DeleteNotificationChannelOutput
- On failure, responds with
SdkError<DeleteNotificationChannelError>
sourcepub fn delete_policy(&self) -> DeletePolicy
pub fn delete_policy(&self) -> DeletePolicy
Constructs a fluent builder for the DeletePolicy
operation.
- The fluent builder is configurable:
policy_id(impl Into<String>)
/set_policy_id(Option<String>)
:The ID of the policy that you want to delete. You can retrieve this ID from
PutPolicy
andListPolicies
.delete_all_policy_resources(bool)
/set_delete_all_policy_resources(bool)
:If
True
, the request performs cleanup according to the policy type.For WAF and Shield Advanced policies, the cleanup does the following:
-
Deletes rule groups created by Firewall Manager
-
Removes web ACLs from in-scope resources
-
Deletes web ACLs that contain no rules or rule groups
For security group policies, the cleanup does the following for each security group in the policy:
-
Disassociates the security group from in-scope resources
-
Deletes the security group if it was created through Firewall Manager and if it’s no longer associated with any resources through another policy
After the cleanup, in-scope resources are no longer protected by web ACLs in this policy. Protection of out-of-scope resources remains unchanged. Scope is determined by tags that you create and accounts that you associate with the policy. When creating the policy, if you specify that only resources in specific accounts or with specific tags are in scope of the policy, those accounts and resources are handled by the policy. All others are out of scope. If you don’t specify tags or accounts, all resources are in scope.
-
- On success, responds with
DeletePolicyOutput
- On failure, responds with
SdkError<DeletePolicyError>
sourcepub fn delete_protocols_list(&self) -> DeleteProtocolsList
pub fn delete_protocols_list(&self) -> DeleteProtocolsList
Constructs a fluent builder for the DeleteProtocolsList
operation.
- The fluent builder is configurable:
list_id(impl Into<String>)
/set_list_id(Option<String>)
:The ID of the protocols list that you want to delete. You can retrieve this ID from
PutProtocolsList
,ListProtocolsLists
, andGetProtocolsLost
.
- On success, responds with
DeleteProtocolsListOutput
- On failure, responds with
SdkError<DeleteProtocolsListError>
sourcepub fn disassociate_admin_account(&self) -> DisassociateAdminAccount
pub fn disassociate_admin_account(&self) -> DisassociateAdminAccount
Constructs a fluent builder for the DisassociateAdminAccount
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
DisassociateAdminAccountOutput
- On failure, responds with
SdkError<DisassociateAdminAccountError>
sourcepub fn disassociate_third_party_firewall(
&self
) -> DisassociateThirdPartyFirewall
pub fn disassociate_third_party_firewall(
&self
) -> DisassociateThirdPartyFirewall
Constructs a fluent builder for the DisassociateThirdPartyFirewall
operation.
- The fluent builder is configurable:
third_party_firewall(ThirdPartyFirewall)
/set_third_party_firewall(Option<ThirdPartyFirewall>)
:The name of the third-party firewall vendor.
- On success, responds with
DisassociateThirdPartyFirewallOutput
with field(s):third_party_firewall_status(Option<ThirdPartyFirewallAssociationStatus>)
:The current status for the disassociation of a Firewall Manager administrators account with a third-party firewall.
- On failure, responds with
SdkError<DisassociateThirdPartyFirewallError>
sourcepub fn get_admin_account(&self) -> GetAdminAccount
pub fn get_admin_account(&self) -> GetAdminAccount
Constructs a fluent builder for the GetAdminAccount
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
GetAdminAccountOutput
with field(s):admin_account(Option<String>)
:The Amazon Web Services account that is set as the Firewall Manager administrator.
role_status(Option<AccountRoleStatus>)
:The status of the Amazon Web Services account that you set as the Firewall Manager administrator.
- On failure, responds with
SdkError<GetAdminAccountError>
sourcepub fn get_apps_list(&self) -> GetAppsList
pub fn get_apps_list(&self) -> GetAppsList
Constructs a fluent builder for the GetAppsList
operation.
- The fluent builder is configurable:
list_id(impl Into<String>)
/set_list_id(Option<String>)
:The ID of the Firewall Manager applications list that you want the details for.
default_list(bool)
/set_default_list(bool)
:Specifies whether the list to retrieve is a default list owned by Firewall Manager.
- On success, responds with
GetAppsListOutput
with field(s):apps_list(Option<AppsListData>)
:Information about the specified Firewall Manager applications list.
apps_list_arn(Option<String>)
:The Amazon Resource Name (ARN) of the applications list.
- On failure, responds with
SdkError<GetAppsListError>
sourcepub fn get_compliance_detail(&self) -> GetComplianceDetail
pub fn get_compliance_detail(&self) -> GetComplianceDetail
Constructs a fluent builder for the GetComplianceDetail
operation.
- The fluent builder is configurable:
policy_id(impl Into<String>)
/set_policy_id(Option<String>)
:The ID of the policy that you want to get the details for.
PolicyId
is returned byPutPolicy
and byListPolicies
.member_account(impl Into<String>)
/set_member_account(Option<String>)
:The Amazon Web Services account that owns the resources that you want to get the details for.
- On success, responds with
GetComplianceDetailOutput
with field(s):policy_compliance_detail(Option<PolicyComplianceDetail>)
:Information about the resources and the policy that you specified in the
GetComplianceDetail
request.
- On failure, responds with
SdkError<GetComplianceDetailError>
sourcepub fn get_notification_channel(&self) -> GetNotificationChannel
pub fn get_notification_channel(&self) -> GetNotificationChannel
Constructs a fluent builder for the GetNotificationChannel
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
GetNotificationChannelOutput
with field(s):sns_topic_arn(Option<String>)
:The SNS topic that records Firewall Manager activity.
sns_role_name(Option<String>)
:The IAM role that is used by Firewall Manager to record activity to SNS.
- On failure, responds with
SdkError<GetNotificationChannelError>
sourcepub fn get_policy(&self) -> GetPolicy
pub fn get_policy(&self) -> GetPolicy
Constructs a fluent builder for the GetPolicy
operation.
- The fluent builder is configurable:
policy_id(impl Into<String>)
/set_policy_id(Option<String>)
:The ID of the Firewall Manager policy that you want the details for.
- On success, responds with
GetPolicyOutput
with field(s):policy(Option<Policy>)
:Information about the specified Firewall Manager policy.
policy_arn(Option<String>)
:The Amazon Resource Name (ARN) of the specified policy.
- On failure, responds with
SdkError<GetPolicyError>
sourcepub fn get_protection_status(&self) -> GetProtectionStatus
pub fn get_protection_status(&self) -> GetProtectionStatus
Constructs a fluent builder for the GetProtectionStatus
operation.
- The fluent builder is configurable:
policy_id(impl Into<String>)
/set_policy_id(Option<String>)
:The ID of the policy for which you want to get the attack information.
member_account_id(impl Into<String>)
/set_member_account_id(Option<String>)
:The Amazon Web Services account that is in scope of the policy that you want to get the details for.
start_time(DateTime)
/set_start_time(Option<DateTime>)
:The start of the time period to query for the attacks. This is a
timestamp
type. The request syntax listing indicates anumber
type because the default used by Firewall Manager is Unix time in seconds. However, any validtimestamp
format is allowed.end_time(DateTime)
/set_end_time(Option<DateTime>)
:The end of the time period to query for the attacks. This is a
timestamp
type. The request syntax listing indicates anumber
type because the default used by Firewall Manager is Unix time in seconds. However, any validtimestamp
format is allowed.next_token(impl Into<String>)
/set_next_token(Option<String>)
:If you specify a value for
MaxResults
and you have more objects than the number that you specify forMaxResults
, Firewall Manager returns aNextToken
value in the response, which you can use to retrieve another group of objects. For the second and subsequentGetProtectionStatus
requests, specify the value ofNextToken
from the previous response to get information about another batch of objects.max_results(i32)
/set_max_results(Option<i32>)
:Specifies the number of objects that you want Firewall Manager to return for this request. If you have more objects than the number that you specify for
MaxResults
, the response includes aNextToken
value that you can use to get another batch of objects.
- On success, responds with
GetProtectionStatusOutput
with field(s):admin_account_id(Option<String>)
:The ID of the Firewall Manager administrator account for this policy.
service_type(Option<SecurityServiceType>)
:The service type that is protected by the policy. Currently, this is always
SHIELD_ADVANCED
.data(Option<String>)
:Details about the attack, including the following:
-
Attack type
-
Account ID
-
ARN of the resource attacked
-
Start time of the attack
-
End time of the attack (ongoing attacks will not have an end time)
The details are in JSON format.
-
next_token(Option<String>)
:If you have more objects than the number that you specified for
MaxResults
in the request, the response includes aNextToken
value. To list more objects, submit anotherGetProtectionStatus
request, and specify theNextToken
value from the response in theNextToken
value in the next request.Amazon Web Services SDKs provide auto-pagination that identify
NextToken
in a response and make subsequent request calls automatically on your behalf. However, this feature is not supported byGetProtectionStatus
. You must submit subsequent requests withNextToken
using your own processes.
- On failure, responds with
SdkError<GetProtectionStatusError>
sourcepub fn get_protocols_list(&self) -> GetProtocolsList
pub fn get_protocols_list(&self) -> GetProtocolsList
Constructs a fluent builder for the GetProtocolsList
operation.
- The fluent builder is configurable:
list_id(impl Into<String>)
/set_list_id(Option<String>)
:The ID of the Firewall Manager protocols list that you want the details for.
default_list(bool)
/set_default_list(bool)
:Specifies whether the list to retrieve is a default list owned by Firewall Manager.
- On success, responds with
GetProtocolsListOutput
with field(s):protocols_list(Option<ProtocolsListData>)
:Information about the specified Firewall Manager protocols list.
protocols_list_arn(Option<String>)
:The Amazon Resource Name (ARN) of the specified protocols list.
- On failure, responds with
SdkError<GetProtocolsListError>
sourcepub fn get_third_party_firewall_association_status(
&self
) -> GetThirdPartyFirewallAssociationStatus
pub fn get_third_party_firewall_association_status(
&self
) -> GetThirdPartyFirewallAssociationStatus
Constructs a fluent builder for the GetThirdPartyFirewallAssociationStatus
operation.
- The fluent builder is configurable:
third_party_firewall(ThirdPartyFirewall)
/set_third_party_firewall(Option<ThirdPartyFirewall>)
:The name of the third-party firewall vendor.
- On success, responds with
GetThirdPartyFirewallAssociationStatusOutput
with field(s):third_party_firewall_status(Option<ThirdPartyFirewallAssociationStatus>)
:The current status for setting a Firewall Manager policy administrators account as an administrator of the third-party firewall tenant.
-
ONBOARDING
- The Firewall Manager policy administrator is being designated as a tenant administrator. -
ONBOARD_COMPLETE
- The Firewall Manager policy administrator is designated as a tenant administrator. -
OFFBOARDING
- The Firewall Manager policy administrator is being removed as a tenant administrator. -
OFFBOARD_COMPLETE
- The Firewall Manager policy administrator has been removed as a tenant administrator. -
NOT_EXIST
- The Firewall Manager policy administrator doesn’t exist as a tenant administrator.
-
marketplace_onboarding_status(Option<MarketplaceSubscriptionOnboardingStatus>)
:The status for subscribing to the third-party firewall vendor in the AWS Marketplace.
-
NO_SUBSCRIPTION
- The Firewall Manager policy administrator isn’t subscribed to the third-party firewall service in the AWS Marketplace. -
NOT_COMPLETE
- The Firewall Manager policy administrator is in the process of subscribing to the third-party firewall service in the Amazon Web Services Marketplace, but doesn’t yet have an active subscription. -
COMPLETE
- The Firewall Manager policy administrator has an active subscription to the third-party firewall service in the Amazon Web Services Marketplace.
-
- On failure, responds with
SdkError<GetThirdPartyFirewallAssociationStatusError>
sourcepub fn get_violation_details(&self) -> GetViolationDetails
pub fn get_violation_details(&self) -> GetViolationDetails
Constructs a fluent builder for the GetViolationDetails
operation.
- The fluent builder is configurable:
policy_id(impl Into<String>)
/set_policy_id(Option<String>)
:The ID of the Firewall Manager policy that you want the details for. This currently only supports security group content audit policies.
member_account(impl Into<String>)
/set_member_account(Option<String>)
:The Amazon Web Services account ID that you want the details for.
resource_id(impl Into<String>)
/set_resource_id(Option<String>)
:The ID of the resource that has violations.
resource_type(impl Into<String>)
/set_resource_type(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
, andAWS::EC2::Subnet
.
- On success, responds with
GetViolationDetailsOutput
with field(s):violation_detail(Option<ViolationDetail>)
:Violation detail for a resource.
- On failure, responds with
SdkError<GetViolationDetailsError>
sourcepub fn list_apps_lists(&self) -> ListAppsLists
pub fn list_apps_lists(&self) -> ListAppsLists
Constructs a fluent builder for the ListAppsLists
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
default_lists(bool)
/set_default_lists(bool)
:Specifies whether the lists to retrieve are default lists owned by Firewall Manager.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:If you specify a value for
MaxResults
in your list request, and you have more objects than the maximum, Firewall Manager returns this token in the response. For all but the first request, you provide the token returned by the prior request in the request parameters, to retrieve the next batch of objects.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a
NextToken
value that you can use in a subsequent call to get the next batch of objects.If you don’t specify this, Firewall Manager returns all available objects.
- On success, responds with
ListAppsListsOutput
with field(s):apps_lists(Option<Vec<AppsListDataSummary>>)
:An array of
AppsListDataSummary
objects.next_token(Option<String>)
:If you specify a value for
MaxResults
in your list request, and you have more objects than the maximum, Firewall Manager returns this token in the response. You can use this token in subsequent requests to retrieve the next batch of objects.
- On failure, responds with
SdkError<ListAppsListsError>
sourcepub fn list_compliance_status(&self) -> ListComplianceStatus
pub fn list_compliance_status(&self) -> ListComplianceStatus
Constructs a fluent builder for the ListComplianceStatus
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
policy_id(impl Into<String>)
/set_policy_id(Option<String>)
:The ID of the Firewall Manager policy that you want the details for.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:If you specify a value for
MaxResults
and you have morePolicyComplianceStatus
objects than the number that you specify forMaxResults
, Firewall Manager returns aNextToken
value in the response that allows you to list another group ofPolicyComplianceStatus
objects. For the second and subsequentListComplianceStatus
requests, specify the value ofNextToken
from the previous response to get information about another batch ofPolicyComplianceStatus
objects.max_results(i32)
/set_max_results(Option<i32>)
:Specifies the number of
PolicyComplianceStatus
objects that you want Firewall Manager to return for this request. If you have morePolicyComplianceStatus
objects than the number that you specify forMaxResults
, the response includes aNextToken
value that you can use to get another batch ofPolicyComplianceStatus
objects.
- On success, responds with
ListComplianceStatusOutput
with field(s):policy_compliance_status_list(Option<Vec<PolicyComplianceStatus>>)
:An array of
PolicyComplianceStatus
objects.next_token(Option<String>)
:If you have more
PolicyComplianceStatus
objects than the number that you specified forMaxResults
in the request, the response includes aNextToken
value. To list morePolicyComplianceStatus
objects, submit anotherListComplianceStatus
request, and specify theNextToken
value from the response in theNextToken
value in the next request.
- On failure, responds with
SdkError<ListComplianceStatusError>
sourcepub fn list_member_accounts(&self) -> ListMemberAccounts
pub fn list_member_accounts(&self) -> ListMemberAccounts
Constructs a fluent builder for the ListMemberAccounts
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:If you specify a value for
MaxResults
and you have more account IDs than the number that you specify forMaxResults
, Firewall Manager returns aNextToken
value in the response that allows you to list another group of IDs. For the second and subsequentListMemberAccountsRequest
requests, specify the value ofNextToken
from the previous response to get information about another batch of member account IDs.max_results(i32)
/set_max_results(Option<i32>)
:Specifies the number of member account IDs that you want Firewall Manager to return for this request. If you have more IDs than the number that you specify for
MaxResults
, the response includes aNextToken
value that you can use to get another batch of member account IDs.
- On success, responds with
ListMemberAccountsOutput
with field(s):member_accounts(Option<Vec<String>>)
:An array of account IDs.
next_token(Option<String>)
:If you have more member account IDs than the number that you specified for
MaxResults
in the request, the response includes aNextToken
value. To list more IDs, submit anotherListMemberAccounts
request, and specify theNextToken
value from the response in theNextToken
value in the next request.
- On failure, responds with
SdkError<ListMemberAccountsError>
sourcepub fn list_policies(&self) -> ListPolicies
pub fn list_policies(&self) -> ListPolicies
Constructs a fluent builder for the ListPolicies
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:If you specify a value for
MaxResults
and you have morePolicySummary
objects than the number that you specify forMaxResults
, Firewall Manager returns aNextToken
value in the response that allows you to list another group ofPolicySummary
objects. For the second and subsequentListPolicies
requests, specify the value ofNextToken
from the previous response to get information about another batch ofPolicySummary
objects.max_results(i32)
/set_max_results(Option<i32>)
:Specifies the number of
PolicySummary
objects that you want Firewall Manager to return for this request. If you have morePolicySummary
objects than the number that you specify forMaxResults
, the response includes aNextToken
value that you can use to get another batch ofPolicySummary
objects.
- On success, responds with
ListPoliciesOutput
with field(s):policy_list(Option<Vec<PolicySummary>>)
:An array of
PolicySummary
objects.next_token(Option<String>)
:If you have more
PolicySummary
objects than the number that you specified forMaxResults
in the request, the response includes aNextToken
value. To list morePolicySummary
objects, submit anotherListPolicies
request, and specify theNextToken
value from the response in theNextToken
value in the next request.
- On failure, responds with
SdkError<ListPoliciesError>
sourcepub fn list_protocols_lists(&self) -> ListProtocolsLists
pub fn list_protocols_lists(&self) -> ListProtocolsLists
Constructs a fluent builder for the ListProtocolsLists
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
default_lists(bool)
/set_default_lists(bool)
:Specifies whether the lists to retrieve are default lists owned by Firewall Manager.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:If you specify a value for
MaxResults
in your list request, and you have more objects than the maximum, Firewall Manager returns this token in the response. For all but the first request, you provide the token returned by the prior request in the request parameters, to retrieve the next batch of objects.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a
NextToken
value that you can use in a subsequent call to get the next batch of objects.If you don’t specify this, Firewall Manager returns all available objects.
- On success, responds with
ListProtocolsListsOutput
with field(s):protocols_lists(Option<Vec<ProtocolsListDataSummary>>)
:An array of
ProtocolsListDataSummary
objects.next_token(Option<String>)
:If you specify a value for
MaxResults
in your list request, and you have more objects than the maximum, Firewall Manager returns this token in the response. You can use this token in subsequent requests to retrieve the next batch of objects.
- On failure, responds with
SdkError<ListProtocolsListsError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to return tags for. The Firewall Manager resources that support tagging are policies, applications lists, and protocols lists.
- On success, responds with
ListTagsForResourceOutput
with field(s):tag_list(Option<Vec<Tag>>)
:The tags associated with the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn list_third_party_firewall_firewall_policies(
&self
) -> ListThirdPartyFirewallFirewallPolicies
pub fn list_third_party_firewall_firewall_policies(
&self
) -> ListThirdPartyFirewallFirewallPolicies
Constructs a fluent builder for the ListThirdPartyFirewallFirewallPolicies
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
third_party_firewall(ThirdPartyFirewall)
/set_third_party_firewall(Option<ThirdPartyFirewall>)
:The name of the third-party firewall vendor.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:If the previous response included a
NextToken
element, the specified third-party firewall vendor is associated with more third-party firewall policies. To get more third-party firewall policies, submit anotherListThirdPartyFirewallFirewallPoliciesRequest
request.For the value of
NextToken
, specify the value ofNextToken
from the previous response. If the previous response didn’t include aNextToken
element, there are no more third-party firewall policies to get.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of third-party firewall policies that you want Firewall Manager to return. If the specified third-party firewall vendor is associated with more than
MaxResults
firewall policies, the response includes aNextToken
element.NextToken
contains an encrypted token that identifies the first third-party firewall policies that Firewall Manager will return if you submit another request.
- On success, responds with
ListThirdPartyFirewallFirewallPoliciesOutput
with field(s):third_party_firewall_firewall_policies(Option<Vec<ThirdPartyFirewallFirewallPolicy>>)
:A list that contains one
ThirdPartyFirewallFirewallPolicies
element for each third-party firewall policies that the specified third-party firewall vendor is associated with. EachThirdPartyFirewallFirewallPolicies
element contains the firewall policy name and ID.next_token(Option<String>)
:The value that you will use for
NextToken
in the nextListThirdPartyFirewallFirewallPolicies
request.
- On failure, responds with
SdkError<ListThirdPartyFirewallFirewallPoliciesError>
sourcepub fn put_apps_list(&self) -> PutAppsList
pub fn put_apps_list(&self) -> PutAppsList
Constructs a fluent builder for the PutAppsList
operation.
- The fluent builder is configurable:
apps_list(AppsListData)
/set_apps_list(Option<AppsListData>)
:The details of the Firewall Manager applications list to be created.
tag_list(Vec<Tag>)
/set_tag_list(Option<Vec<Tag>>)
:The tags associated with the resource.
- On success, responds with
PutAppsListOutput
with field(s):apps_list(Option<AppsListData>)
:The details of the Firewall Manager applications list.
apps_list_arn(Option<String>)
:The Amazon Resource Name (ARN) of the applications list.
- On failure, responds with
SdkError<PutAppsListError>
sourcepub fn put_notification_channel(&self) -> PutNotificationChannel
pub fn put_notification_channel(&self) -> PutNotificationChannel
Constructs a fluent builder for the PutNotificationChannel
operation.
- The fluent builder is configurable:
sns_topic_arn(impl Into<String>)
/set_sns_topic_arn(Option<String>)
:The Amazon Resource Name (ARN) of the SNS topic that collects notifications from Firewall Manager.
sns_role_name(impl Into<String>)
/set_sns_role_name(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record Firewall Manager activity.
- On success, responds with
PutNotificationChannelOutput
- On failure, responds with
SdkError<PutNotificationChannelError>
sourcepub fn put_policy(&self) -> PutPolicy
pub fn put_policy(&self) -> PutPolicy
Constructs a fluent builder for the PutPolicy
operation.
- The fluent builder is configurable:
policy(Policy)
/set_policy(Option<Policy>)
:The details of the Firewall Manager policy to be created.
tag_list(Vec<Tag>)
/set_tag_list(Option<Vec<Tag>>)
:The tags to add to the Amazon Web Services resource.
- On success, responds with
PutPolicyOutput
with field(s):policy(Option<Policy>)
:The details of the Firewall Manager policy.
policy_arn(Option<String>)
:The Amazon Resource Name (ARN) of the policy.
- On failure, responds with
SdkError<PutPolicyError>
sourcepub fn put_protocols_list(&self) -> PutProtocolsList
pub fn put_protocols_list(&self) -> PutProtocolsList
Constructs a fluent builder for the PutProtocolsList
operation.
- The fluent builder is configurable:
protocols_list(ProtocolsListData)
/set_protocols_list(Option<ProtocolsListData>)
:The details of the Firewall Manager protocols list to be created.
tag_list(Vec<Tag>)
/set_tag_list(Option<Vec<Tag>>)
:The tags associated with the resource.
- On success, responds with
PutProtocolsListOutput
with field(s):protocols_list(Option<ProtocolsListData>)
:The details of the Firewall Manager protocols list.
protocols_list_arn(Option<String>)
:The Amazon Resource Name (ARN) of the protocols list.
- On failure, responds with
SdkError<PutProtocolsListError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to return tags for. The Firewall Manager resources that support tagging are policies, applications lists, and protocols lists.
tag_list(Vec<Tag>)
/set_tag_list(Option<Vec<Tag>>)
:The tags to add to the resource.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource to return tags for. The Firewall Manager resources that support tagging are policies, applications lists, and protocols lists.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:The keys of the tags to remove from the resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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