SamlMetadataDocument
- class aws_cdk.aws_iam.SamlMetadataDocument
Bases:
object
A SAML metadata document.
- ExampleMetadata:
infused
Example:
provider = iam.SamlProvider(self, "Provider", metadata_document=iam.SamlMetadataDocument.from_file("/path/to/saml-metadata-document.xml") ) principal = iam.SamlPrincipal(provider, { "StringEquals": { "SAML:iss": "issuer" } })
Attributes
- xml
The XML content of the metadata document.
Static Methods
- classmethod from_file(path)
Create a SAML metadata document from a XML file.
- Parameters:
path (
str
) –- Return type:
- classmethod from_xml(xml)
Create a SAML metadata document from a XML string.
- Parameters:
xml (
str
) –- Return type: