Class PolicySummary
- java.lang.Object
-
- software.amazon.awssdk.services.fms.model.PolicySummary
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicySummary.Builder,PolicySummary>
@Generated("software.amazon.awssdk:codegen") public final class PolicySummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicySummary.Builder,PolicySummary>
Details of the Firewall Manager policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicySummary.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicySummary.Builderbuilder()BooleandeleteUnusedFMManagedResources()Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpolicyArn()The Amazon Resource Name (ARN) of the specified policy.StringpolicyId()The ID of the specified policy.StringpolicyName()The name of the specified policy.CustomerPolicyStatuspolicyStatus()Indicates whether the policy is in or out of an admin's policy or Region scope.StringpolicyStatusAsString()Indicates whether the policy is in or out of an admin's policy or Region scope.BooleanremediationEnabled()Indicates if the policy should be automatically applied to new resources.StringresourceType()The type of resource protected by or in scope of the policy.List<SdkField<?>>sdkFields()SecurityServiceTypesecurityServiceType()The service that the policy is using to protect the resources.StringsecurityServiceTypeAsString()The service that the policy is using to protect the resources.static Class<? extends PolicySummary.Builder>serializableBuilderClass()PolicySummary.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
policyArn
public final String policyArn()
The Amazon Resource Name (ARN) of the specified policy.
- Returns:
- The Amazon Resource Name (ARN) of the specified policy.
-
policyId
public final String policyId()
The ID of the specified policy.
- Returns:
- The ID of the specified policy.
-
policyName
public final String policyName()
The name of the specified policy.
- Returns:
- The name of the specified policy.
-
resourceType
public final String resourceType()
The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference.
- Returns:
- The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference.
-
securityServiceType
public final SecurityServiceType securityServiceType()
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy.
If the service returns an enum value that is not available in the current SDK version,
securityServiceTypewill returnSecurityServiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsecurityServiceTypeAsString().- Returns:
- The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy.
- See Also:
SecurityServiceType
-
securityServiceTypeAsString
public final String securityServiceTypeAsString()
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy.
If the service returns an enum value that is not available in the current SDK version,
securityServiceTypewill returnSecurityServiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsecurityServiceTypeAsString().- Returns:
- The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy.
- See Also:
SecurityServiceType
-
remediationEnabled
public final Boolean remediationEnabled()
Indicates if the policy should be automatically applied to new resources.
- Returns:
- Indicates if the policy should be automatically applied to new resources.
-
deleteUnusedFMManagedResources
public final Boolean deleteUnusedFMManagedResources()
Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope.
By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources.
This option is not available for Shield Advanced or WAF Classic policies.
- Returns:
- Indicates whether Firewall Manager should automatically remove protections from resources that leave the
policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts
leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL
from a protected customer resource when the customer resource leaves policy scope.
By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources.
This option is not available for Shield Advanced or WAF Classic policies.
-
policyStatus
public final CustomerPolicyStatus policyStatus()
Indicates whether the policy is in or out of an admin's policy or Region scope.
-
ACTIVE- The administrator can manage and delete the policy. -
OUT_OF_ADMIN_SCOPE- The administrator can view the policy, but they can't edit or delete the policy. Existing policy protections stay in place. Any new resources that come into scope of the policy won't be protected.
If the service returns an enum value that is not available in the current SDK version,
policyStatuswill returnCustomerPolicyStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyStatusAsString().- Returns:
- Indicates whether the policy is in or out of an admin's policy or Region scope.
-
ACTIVE- The administrator can manage and delete the policy. -
OUT_OF_ADMIN_SCOPE- The administrator can view the policy, but they can't edit or delete the policy. Existing policy protections stay in place. Any new resources that come into scope of the policy won't be protected.
-
- See Also:
CustomerPolicyStatus
-
-
policyStatusAsString
public final String policyStatusAsString()
Indicates whether the policy is in or out of an admin's policy or Region scope.
-
ACTIVE- The administrator can manage and delete the policy. -
OUT_OF_ADMIN_SCOPE- The administrator can view the policy, but they can't edit or delete the policy. Existing policy protections stay in place. Any new resources that come into scope of the policy won't be protected.
If the service returns an enum value that is not available in the current SDK version,
policyStatuswill returnCustomerPolicyStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyStatusAsString().- Returns:
- Indicates whether the policy is in or out of an admin's policy or Region scope.
-
ACTIVE- The administrator can manage and delete the policy. -
OUT_OF_ADMIN_SCOPE- The administrator can view the policy, but they can't edit or delete the policy. Existing policy protections stay in place. Any new resources that come into scope of the policy won't be protected.
-
- See Also:
CustomerPolicyStatus
-
-
toBuilder
public PolicySummary.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicySummary.Builder,PolicySummary>
-
builder
public static PolicySummary.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicySummary.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-