class SamlMetadataDocument
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IAM.SamlMetadataDocument |
Java | software.amazon.awscdk.services.iam.SamlMetadataDocument |
Python | aws_cdk.aws_iam.SamlMetadataDocument |
TypeScript (source) | @aws-cdk/aws-iam » SamlMetadataDocument |
A SAML metadata document.
Example
const provider = new iam.SamlProvider(this, 'Provider', {
metadataDocument: iam.SamlMetadataDocument.fromFile('/path/to/saml-metadata-document.xml'),
});
const principal = new iam.SamlPrincipal(provider, {
StringEquals: {
'SAML:iss': 'issuer',
},
});
Initializer
new SamlMetadataDocument()
Properties
Name | Type | Description |
---|---|---|
xml | string | The XML content of the metadata document. |
xml
Type:
string
The XML content of the metadata document.
Methods
Name | Description |
---|---|
static from | Create a SAML metadata document from a XML file. |
static from | Create a SAML metadata document from a XML string. |
static fromFile(path)
public static fromFile(path: string): SamlMetadataDocument
Parameters
- path
string
Returns
Create a SAML metadata document from a XML file.
static fromXml(xml)
public static fromXml(xml: string): SamlMetadataDocument
Parameters
- xml
string
Returns
Create a SAML metadata document from a XML string.