import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class Workmailmessageflow extends PolicyStatement { public servicePrefix = 'workmailmessageflow' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * 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
     */ public toGetRawMessageContent ( ) { return this . to ( 'GetRawMessageContent' ) ; } /**
     * 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
     */ public toPutRawMessageContent ( ) { return this . to ( 'PutRawMessageContent' ) ; } protected accessLevelList : AccessLevelList = { Read : [ 'GetRawMessageContent' ] , Write : [ 'PutRawMessageContent' ] } ; param organizationId param context param messageId param account param region param partition public onRawMessage ( organizationId , context , messageId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:workmailmessageflow:${ region || '*' }:${ account || '*' }:message/${ organizationId }/${ context }/${ messageId }` ) ; } }