class SamlMetadataDocument
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IAM.SamlMetadataDocument |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiam#SamlMetadataDocument |
Java | software.amazon.awscdk.services.iam.SamlMetadataDocument |
Python | aws_cdk.aws_iam.SamlMetadataDocument |
TypeScript (source) | aws-cdk-lib » 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. |
File(path)
static frompublic static fromFile(path: string): SamlMetadataDocument
Parameters
- path
string
Returns
Create a SAML metadata document from a XML file.
Xml(xml)
static frompublic static fromXml(xml: string): SamlMetadataDocument
Parameters
- xml
string
Returns
Create a SAML metadata document from a XML string.