Interface CreatePolicyResponse.Builder

  • Method Details

    • policyId

      The unique identifier for the created policy. This is a system-generated identifier consisting of the user name plus a 10-character generated suffix, used for all subsequent policy operations.

      Parameters:
      policyId - The unique identifier for the created policy. This is a system-generated identifier consisting of the user name plus a 10-character generated suffix, used for all subsequent policy operations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The customer-assigned name of the created policy. This matches the name provided in the request and serves as the human-readable identifier for the policy.

      Parameters:
      name - The customer-assigned name of the created policy. This matches the name provided in the request and serves as the human-readable identifier for the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyEngineId

      CreatePolicyResponse.Builder policyEngineId(String policyEngineId)

      The identifier of the policy engine that manages this policy. This confirms the policy engine assignment and is used for policy evaluation routing.

      Parameters:
      policyEngineId - The identifier of the policy engine that manages this policy. This confirms the policy engine assignment and is used for policy evaluation routing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      The Cedar policy statement that was created. This is the validated policy definition that will be used for agent behavior control and access decisions.

      Parameters:
      definition - The Cedar policy statement that was created. This is the validated policy definition that will be used for agent behavior control and access decisions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      The Cedar policy statement that was created. This is the validated policy definition that will be used for agent behavior control and access decisions.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to definition(PolicyDefinition).

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

      CreatePolicyResponse.Builder description(String description)

      The human-readable description of the policy's purpose and functionality. This helps administrators understand and manage the policy.

      Parameters:
      description - The human-readable description of the policy's purpose and functionality. This helps administrators understand and manage the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      CreatePolicyResponse.Builder createdAt(Instant createdAt)

      The timestamp when the policy was created. This is automatically set by the service and used for auditing and lifecycle management.

      Parameters:
      createdAt - The timestamp when the policy was created. This is automatically set by the service and used for auditing and lifecycle management.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      CreatePolicyResponse.Builder updatedAt(Instant updatedAt)

      The timestamp when the policy was last updated. For newly created policies, this matches the createdAt timestamp.

      Parameters:
      updatedAt - The timestamp when the policy was last updated. For newly created policies, this matches the createdAt timestamp.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyArn

      CreatePolicyResponse.Builder policyArn(String policyArn)

      The Amazon Resource Name (ARN) of the created policy. This globally unique identifier can be used for cross-service references and IAM policy statements.

      Parameters:
      policyArn - The Amazon Resource Name (ARN) of the created policy. This globally unique identifier can be used for cross-service references and IAM policy statements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the policy. A status of ACTIVE indicates the policy is ready for use.

      Parameters:
      status - The current status of the policy. A status of ACTIVE indicates the policy is ready for use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the policy. A status of ACTIVE indicates the policy is ready for use.

      Parameters:
      status - The current status of the policy. A status of ACTIVE indicates the policy is ready for use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReasons

      CreatePolicyResponse.Builder statusReasons(Collection<String> statusReasons)

      Additional information about the policy status. This provides details about any failures or the current state of the policy creation process.

      Parameters:
      statusReasons - Additional information about the policy status. This provides details about any failures or the current state of the policy creation process.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusReasons

      CreatePolicyResponse.Builder statusReasons(String... statusReasons)

      Additional information about the policy status. This provides details about any failures or the current state of the policy creation process.

      Parameters:
      statusReasons - Additional information about the policy status. This provides details about any failures or the current state of the policy creation process.
      Returns:
      Returns a reference to this object so that method calls can be chained together.