Interface CreateAgentEnforcedPolicyRequest.Builder

  • Method Details

    • clientToken

      A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another agent-enforced policy.

      If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the policy created with this token, the operation returns ConflictException.

      Parameters:
      clientToken - A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another agent-enforced policy.

      If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the policy created with this token, the operation returns ConflictException.

      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

      Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long and can't contain control characters other than tab, line feed, and carriage return.

      Parameters:
      policyBody - Specifies the policy document, in JSON format, that defines the enforced policy. It can be up to 65,536 characters long and can't contain control characters other than tab, line feed, and carriage return.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the agent-enforced policy. Each tag key can appear only once.

      Parameters:
      tags - The tags to add to the agent-enforced policy. Each tag key can appear only once.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the agent-enforced policy. Each tag key can appear only once.

      Parameters:
      tags - The tags to add to the agent-enforced policy. Each tag key can appear only once.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the agent-enforced policy. Each tag key can appear only once.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateAgentEnforcedPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.