@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.723Z") @Stability(value=Stable) public class CfnOIDCProvider extends CfnResource implements IInspectable
Creates 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:
You get all of this information from the OIDC IdP that you want to use to access AWS .
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnOIDCProvider.Builder
A fluent builder for
CfnOIDCProvider. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnOIDCProvider(software.constructs.Construct scope,
String id,
CfnOIDCProviderProps props)
Create a new `AWS::IAM::OIDCProvider`.
|
protected |
CfnOIDCProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnOIDCProvider(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
Returns the Amazon Resource Name (ARN) for the specified `AWS::IAM::OIDCProvider` resource.
|
protected Map<String,Object> |
getCfnProperties() |
List<String> |
getClientIdList()
A list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object.
|
TagManager |
getTags()
A list of tags that are attached to the specified IAM OIDC provider.
|
List<String> |
getThumbprintList()
A list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object.
|
String |
getUrl()
The URL that the IAM OIDC provider resource object is associated with.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setClientIdList(List<String> value)
A list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object.
|
void |
setThumbprintList(List<String> value)
A list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object.
|
void |
setUrl(String value)
The URL that the IAM OIDC provider resource object is associated with.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnOIDCProvider(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnOIDCProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnOIDCProvider(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnOIDCProviderProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
@Stability(value=Stable) @NotNull public List<String> getThumbprintList()
For more information, see CreateOpenIDConnectProvider .
@Stability(value=Stable)
public void setThumbprintList(@NotNull
List<String> value)
For more information, see CreateOpenIDConnectProvider .
@Stability(value=Stable) @Nullable public List<String> getClientIdList()
For more information, see CreateOpenIDConnectProvider .
@Stability(value=Stable)
public void setClientIdList(@Nullable
List<String> value)
For more information, see CreateOpenIDConnectProvider .
@Stability(value=Stable) @Nullable public String getUrl()
For more information, see CreateOpenIDConnectProvider .
@Stability(value=Stable)
public void setUrl(@Nullable
String value)
For more information, see CreateOpenIDConnectProvider .
Copyright © 2022. All rights reserved.