Skip to content
v2.278.0

OidcIdentityProviderConfigProperty Struct ​

An object representing the configuration for an OpenID Connect (OIDC) identity provider.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const oidcIdentityProviderConfigProperty: eks.CfnIdentityProviderConfig.OidcIdentityProviderConfigProperty = {
  clientId: 'clientId',
  issuerUrl: 'issuerUrl',

  // the properties below are optional
  groupsClaim: 'groupsClaim',
  groupsPrefix: 'groupsPrefix',
  requiredClaims: [{
    key: 'key',
    value: 'value',
  }],
  usernameClaim: 'usernameClaim',
  usernamePrefix: 'usernamePrefix',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks

oidc_identity_provider_config_property = eks.CfnIdentityProviderConfig.OidcIdentityProviderConfigProperty(
    client_id="clientId",
    issuer_url="issuerUrl",

    # the properties below are optional
    groups_claim="groupsClaim",
    groups_prefix="groupsPrefix",
    required_claims=[eks.CfnIdentityProviderConfig.RequiredClaimProperty(
        key="key",
        value="value"
    )],
    username_claim="usernameClaim",
    username_prefix="usernamePrefix"
)
java
// 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.*;

OidcIdentityProviderConfigProperty oidcIdentityProviderConfigProperty = 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;

var oidcIdentityProviderConfigProperty = new OidcIdentityProviderConfigProperty {
    ClientId = "clientId",
    IssuerUrl = "issuerUrl",

    // the properties below are optional
    GroupsClaim = "groupsClaim",
    GroupsPrefix = "groupsPrefix",
    RequiredClaims = new [] { new RequiredClaimProperty {
        Key = "key",
        Value = "value"
    } },
    UsernameClaim = "usernameClaim",
    UsernamePrefix = "usernamePrefix"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

oidcIdentityProviderConfigProperty := &OidcIdentityProviderConfigProperty{
	ClientId: jsii.String("clientId"),
	IssuerUrl: jsii.String("issuerUrl"),

	// the properties below are optional
	GroupsClaim: jsii.String("groupsClaim"),
	GroupsPrefix: jsii.String("groupsPrefix"),
	RequiredClaims: []interface{}{
		&RequiredClaimProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	UsernameClaim: jsii.String("usernameClaim"),
	UsernamePrefix: jsii.String("usernamePrefix"),
}

Properties ​

clientIdstringclient_idstrclientIdStringClientIdstringClientId*string required #
This is also known as *audience* .

The ID of the client application that makes authentication requests to the OIDC identity provider.

groupsClaimoptionalstringgroups_claimoptionalstrgroupsClaimoptionalStringGroupsClaimoptionalstringGroupsClaimoptional*string #
The JSON web token (JWT) claim that the provider uses to return your groups.
groupsPrefixoptionalstringgroups_prefixoptionalstrgroupsPrefixoptionalStringGroupsPrefixoptionalstringGroupsPrefixoptional*string #
The prefix that is prepended to group claims to prevent clashes with existing names (such as `system:` groups).

For example, the value oidc: creates group names like oidc:engineering and oidc:infra . The prefix can't contain system:

issuerUrlstringissuer_urlstrissuerUrlStringIssuerUrlstringIssuerUrl*string required #
The URL of the OIDC identity provider that allows the API server to discover public signing keys for verifying tokens.
requiredClaimsoptionalIResolvable | IResolvable | CfnIdentityProviderConfig.RequiredClaimProperty[]required_claimsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RequiredClaimProperty]]]requiredClaimsoptionalIResolvableRequiredClaimsoptionalIResolvableRequiredClaimsoptionalinterface{} #
The key-value pairs that describe required claims in the identity token.

If set, each claim is verified to be present in the token with a matching value.

usernameClaimoptionalstringusername_claimoptionalstrusernameClaimoptionalStringUsernameClaimoptionalstringUsernameClaimoptional*string #
The JSON Web token (JWT) claim that is used as the username.
usernamePrefixoptionalstringusername_prefixoptionalstrusernamePrefixoptionalStringUsernamePrefixoptionalstringUsernamePrefixoptional*string #
The prefix that is prepended to username claims to prevent clashes with existing names.

The prefix can't contain system: