Interface StartPolicyGenerationRequest.Builder

  • Method Details

    • policyEngineId

      StartPolicyGenerationRequest.Builder policyEngineId(String policyEngineId)

      The identifier of the policy engine that provides the context for policy generation. This engine's schema and tool context are used to ensure generated policies are valid and applicable.

      Parameters:
      policyEngineId - The identifier of the policy engine that provides the context for policy generation. This engine's schema and tool context are used to ensure generated policies are valid and applicable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      The resource information that provides context for policy generation. This helps the AI understand the target resources and generate appropriate access control rules.

      Parameters:
      resource - The resource information that provides context for policy generation. This helps the AI understand the target resources and generate appropriate access control rules.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      The resource information that provides context for policy generation. This helps the AI understand the target resources and generate appropriate access control rules.

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

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

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

      The natural language description of the desired policy behavior. This content is processed by AI to generate corresponding Cedar policy statements that match the described intent.

      Parameters:
      content - The natural language description of the desired policy behavior. This content is processed by AI to generate corresponding Cedar policy statements that match the described intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The natural language description of the desired policy behavior. This content is processed by AI to generate corresponding Cedar policy statements that match the described intent.

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

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

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

      A customer-assigned name for the policy generation request. This helps track and identify generation operations, especially when running multiple generations simultaneously.

      Parameters:
      name - A customer-assigned name for the policy generation request. This helps track and identify generation operations, especially when running multiple generations simultaneously.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      StartPolicyGenerationRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier to ensure the idempotency of the request. The AWS SDK automatically generates this token, so you don't need to provide it in most cases. If you retry a request with the same client token, the service returns the same response without starting a duplicate generation.

      Parameters:
      clientToken - A unique, case-sensitive identifier to ensure the idempotency of the request. The AWS SDK automatically generates this token, so you don't need to provide it in most cases. If you retry a request with the same client token, the service returns the same response without starting a duplicate generation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      StartPolicyGenerationRequest.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.