You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Greengrass::Types::ResourceAccessPolicy

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb

Overview

Note:

When making an API call, you may pass ResourceAccessPolicy data as a hash:

{
  permission: "ro", # accepts ro, rw
  resource_id: "__string",
}

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).

Returns:

  • (String)


3990
3991
3992
3993
3994
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 3990

class ResourceAccessPolicy < Struct.new(
  :permission,
  :resource_id)
  include Aws::Structure
end

#resource_idString

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

Returns:

  • (String)


3990
3991
3992
3993
3994
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 3990

class ResourceAccessPolicy < Struct.new(
  :permission,
  :resource_id)
  include Aws::Structure
end