Class CfnWorkloadIdentityProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnWorkloadIdentityProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkloadIdentityProps>
- Enclosing interface:
CfnWorkloadIdentityProps
@Stability(Stable)
public static final class CfnWorkloadIdentityProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkloadIdentityProps>
A builder for
CfnWorkloadIdentityProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedResourceOauth2ReturnUrls(List<String> allowedResourceOauth2ReturnUrls) Sets the value ofCfnWorkloadIdentityProps.getAllowedResourceOauth2ReturnUrls()build()Builds the configured instance.Sets the value ofCfnWorkloadIdentityProps.getName()Sets the value ofCfnWorkloadIdentityProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnWorkloadIdentityProps.getName()- Parameters:
name- The name of the workload identity. This parameter is required. The name must be unique within your account.- Returns:
this
-
allowedResourceOauth2ReturnUrls
@Stability(Stable) public CfnWorkloadIdentityProps.Builder allowedResourceOauth2ReturnUrls(List<String> allowedResourceOauth2ReturnUrls) Sets the value ofCfnWorkloadIdentityProps.getAllowedResourceOauth2ReturnUrls()- Parameters:
allowedResourceOauth2ReturnUrls- The list of allowed OAuth2 return URLs for resources associated with this workload identity.- Returns:
this
-
tags
Sets the value ofCfnWorkloadIdentityProps.getTags()- Parameters:
tags- The tags for the workload identity.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkloadIdentityProps>- Returns:
- a new instance of
CfnWorkloadIdentityProps - Throws:
NullPointerException- if any required attribute was not provided
-