Interface PolicySummary.Builder

All Superinterfaces:
Buildable, CopyableBuilder<PolicySummary.Builder,PolicySummary>, SdkBuilder<PolicySummary.Builder,PolicySummary>, SdkPojo
Enclosing class:
PolicySummary

public static interface PolicySummary.Builder extends SdkPojo, CopyableBuilder<PolicySummary.Builder,PolicySummary>
  • Method Details

    • policyArn

      PolicySummary.Builder policyArn(String policyArn)

      The Amazon Resource Name (ARN) of the specified policy.

      Parameters:
      policyArn - The Amazon Resource Name (ARN) of the specified policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyId

      PolicySummary.Builder policyId(String policyId)

      The ID of the specified policy.

      Parameters:
      policyId - The ID of the specified policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyName

      PolicySummary.Builder policyName(String policyName)

      The name of the specified policy.

      Parameters:
      policyName - The name of the specified policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceType

      PolicySummary.Builder resourceType(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. For WAF and Shield Advanced, examples include AWS::ElasticLoadBalancingV2::LoadBalancer and AWS::CloudFront::Distribution. For a security group common policy, valid values are AWS::EC2::NetworkInterface and AWS::EC2::Instance. For a security group content audit policy, valid values are AWS::EC2::SecurityGroup, AWS::EC2::NetworkInterface, and AWS::EC2::Instance. For a security group usage audit policy, the value is AWS::EC2::SecurityGroup. For an Network Firewall policy or DNS Firewall policy, the value is AWS::EC2::VPC.

      Parameters:
      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. For WAF and Shield Advanced, examples include AWS::ElasticLoadBalancingV2::LoadBalancer and AWS::CloudFront::Distribution. For a security group common policy, valid values are AWS::EC2::NetworkInterface and AWS::EC2::Instance. For a security group content audit policy, valid values are AWS::EC2::SecurityGroup, AWS::EC2::NetworkInterface, and AWS::EC2::Instance. For a security group usage audit policy, the value is AWS::EC2::SecurityGroup. For an Network Firewall policy or DNS Firewall policy, the value is AWS::EC2::VPC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityServiceType

      PolicySummary.Builder securityServiceType(String 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • securityServiceType

      PolicySummary.Builder securityServiceType(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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • remediationEnabled

      PolicySummary.Builder remediationEnabled(Boolean remediationEnabled)

      Indicates if the policy should be automatically applied to new resources.

      Parameters:
      remediationEnabled - Indicates if the policy should be automatically applied to new resources.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deleteUnusedFMManagedResources

      PolicySummary.Builder deleteUnusedFMManagedResources(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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • policyStatus

      PolicySummary.Builder policyStatus(String 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • policyStatus

      PolicySummary.Builder policyStatus(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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: