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
show all
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

Instance Attribute Details

#permissionString

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

Returns:

  • (String)

    The permissions that the Lambda function has to the resource.

#resource_idString

The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)

Returns:

  • (String)

    The ID of the resource.