Struct aws_sdk_greengrass::model::ResourceAccessPolicy [−][src]
#[non_exhaustive]pub struct ResourceAccessPolicy {
pub permission: Option<Permission>,
pub resource_id: Option<String>,
}
Expand description
A policy used by the function to access a resource.
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.permission: Option<Permission>
The permissions that the Lambda function has to the resource. Can be one of ’‘rw’’ (read/write) or ’‘ro’’ (read-only).
resource_id: Option<String>
The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)
Implementations
The permissions that the Lambda function has to the resource. Can be one of ’‘rw’’ (read/write) or ’‘ro’’ (read-only).
The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)
Creates a new builder-style object to manufacture ResourceAccessPolicy
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ResourceAccessPolicy
impl Send for ResourceAccessPolicy
impl Sync for ResourceAccessPolicy
impl Unpin for ResourceAccessPolicy
impl UnwindSafe for ResourceAccessPolicy
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more