/* * 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 ram-2018-01-04.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.RAM.Model { /// /// Information about a RAM managed permission. /// public partial class ResourceSharePermissionDetail { private string _arn; private DateTime? _creationTime; private bool? _defaultVersion; private PermissionFeatureSet _featureSet; private bool? _isResourceTypeDefault; private DateTime? _lastUpdatedTime; private string _name; private string _permission; private PermissionType _permissionType; private string _resourceType; private PermissionStatus _status; private List _tags = new List(); private string _version; /// /// Gets and sets the property Arn. /// /// The Amazon /// Resource Name (ARN) of this RAM managed permission. /// /// public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property CreationTime. /// /// The date and time when the permission was created. /// /// public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// /// Gets and sets the property DefaultVersion. /// /// Specifies whether the version of the permission represented in this response is the /// default version for this permission. /// /// public bool DefaultVersion { get { return this._defaultVersion.GetValueOrDefault(); } set { this._defaultVersion = value; } } // Check to see if DefaultVersion property is set internal bool IsSetDefaultVersion() { return this._defaultVersion.HasValue; } /// /// Gets and sets the property FeatureSet. /// /// Indicates what features are available for this resource share. This parameter can /// have one of the following values: /// ///
  • /// /// STANDARD – A resource share that supports all functionality. These resource /// shares are visible to all principals you share the resource share with. You can modify /// these resource shares in RAM using the console or APIs. This resource share might /// have been created by RAM, or it might have been CREATED_FROM_POLICY and then /// promoted. /// ///
  • /// /// CREATED_FROM_POLICY – The customer manually shared a resource by attaching /// a resource-based policy. That policy did not match any existing managed permissions, /// so RAM created this customer managed permission automatically on the customer's behalf /// based on the attached policy document. This type of resource share is visible only /// to the Amazon Web Services account that created it. You can't modify it in RAM unless /// you promote it. For more information, see PromoteResourceShareCreatedFromPolicy. /// ///
  • /// /// PROMOTING_TO_STANDARD – This resource share was originally CREATED_FROM_POLICY, /// but the customer ran the PromoteResourceShareCreatedFromPolicy and that operation /// is still in progress. This value changes to STANDARD when complete. /// ///
///
public PermissionFeatureSet FeatureSet { get { return this._featureSet; } set { this._featureSet = value; } } // Check to see if FeatureSet property is set internal bool IsSetFeatureSet() { return this._featureSet != null; } /// /// Gets and sets the property IsResourceTypeDefault. /// /// Specifies whether the version of the permission represented in this response is the /// default version for all resources of this resource type. /// /// public bool IsResourceTypeDefault { get { return this._isResourceTypeDefault.GetValueOrDefault(); } set { this._isResourceTypeDefault = value; } } // Check to see if IsResourceTypeDefault property is set internal bool IsSetIsResourceTypeDefault() { return this._isResourceTypeDefault.HasValue; } /// /// Gets and sets the property LastUpdatedTime. /// /// The date and time when the permission was last updated. /// /// public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// /// Gets and sets the property Name. /// /// The name of this permission. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Permission. /// /// The permission's effect and actions in JSON format. The effect indicates /// whether the specified actions are allowed or denied. The actions list /// the operations to which the principal is granted or denied access. /// /// public string Permission { get { return this._permission; } set { this._permission = value; } } // Check to see if Permission property is set internal bool IsSetPermission() { return this._permission != null; } /// /// Gets and sets the property PermissionType. /// /// The type of managed permission. This can be one of the following values: /// ///
  • /// /// AWS_MANAGED – Amazon Web Services created and manages this managed permission. /// You can associate it with your resource shares, but you can't modify it. /// ///
  • /// /// CUSTOMER_MANAGED – You, or another principal in your account created /// this managed permission. You can associate it with your resource shares and create /// new versions that have different permissions. /// ///
///
public PermissionType PermissionType { get { return this._permissionType; } set { this._permissionType = value; } } // Check to see if PermissionType property is set internal bool IsSetPermissionType() { return this._permissionType != null; } /// /// Gets and sets the property ResourceType. /// /// The resource type to which this permission applies. /// /// public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// /// Gets and sets the property Status. /// /// The current status of the association between the permission and the resource share. /// The following are the possible values: /// ///
  • /// /// ATTACHABLE – This permission or version can be associated with resource /// shares. /// ///
  • /// /// UNATTACHABLE – This permission or version can't currently be associated /// with resource shares. /// ///
  • /// /// DELETING – This permission or version is in the process of being deleted. /// ///
  • /// /// DELETED – This permission or version is deleted. /// ///
///
public PermissionStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property Tags. /// /// The tag key and value pairs attached to the resource share. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property Version. /// /// The version of the permission described in this response. /// /// public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } } }