/* * 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 opsworks-2013-02-18.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.OpsWorks.Model { /// /// Container for the parameters to the SetPermission operation. /// Specifies a user's permissions. For more information, see Security /// and Permissions. /// /// /// /// Required Permissions: To use this action, an IAM user must have a Manage permissions /// level for the stack, or an attached policy that explicitly grants permissions. For /// more information on user permissions, see Managing /// User Permissions. /// /// public partial class SetPermissionRequest : AmazonOpsWorksRequest { private bool? _allowSsh; private bool? _allowSudo; private string _iamUserArn; private string _level; private string _stackId; /// /// Gets and sets the property AllowSsh. /// /// The user is allowed to use SSH to communicate with the instance. /// /// public bool AllowSsh { get { return this._allowSsh.GetValueOrDefault(); } set { this._allowSsh = value; } } // Check to see if AllowSsh property is set internal bool IsSetAllowSsh() { return this._allowSsh.HasValue; } /// /// Gets and sets the property AllowSudo. /// /// The user is allowed to use sudo to elevate privileges. /// /// public bool AllowSudo { get { return this._allowSudo.GetValueOrDefault(); } set { this._allowSudo = value; } } // Check to see if AllowSudo property is set internal bool IsSetAllowSudo() { return this._allowSudo.HasValue; } /// /// Gets and sets the property IamUserArn. /// /// The user's IAM ARN. This can also be a federated user's ARN. /// /// [AWSProperty(Required=true)] public string IamUserArn { get { return this._iamUserArn; } set { this._iamUserArn = value; } } // Check to see if IamUserArn property is set internal bool IsSetIamUserArn() { return this._iamUserArn != null; } /// /// Gets and sets the property Level. /// /// The user's permission level, which must be set to one of the following strings. You /// cannot set your own permissions level. /// /// /// /// For more information about the permissions associated with these levels, see Managing /// User Permissions. /// /// public string Level { get { return this._level; } set { this._level = value; } } // Check to see if Level property is set internal bool IsSetLevel() { return this._level != null; } /// /// Gets and sets the property StackId. /// /// The stack ID. /// /// [AWSProperty(Required=true)] public string StackId { get { return this._stackId; } set { this._stackId = value; } } // Check to see if StackId property is set internal bool IsSetStackId() { return this._stackId != null; } } }