/* * 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 verifiedpermissions-2021-12-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.VerifiedPermissions.Model { /// /// Container for the parameters to the IsAuthorized operation. /// Makes an authorization decision about a service request described in the parameters. /// The information in the parameters can also define additional context that Verified /// Permissions can include in the evaluation. The request is evaluated against all matching /// policies in the specified policy store. The result of the decision is either Allow /// or Deny, along with a list of the policies that resulted in the decision. /// public partial class IsAuthorizedRequest : AmazonVerifiedPermissionsRequest { private ActionIdentifier _action; private ContextDefinition _context; private EntitiesDefinition _entities; private string _policyStoreId; private EntityIdentifier _principal; private EntityIdentifier _resource; /// /// Gets and sets the property Action. /// /// Specifies the requested action to be authorized. For example, is the principal authorized /// to perform this action on the resource? /// /// public ActionIdentifier Action { get { return this._action; } set { this._action = value; } } // Check to see if Action property is set internal bool IsSetAction() { return this._action != null; } /// /// Gets and sets the property Context. /// /// Specifies additional context that can be used to make more granular authorization /// decisions. /// /// public ContextDefinition Context { get { return this._context; } set { this._context = value; } } // Check to see if Context property is set internal bool IsSetContext() { return this._context != null; } /// /// Gets and sets the property Entities. /// /// Specifies the list of resources and principals and their associated attributes that /// Verified Permissions can examine when evaluating the policies. /// /// /// /// You can include only principal and resource entities in this parameter; you can't /// include actions. You must specify actions in the schema. /// /// /// public EntitiesDefinition Entities { get { return this._entities; } set { this._entities = value; } } // Check to see if Entities property is set internal bool IsSetEntities() { return this._entities != null; } /// /// Gets and sets the property PolicyStoreId. /// /// Specifies the ID of the policy store. Policies in this policy store will be used to /// make an authorization decision for the input. /// /// [AWSProperty(Required=true, Min=1, Max=200)] public string PolicyStoreId { get { return this._policyStoreId; } set { this._policyStoreId = value; } } // Check to see if PolicyStoreId property is set internal bool IsSetPolicyStoreId() { return this._policyStoreId != null; } /// /// Gets and sets the property Principal. /// /// Specifies the principal for which the authorization decision is to be made. /// /// public EntityIdentifier Principal { get { return this._principal; } set { this._principal = value; } } // Check to see if Principal property is set internal bool IsSetPrincipal() { return this._principal != null; } /// /// Gets and sets the property Resource. /// /// Specifies the resource for which the authorization decision is to be made. /// /// public EntityIdentifier Resource { get { return this._resource; } set { this._resource = value; } } // Check to see if Resource property is set internal bool IsSetResource() { return this._resource != null; } } }