/* * 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 accessanalyzer-2019-11-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.AccessAnalyzer.Model { /// /// A proposed grant configuration for a KMS key. For more information, see CreateGrant. /// public partial class KmsGrantConfiguration { private KmsGrantConstraints _constraints; private string _granteePrincipal; private string _issuingAccount; private List _operations = new List(); private string _retiringPrincipal; /// /// Gets and sets the property Constraints. /// /// Use this structure to propose allowing cryptographic /// operations in the grant only when the operation request includes the specified /// encryption /// context. /// /// public KmsGrantConstraints Constraints { get { return this._constraints; } set { this._constraints = value; } } // Check to see if Constraints property is set internal bool IsSetConstraints() { return this._constraints != null; } /// /// Gets and sets the property GranteePrincipal. /// /// The principal that is given permission to perform the operations that the grant permits. /// /// [AWSProperty(Required=true)] public string GranteePrincipal { get { return this._granteePrincipal; } set { this._granteePrincipal = value; } } // Check to see if GranteePrincipal property is set internal bool IsSetGranteePrincipal() { return this._granteePrincipal != null; } /// /// Gets and sets the property IssuingAccount. /// /// The Amazon Web Services account under which the grant was issued. The account is /// used to propose KMS grants issued by accounts other than the owner of the key. /// /// [AWSProperty(Required=true)] public string IssuingAccount { get { return this._issuingAccount; } set { this._issuingAccount = value; } } // Check to see if IssuingAccount property is set internal bool IsSetIssuingAccount() { return this._issuingAccount != null; } /// /// Gets and sets the property Operations. /// /// A list of operations that the grant permits. /// /// [AWSProperty(Required=true)] public List Operations { get { return this._operations; } set { this._operations = value; } } // Check to see if Operations property is set internal bool IsSetOperations() { return this._operations != null && this._operations.Count > 0; } /// /// Gets and sets the property RetiringPrincipal. /// /// The principal that is given permission to retire the grant by using RetireGrant /// operation. /// /// public string RetiringPrincipal { get { return this._retiringPrincipal; } set { this._retiringPrincipal = value; } } // Check to see if RetiringPrincipal property is set internal bool IsSetRetiringPrincipal() { return this._retiringPrincipal != null; } } }