Interface AllowedWorkloadConfiguration.Builder

  • Method Details

    • hostingEnvironments

      AllowedWorkloadConfiguration.Builder hostingEnvironments(Collection<HostingEnvironment> hostingEnvironments)

      The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.

      Parameters:
      hostingEnvironments - The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostingEnvironments

      AllowedWorkloadConfiguration.Builder hostingEnvironments(HostingEnvironment... hostingEnvironments)

      The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.

      Parameters:
      hostingEnvironments - The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostingEnvironments

      AllowedWorkloadConfiguration.Builder hostingEnvironments(Consumer<HostingEnvironment.Builder>... hostingEnvironments)

      The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.

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

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

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

      AllowedWorkloadConfiguration.Builder workloadIdentities(Collection<String> workloadIdentities)

      The list of workload identities that are allowed to invoke the target.

      Parameters:
      workloadIdentities - The list of workload identities that are allowed to invoke the target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workloadIdentities

      AllowedWorkloadConfiguration.Builder workloadIdentities(String... workloadIdentities)

      The list of workload identities that are allowed to invoke the target.

      Parameters:
      workloadIdentities - The list of workload identities that are allowed to invoke the target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.