Class SamlConsolePrincipal
Principal entity that represents a SAML federated identity provider for programmatic and AWS Management Console access.
Inherited Members
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SamlConsolePrincipal : SamlPrincipal, IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Syntax (vb)
Public Class SamlConsolePrincipal
Inherits SamlPrincipal
Implements IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Remarks
ExampleMetadata: infused
Examples
var provider = new SamlProvider(this, "Provider", new SamlProviderProps {
MetadataDocument = SamlMetadataDocument.FromFile("/path/to/saml-metadata-document.xml")
});
new Role(this, "Role", new RoleProps {
AssumedBy = new SamlConsolePrincipal(provider)
});
Synopsis
Constructors
SamlConsolePrincipal(ISamlProvider, IDictionary<String, Object>) | |
SamlConsolePrincipal(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SamlConsolePrincipal(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
ToString() | Returns a string representation of an object. |
Constructors
SamlConsolePrincipal(ISamlProvider, IDictionary<String, Object>)
public SamlConsolePrincipal(ISamlProvider samlProvider, IDictionary<string, object> conditions = null)
Parameters
- samlProvider ISamlProvider
- conditions System.Collections.Generic.IDictionary<System.String, System.Object>
The conditions under which the policy is in effect.
SamlConsolePrincipal(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SamlConsolePrincipal(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SamlConsolePrincipal(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SamlConsolePrincipal(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
ToString()
Returns a string representation of an object.
public override string ToString()
Returns
System.String