/* * 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 PutRolePermissionsBoundary operation. /// Adds or updates the policy that is specified as the IAM role's permissions boundary. /// You can use an Amazon Web Services managed policy or a customer managed policy to /// set the boundary for a role. Use the boundary to control the maximum permissions that /// the role can have. Setting a permissions boundary is an advanced feature that can /// affect the permissions for the role. /// /// /// /// You cannot set the boundary for a service-linked role. /// /// /// /// Policies used as permissions boundaries do not provide permissions. You must also /// attach a permissions policy to the role. To learn how the effective permissions for /// a role are evaluated, see IAM /// JSON policy evaluation logic in the IAM User Guide. /// /// /// public partial class PutRolePermissionsBoundaryRequest : AmazonIdentityManagementServiceRequest { private string _permissionsBoundary; private string _roleName; /// /// Gets and sets the property PermissionsBoundary. /// /// The ARN of the managed policy that is used to set the permissions boundary for the /// role. /// /// /// /// A permissions boundary policy defines the maximum permissions that identity-based /// policies can grant to an entity, but does not grant permissions. Permissions boundaries /// do not define the maximum permissions that a resource-based policy can grant to an /// entity. To learn more, see Permissions /// boundaries for IAM entities in the IAM User Guide. /// /// /// /// For more information about policy types, see Policy /// types in the IAM User Guide. /// /// [AWSProperty(Required=true, Min=20, Max=2048)] public string PermissionsBoundary { get { return this._permissionsBoundary; } set { this._permissionsBoundary = value; } } // Check to see if PermissionsBoundary property is set internal bool IsSetPermissionsBoundary() { return this._permissionsBoundary != null; } /// /// Gets and sets the property RoleName. /// /// The name (friendly name, not ARN) of the IAM role for which you want to set the permissions /// boundary. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string RoleName { get { return this._roleName; } set { this._roleName = value; } } // Check to see if RoleName property is set internal bool IsSetRoleName() { return this._roleName != null; } } }