io.cloudshiftdev.awscdk.services.iam.SamlConsolePrincipal.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.iam
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.Any
import kotlin.String
import kotlin.collections.Map
/**
* Principal entity that represents a SAML federated identity provider for programmatic and AWS
* Management Console access.
*
* Example:
*
* ```
* SamlProvider provider = SamlProvider.Builder.create(this, "Provider")
* .metadataDocument(SamlMetadataDocument.fromFile("/path/to/saml-metadata-document.xml"))
* .build();
* Role.Builder.create(this, "Role")
* .assumedBy(new SamlConsolePrincipal(provider))
* .build();
* ```
*/
public open class SamlConsolePrincipal(
cdkObject: software.amazon.awscdk.services.iam.SamlConsolePrincipal,
) : SamlPrincipal(cdkObject) {
public constructor(samlProvider: ISamlProvider) :
this(software.amazon.awscdk.services.iam.SamlConsolePrincipal(samlProvider.let(ISamlProvider.Companion::unwrap))
)
public constructor(samlProvider: ISamlProvider, conditions: Map) :
this(software.amazon.awscdk.services.iam.SamlConsolePrincipal(samlProvider.let(ISamlProvider.Companion::unwrap),
conditions.mapValues{CdkObjectWrappers.unwrap(it.value)})
)
public companion object {
internal fun wrap(cdkObject: software.amazon.awscdk.services.iam.SamlConsolePrincipal):
SamlConsolePrincipal = SamlConsolePrincipal(cdkObject)
internal fun unwrap(wrapped: SamlConsolePrincipal):
software.amazon.awscdk.services.iam.SamlConsolePrincipal = wrapped.cdkObject as
software.amazon.awscdk.services.iam.SamlConsolePrincipal
}
}