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",
}

Policy for the function to access a resource.

Instance Attribute Summary collapse

Instance Attribute Details

#permissionString

The function's access permission to the resource.

Returns:

  • (String)


3913
3914
3915
3916
3917
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 3913

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

#resource_idString

Id of the resource. A reference to the resource definiton.

Returns:

  • (String)


3913
3914
3915
3916
3917
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 3913

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