Struct aws_sdk_ram::types::Resource
source · #[non_exhaustive]pub struct Resource {
pub arn: Option<String>,
pub type: Option<String>,
pub resource_share_arn: Option<String>,
pub resource_group_arn: Option<String>,
pub status: Option<ResourceStatus>,
pub status_message: Option<String>,
pub creation_time: Option<DateTime>,
pub last_updated_time: Option<DateTime>,
pub resource_region_scope: Option<ResourceRegionScope>,
}Expand description
Describes a resource associated with a resource share in RAM.
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 resource.
type: Option<String>The resource type. This takes the form of: service-code:resource-code, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.
The Amazon Resource Name (ARN) of the resource share this resource is associated with.
resource_group_arn: Option<String>The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
status: Option<ResourceStatus>The current status of the resource.
status_message: Option<String>A message about the status of the resource.
creation_time: Option<DateTime>The date and time when the resource was associated with the resource share.
last_updated_time: Option<DateTime>The date an time when the association between the resource and the resource share was last updated.
resource_region_scope: Option<ResourceRegionScope>Specifies the scope of visibility of this resource:
-
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
-
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
Implementations§
source§impl Resource
impl Resource
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the resource.
sourcepub fn type(&self) -> Option<&str>
pub fn type(&self) -> Option<&str>
The resource type. This takes the form of: service-code:resource-code, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.
The Amazon Resource Name (ARN) of the resource share this resource is associated with.
sourcepub fn resource_group_arn(&self) -> Option<&str>
pub fn resource_group_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
sourcepub fn status(&self) -> Option<&ResourceStatus>
pub fn status(&self) -> Option<&ResourceStatus>
The current status of the resource.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
A message about the status of the resource.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The date and time when the resource was associated with the resource share.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
The date an time when the association between the resource and the resource share was last updated.
sourcepub fn resource_region_scope(&self) -> Option<&ResourceRegionScope>
pub fn resource_region_scope(&self) -> Option<&ResourceRegionScope>
Specifies the scope of visibility of this resource:
-
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
-
GLOBAL – The resource can be accessed from any Amazon Web Services Region.