/*
* 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
{
///
/// An object that describes a managed permission associated with a resource share.
///
public partial class AssociatedPermission
{
private string _arn;
private bool? _defaultVersion;
private PermissionFeatureSet _featureSet;
private DateTime? _lastUpdatedTime;
private string _permissionVersion;
private string _resourceShareArn;
private string _resourceType;
private string _status;
///
/// Gets and sets the property Arn.
///
/// The Amazon
/// Resource Name (ARN) of the associated 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 DefaultVersion.
///
/// Indicates whether the associated resource share is using the default version of the
/// 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 LastUpdatedTime.
///
/// The date and time when the association between the permission and the resource share
/// 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 PermissionVersion.
///
/// The version of the permission currently associated with the resource share.
///
///
public string PermissionVersion
{
get { return this._permissionVersion; }
set { this._permissionVersion = value; }
}
// Check to see if PermissionVersion property is set
internal bool IsSetPermissionVersion()
{
return this._permissionVersion != null;
}
///
/// Gets and sets the property ResourceShareArn.
///
/// The Amazon
/// Resource Name (ARN) of a resource share associated with this permission.
///
///
public string ResourceShareArn
{
get { return this._resourceShareArn; }
set { this._resourceShareArn = value; }
}
// Check to see if ResourceShareArn property is set
internal bool IsSetResourceShareArn()
{
return this._resourceShareArn != 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 string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}