Class OidcProviderNative.Builder
java.lang.Object
software.amazon.awscdk.services.eks.OidcProviderNative.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OidcProviderNative>
- Enclosing class:
OidcProviderNative
@Stability(Stable)
public static final class OidcProviderNative.Builder
extends Object
implements software.amazon.jsii.Builder<OidcProviderNative>
A fluent builder for
OidcProviderNative.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static OidcProviderNative.BuilderremovalPolicy(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 OidcProviderNative.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
OidcProviderNative.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<OidcProviderNative>- Returns:
- a newly built instance of
OidcProviderNative.
-