Class CfnIdentityProviderConfig
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.eks.CfnIdentityProviderConfig
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IIdentityProviderConfigRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:05.585Z")
@Stability(Stable)
public class CfnIdentityProviderConfig
extends CfnResource
implements IInspectable, IIdentityProviderConfigRef, ITaggable
Associates an identity provider configuration to a cluster.
If you want to authenticate identities using an identity provider, you can create an identity provider configuration and associate it to your cluster. After configuring authentication to your cluster you can create Kubernetes Role and ClusterRole objects, assign permissions to them, and then bind them to the identities using Kubernetes RoleBinding and ClusterRoleBinding objects. For more information see Using RBAC Authorization in the Kubernetes documentation.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;
CfnIdentityProviderConfig cfnIdentityProviderConfig = CfnIdentityProviderConfig.Builder.create(this, "MyCfnIdentityProviderConfig")
.clusterName("clusterName")
.type("type")
// the properties below are optional
.identityProviderConfigName("identityProviderConfigName")
.oidc(OidcIdentityProviderConfigProperty.builder()
.clientId("clientId")
.issuerUrl("issuerUrl")
// the properties below are optional
.groupsClaim("groupsClaim")
.groupsPrefix("groupsPrefix")
.requiredClaims(List.of(RequiredClaimProperty.builder()
.key("key")
.value("value")
.build()))
.usernameClaim("usernameClaim")
.usernamePrefix("usernamePrefix")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnIdentityProviderConfig.static interfaceAn object representing the configuration for an OpenID Connect (OIDC) identity provider.static interfaceA key-value pair that describes a required claim in the identity token.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.eks.IIdentityProviderConfigRef
IIdentityProviderConfigRef.Jsii$Default, IIdentityProviderConfigRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnIdentityProviderConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIdentityProviderConfig(software.amazon.jsii.JsiiObjectRef objRef) CfnIdentityProviderConfig(software.constructs.Construct scope, String id, CfnIdentityProviderConfigProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) associated with the identity provider config.The name of your cluster.The name of the configuration.A reference to a IdentityProviderConfig resource.getOidc()An object representing an OpenID Connect (OIDC) identity provider configuration.getTags()Tag Manager which manages the tags for this resource.Metadata that assists with categorization and organization.getType()The type of the identity provider configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetClusterName(String value) The name of your cluster.voidThe name of the configuration.voidsetOidc(IResolvable value) An object representing an OpenID Connect (OIDC) identity provider configuration.voidAn object representing an OpenID Connect (OIDC) identity provider configuration.voidsetTagsRaw(List<CfnTag> value) Metadata that assists with categorization and organization.voidThe type of the identity provider configuration.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnIdentityProviderConfig
protected CfnIdentityProviderConfig(software.amazon.jsii.JsiiObjectRef objRef) -
CfnIdentityProviderConfig
protected CfnIdentityProviderConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnIdentityProviderConfig
@Stability(Stable) public CfnIdentityProviderConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnIdentityProviderConfigProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrIdentityProviderConfigArn
The Amazon Resource Name (ARN) associated with the identity provider config. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getIdentityProviderConfigRef
A reference to a IdentityProviderConfig resource.- Specified by:
getIdentityProviderConfigRefin interfaceIIdentityProviderConfigRef
-
getTags
Tag Manager which manages the tags for this resource. -
getClusterName
The name of your cluster. -
setClusterName
The name of your cluster. -
getType
The type of the identity provider configuration. -
setType
The type of the identity provider configuration. -
getIdentityProviderConfigName
The name of the configuration. -
setIdentityProviderConfigName
The name of the configuration. -
getOidc
An object representing an OpenID Connect (OIDC) identity provider configuration.Returns union: either
IResolvableorCfnIdentityProviderConfig.OidcIdentityProviderConfigProperty -
setOidc
An object representing an OpenID Connect (OIDC) identity provider configuration. -
setOidc
@Stability(Stable) public void setOidc(@Nullable CfnIdentityProviderConfig.OidcIdentityProviderConfigProperty value) An object representing an OpenID Connect (OIDC) identity provider configuration. -
getTagsRaw
Metadata that assists with categorization and organization. -
setTagsRaw
Metadata that assists with categorization and organization.
-