/* * 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 organizations-2016-11-28.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.Organizations.Model { /// /// Container for the parameters to the DescribeEffectivePolicy operation. /// Returns the contents of the effective policy for specified policy type and account. /// The effective policy is the aggregation of any policies of the specified type that /// the account inherits, plus any policy of that type that is directly attached to the /// account. /// /// /// /// This operation applies only to policy types other than service control policies /// (SCPs). /// /// /// /// For more information about policy inheritance, see How /// Policy Inheritance Works in the Organizations User Guide. /// /// /// /// This operation can be called only from the organization's management account or by /// a member account that is a delegated administrator for an Amazon Web Services service. /// /// public partial class DescribeEffectivePolicyRequest : AmazonOrganizationsRequest { private EffectivePolicyType _policyType; private string _targetId; /// /// Gets and sets the property PolicyType. /// /// The type of policy that you want information about. You can specify one of the following /// values: /// /// /// [AWSProperty(Required=true)] public EffectivePolicyType PolicyType { get { return this._policyType; } set { this._policyType = value; } } // Check to see if PolicyType property is set internal bool IsSetPolicyType() { return this._policyType != null; } /// /// Gets and sets the property TargetId. /// /// When you're signed in as the management account, specify the ID of the account that /// you want details about. Specifying an organization root or organizational unit (OU) /// as the target is not supported. /// /// [AWSProperty(Max=100)] public string TargetId { get { return this._targetId; } set { this._targetId = value; } } // Check to see if TargetId property is set internal bool IsSetTargetId() { return this._targetId != null; } } }