Interface AgentEnforcedPolicy.Builder

  • Method Details

    • id

      The identifier of the agent-enforced policy.

      Parameters:
      id - The identifier of the agent-enforced policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the agent-enforced policy.

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

      AgentEnforcedPolicy.Builder policyBody(String policyBody)

      Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long.

      Parameters:
      policyBody - Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      AgentEnforcedPolicy.Builder createdAt(Instant createdAt)

      The time when the agent-enforced policy was created.

      Parameters:
      createdAt - The time when the agent-enforced policy was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • owner

      The owner of the agent-enforced policy:

      • SELF – Your account owns the policy.

      • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

      Parameters:
      owner - The owner of the agent-enforced policy:

      • SELF – Your account owns the policy.

      • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

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

      The owner of the agent-enforced policy:

      • SELF – Your account owns the policy.

      • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

      Parameters:
      owner - The owner of the agent-enforced policy:

      • SELF – Your account owns the policy.

      • AMAZON – Amazon owns the policy. You can use it, but you can't change or delete it.

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