Class OpenIdConnectProvider.Builder
java.lang.Object
software.amazon.awscdk.services.eks.OpenIdConnectProvider.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OpenIdConnectProvider>
- Enclosing class:
OpenIdConnectProvider
@Stability(Stable)
public static final class OpenIdConnectProvider.Builder
extends Object
implements software.amazon.jsii.Builder<OpenIdConnectProvider>
A fluent builder for
OpenIdConnectProvider.-
Method Summary
Modifier and TypeMethodDescriptionbuild()removalPolicy(RemovalPolicy removalPolicy) The removal policy to apply to the OpenID Connect Provider.The URL of the identity provider.
-
Method Details
-
create
@Stability(Stable) public static OpenIdConnectProvider.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- The definition scope. This parameter is required.id- Construct ID. This parameter is required.- Returns:
- a new instance of
OpenIdConnectProvider.Builder.
-
url
The URL of the identity provider.The URL must begin with https:// and should correspond to the iss claim in the provider's OpenID Connect ID tokens. Per the OIDC standard, path components are allowed but query parameters are not. Typically the URL consists of only a hostname, like https://server.example.org or https://example.com.
You can find your OIDC Issuer URL by: aws eks describe-cluster --name %cluster_name% --query "cluster.identity.oidc.issuer" --output text
- Parameters:
url- The URL of the identity provider. This parameter is required.- Returns:
this
-
removalPolicy
The removal policy to apply to the OpenID Connect Provider.Default: - RemovalPolicy.DESTROY
- Parameters:
removalPolicy- The removal policy to apply to the OpenID Connect Provider. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OpenIdConnectProvider>- Returns:
- a newly built instance of
OpenIdConnectProvider.
-