libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IAM.CreateSAMLProvider

Description

Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2.0.

The SAML provider resource that you create with this operation can be used as a principal in an IAM role's trust policy. Such a policy can enable federated users who sign in using the SAML IdP to assume the role. You can create an IAM role that supports Web-based single sign-on (SSO) to the Amazon Web Services Management Console or one that supports API access to Amazon Web Services.

When you create the SAML provider resource, you upload a SAML metadata document that you get from your IdP. That document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that the IdP sends. You must generate the metadata document using the identity management software that is used as your organization's IdP.

This operation requires Signature Version 4.

For more information, see Enabling SAML 2.0 federated users to access the Amazon Web Services Management Console and About SAML 2.0-based federation in the IAM User Guide.

Synopsis

Creating a Request

data CreateSAMLProvider Source #

See: newCreateSAMLProvider smart constructor.

Constructors

CreateSAMLProvider' 

Fields

  • tags :: Maybe [Tag]

    A list of tags that you want to attach to the new IAM SAML provider. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

    If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.

  • sAMLMetadataDocument :: Text

    An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.

    For more information, see About SAML 2.0-based federation in the IAM User Guide

  • name :: Text

    The name of the provider to create.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Instances

Instances details
Eq CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Read CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Show CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Generic CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Associated Types

type Rep CreateSAMLProvider :: Type -> Type #

NFData CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Methods

rnf :: CreateSAMLProvider -> () #

Hashable CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

AWSRequest CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Associated Types

type AWSResponse CreateSAMLProvider #

ToHeaders CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

ToPath CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

ToQuery CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

type Rep CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

type Rep CreateSAMLProvider = D1 ('MetaData "CreateSAMLProvider" "Amazonka.IAM.CreateSAMLProvider" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "CreateSAMLProvider'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "sAMLMetadataDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateSAMLProvider Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

newCreateSAMLProvider Source #

Create a value of CreateSAMLProvider with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:tags:CreateSAMLProvider', createSAMLProvider_tags - A list of tags that you want to attach to the new IAM SAML provider. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.

$sel:sAMLMetadataDocument:CreateSAMLProvider', createSAMLProvider_sAMLMetadataDocument - An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.

For more information, see About SAML 2.0-based federation in the IAM User Guide

$sel:name:CreateSAMLProvider', createSAMLProvider_name - The name of the provider to create.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Request Lenses

createSAMLProvider_tags :: Lens' CreateSAMLProvider (Maybe [Tag]) Source #

A list of tags that you want to attach to the new IAM SAML provider. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.

createSAMLProvider_sAMLMetadataDocument :: Lens' CreateSAMLProvider Text Source #

An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your organization's IdP.

For more information, see About SAML 2.0-based federation in the IAM User Guide

createSAMLProvider_name :: Lens' CreateSAMLProvider Text Source #

The name of the provider to create.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Destructuring the Response

data CreateSAMLProviderResponse Source #

Contains the response to a successful CreateSAMLProvider request.

See: newCreateSAMLProviderResponse smart constructor.

Constructors

CreateSAMLProviderResponse' 

Fields

  • sAMLProviderArn :: Maybe Text

    The Amazon Resource Name (ARN) of the new SAML provider resource in IAM.

  • tags :: Maybe [Tag]

    A list of tags that are attached to the new IAM SAML provider. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateSAMLProviderResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Read CreateSAMLProviderResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Show CreateSAMLProviderResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Generic CreateSAMLProviderResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

Associated Types

type Rep CreateSAMLProviderResponse :: Type -> Type #

NFData CreateSAMLProviderResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

type Rep CreateSAMLProviderResponse Source # 
Instance details

Defined in Amazonka.IAM.CreateSAMLProvider

type Rep CreateSAMLProviderResponse = D1 ('MetaData "CreateSAMLProviderResponse" "Amazonka.IAM.CreateSAMLProvider" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "CreateSAMLProviderResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sAMLProviderArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateSAMLProviderResponse Source #

Create a value of CreateSAMLProviderResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:sAMLProviderArn:CreateSAMLProviderResponse', createSAMLProviderResponse_sAMLProviderArn - The Amazon Resource Name (ARN) of the new SAML provider resource in IAM.

$sel:tags:CreateSAMLProvider', createSAMLProviderResponse_tags - A list of tags that are attached to the new IAM SAML provider. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

$sel:httpStatus:CreateSAMLProviderResponse', createSAMLProviderResponse_httpStatus - The response's http status code.

Response Lenses

createSAMLProviderResponse_sAMLProviderArn :: Lens' CreateSAMLProviderResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the new SAML provider resource in IAM.

createSAMLProviderResponse_tags :: Lens' CreateSAMLProviderResponse (Maybe [Tag]) Source #

A list of tags that are attached to the new IAM SAML provider. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.