Skip to content

Resource: awsIamSamlProvider

Provides an IAM SAML provider.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.iamSamlProvider.IamSamlProvider(this, "default", {
  name: "myprovider",
  samlMetadataDocument: '${file("saml-metadata.xml")}',
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the provider to create.
  • samlMetadataDocument - (Required) An XML document generated by an identity provider that supports SAML 2.0.
  • tags - (Optional) Map of resource tags for the IAM SAML provider. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - The ARN assigned by AWS for this provider.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
  • validUntil - The expiration date and time for the SAML provider in RFC1123 format, e.g., mon,02Jan200615:04:05Mst.

Import

IAM SAML Providers can be imported using the arn, e.g.,

$ terraform import aws_iam_saml_provider.default arn:aws:iam::123456789012:saml-provider/SAMLADFS