/* * 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 connect-2017-08-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.Connect.Model { /// /// Container for the parameters to the CreateSecurityProfile operation. /// This API is in preview release for Amazon Connect and is subject to change. /// /// /// /// Creates a security profile. /// /// public partial class CreateSecurityProfileRequest : AmazonConnectRequest { private Dictionary _allowedAccessControlTags = new Dictionary(); private string _description; private string _instanceId; private List _permissions = new List(); private string _securityProfileName; private List _tagRestrictedResources = new List(); private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property AllowedAccessControlTags. /// /// The list of tags that a security profile uses to restrict access to resources in Amazon /// Connect. /// /// [AWSProperty(Max=2)] public Dictionary AllowedAccessControlTags { get { return this._allowedAccessControlTags; } set { this._allowedAccessControlTags = value; } } // Check to see if AllowedAccessControlTags property is set internal bool IsSetAllowedAccessControlTags() { return this._allowedAccessControlTags != null && this._allowedAccessControlTags.Count > 0; } /// /// Gets and sets the property Description. /// /// The description of the security profile. /// /// [AWSProperty(Max=250)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property InstanceId. /// /// The identifier of the Amazon Connect instance. You can find /// the instance ID in the Amazon Resource Name (ARN) of the instance. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string InstanceId { get { return this._instanceId; } set { this._instanceId = value; } } // Check to see if InstanceId property is set internal bool IsSetInstanceId() { return this._instanceId != null; } /// /// Gets and sets the property Permissions. /// /// Permissions assigned to the security profile. For a list of valid permissions, see /// List /// of security profile permissions. /// /// [AWSProperty(Max=500)] public List Permissions { get { return this._permissions; } set { this._permissions = value; } } // Check to see if Permissions property is set internal bool IsSetPermissions() { return this._permissions != null && this._permissions.Count > 0; } /// /// Gets and sets the property SecurityProfileName. /// /// The name of the security profile. /// /// [AWSProperty(Required=true, Min=1, Max=127)] public string SecurityProfileName { get { return this._securityProfileName; } set { this._securityProfileName = value; } } // Check to see if SecurityProfileName property is set internal bool IsSetSecurityProfileName() { return this._securityProfileName != null; } /// /// Gets and sets the property TagRestrictedResources. /// /// The list of resources that a security profile applies tag restrictions to in Amazon /// Connect. Following are acceptable ResourceNames: User | SecurityProfile /// | Queue | RoutingProfile /// /// [AWSProperty(Max=10)] public List TagRestrictedResources { get { return this._tagRestrictedResources; } set { this._tagRestrictedResources = value; } } // Check to see if TagRestrictedResources property is set internal bool IsSetTagRestrictedResources() { return this._tagRestrictedResources != null && this._tagRestrictedResources.Count > 0; } /// /// Gets and sets the property Tags. /// /// The tags used to organize, track, or control access for this resource. For example, /// { "tags": {"key1":"value1", "key2":"value2"} }. /// /// [AWSProperty(Min=1, Max=50)] public Dictionary 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; } } }