Struct aws_sdk_ram::types::ServiceNameAndResourceType
source · #[non_exhaustive]pub struct ServiceNameAndResourceType {
pub resource_type: Option<String>,
pub service_name: Option<String>,
pub resource_region_scope: Option<ResourceRegionScope>,
}Expand description
Information about a shareable resource type and the Amazon Web Services service to which resources of that type belong.
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.resource_type: Option<String>The type of the resource. 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.
service_name: Option<String>The name of the Amazon Web Services service to which resources of this type belong.
resource_region_scope: Option<ResourceRegionScope>Specifies the scope of visibility of resources of this type:
-
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 ServiceNameAndResourceType
impl ServiceNameAndResourceType
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The type of the resource. 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.
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the Amazon Web Services service to which resources of this type belong.
sourcepub fn resource_region_scope(&self) -> Option<&ResourceRegionScope>
pub fn resource_region_scope(&self) -> Option<&ResourceRegionScope>
Specifies the scope of visibility of resources of this type:
-
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.
source§impl ServiceNameAndResourceType
impl ServiceNameAndResourceType
sourcepub fn builder() -> ServiceNameAndResourceTypeBuilder
pub fn builder() -> ServiceNameAndResourceTypeBuilder
Creates a new builder-style object to manufacture ServiceNameAndResourceType.
Trait Implementations§
source§impl Clone for ServiceNameAndResourceType
impl Clone for ServiceNameAndResourceType
source§fn clone(&self) -> ServiceNameAndResourceType
fn clone(&self) -> ServiceNameAndResourceType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ServiceNameAndResourceType
impl Debug for ServiceNameAndResourceType
source§impl PartialEq for ServiceNameAndResourceType
impl PartialEq for ServiceNameAndResourceType
source§fn eq(&self, other: &ServiceNameAndResourceType) -> bool
fn eq(&self, other: &ServiceNameAndResourceType) -> bool
self and other values to be equal, and is used
by ==.