Class CfnListener.AuthenticateOidcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListener.AuthenticateOidcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListener.AuthenticateOidcConfigProperty>
- Enclosing interface:
CfnListener.AuthenticateOidcConfigProperty
@Stability(Stable)
public static final class CfnListener.AuthenticateOidcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListener.AuthenticateOidcConfigProperty>
A builder for
CfnListener.AuthenticateOidcConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationRequestExtraParams
(Map<String, String> authenticationRequestExtraParams) authenticationRequestExtraParams
(IResolvable authenticationRequestExtraParams) authorizationEndpoint
(String authorizationEndpoint) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getAuthorizationEndpoint()
build()
Builds the configured instance.Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getClientId()
clientSecret
(String clientSecret) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getClientSecret()
Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getIssuer()
onUnauthenticatedRequest
(String onUnauthenticatedRequest) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getOnUnauthenticatedRequest()
Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getScope()
sessionCookieName
(String sessionCookieName) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getSessionCookieName()
sessionTimeout
(String sessionTimeout) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getSessionTimeout()
tokenEndpoint
(String tokenEndpoint) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getTokenEndpoint()
useExistingClientSecret
(Boolean useExistingClientSecret) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getUseExistingClientSecret()
useExistingClientSecret
(IResolvable useExistingClientSecret) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getUseExistingClientSecret()
userInfoEndpoint
(String userInfoEndpoint) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getUserInfoEndpoint()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationEndpoint
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder authorizationEndpoint(String authorizationEndpoint) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getAuthorizationEndpoint()
- Parameters:
authorizationEndpoint
- The authorization endpoint of the IdP. This parameter is required. This must be a full URL, including the HTTPS protocol, the domain, and the path.- Returns:
this
-
clientId
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder clientId(String clientId) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getClientId()
- Parameters:
clientId
- The OAuth 2.0 client identifier. This parameter is required.- Returns:
this
-
issuer
Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getIssuer()
- Parameters:
issuer
- The OIDC issuer identifier of the IdP. This parameter is required. This must be a full URL, including the HTTPS protocol, the domain, and the path.- Returns:
this
-
tokenEndpoint
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder tokenEndpoint(String tokenEndpoint) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getTokenEndpoint()
- Parameters:
tokenEndpoint
- The token endpoint of the IdP. This parameter is required. This must be a full URL, including the HTTPS protocol, the domain, and the path.- Returns:
this
-
userInfoEndpoint
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder userInfoEndpoint(String userInfoEndpoint) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getUserInfoEndpoint()
- Parameters:
userInfoEndpoint
- The user info endpoint of the IdP. This parameter is required. This must be a full URL, including the HTTPS protocol, the domain, and the path.- Returns:
this
-
authenticationRequestExtraParams
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder authenticationRequestExtraParams(IResolvable authenticationRequestExtraParams) - Parameters:
authenticationRequestExtraParams
- The query parameters (up to 10) to include in the redirect request to the authorization endpoint.- Returns:
this
-
authenticationRequestExtraParams
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder authenticationRequestExtraParams(Map<String, String> authenticationRequestExtraParams) - Parameters:
authenticationRequestExtraParams
- The query parameters (up to 10) to include in the redirect request to the authorization endpoint.- Returns:
this
-
clientSecret
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder clientSecret(String clientSecret) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getClientSecret()
- Parameters:
clientSecret
- The OAuth 2.0 client secret. This parameter is required if you are creating a rule. If you are modifying a rule, you can omit this parameter if you setUseExistingClientSecret
to true.- Returns:
this
-
onUnauthenticatedRequest
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getOnUnauthenticatedRequest()
- Parameters:
onUnauthenticatedRequest
- The behavior if the user is not authenticated. The following are possible values:.- deny `` - Return an HTTP 401 Unauthorized error.
- allow `` - Allow the request to be forwarded to the target.
- authenticate `` - Redirect the request to the IdP authorization endpoint. This is the default value.
- Returns:
this
-
scope
Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getScope()
- Parameters:
scope
- The set of user claims to be requested from the IdP. The default isopenid
. To verify which scope values your IdP supports and how to separate multiple values, see the documentation for your IdP.- Returns:
this
-
sessionCookieName
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder sessionCookieName(String sessionCookieName) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getSessionCookieName()
- Parameters:
sessionCookieName
- The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie.- Returns:
this
-
sessionTimeout
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder sessionTimeout(String sessionTimeout) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getSessionTimeout()
- Parameters:
sessionTimeout
- The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days).- Returns:
this
-
useExistingClientSecret
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder useExistingClientSecret(Boolean useExistingClientSecret) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getUseExistingClientSecret()
- Parameters:
useExistingClientSecret
- Indicates whether to use the existing client secret when modifying a rule. If you are creating a rule, you can omit this parameter or set it to false.- Returns:
this
-
useExistingClientSecret
@Stability(Stable) public CfnListener.AuthenticateOidcConfigProperty.Builder useExistingClientSecret(IResolvable useExistingClientSecret) Sets the value ofCfnListener.AuthenticateOidcConfigProperty.getUseExistingClientSecret()
- Parameters:
useExistingClientSecret
- Indicates whether to use the existing client secret when modifying a rule. If you are creating a rule, you can omit this parameter or set it to false.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListener.AuthenticateOidcConfigProperty>
- Returns:
- a new instance of
CfnListener.AuthenticateOidcConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-