You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Greengrass::Types::ResourceAccessPolicy
- Inherits:
-
Struct
- Object
- Struct
- Aws::Greengrass::Types::ResourceAccessPolicy
- Defined in:
- (unknown)
Overview
Note:
When passing ResourceAccessPolicy as input to an Aws::Client method, you can use a vanilla Hash:
{
permission: "ro", # accepts ro, rw
resource_id: "__string", # required
}
A policy used by the function to access a resource.
Instance Attribute Summary collapse
-
#permission ⇒ String
The permissions that the Lambda function has to the resource.
-
#resource_id ⇒ String
The ID of the resource.
Instance Attribute Details
#permission ⇒ String
The permissions that the Lambda function has to the resource. Can be one of \'\'rw\'\' (read/write) or \'\'ro\'\' (read-only).
Possible values:
- ro
- rw
#resource_id ⇒ String
The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)