Class ResourceViolation

java.lang.Object
software.amazon.awssdk.services.fms.model.ResourceViolation
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ResourceViolation.Builder,ResourceViolation>

@Generated("software.amazon.awssdk:codegen") public final class ResourceViolation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceViolation.Builder,ResourceViolation>

Violation detail based on resource type.

See Also:
  • Method Details

    • awsVPCSecurityGroupViolation

      public final AwsVPCSecurityGroupViolation awsVPCSecurityGroupViolation()

      Violation detail for security groups.

      Returns:
      Violation detail for security groups.
    • awsEc2NetworkInterfaceViolation

      public final AwsEc2NetworkInterfaceViolation awsEc2NetworkInterfaceViolation()

      Violation detail for a network interface.

      Returns:
      Violation detail for a network interface.
    • awsEc2InstanceViolation

      public final AwsEc2InstanceViolation awsEc2InstanceViolation()

      Violation detail for an EC2 instance.

      Returns:
      Violation detail for an EC2 instance.
    • networkFirewallMissingFirewallViolation

      public final NetworkFirewallMissingFirewallViolation networkFirewallMissingFirewallViolation()

      Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager managed firewall in its VPC.

      Returns:
      Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager managed firewall in its VPC.
    • networkFirewallMissingSubnetViolation

      public final NetworkFirewallMissingSubnetViolation networkFirewallMissingSubnetViolation()

      Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the expected Firewall Manager managed subnet.

      Returns:
      Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the expected Firewall Manager managed subnet.
    • networkFirewallMissingExpectedRTViolation

      public final NetworkFirewallMissingExpectedRTViolation networkFirewallMissingExpectedRTViolation()

      Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the expected Firewall Manager managed route table.

      Returns:
      Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the expected Firewall Manager managed route table.
    • networkFirewallPolicyModifiedViolation

      public final NetworkFirewallPolicyModifiedViolation networkFirewallPolicyModifiedViolation()

      Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual account has been modified in a way that makes it noncompliant. For example, the individual account owner might have deleted a rule group, changed the priority of a stateless rule group, or changed a policy default action.

      Returns:
      Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual account has been modified in a way that makes it noncompliant. For example, the individual account owner might have deleted a rule group, changed the priority of a stateless rule group, or changed a policy default action.
    • networkFirewallInternetTrafficNotInspectedViolation

      public final NetworkFirewallInternetTrafficNotInspectedViolation networkFirewallInternetTrafficNotInspectedViolation()

      Violation detail for the subnet for which internet traffic hasn't been inspected.

      Returns:
      Violation detail for the subnet for which internet traffic hasn't been inspected.
    • networkFirewallInvalidRouteConfigurationViolation

      public final NetworkFirewallInvalidRouteConfigurationViolation networkFirewallInvalidRouteConfigurationViolation()

      The route configuration is invalid.

      Returns:
      The route configuration is invalid.
    • networkFirewallBlackHoleRouteDetectedViolation

      public final NetworkFirewallBlackHoleRouteDetectedViolation networkFirewallBlackHoleRouteDetectedViolation()
      Returns the value of the NetworkFirewallBlackHoleRouteDetectedViolation property for this object.
      Returns:
      The value of the NetworkFirewallBlackHoleRouteDetectedViolation property for this object.
    • networkFirewallUnexpectedFirewallRoutesViolation

      public final NetworkFirewallUnexpectedFirewallRoutesViolation networkFirewallUnexpectedFirewallRoutesViolation()

      There's an unexpected firewall route.

      Returns:
      There's an unexpected firewall route.
    • networkFirewallUnexpectedGatewayRoutesViolation

      public final NetworkFirewallUnexpectedGatewayRoutesViolation networkFirewallUnexpectedGatewayRoutesViolation()

      There's an unexpected gateway route.

      Returns:
      There's an unexpected gateway route.
    • networkFirewallMissingExpectedRoutesViolation

      public final NetworkFirewallMissingExpectedRoutesViolation networkFirewallMissingExpectedRoutesViolation()

      Expected routes are missing from Network Firewall.

      Returns:
      Expected routes are missing from Network Firewall.
    • dnsRuleGroupPriorityConflictViolation

      public final DnsRuleGroupPriorityConflictViolation dnsRuleGroupPriorityConflictViolation()

      Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to associate with a VPC has the same priority as a rule group that's already associated.

      Returns:
      Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to associate with a VPC has the same priority as a rule group that's already associated.
    • dnsDuplicateRuleGroupViolation

      public final DnsDuplicateRuleGroupViolation dnsDuplicateRuleGroupViolation()

      Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to associate with a VPC is already associated with the VPC and can't be associated again.

      Returns:
      Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to associate with a VPC is already associated with the VPC and can't be associated again.
    • dnsRuleGroupLimitExceededViolation

      public final DnsRuleGroupLimitExceededViolation dnsRuleGroupLimitExceededViolation()

      Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated DNS Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed.

      Returns:
      Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated DNS Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed.
    • firewallSubnetIsOutOfScopeViolation

      public final FirewallSubnetIsOutOfScopeViolation firewallSubnetIsOutOfScopeViolation()

      Contains details about the firewall subnet that violates the policy scope.

      Returns:
      Contains details about the firewall subnet that violates the policy scope.
    • routeHasOutOfScopeEndpointViolation

      public final RouteHasOutOfScopeEndpointViolation routeHasOutOfScopeEndpointViolation()

      Contains details about the route endpoint that violates the policy scope.

      Returns:
      Contains details about the route endpoint that violates the policy scope.
    • thirdPartyFirewallMissingFirewallViolation

      public final ThirdPartyFirewallMissingFirewallViolation thirdPartyFirewallMissingFirewallViolation()

      The violation details for a third-party firewall that's been deleted.

      Returns:
      The violation details for a third-party firewall that's been deleted.
    • thirdPartyFirewallMissingSubnetViolation

      public final ThirdPartyFirewallMissingSubnetViolation thirdPartyFirewallMissingSubnetViolation()

      The violation details for a third-party firewall's subnet that's been deleted.

      Returns:
      The violation details for a third-party firewall's subnet that's been deleted.
    • thirdPartyFirewallMissingExpectedRouteTableViolation

      public final ThirdPartyFirewallMissingExpectedRouteTableViolation thirdPartyFirewallMissingExpectedRouteTableViolation()

      The violation details for a third-party firewall that has the Firewall Manager managed route table that was associated with the third-party firewall has been deleted.

      Returns:
      The violation details for a third-party firewall that has the Firewall Manager managed route table that was associated with the third-party firewall has been deleted.
    • firewallSubnetMissingVPCEndpointViolation

      public final FirewallSubnetMissingVPCEndpointViolation firewallSubnetMissingVPCEndpointViolation()

      The violation details for a third-party firewall's VPC endpoint subnet that was deleted.

      Returns:
      The violation details for a third-party firewall's VPC endpoint subnet that was deleted.
    • invalidNetworkAclEntriesViolation

      public final InvalidNetworkAclEntriesViolation invalidNetworkAclEntriesViolation()

      Violation detail for the entries in a network ACL resource.

      Returns:
      Violation detail for the entries in a network ACL resource.
    • possibleRemediationActions

      public final PossibleRemediationActions possibleRemediationActions()

      A list of possible remediation action lists. Each individual possible remediation action is a list of individual remediation actions.

      Returns:
      A list of possible remediation action lists. Each individual possible remediation action is a list of individual remediation actions.
    • toBuilder

      public ResourceViolation.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ResourceViolation.Builder,ResourceViolation>
      Returns:
      a builder for type T
    • builder

      public static ResourceViolation.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ResourceViolation.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.