Interface ResourceAccessPolicy.Builder

    • Method Detail

      • permission

        ResourceAccessPolicy.Builder permission​(String permission)
        The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro'' (read-only).
        Parameters:
        permission - The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro'' (read-only).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Permission, Permission
      • permission

        ResourceAccessPolicy.Builder permission​(Permission permission)
        The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro'' (read-only).
        Parameters:
        permission - The permissions that the Lambda function has to the resource. Can be one of ''rw'' (read/write) or ''ro'' (read-only).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Permission, Permission
      • resourceId

        ResourceAccessPolicy.Builder resourceId​(String resourceId)
        The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)
        Parameters:
        resourceId - The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)
        Returns:
        Returns a reference to this object so that method calls can be chained together.