@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSFMSClient extends AmazonWebServiceClient implements AWSFMS
This is the AWS Firewall Manager API Reference. This guide is for developers who need detailed information about the AWS Firewall Manager API actions, data types, and errors. For detailed information about AWS Firewall Manager features, see the AWS Firewall Manager Developer Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
AssociateAdminAccountResult |
associateAdminAccount(AssociateAdminAccountRequest request)
Sets the AWS Firewall Manager administrator account.
|
static AWSFMSClientBuilder |
builder() |
DeleteNotificationChannelResult |
deleteNotificationChannel(DeleteNotificationChannelRequest request)
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.
|
DeletePolicyResult |
deletePolicy(DeletePolicyRequest request)
Permanently deletes an AWS Firewall Manager policy.
|
DisassociateAdminAccountResult |
disassociateAdminAccount(DisassociateAdminAccountRequest request)
Disassociates the account that has been set as the AWS Firewall Manager administrator account.
|
GetAdminAccountResult |
getAdminAccount(GetAdminAccountRequest request)
Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall
Manager administrator.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetComplianceDetailResult |
getComplianceDetail(GetComplianceDetailRequest request)
Returns detailed compliance information about the specified member account.
|
GetNotificationChannelResult |
getNotificationChannel(GetNotificationChannelRequest request)
Information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager
SNS logs.
|
GetPolicyResult |
getPolicy(GetPolicyRequest request)
Returns information about the specified AWS Firewall Manager policy.
|
GetProtectionStatusResult |
getProtectionStatus(GetProtectionStatusRequest request)
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a
potential DDoS attack.
|
ListComplianceStatusResult |
listComplianceStatus(ListComplianceStatusRequest request)
Returns an array of
PolicyComplianceStatus objects in the response. |
ListMemberAccountsResult |
listMemberAccounts(ListMemberAccountsRequest request)
Returns a
MemberAccounts object that lists the member accounts in the administrator's AWS
organization. |
ListPoliciesResult |
listPolicies(ListPoliciesRequest request)
Returns an array of
PolicySummary objects in the response. |
PutNotificationChannelResult |
putNotificationChannel(PutNotificationChannelRequest request)
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to
record SNS logs.
|
PutPolicyResult |
putPolicy(PutPolicyRequest request)
Creates an AWS Firewall Manager policy.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSFMSClientBuilder builder()
public AssociateAdminAccountResult associateAdminAccount(AssociateAdminAccountRequest request)
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.
associateAdminAccount
in interface AWSFMS
associateAdminAccountRequest
- InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.InvalidInputException
- The parameters of the request were invalid.ResourceNotFoundException
- The specified resource was not found.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public DeleteNotificationChannelResult deleteNotificationChannel(DeleteNotificationChannelRequest request)
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.
deleteNotificationChannel
in interface AWSFMS
deleteNotificationChannelRequest
- ResourceNotFoundException
- The specified resource was not found.InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public DeletePolicyResult deletePolicy(DeletePolicyRequest request)
Permanently deletes an AWS Firewall Manager policy.
deletePolicy
in interface AWSFMS
deletePolicyRequest
- ResourceNotFoundException
- The specified resource was not found.InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public DisassociateAdminAccountResult disassociateAdminAccount(DisassociateAdminAccountRequest request)
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.
disassociateAdminAccount
in interface AWSFMS
disassociateAdminAccountRequest
- InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.ResourceNotFoundException
- The specified resource was not found.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public GetAdminAccountResult getAdminAccount(GetAdminAccountRequest request)
Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.
getAdminAccount
in interface AWSFMS
getAdminAccountRequest
- InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.ResourceNotFoundException
- The specified resource was not found.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public GetComplianceDetailResult getComplianceDetail(GetComplianceDetailRequest request)
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.
getComplianceDetail
in interface AWSFMS
getComplianceDetailRequest
- ResourceNotFoundException
- The specified resource was not found.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public GetNotificationChannelResult getNotificationChannel(GetNotificationChannelRequest request)
Information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.
getNotificationChannel
in interface AWSFMS
getNotificationChannelRequest
- ResourceNotFoundException
- The specified resource was not found.InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public GetPolicyResult getPolicy(GetPolicyRequest request)
Returns information about the specified AWS Firewall Manager policy.
getPolicy
in interface AWSFMS
getPolicyRequest
- ResourceNotFoundException
- The specified resource was not found.InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.InvalidTypeException
- The value of the Type
parameter is invalid.public GetProtectionStatusResult getProtectionStatus(GetProtectionStatusRequest request)
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.
getProtectionStatus
in interface AWSFMS
getProtectionStatusRequest
- InvalidInputException
- The parameters of the request were invalid.ResourceNotFoundException
- The specified resource was not found.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public ListComplianceStatusResult listComplianceStatus(ListComplianceStatusRequest request)
Returns an array of PolicyComplianceStatus
objects in the response. Use
PolicyComplianceStatus
to get a summary of which member accounts are protected by the specified
policy.
listComplianceStatus
in interface AWSFMS
listComplianceStatusRequest
- ResourceNotFoundException
- The specified resource was not found.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public ListMemberAccountsResult listMemberAccounts(ListMemberAccountsRequest request)
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.
listMemberAccounts
in interface AWSFMS
listMemberAccountsRequest
- ResourceNotFoundException
- The specified resource was not found.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public ListPoliciesResult listPolicies(ListPoliciesRequest request)
Returns an array of PolicySummary
objects in the response.
listPolicies
in interface AWSFMS
listPoliciesRequest
- ResourceNotFoundException
- The specified resource was not found.InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.LimitExceededException
- The operation exceeds a resource limit, for example, the maximum number of policy
objects
that you can create for an AWS account. For more information, see Firewall Manager Limits
in the AWS WAF Developer Guide.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public PutNotificationChannelResult putNotificationChannel(PutNotificationChannelRequest request)
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
putNotificationChannel
in interface AWSFMS
putNotificationChannelRequest
- ResourceNotFoundException
- The specified resource was not found.InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.public PutPolicyResult putPolicy(PutPolicyRequest request)
Creates an AWS Firewall Manager policy.
Firewall Manager provides the following types of policies:
A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources
An AWS WAF policy, which contains a rule group and defines which resources are to be protected by that rule group
A security group policy, which manages VPC security groups across your AWS organization.
Each policy is specific to one of the three types. If you want to enforce more than one policy type across accounts, you can 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.
putPolicy
in interface AWSFMS
putPolicyRequest
- ResourceNotFoundException
- The specified resource was not found.InvalidOperationException
- The operation failed because there was nothing to do. For example, you might have submitted an
AssociateAdminAccount
request, but the account ID that you submitted was already set as the
AWS Firewall Manager administrator.InvalidInputException
- The parameters of the request were invalid.LimitExceededException
- The operation exceeds a resource limit, for example, the maximum number of policy
objects
that you can create for an AWS account. For more information, see Firewall Manager Limits
in the AWS WAF Developer Guide.InternalErrorException
- The operation failed because of a system problem, even though the request was valid. Retry your request.InvalidTypeException
- The value of the Type
parameter is invalid.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSFMS
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.