Class CfnIdentityProviderConfig
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.eks.legacy.CfnIdentityProviderConfig
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.733Z")
@Stability(Stable)
public class CfnIdentityProviderConfig
extends CfnResource
implements IInspectable
A CloudFormation
AWS::EKS::IdentityProviderConfig
.
Associate 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 roles
and clusterroles
to assign permissions to the roles, and then bind the roles to the identities using Kubernetes rolebindings
and clusterrolebindings
. 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.legacy.*; 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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnIdentityProviderConfig
.static interface
An object representing the configuration for an OpenID Connect (OIDC) identity provider.static interface
A 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnIdentityProviderConfig
(Construct scope, String id, CfnIdentityProviderConfigProps props) Create a newAWS::EKS::IdentityProviderConfig
.protected
CfnIdentityProviderConfig
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnIdentityProviderConfig
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) associated with the identity provider config.The cluster that the configuration is associated to.The name of the configuration.getOidc()
An object representing an OpenID Connect (OIDC) identity provider configuration.getTags()
The metadata to apply to the provider configuration to assist with categorization and organization.getType()
The type of the identity provider configuration.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setClusterName
(String value) The cluster that the configuration is associated to.void
The name of the configuration.void
setOidc
(IResolvable value) An object representing an OpenID Connect (OIDC) identity provider configuration.void
An object representing an OpenID Connect (OIDC) identity provider configuration.void
The type of the identity provider configuration.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 Construct scope, @NotNull String id, @NotNull CfnIdentityProviderConfigProps props) Create a newAWS::EKS::IdentityProviderConfig
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrIdentityProviderConfigArn
The Amazon Resource Name (ARN) associated with the identity provider config. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
The metadata to apply to the provider configuration to assist with categorization and organization.Each tag consists of a key and an optional value. You define both.
-
getClusterName
The cluster that the configuration is associated to. -
setClusterName
The cluster that the configuration is associated to. -
getType
The type of the identity provider configuration.The only type available is
oidc
. -
setType
The type of the identity provider configuration.The only type available is
oidc
. -
getIdentityProviderConfigName
The name of the configuration. -
setIdentityProviderConfigName
The name of the configuration. -
getOidc
An object representing an OpenID Connect (OIDC) identity provider configuration. -
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.
-