iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
47 lines (46 loc) • 2.41 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement } from '../../shared';
/**
* Statement provider for service [workmailmessageflow](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonworkmailmessageflow.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Workmailmessageflow extends PolicyStatement {
servicePrefix: string;
/**
* Statement provider for service [workmailmessageflow](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonworkmailmessageflow.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
constructor(sid?: string);
/**
* Grants permission to read the content of email messages with the specified message ID
*
* Access Level: Read
*
* https://docs.aws.amazon.com/workmail/latest/APIReference/API_messageflow_GetRawMessageContent.html
*/
toGetRawMessageContent(): this;
/**
* Grants permission to update the content of email messages with the specified message ID
*
* Access Level: Write
*
* https://docs.aws.amazon.com/workmail/latest/APIReference/API_messageflow_PutRawMessageContent.html
*/
toPutRawMessageContent(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type RawMessage to the statement
*
* https://docs.aws.amazon.com/workmail/latest/adminguide/lambda-content.html
*
* @param organizationId - Identifier for the organizationId.
* @param context - Identifier for the context.
* @param messageId - Identifier for the messageId.
* @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account.
* @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region.
* @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition.
*/
onRawMessage(organizationId: string, context: string, messageId: string, account?: string, region?: string, partition?: string): this;
}