#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: Contributors to the Ansible project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: iam_saml_federation version_added: 1.0.0 short_description: Maintain IAM SAML federation configuration. description: - Provides a mechanism to manage AWS IAM SAML Identity Federation providers (create/update/delete metadata). options: name: description: - The name of the provider to create. required: true type: str saml_metadata_document: description: - The XML document generated by an identity provider (IdP) that supports SAML 2.0. type: str state: description: - Whether to create or delete identity provider. If 'present' is specified it will attempt to update the identity provider matching the name field. default: present choices: [ "present", "absent" ] type: str author: - Tony (@axc450) - Aidan Rowe (@aidan-) extends_documentation_fragment: - amazon.aws.common.modules - amazon.aws.region.modules - amazon.aws.boto3 """ EXAMPLES = r""" # Note: These examples do not set authentication details, see the AWS Guide for details. # It is assumed that their matching environment variables are set. # Creates a new iam saml identity provider if not present - name: saml provider community.aws.iam_saml_federation: name: example1 # the > below opens an indented block, so no escaping/quoting is needed when in the indentation level under this key saml_metadata_document: > ...