Class SamlMetadataDocument
A SAML metadata document.
Inheritance
System.Object
SamlMetadataDocument
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class SamlMetadataDocument : DeputyBase
Syntax (vb)
Public MustInherit Class SamlMetadataDocument
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
var provider = new SamlProvider(this, "Provider", new SamlProviderProps {
MetadataDocument = SamlMetadataDocument.FromFile("/path/to/saml-metadata-document.xml")
});
var principal = new SamlPrincipal(provider, new Dictionary<string, object> {
{ "StringEquals", new Dictionary<string, string> {
{ "SAML:iss", "issuer" }
} }
});
Synopsis
Constructors
SamlMetadataDocument() | |
SamlMetadataDocument(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SamlMetadataDocument(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Xml | The XML content of the metadata document. |
Methods
FromFile(String) | Create a SAML metadata document from a XML file. |
FromXml(String) | Create a SAML metadata document from a XML string. |
Constructors
SamlMetadataDocument()
protected SamlMetadataDocument()
SamlMetadataDocument(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SamlMetadataDocument(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SamlMetadataDocument(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SamlMetadataDocument(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Xml
The XML content of the metadata document.
public abstract string Xml { get; }
Property Value
System.String
Methods
FromFile(String)
Create a SAML metadata document from a XML file.
public static SamlMetadataDocument FromFile(string path)
Parameters
- path System.String
Returns
FromXml(String)
Create a SAML metadata document from a XML string.
public static SamlMetadataDocument FromXml(string xml)
Parameters
- xml System.String
Returns