Interface AllowedWorkloadConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AllowedWorkloadConfiguration.Builder,,AllowedWorkloadConfiguration> SdkBuilder<AllowedWorkloadConfiguration.Builder,,AllowedWorkloadConfiguration> SdkPojo
- Enclosing class:
AllowedWorkloadConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionhostingEnvironments(Collection<HostingEnvironment> hostingEnvironments) The list of hosting environments whose workloads are allowed to invoke the target.hostingEnvironments(Consumer<HostingEnvironment.Builder>... hostingEnvironments) The list of hosting environments whose workloads are allowed to invoke the target.hostingEnvironments(HostingEnvironment... hostingEnvironments) The list of hosting environments whose workloads are allowed to invoke the target.workloadIdentities(String... workloadIdentities) The list of workload identities that are allowed to invoke the target.workloadIdentities(Collection<String> workloadIdentities) The list of workload identities that are allowed to invoke the target.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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 theHostingEnvironment.Builderavoiding the need to create one manually viaHostingEnvironment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohostingEnvironments(List<HostingEnvironment>).- Parameters:
hostingEnvironments- a consumer that will call methods onHostingEnvironment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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.
-