/* * 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 opensearch-2021-01-01.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.OpenSearchService.Model { /// /// The SAML authentication configuration for an Amazon OpenSearch Service domain. /// public partial class SAMLOptionsInput { private bool? _enabled; private SAMLIdp _idp; private string _masterBackendRole; private string _masterUserName; private string _rolesKey; private int? _sessionTimeoutMinutes; private string _subjectKey; /// /// Gets and sets the property Enabled. /// /// True to enable SAML authentication for a domain. /// /// public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// /// Gets and sets the property Idp. /// /// The SAML Identity Provider's information. /// /// public SAMLIdp Idp { get { return this._idp; } set { this._idp = value; } } // Check to see if Idp property is set internal bool IsSetIdp() { return this._idp != null; } /// /// Gets and sets the property MasterBackendRole. /// /// The backend role that the SAML master user is mapped to. /// /// [AWSProperty(Min=1, Max=256)] public string MasterBackendRole { get { return this._masterBackendRole; } set { this._masterBackendRole = value; } } // Check to see if MasterBackendRole property is set internal bool IsSetMasterBackendRole() { return this._masterBackendRole != null; } /// /// Gets and sets the property MasterUserName. /// /// The SAML master user name, which is stored in the domain's internal user database. /// /// [AWSProperty(Sensitive=true, Min=1, Max=64)] public string MasterUserName { get { return this._masterUserName; } set { this._masterUserName = value; } } // Check to see if MasterUserName property is set internal bool IsSetMasterUserName() { return this._masterUserName != null; } /// /// Gets and sets the property RolesKey. /// /// Element of the SAML assertion to use for backend roles. Default is roles. /// /// public string RolesKey { get { return this._rolesKey; } set { this._rolesKey = value; } } // Check to see if RolesKey property is set internal bool IsSetRolesKey() { return this._rolesKey != null; } /// /// Gets and sets the property SessionTimeoutMinutes. /// /// The duration, in minutes, after which a user session becomes inactive. Acceptable /// values are between 1 and 1440, and the default value is 60. /// /// public int SessionTimeoutMinutes { get { return this._sessionTimeoutMinutes.GetValueOrDefault(); } set { this._sessionTimeoutMinutes = value; } } // Check to see if SessionTimeoutMinutes property is set internal bool IsSetSessionTimeoutMinutes() { return this._sessionTimeoutMinutes.HasValue; } /// /// Gets and sets the property SubjectKey. /// /// Element of the SAML assertion to use for the user name. Default is NameID. /// /// public string SubjectKey { get { return this._subjectKey; } set { this._subjectKey = value; } } // Check to see if SubjectKey property is set internal bool IsSetSubjectKey() { return this._subjectKey != null; } } }