AWS.SQS.ISQSClient.AddPermission

Adds a permission to queue for a specific principal. This allows sharing access to the queue.

function AddPermission(const ARequest: ISQSAddPermissionRequest): ISQSAddPermissionResponse; overload; function AddPermission(const AActionNames: array of string; const AAWSAccountIds: array of string; const APermissionLabel: string; const AQueueUrl: string): ISQSAddPermissionResponse; overload;
__fastcall ISQSAddPermissionResponse AddPermission(const ISQSAddPermissionRequest ARequest); __fastcall ISQSAddPermissionResponse AddPermission(const array of string AActionNames, const array of string AAWSAccountIds, const AnsiString APermissionLabel, const AnsiString AQueueUrl);

File: AWS.SQS.pas 

Namespace: AWS.SQS 

Module: Appercept AWS SDK for Delphi 

Parameters
Description
const ARequest: ISQSAddPermissionRequest
An AddPermission request object.
const AActionNames: array of string
A list of actions to allow for the specified principal.
const AAWSAccountIds: array of string
A list of AWS account numbers of the principals to receive permissions.
const APermissionLabel: string
Provide a label for the permission.
const AQueueUrl: string
The URL of the Amazon SQS queue to which permissions are added.

Response containing AddPermission results.

Exceptions
Description
When the maximum number of permissions for the queue has been reached.
Copyright © 2019-2021 Appercept Ltd. All rights reserved.