Class OidcProviderNative
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.iam.OidcProviderNative
- All Implemented Interfaces:
IOIDCProviderRef,IEnvironmentAware,IResource,IOidcProvider,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:07.220Z")
@Stability(Stable)
public class OidcProviderNative
extends Resource
implements IOidcProvider
IAM OIDC identity providers are entities in IAM that describe an external identity provider (IdP) service that supports the OpenID Connect (OIDC) standard, such as Google or Salesforce.
You use an IAM OIDC identity provider when you want to establish trust between an OIDC-compatible IdP and your AWS account. This is useful when creating a mobile app or web application that requires access to AWS resources, but you don't want to create custom sign-in code or manage your own user identities.
Example:
OidcProviderNative nativeProvider = OidcProviderNative.Builder.create(this, "MyProvider")
.url("https://openid/connect")
.clientIds(List.of("myclient1", "myclient2"))
.thumbprints(List.of("aa00aa1122aa00aa1122aa00aa1122aa00aa1122"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.iam.IOidcProvider
IOidcProvider.Jsii$Default, IOidcProvider.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOidcProviderNative(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedOidcProviderNative(software.amazon.jsii.JsiiObjectRef objRef) OidcProviderNative(software.constructs.Construct scope, String id, OidcProviderNativeProps props) Defines a Native OpenID Connect provider. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOidcProviderfromOidcProviderArn(software.constructs.Construct scope, String id, String oidcProviderArn) Imports an Open ID connect provider from an ARN.The Amazon Resource Name (ARN) of the Native IAM OpenID Connect provider.The issuer for the Native OIDC Provider.A reference to a OIDCProvider resource.The thumbprints configured for this provider.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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.amazon.awscdk.services.iam.IOidcProvider
getEnv, getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
OidcProviderNative
protected OidcProviderNative(software.amazon.jsii.JsiiObjectRef objRef) -
OidcProviderNative
protected OidcProviderNative(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
OidcProviderNative
@Stability(Stable) public OidcProviderNative(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull OidcProviderNativeProps props) Defines a Native OpenID Connect provider.- Parameters:
scope- The definition scope. This parameter is required.id- Construct ID. This parameter is required.props- Initialization properties. This parameter is required.
-
-
Method Details
-
fromOidcProviderArn
@Stability(Stable) @NotNull public static IOidcProvider fromOidcProviderArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String oidcProviderArn) Imports an Open ID connect provider from an ARN.- Parameters:
scope- The definition scope. This parameter is required.id- ID of the construct. This parameter is required.oidcProviderArn- the ARN to import. This parameter is required.
-
getOidcProviderArn
The Amazon Resource Name (ARN) of the Native IAM OpenID Connect provider.- Specified by:
getOidcProviderArnin interfaceIOidcProvider
-
getOidcProviderIssuer
The issuer for the Native OIDC Provider.- Specified by:
getOidcProviderIssuerin interfaceIOidcProvider
-
getOidcProviderRef
A reference to a OIDCProvider resource.- Specified by:
getOidcProviderRefin interfaceIOIDCProviderRef
-
getOidcProviderThumbprints
The thumbprints configured for this provider.
-