Class WorkloadIdentity.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.WorkloadIdentity.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkloadIdentity>
- Enclosing class:
WorkloadIdentity
@Stability(Stable)
public static final class WorkloadIdentity.Builder
extends Object
implements software.amazon.jsii.Builder<WorkloadIdentity>
A fluent builder for
WorkloadIdentity.-
Method Summary
Modifier and TypeMethodDescriptionallowedResourceOauth2ReturnUrls(List<String> allowedResourceOauth2ReturnUrls) Allowed OAuth2 return URLs for resources associated with this workload identity.build()static WorkloadIdentity.BuilderTags for this workload identity.workloadIdentityName(String workloadIdentityName) Name of the workload identity.
-
Method Details
-
create
@Stability(Stable) public static WorkloadIdentity.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
WorkloadIdentity.Builder.
-
allowedResourceOauth2ReturnUrls
@Stability(Stable) public WorkloadIdentity.Builder allowedResourceOauth2ReturnUrls(List<String> allowedResourceOauth2ReturnUrls) Allowed OAuth2 return URLs for resources associated with this workload identity.Default: - no return URLs
- Parameters:
allowedResourceOauth2ReturnUrls- Allowed OAuth2 return URLs for resources associated with this workload identity. This parameter is required.- Returns:
this
-
tags
Tags for this workload identity.Default: - no tags
- Parameters:
tags- Tags for this workload identity. This parameter is required.- Returns:
this
-
workloadIdentityName
@Stability(Stable) public WorkloadIdentity.Builder workloadIdentityName(String workloadIdentityName) Name of the workload identity.Default: - a name generated by CDK
- Parameters:
workloadIdentityName- Name of the workload identity. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkloadIdentity>- Returns:
- a newly built instance of
WorkloadIdentity.
-