Class CfnSAMLProviderPropsMixin
- All Implemented Interfaces:
IMixin,software.amazon.jsii.JsiiSerializable
The SAML provider resource that you create with this operation can be used as a principal in an IAM role's trust policy. Such a policy can enable federated users who sign in using the SAML IdP to assume the role. You can create an IAM role that supports Web-based single sign-on (SSO) to the AWS Management Console or one that supports API access to AWS .
When you create the SAML provider resource, you upload a SAML metadata document that you get from your IdP. That document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that the IdP sends. You must generate the metadata document using the identity management software that is used as your organization's IdP.
This operation requires Signature Version 4 .
For more information, see Enabling SAML 2.0 federated users to access the AWS Management Console and About SAML 2.0-based federation in the IAM User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.mixins.*;
import software.amazon.awscdk.mixins.preview.services.iam.mixins.*;
CfnSAMLProviderPropsMixin cfnSAMLProviderPropsMixin = CfnSAMLProviderPropsMixin.Builder.create(CfnSAMLProviderMixinProps.builder()
.addPrivateKey("addPrivateKey")
.assertionEncryptionMode("assertionEncryptionMode")
.name("name")
.privateKeyList(List.of(SAMLPrivateKeyProperty.builder()
.keyId("keyId")
.timestamp("timestamp")
.build()))
.removePrivateKey("removePrivateKey")
.samlMetadataDocument("samlMetadataDocument")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.strategy(PropertyMergeStrategy.OVERRIDE)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSAMLProviderPropsMixin.static interfaceContains the private keys for the SAML provider.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.mixins.preview.core.IMixin
IMixin.Jsii$Default, IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::IAM::SAMLProvider.Create a mixin to apply properties toAWS::IAM::SAMLProvider.protectedCfnSAMLProviderPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSAMLProviderPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionsoftware.constructs.IConstructapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnSAMLProviderMixinPropsgetProps()protected PropertyMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnSAMLProviderPropsMixin
protected CfnSAMLProviderPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSAMLProviderPropsMixin
protected CfnSAMLProviderPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSAMLProviderPropsMixin
@Stability(Stable) public CfnSAMLProviderPropsMixin(@NotNull CfnSAMLProviderMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::IAM::SAMLProvider.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnSAMLProviderPropsMixin
Create a mixin to apply properties toAWS::IAM::SAMLProvider.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) @NotNull public software.constructs.IConstruct applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-