Class OidcProviderNative
- All Implemented Interfaces:
IOIDCProviderRef,IEnvironmentAware,IResource,IOidcProvider,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
OidcProviderNative,OidcProviderNative
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.Alias foroidcProviderArnto maintain backwards compatibility for constructs which acceptiam.IOpenIdConnectProvider.Alias foroidcProviderIssuerto maintain backwards compatibility for constructs which accept `iam.IOpenIdConnectProvider.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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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. -
getOpenIdConnectProviderArn
Alias foroidcProviderArnto maintain backwards compatibility for constructs which acceptiam.IOpenIdConnectProvider.Use
oidcProviderArninstead. This property exists for backward compatibility with existing constructs as migrating between the 2 constructs (OpenIdConnectProvider and OidcProviderNative) is not reasonably feasible as it requires a manual step (cdk import) since the resource type is changing between OpenIdConnectProvider and OidcProviderNative.- Specified by:
getOpenIdConnectProviderArnin interfaceIOidcProvider
-
getOpenIdConnectProviderIssuer
Alias foroidcProviderIssuerto maintain backwards compatibility for constructs which accept `iam.IOpenIdConnectProvider.Use
oidcProviderIssuerinstead. This property exists for backward compatibility with existing constructs as migrating between the 2 constructs (OpenIdConnectProvider and OidcProviderNative) is not reasonably feasible as it requires a manual step (cdk import) since the resource type is changing between OpenIdConnectProvider and OidcProviderNative.- Specified by:
getOpenIdConnectProviderIssuerin interfaceIOidcProvider
-