This data source can be used to fetch information about a specific IAM SAML provider. This will allow you to easily retrieve the metadata document of an existing SAML provider.
data "aws_iam_saml_provider" "example" {
arn = "arn:aws:iam::123456789:saml-provider/myprovider"
}
arn
- (Required) ARN assigned by AWS for the provider.This data source exports the following attributes in addition to the arguments above:
create_date
- Creation date of the SAML provider in RFC1123 format, e.g. Mon, 02 Jan 2006 15:04:05 MST
.name
- Name of the provider.saml_metadata_document
- The XML document generated by an identity provider that supports SAML 2.0.tags
- Tags attached to the SAML provider.valid_until
- Expiration date and time for the SAML provider in RFC1123 format, e.g. Mon, 02 Jan 2007 15:04:05 MST
.