/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the iam-2010-05-08.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.IdentityManagement.Model
{
///
/// Container for the parameters to the CreateSAMLProvider operation.
/// 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.
///
///
public partial class CreateSAMLProviderRequest : AmazonIdentityManagementServiceRequest
{
private string _name;
private string _samlMetadataDocument;
private List _tags = new List();
///
/// Gets and sets the property 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: _+=,.@-
///
///
[AWSProperty(Required=true, Min=1, Max=128)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property 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
///
///
[AWSProperty(Required=true, Min=1000, Max=10000000)]
public string SAMLMetadataDocument
{
get { return this._samlMetadataDocument; }
set { this._samlMetadataDocument = value; }
}
// Check to see if SAMLMetadataDocument property is set
internal bool IsSetSAMLMetadataDocument()
{
return this._samlMetadataDocument != null;
}
///
/// Gets and sets the property 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.
///
///
///
[AWSProperty(Max=50)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}