Struct aws_sdk_ram::types::AssociatedPermission
source · #[non_exhaustive]pub struct AssociatedPermission {
pub arn: Option<String>,
pub permission_version: Option<String>,
pub default_version: Option<bool>,
pub resource_type: Option<String>,
pub status: Option<String>,
pub feature_set: Option<PermissionFeatureSet>,
pub last_updated_time: Option<DateTime>,
pub resource_share_arn: Option<String>,
}Expand description
An object that describes a managed permission associated with a resource share.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.arn: Option<String>The Amazon Resource Name (ARN) of the associated managed permission.
permission_version: Option<String>The version of the permission currently associated with the resource share.
default_version: Option<bool>Indicates whether the associated resource share is using the default version of the permission.
resource_type: Option<String>The resource type to which this permission applies.
status: Option<String>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.
feature_set: Option<PermissionFeatureSet>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 thePromoteResourceShareCreatedFromPolicyand that operation is still in progress. This value changes toSTANDARDwhen complete.
last_updated_time: Option<DateTime>The date and time when the association between the permission and the resource share was last updated.
The Amazon Resource Name (ARN) of a resource share associated with this permission.
Implementations§
source§impl AssociatedPermission
impl AssociatedPermission
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the associated managed permission.
sourcepub fn permission_version(&self) -> Option<&str>
pub fn permission_version(&self) -> Option<&str>
The version of the permission currently associated with the resource share.
sourcepub fn default_version(&self) -> Option<bool>
pub fn default_version(&self) -> Option<bool>
Indicates whether the associated resource share is using the default version of the permission.
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The resource type to which this permission applies.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
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.
sourcepub fn feature_set(&self) -> Option<&PermissionFeatureSet>
pub fn feature_set(&self) -> Option<&PermissionFeatureSet>
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 thePromoteResourceShareCreatedFromPolicyand that operation is still in progress. This value changes toSTANDARDwhen complete.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
The date and time when the association between the permission and the resource share was last updated.
The Amazon Resource Name (ARN) of a resource share associated with this permission.
source§impl AssociatedPermission
impl AssociatedPermission
sourcepub fn builder() -> AssociatedPermissionBuilder
pub fn builder() -> AssociatedPermissionBuilder
Creates a new builder-style object to manufacture AssociatedPermission.
Trait Implementations§
source§impl Clone for AssociatedPermission
impl Clone for AssociatedPermission
source§fn clone(&self) -> AssociatedPermission
fn clone(&self) -> AssociatedPermission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AssociatedPermission
impl Debug for AssociatedPermission
source§impl PartialEq for AssociatedPermission
impl PartialEq for AssociatedPermission
source§fn eq(&self, other: &AssociatedPermission) -> bool
fn eq(&self, other: &AssociatedPermission) -> bool
self and other values to be equal, and is used
by ==.