Class CfnOIDCProvider
- All Implemented Interfaces:
- IConstruct,- IDependable,- IInspectable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
AWS::IAM::OIDCProvider.
 Creates or updates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC) .
The OIDC provider that you create with this operation can be used as a principal in a role's trust policy. Such a policy establishes a trust relationship between AWS and the OIDC provider.
When you create the IAM OIDC provider, you specify the following:
- The URL of the OIDC identity provider (IdP) to trust
- A list of client IDs (also known as audiences) that identify the application or applications that are allowed to authenticate using the OIDC provider
- A list of tags that are attached to the specified IAM OIDC provider
- A list of thumbprints of one or more server certificates that the IdP uses
You get all of this information from the OIDC IdP that you want to use to access AWS .
When you update the IAM OIDC provider, you specify the following:
- The URL of the OIDC identity provider (IdP) to trust
- A list of client IDs (also known as audiences) that replaces the existing list of client IDs associated with the OIDC IdP
- A list of tags that replaces the existing list of tags attached to the specified IAM OIDC provider
- A list of thumbprints that replaces the existing list of server certificates thumbprints that the IdP uses
The trust for the OIDC provider is derived from the IAM provider that this operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider operation to highly privileged users.
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.iam.*;
 CfnOIDCProvider cfnOIDCProvider = CfnOIDCProvider.Builder.create(this, "MyCfnOIDCProvider")
         .thumbprintList(List.of("thumbprintList"))
         // the properties below are optional
         .clientIdList(List.of("clientIdList"))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .url("url")
         .build();
 - 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionCfnOIDCProvider(Construct scope, String id, CfnOIDCProviderProps props) Create a newAWS::IAM::OIDCProvider.protectedCfnOIDCProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnOIDCProvider(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the Amazon Resource Name (ARN) for the specifiedAWS::IAM::OIDCProviderresource.A list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object.getTags()A list of tags that are attached to the specified IAM OIDC provider.A list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object.getUrl()The URL that the IAM OIDC provider resource object is associated with.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetClientIdList(List<String> value) A list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object.voidsetThumbprintList(List<String> value) A list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object.voidThe URL that the IAM OIDC provider resource object is associated with.Methods inherited from class software.amazon.awscdk.core.CfnResourceaddDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.core.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnOIDCProviderprotected CfnOIDCProvider(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnOIDCProviderprotected CfnOIDCProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnOIDCProvider@Stability(Stable) public CfnOIDCProvider(@NotNull Construct scope, @NotNull String id, @NotNull CfnOIDCProviderProps props) Create a newAWS::IAM::OIDCProvider.- Parameters:
- scope-- scope in which this resource is defined.
 
- id-- scoped id of the resource.
 
- props-- resource properties.
 
 
 
- 
- 
Method Details- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector-- tree inspector to collect and process attributes.
 
 
- 
renderProperties@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getAttrArnReturns the Amazon Resource Name (ARN) for the specifiedAWS::IAM::OIDCProviderresource.
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getTagsA list of tags that are attached to the specified IAM OIDC provider.The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide . 
- 
getThumbprintListA list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object.For more information, see CreateOpenIDConnectProvider . 
- 
setThumbprintListA list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object.For more information, see CreateOpenIDConnectProvider . 
- 
getClientIdListA list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object.For more information, see CreateOpenIDConnectProvider . 
- 
setClientIdListA list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object.For more information, see CreateOpenIDConnectProvider . 
- 
getUrlThe URL that the IAM OIDC provider resource object is associated with.For more information, see CreateOpenIDConnectProvider . 
- 
setUrlThe URL that the IAM OIDC provider resource object is associated with.For more information, see CreateOpenIDConnectProvider . 
 
-