---
layout: "aws"
page_title: "AWS: aws_saml_provider"
sidebar_current: "docs-aws-resource-iam-saml-provider"
description: |-
  Provides an IAM SAML provider.
---

# aws\_iam\_saml\_provider

Provides an IAM SAML provider.

## Example Usage

```
resource "aws_saml_provider" "default" {
    name = "myprovider"
    saml_metadata_document = "${file("saml-metadata.xml")}"
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) The name of the provider to create.
* `saml_metadata_document` - (Required) An XML document generated by an identity provider that supports SAML 2.0.

## Attributes Reference

The following attributes are exported:

* `arn` - The ARN assigned by AWS for this provider.
* `valid_until` - The expiration date and time for the SAML provider in RFC1123 format, e.g. `Mon, 02 Jan 2006 15:04:05 MST`.

---
layout: "aws"
page_title: "AWS: aws_saml_provider"
sidebar_current: "docs-aws-resource-iam-saml-provider"
description: |-
  Provides an IAM SAML provider.
---

# aws\_iam\_saml\_provider

Provides an IAM SAML provider.

## Example Usage

```
resource "aws_iam_saml_provider" "default" {
    name = "myprovider"
    saml_metadata_document = "${file("saml-metadata.xml")}"
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) The name of the provider to create.
* `saml_metadata_document` - (Required) An XML document generated by an identity provider that supports SAML 2.0.

## Attributes Reference

The following attributes are exported:

* `arn` - The ARN assigned by AWS for this provider.
* `valid_until` - The expiration date and time for the SAML provider in RFC1123 format, e.g. `Mon, 02 Jan 2006 15:04:05 MST`.

Fix spelling mistake in aws saml example
Fix spelling mistake in aws saml example

Example resource name is `aws_iam_saml_provider` instead of `aws_saml_provider`.