async createNewAccount(): Promise<any> {
    this.acccount_loading = await true;
    await this.api.createNucypherAlice$(this.character).subscribe(async (res) => {
      this.nucypher_account.address = await res.address
      this.character_username.username = await this.character.username;
      await this.api.revealPublicKeys$(this.character_username).subscribe(async (result) => {
        this.nucypher_public_keys.enc_pubkey = await result.enc_pubkey;
        this.nucypher_public_keys.sig_pubkey = await result.sig_pubkey;
        await console.log(this.character_username)
        this.nucypher_account.organization_id = await this.organization_id
        this.nucypher_account.name = await this.character.username
        this.nucypher_account.encrypting_key = await this.nucypher_public_keys.enc_pubkey
        this.nucypher_account.signing_key = await this.nucypher_public_keys.sig_pubkey
        this.nucypher_account.balance = await 0
        this.nucypher_account.tokens = await 0
        await console.log(this.nucypher_account)
        await this.api.createNucypherAccount$(this.nucypher_account).subscribe((res) => console.log(res), error => console.log(error))
        this.acccount_loading = await false;
      });
    }, error => console.log(error));
  }


async ngOnInit() {
    await this.loadOrganizationID()
  }


/**
 * Create new SwaggerNodeRunner Instance
 *
 * SwaggerNode config priority:
 *   1. `swagger_**` environment vars
 *   2. `config` passed to `create()`
 *   3. read from swagger node in `default.yaml` in config directory
 *   4. defaults
 *
 * @param {Config} config - Configuration for `Runner`
 * @param {Function} runner - This Callback is called when the `Runner` has been instantiated
 */
export function create(config: Config, cb: (err: Error | undefined, runner: Runner) => void): void;


/**
 * Config object for SwaggerNodeRunner
 */
export interface Config {
    /** Path to app */
    appRoot: string;
    /**
     * If `true` API is in mock mode
     *
     * default is `false`
     */
    mockMode?: boolean;
    /**
     * If `true` resonse is validated
     *
     * default is `true`
     */
    validateResponse?: boolean;
    /** Sets `NODE_CONFIG_DIR` env if not set yet */
    configDir?: string;
    /**
     * Swagger controller directories
     *
     * default is array with `/api/controllers` relative to `appRoot`
     */
    controllersDirs?: string[];
    /**
     * Swagger mock controller directories
     *
     * default is array with `/api/mocks` relative to `appRoot`
     */
    mockControllersDirs?: string[];
    /**
     * Used for Bagpipes library
     *
     * default is `[api/fittings]`
     */
    fittingsDirs?: string[];
    /**
     * Define Middleware for using Swagger security information to authenticate requests. Part of _swagger-tools_
     *
     * default is `undefined`
     * @see {@link https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-security.js|Github Source}
     */
    swaggerSecurityHandlers?: SwaggerSecurityHandlers;

    /**
     * Used for Bagpipes library
     *
     * @se @link{https://github.com/apigee-127/bagpipes|Github Source}
     */
    bagpipes?: any;
    /** default is `null` */
    defaultPipe?: string;
    /**
     * default is `swagger_controllers`
     */
    swaggerControllerPipe?: string;
}


/** Internally stored version of config */
export interface ConfigInternal {
    /** Config of SwaggerNodeRunner  */
    swagger?: Config;
}


/**
 *  The keys match SecurityDefinition names and the associated values are functions that accept the following parameters:
 * `(request, securityDefinition, scopes, callback)`
 */
export interface SwaggerSecurityHandlers {
    [name: string]: SwaggerToolsSecurityHandler;
}


/**
 * Runner instance
 */
export interface Runner extends EventEmitter {
    /** Resolves path (relative to `config.appRoot`) */
    resolveAppPath(...to: any[]): string;
    defaultErrorHandler(): any;
    /** Fetch a _bagpipe_ pipe */
    getPipe(req: { swagger: { path: any } }): any;
    config: ConfigInternal;
    /**
     * Current OpenAPI Specification (formaly known as Swagger RESTful API Documentation Specification)
     * @see {@link http://swagger.io/specification/|Swagger Specs}
     */
    swagger: Spec;
    /**
     * References to Swagger Tools Midleware (from _swagger-tools_ module)     *
     * @see {@link https://github.com/apigee-127/swagger-tools|Github Source}
     */
    swaggerTools: {
        /**
         * Middleware for providing Swagger information to downstream middleware and request handlers.
         *
         * @param {any} rlOrSO - The Resource Listing (Swagger 1.2) or Swagger Object (Swagger 2.0)
         * @param {any[]} apiDeclarations - The array of API Declarations (Swagger 1.2)
         *
         * @see {@link https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-metadata.js|Git Source}
         */
        swaggerMetadata(rlOrSO: any, apiDeclarations: any[]): SwaggerToolsMiddleware
        /**
         *  Middleware for using Swagger information to route requests to handlers.
         * @param [{any}] options - The configuration options
         *
         * @see {@link https://github.com/apigee-127/swagger-tools/blob/master/docs/Middleware.md#swaggerrouteroptions|Docs}
         * @see {@link https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-router.js|Github Source}
         */
        swaggerRouter(options?: any): SwaggerToolsMiddleware
        /**
         * Middleware for using Swagger security information to authenticate requests.
         * @param [{any}] options - The configuration options
         *
         * @see {@link https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-security.js|Github Source}
         */
        swaggerSecurity(options?: SwaggerSecurityHandlers): SwaggerToolsMiddleware
        /**
         * Middleware for serving the Swagger documents and Swagger UI.
         *
         * @param {any} rlOrSO - The Resource Listing (Swagger 1.2) or Swagger Object (Swagger 2.0)
         * @param {any[]} apiDeclarations - The array of API Declarations (Swagger 1.2)
         * @param [{any}] options - The configuration options
         *
         * @see {@link https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-ui.js|Github Source}
         */
        swaggerUi(rlOrSO: any, apiDeclarations: any[], options?: any): SwaggerToolsMiddleware
        /**
         * Middleware for using Swagger information to validate API requests/responses.type
         * @param [{any}] options - The configuration options
         *
         * @see {@link https://github.com/apigee-127/swagger-tools/blob/master/middleware/swagger-validator.js|Github Source}
         */
        swaggerValidator(options?: any): SwaggerToolsMiddleware
    };
    swaggerSecurityHandlers: SwaggerSecurityHandlers | undefined;
    /**
     * Nested Key Value description for _backpipes_ module
     * @see {@link https://github.com/apigee-127/bagpipes#pipes|Github Source}
     */
    bagpipes: { [name: string]: any };
    /** Create new Connect middleware */
    connectMiddleware(): ConnectMiddleware;
    /** Create new Express middleware */
    expressMiddleware(): ExpressMiddleware;
    /** Create new Restify middleware */
    restifyMiddleware(): RestifyMiddleware;
    /** Create new Sails middleware */
    sailsMiddleware(): SailsMiddleware;
    /** Create new Hapi middleware */
    hapiMiddleware(): HapiMiddleware;
}


/** base used by all middleware versions */
export interface Middleware {
    /** Back-reference to `swagger-node-runner`s `Runner` that has created this middleware */
    runner: Runner;
}


/** Connect/Express specific Middleware */
export interface ConnectMiddleware extends Middleware {
    middleware(): (req: Express.Request, res: Express.Response, next: NextFunction) => void;
    /** Register this Middleware with `app`  */
    register(app: Express.Application): void;
}


/** Express specific Middleware
 *
 * _Alias for `ConnectMiddleware`_
 */
// tslint:disable-next-line:no-empty-interface
export interface ExpressMiddleware extends ConnectMiddleware { }


/** Sails specific Middleware */
export interface SailsMiddleware extends Middleware {
    /** Express style middleware */
    chain(): (req: Express.Request, res: Express.Response, next: NextFunction) => void;
}


/** Hapi specific Middleware */
export interface HapiMiddleware extends Middleware {
    /** Back-reference to Config object of `Runner` that has created this middleware */
    config: ConfigInternal;

    /** Hapi Plugin */
    plugin: {
        /**
         * Hapi plugin `register` implementation.
         * @see {@link https://hapijs.com/tutorials/plugins|Hapi Docs}
         */
        register: {
            /**
             * Registers Plugin with `onRequest` and traces `request-error` callbacks
             *             *
             * @param  {Hapi.Server} server - Hapi server
             * @param  {any} options - options for plugin (not used in the moment)
             * @param  {()=>void} next - callback called when register is done
             */
            (server: Hapi.Server, options: any, next: () => void): void;
            /** Object attached to `register` function to provide hapi with some additional information about the plugin */
            attributes: {
                /**  Name of Plugin (e.g. `swagger-node-runner`) */
                name: string
                /** Version of Plugin */
                version: string
            }
        }
    };
}


/** Restify specific Middleware */
export interface RestifyMiddleware extends Middleware {
    /** Register this Middleware with `app`  */
    register(app: Restify.Server): void;
}


/** Middleware used by `swagger-tools` */
export type SwaggerToolsMiddleware = (req: any, res: any, next: any) => any;


/**
 * @param  {any} request
 * @param  {any} securityDefinition
 * @param  {any} scopes
 * @param  {(err:Error)=>void} callback - Error is returned if request is unauthorized.
 * The Error may include "message", "state", and "code" fields to be conveyed to the client in the response body and a
 * "headers" field containing an object representing headers to be set on the response to the client.
 * In addition, if the Error has a statusCode field, the response statusCode will be set to match -
 * otherwise, the statusCode will be set to 403.
 */
export type SwaggerToolsSecurityHandler = (request: any, securityDefinition: any, scopes: any, callback: (err: Error) => void) => void;


async () => {
  return {
    default: mockAxios
  }
}


async () => {
  const mockWrite = jest.fn()
  const mockCreateWriteStream = jest.fn()
  const reset = () => {
    mockWrite.mockReset()
    mockCreateWriteStream.mockReset().mockImplementation(() => {
      let handler: any = () => {}
      return {
        write: mockWrite,
        on: (e: any, h: any) => {
          if (e === 'close') {
            handler = h
            process.nextTick(h) // TODO: jest-mock-axios の pipe の挙動調べる.
          }
        },
        close: () => handler()
      }
    })
  }

  reset()
  return {
    createWriteStream: mockCreateWriteStream,
    _reset: reset,
    _getMocks: () => ({
      mockWrite,
      mockCreateWriteStream
    })
  }
}


() => {
    mockWrite.mockReset()
    mockCreateWriteStream.mockReset().mockImplementation(() => {
      let handler: any = () => {}
      return {
        write: mockWrite,
        on: (e: any, h: any) => {
          if (e === 'close') {
            handler = h
            process.nextTick(h) // TODO: jest-mock-axios の pipe の挙動調べる.
          }
        },
        close: () => handler()
      }
    })
  }


() => {
      let handler: any = () => {}
      return {
        write: mockWrite,
        on: (e: any, h: any) => {
          if (e === 'close') {
            handler = h
            process.nextTick(h) // TODO: jest-mock-axios の pipe の挙動調べる.
          }
        },
        close: () => handler()
      }
    }


(e: any, h: any) => {
          if (e === 'close') {
            handler = h
            process.nextTick(h) // TODO: jest-mock-axios の pipe の挙動調べる.
          }
        }


() => handler()


() => ({
      mockWrite,
      mockCreateWriteStream
    })


async () => {
  const mockSizeOfFn = async (pathName: any) => {
    if (pathName.match(/error/)) {
      throw new Error('dummy error')
    }
    return { width: 200, height: 100 }
  }
  let mockSizeOf = jest.fn()
  const reset = () => {
    mockSizeOf.mockReset().mockImplementation(mockSizeOfFn)
  }
  reset()
  return {
    // https://remarkablemark.org/blog/2018/06/28/jest-mock-default-named-export/
    __esModule: true,
    default: mockSizeOf,
    sizeOf: mockSizeOf,
    _reset: reset,
    _getMocks: () => ({
      mockSizeOf
    })
  }
}


async (pathName: any) => {
    if (pathName.match(/error/)) {
      throw new Error('dummy error')
    }
    return { width: 200, height: 100 }
  }


() => {
    mockSizeOf.mockReset().mockImplementation(mockSizeOfFn)
  }


() => ({
      mockSizeOf
    })


() => {
  mockAxios.reset()
  ;(mockFs as any)._reset()
  ;(mockImageSize as any)._reset()
}


() => {
  it('should get imageInfo', async () => {
    expect(
      await imageInfoFromSrc('http://localhost:3000/path/to/image.jpg', false)
    ).toEqual({
      url: 'http://localhost:3000/path/to/image.jpg',
      size: {},
      meta: {}
    })
  })
  it('should get imageInfo from image object', async () => {
    expect(
      await imageInfoFromSrc(
        {
          url: 'http://localhost:3000/path/to/image.jpg',
          width: 200,
          height: 100
        },
        false
      )
    ).toEqual({
      url: 'http://localhost:3000/path/to/image.jpg',
      size: {
        width: 200,
        height: 100
      },
      meta: {}
    })
  })
}


async () => {
    expect(
      await imageInfoFromSrc('http://localhost:3000/path/to/image.jpg', false)
    ).toEqual({
      url: 'http://localhost:3000/path/to/image.jpg',
      size: {},
      meta: {}
    })
  }


async () => {
    expect(
      await imageInfoFromSrc(
        {
          url: 'http://localhost:3000/path/to/image.jpg',
          width: 200,
          height: 100
        },
        false
      )
    ).toEqual({
      url: 'http://localhost:3000/path/to/image.jpg',
      size: {
        width: 200,
        height: 100
      },
      meta: {}
    })
  }


() => {
  it('should get image from remote and save to local file', async () => {
    const res = saveImageFile(
      {
        url: 'https://www.appsheet.com/template/gettablefileurl?appName=appName&tableName=tbl&fileName=アプリ_Image%2Fimage.jpg',
        size: {},
        meta: {}
      },
      '/static/path/to',
      '/static',
      'image.jpg',
      true
    )
    expect(mockAxios.request).toHaveBeenLastCalledWith({
      method: 'get',
      url: 'https://www.appsheet.com/template/gettablefileurl?appName=appName&tableName=tbl&fileName=アプリ_Image%2Fimage.jpg',
      responseType: 'stream'
    })
    mockAxios.mockResponse({
      data: 'image data'
    })
    await expect(res).resolves.toEqual({
      size: { width: 200, height: 100 },
      meta: {},
      url: '/path/to/image.jpg'
    })
    expect(mockCreateWriteStream).toHaveBeenLastCalledWith(
      '/static/path/to/image.jpg'
    )
    expect(mockSizeOf).toHaveBeenLastCalledWith('/static/path/to/image.jpg')
  })
  it('should get image with out iamge info', async () => {
    const res = saveImageFile(
      {
        url: 'https://www.appsheet.com/template/gettablefileurl?appName=appName&tableName=tbl&fileName=アプリ_Image%2Fimage.jpg',
        size: {},
        meta: {}
      },
      'static/path/to/static',
      'static',
      'image.jpg',
      false
    )
    expect(mockAxios.request).toHaveBeenLastCalledWith({
      method: 'get',
      url: 'https://www.appsheet.com/template/gettablefileurl?appName=appName&tableName=tbl&fileName=アプリ_Image%2Fimage.jpg',
      responseType: 'stream'
    })
    mockAxios.mockResponse({
      data: 'image data'
    })
    await expect(res).resolves.toEqual({
      size: {},
      meta: {},
      url: '/path/to/static/image.jpg'
    })
  })
  it('should get image with image object', async () => {
    const res = saveImageFile(
      {
        url: 'http://localhost:3000/path/to/image.jpg',
        size: {
          width: 200,
          height: 100
        },
        meta: {}
      },
      '/static/path/to',
      '/static',
      'image.jpg',
      false
    )
    expect(mockAxios.request).toHaveBeenLastCalledWith({
      method: 'get',
      url: 'http://localhost:3000/path/to/image.jpg',
      responseType: 'stream'
    })
    mockAxios.mockResponse({
      data: 'image data'
    })
    await expect(res).resolves.toEqual({
      size: {
        width: 200,
        height: 100
      },
      meta: {},
      url: '/path/to/image.jpg'
    })
  })
  it('should get image without static root', async () => {
    const res = saveImageFile(
      {
        url: 'http://localhost:3000/path/to/image.jpg',
        size: {
          width: 200,
          height: 100
        },
        meta: {}
      },
      '/path/to',
      '',
      'image.jpg',
      false
    )
    expect(mockAxios.request).toHaveBeenLastCalledWith({
      method: 'get',
      url: 'http://localhost:3000/path/to/image.jpg',
      responseType: 'stream'
    })
    mockAxios.mockResponse({
      data: 'image data'
    })
    await expect(res).resolves.toEqual({
      size: {
        width: 200,
        height: 100
      },
      meta: {},
      url: '/path/to/image.jpg'
    })
  })
  it('should throw error by 404', async () => {
    const res = saveImageFile(
      {
        url: 'http://localhost:3000/image.jpg',
        size: {},
        meta: {}
      },
      '/path/to/static',
      '',
      'image.jpg',
      true
    )
    expect(mockAxios.request).toHaveBeenCalledTimes(1)
    mockAxios.mockError({ response: { status: 404, statusText: '' } })
    await expect(res).rejects.toThrow(
      'content.saveImage error: src = http://localhost:3000/image.jpg, status = 404:'
    )
  })
}


async () => {
    const res = saveImageFile(
      {
        url: 'https://www.appsheet.com/template/gettablefileurl?appName=appName&tableName=tbl&fileName=アプリ_Image%2Fimage.jpg',
        size: {},
        meta: {}
      },
      '/static/path/to',
      '/static',
      'image.jpg',
      true
    )
    expect(mockAxios.request).toHaveBeenLastCalledWith({
      method: 'get',
      url: 'https://www.appsheet.com/template/gettablefileurl?appName=appName&tableName=tbl&fileName=アプリ_Image%2Fimage.jpg',
      responseType: 'stream'
    })
    mockAxios.mockResponse({
      data: 'image data'
    })
    await expect(res).resolves.toEqual({
      size: { width: 200, height: 100 },
      meta: {},
      url: '/path/to/image.jpg'
    })
    expect(mockCreateWriteStream).toHaveBeenLastCalledWith(
      '/static/path/to/image.jpg'
    )
    expect(mockSizeOf).toHaveBeenLastCalledWith('/static/path/to/image.jpg')
  }


async () => {
    const res = saveImageFile(
      {
        url: 'https://www.appsheet.com/template/gettablefileurl?appName=appName&tableName=tbl&fileName=アプリ_Image%2Fimage.jpg',
        size: {},
        meta: {}
      },
      'static/path/to/static',
      'static',
      'image.jpg',
      false
    )
    expect(mockAxios.request).toHaveBeenLastCalledWith({
      method: 'get',
      url: 'https://www.appsheet.com/template/gettablefileurl?appName=appName&tableName=tbl&fileName=アプリ_Image%2Fimage.jpg',
      responseType: 'stream'
    })
    mockAxios.mockResponse({
      data: 'image data'
    })
    await expect(res).resolves.toEqual({
      size: {},
      meta: {},
      url: '/path/to/static/image.jpg'
    })
  }


async () => {
    const res = saveImageFile(
      {
        url: 'http://localhost:3000/path/to/image.jpg',
        size: {
          width: 200,
          height: 100
        },
        meta: {}
      },
      '/static/path/to',
      '/static',
      'image.jpg',
      false
    )
    expect(mockAxios.request).toHaveBeenLastCalledWith({
      method: 'get',
      url: 'http://localhost:3000/path/to/image.jpg',
      responseType: 'stream'
    })
    mockAxios.mockResponse({
      data: 'image data'
    })
    await expect(res).resolves.toEqual({
      size: {
        width: 200,
        height: 100
      },
      meta: {},
      url: '/path/to/image.jpg'
    })
  }


async () => {
    const res = saveImageFile(
      {
        url: 'http://localhost:3000/path/to/image.jpg',
        size: {
          width: 200,
          height: 100
        },
        meta: {}
      },
      '/path/to',
      '',
      'image.jpg',
      false
    )
    expect(mockAxios.request).toHaveBeenLastCalledWith({
      method: 'get',
      url: 'http://localhost:3000/path/to/image.jpg',
      responseType: 'stream'
    })
    mockAxios.mockResponse({
      data: 'image data'
    })
    await expect(res).resolves.toEqual({
      size: {
        width: 200,
        height: 100
      },
      meta: {},
      url: '/path/to/image.jpg'
    })
  }


async () => {
    const res = saveImageFile(
      {
        url: 'http://localhost:3000/image.jpg',
        size: {},
        meta: {}
      },
      '/path/to/static',
      '',
      'image.jpg',
      true
    )
    expect(mockAxios.request).toHaveBeenCalledTimes(1)
    mockAxios.mockError({ response: { status: 404, statusText: '' } })
    await expect(res).rejects.toThrow(
      'content.saveImage error: src = http://localhost:3000/image.jpg, status = 404:'
    )
  }


export interface AddHeaderAction {
    /**
     * The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
     */
    HeaderName: HeaderName;
    /**
     * Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
     */
    HeaderValue: HeaderValue;
  }


export interface Body {
    /**
     * The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).
     */
    Text?: Content;
    /**
     * The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.
     */
    Html?: Content;
  }


export interface BounceAction {
    /**
     * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
     */
    TopicArn?: AmazonResourceName;
    /**
     * The SMTP reply code, as defined by RFC 5321.
     */
    SmtpReplyCode: BounceSmtpReplyCode;
    /**
     * The SMTP enhanced status code, as defined by RFC 3463.
     */
    StatusCode?: BounceStatusCode;
    /**
     * Human-readable text to include in the bounce message.
     */
    Message: BounceMessage;
    /**
     * The email address of the sender of the bounced email. This is the address from which the bounce message will be sent.
     */
    Sender: Address;
  }


export interface BouncedRecipientInfo {
    /**
     * The email address of the recipient of the bounced email.
     */
    Recipient: Address;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to receive email for the recipient of the bounced email. For more information about sending authorization, see the Amazon SES Developer Guide.
     */
    RecipientArn?: AmazonResourceName;
    /**
     * The reason for the bounce. You must provide either this parameter or RecipientDsnFields.
     */
    BounceType?: BounceType;
    /**
     * Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a BounceType. You must provide either this parameter or BounceType.
     */
    RecipientDsnFields?: RecipientDsnFields;
  }


export interface BulkEmailDestination {
    Destination: Destination;
    /**
     * A list of tags, in the form of name/value pairs, to apply to an email that you send using SendBulkTemplatedEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
     */
    ReplacementTags?: MessageTagList;
    /**
     * A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
     */
    ReplacementTemplateData?: TemplateData;
  }


export interface BulkEmailDestinationStatus {
    /**
     * The status of a message sent using the SendBulkTemplatedEmail operation. Possible values for this parameter include:    Success: Amazon SES accepted the message, and will attempt to deliver it to the recipients.    MessageRejected: The message was rejected because it contained a virus.    MailFromDomainNotVerified: The sender's email address or domain was not verified.    ConfigurationSetDoesNotExist: The configuration set you specified does not exist.    TemplateDoesNotExist: The template you specified does not exist.    AccountSuspended: Your account has been shut down because of issues related to your email sending practices.    AccountThrottled: The number of emails you can send has been reduced because your account has exceeded its allocated sending limit.    AccountDailyQuotaExceeded: You have reached or exceeded the maximum number of emails you can send from your account in a 24-hour period.    InvalidSendingPoolName: The configuration set you specified refers to an IP pool that does not exist.    AccountSendingPaused: Email sending for the Amazon SES account was disabled using the UpdateAccountSendingEnabled operation.    ConfigurationSetSendingPaused: Email sending for this configuration set was disabled using the UpdateConfigurationSetSendingEnabled operation.    InvalidParameterValue: One or more of the parameters you specified when calling this operation was invalid. See the error message for additional information.    TransientFailure: Amazon SES was unable to process your request because of a temporary issue.    Failed: Amazon SES was unable to process your request. See the error message for additional information.
     */
    Status?: BulkEmailStatus;
    /**
     * A description of an error that prevented a message being sent using the SendBulkTemplatedEmail operation.
     */
    Error?: Error;
    /**
     * The unique message identifier returned from the SendBulkTemplatedEmail operation.
     */
    MessageId?: MessageId;
  }


export interface CloneReceiptRuleSetRequest {
    /**
     * The name of the rule set to create. The name must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Start and end with a letter or number.   Contain less than 64 characters.
     */
    RuleSetName: ReceiptRuleSetName;
    /**
     * The name of the rule set to clone.
     */
    OriginalRuleSetName: ReceiptRuleSetName;
  }


export interface CloneReceiptRuleSetResponse {
  }


export interface CloudWatchDestination {
    /**
     * A list of dimensions upon which to categorize your emails when you publish email sending events to Amazon CloudWatch.
     */
    DimensionConfigurations: CloudWatchDimensionConfigurations;
  }


export interface CloudWatchDimensionConfiguration {
    /**
     * The name of an Amazon CloudWatch dimension associated with an email sending metric. The name must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain less than 256 characters.
     */
    DimensionName: DimensionName;
    /**
     * The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. If you want Amazon SES to use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail API, choose messageTag. If you want Amazon SES to use your own email headers, choose emailHeader.
     */
    DimensionValueSource: DimensionValueSource;
    /**
     * The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email. The default value must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain less than 256 characters.
     */
    DefaultDimensionValue: DefaultDimensionValue;
  }


export interface ConfigurationSet {
    /**
     * The name of the configuration set. The name must meet the following requirements:   Contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain 64 characters or fewer.
     */
    Name: ConfigurationSetName;
  }


export interface Content {
    /**
     * The textual data of the content.
     */
    Data: MessageData;
    /**
     * The character set of the content.
     */
    Charset?: Charset;
  }


export interface CreateConfigurationSetEventDestinationRequest {
    /**
     * The name of the configuration set that the event destination should be associated with.
     */
    ConfigurationSetName: ConfigurationSetName;
    /**
     * An object that describes the AWS service that email sending event information will be published to.
     */
    EventDestination: EventDestination;
  }


export interface CreateConfigurationSetEventDestinationResponse {
  }


export interface CreateConfigurationSetRequest {
    /**
     * A data structure that contains the name of the configuration set.
     */
    ConfigurationSet: ConfigurationSet;
  }


export interface CreateConfigurationSetResponse {
  }


export interface CreateConfigurationSetTrackingOptionsRequest {
    /**
     * The name of the configuration set that the tracking options should be associated with.
     */
    ConfigurationSetName: ConfigurationSetName;
    TrackingOptions: TrackingOptions;
  }


export interface CreateConfigurationSetTrackingOptionsResponse {
  }


export interface CreateCustomVerificationEmailTemplateRequest {
    /**
     * The name of the custom verification email template.
     */
    TemplateName: TemplateName;
    /**
     * The email address that the custom verification email is sent from.
     */
    FromEmailAddress: FromAddress;
    /**
     * The subject line of the custom verification email.
     */
    TemplateSubject: Subject;
    /**
     * The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see Custom Verification Email Frequently Asked Questions in the Amazon SES Developer Guide.
     */
    TemplateContent: TemplateContent;
    /**
     * The URL that the recipient of the verification email is sent to if his or her address is successfully verified.
     */
    SuccessRedirectionURL: SuccessRedirectionURL;
    /**
     * The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
     */
    FailureRedirectionURL: FailureRedirectionURL;
  }


export interface CreateReceiptFilterRequest {
    /**
     * A data structure that describes the IP address filter to create, which consists of a name, an IP address range, and whether to allow or block mail from it.
     */
    Filter: ReceiptFilter;
  }


export interface CreateReceiptFilterResponse {
  }


export interface CreateReceiptRuleRequest {
    /**
     * The name of the rule set that the receipt rule will be added to.
     */
    RuleSetName: ReceiptRuleSetName;
    /**
     * The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.
     */
    After?: ReceiptRuleName;
    /**
     * A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
     */
    Rule: ReceiptRule;
  }


export interface CreateReceiptRuleResponse {
  }


export interface CreateReceiptRuleSetRequest {
    /**
     * The name of the rule set to create. The name must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Start and end with a letter or number.   Contain less than 64 characters.
     */
    RuleSetName: ReceiptRuleSetName;
  }


export interface CreateReceiptRuleSetResponse {
  }


export interface CreateTemplateRequest {
    /**
     * The content of the email, composed of a subject line, an HTML part, and a text-only part.
     */
    Template: Template;
  }


export interface CreateTemplateResponse {
  }


export interface CustomVerificationEmailTemplate {
    /**
     * The name of the custom verification email template.
     */
    TemplateName?: TemplateName;
    /**
     * The email address that the custom verification email is sent from.
     */
    FromEmailAddress?: FromAddress;
    /**
     * The subject line of the custom verification email.
     */
    TemplateSubject?: Subject;
    /**
     * The URL that the recipient of the verification email is sent to if his or her address is successfully verified.
     */
    SuccessRedirectionURL?: SuccessRedirectionURL;
    /**
     * The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
     */
    FailureRedirectionURL?: FailureRedirectionURL;
  }


export interface DeleteConfigurationSetEventDestinationRequest {
    /**
     * The name of the configuration set from which to delete the event destination.
     */
    ConfigurationSetName: ConfigurationSetName;
    /**
     * The name of the event destination to delete.
     */
    EventDestinationName: EventDestinationName;
  }


export interface DeleteConfigurationSetEventDestinationResponse {
  }


export interface DeleteConfigurationSetRequest {
    /**
     * The name of the configuration set to delete.
     */
    ConfigurationSetName: ConfigurationSetName;
  }


export interface DeleteConfigurationSetResponse {
  }


export interface DeleteConfigurationSetTrackingOptionsRequest {
    /**
     * The name of the configuration set from which you want to delete the tracking options.
     */
    ConfigurationSetName: ConfigurationSetName;
  }


export interface DeleteConfigurationSetTrackingOptionsResponse {
  }


export interface DeleteCustomVerificationEmailTemplateRequest {
    /**
     * The name of the custom verification email template that you want to delete.
     */
    TemplateName: TemplateName;
  }


export interface DeleteIdentityPolicyRequest {
    /**
     * The identity that is associated with the policy that you want to delete. You can specify the identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. To successfully call this API, you must own the identity.
     */
    Identity: Identity;
    /**
     * The name of the policy to be deleted.
     */
    PolicyName: PolicyName;
  }


export interface DeleteIdentityPolicyResponse {
  }


export interface DeleteIdentityRequest {
    /**
     * The identity to be removed from the list of identities for the AWS Account.
     */
    Identity: Identity;
  }


export interface DeleteIdentityResponse {
  }


export interface DeleteReceiptFilterRequest {
    /**
     * The name of the IP address filter to delete.
     */
    FilterName: ReceiptFilterName;
  }


export interface DeleteReceiptFilterResponse {
  }


export interface DeleteReceiptRuleRequest {
    /**
     * The name of the receipt rule set that contains the receipt rule to delete.
     */
    RuleSetName: ReceiptRuleSetName;
    /**
     * The name of the receipt rule to delete.
     */
    RuleName: ReceiptRuleName;
  }


export interface DeleteReceiptRuleResponse {
  }


export interface DeleteReceiptRuleSetRequest {
    /**
     * The name of the receipt rule set to delete.
     */
    RuleSetName: ReceiptRuleSetName;
  }


export interface DeleteReceiptRuleSetResponse {
  }


export interface DeleteTemplateRequest {
    /**
     * The name of the template to be deleted.
     */
    TemplateName: TemplateName;
  }


export interface DeleteTemplateResponse {
  }


export interface DeleteVerifiedEmailAddressRequest {
    /**
     * An email address to be removed from the list of verified addresses.
     */
    EmailAddress: Address;
  }


export interface DeliveryOptions {
    /**
     * Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require, messages are only delivered if a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established.
     */
    TlsPolicy?: TlsPolicy;
  }


export interface DescribeActiveReceiptRuleSetRequest {
  }


export interface DescribeActiveReceiptRuleSetResponse {
    /**
     * The metadata for the currently active receipt rule set. The metadata consists of the rule set name and a timestamp of when the rule set was created.
     */
    Metadata?: ReceiptRuleSetMetadata;
    /**
     * The receipt rules that belong to the active rule set.
     */
    Rules?: ReceiptRulesList;
  }


export interface DescribeConfigurationSetRequest {
    /**
     * The name of the configuration set to describe.
     */
    ConfigurationSetName: ConfigurationSetName;
    /**
     * A list of configuration set attributes to return.
     */
    ConfigurationSetAttributeNames?: ConfigurationSetAttributeList;
  }


export interface DescribeConfigurationSetResponse {
    /**
     * The configuration set object associated with the specified configuration set.
     */
    ConfigurationSet?: ConfigurationSet;
    /**
     * A list of event destinations associated with the configuration set.
     */
    EventDestinations?: EventDestinations;
    /**
     * The name of the custom open and click tracking domain associated with the configuration set.
     */
    TrackingOptions?: TrackingOptions;
    DeliveryOptions?: DeliveryOptions;
    /**
     * An object that represents the reputation settings for the configuration set.
     */
    ReputationOptions?: ReputationOptions;
  }


export interface DescribeReceiptRuleRequest {
    /**
     * The name of the receipt rule set that the receipt rule belongs to.
     */
    RuleSetName: ReceiptRuleSetName;
    /**
     * The name of the receipt rule.
     */
    RuleName: ReceiptRuleName;
  }


export interface DescribeReceiptRuleResponse {
    /**
     * A data structure that contains the specified receipt rule's name, actions, recipients, domains, enabled status, scan status, and Transport Layer Security (TLS) policy.
     */
    Rule?: ReceiptRule;
  }


export interface DescribeReceiptRuleSetRequest {
    /**
     * The name of the receipt rule set to describe.
     */
    RuleSetName: ReceiptRuleSetName;
  }


export interface DescribeReceiptRuleSetResponse {
    /**
     * The metadata for the receipt rule set, which consists of the rule set name and the timestamp of when the rule set was created.
     */
    Metadata?: ReceiptRuleSetMetadata;
    /**
     * A list of the receipt rules that belong to the specified receipt rule set.
     */
    Rules?: ReceiptRulesList;
  }


export interface Destination {
    /**
     * The recipients to place on the To: line of the message.
     */
    ToAddresses?: AddressList;
    /**
     * The recipients to place on the CC: line of the message.
     */
    CcAddresses?: AddressList;
    /**
     * The recipients to place on the BCC: line of the message.
     */
    BccAddresses?: AddressList;
  }


export interface EventDestination {
    /**
     * The name of the event destination. The name must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain less than 64 characters.
     */
    Name: EventDestinationName;
    /**
     * Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false.
     */
    Enabled?: Enabled;
    /**
     * The type of email sending events to publish to the event destination.
     */
    MatchingEventTypes: EventTypes;
    /**
     * An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
     */
    KinesisFirehoseDestination?: KinesisFirehoseDestination;
    /**
     * An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
     */
    CloudWatchDestination?: CloudWatchDestination;
    /**
     * An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
     */
    SNSDestination?: SNSDestination;
  }


export interface ExtensionField {
    /**
     * The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
     */
    Name: ExtensionFieldName;
    /**
     * The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
     */
    Value: ExtensionFieldValue;
  }


export interface GetAccountSendingEnabledResponse {
    /**
     * Describes whether email sending is enabled or disabled for your Amazon SES account in the current AWS Region.
     */
    Enabled?: Enabled;
  }


export interface GetCustomVerificationEmailTemplateRequest {
    /**
     * The name of the custom verification email template that you want to retrieve.
     */
    TemplateName: TemplateName;
  }


export interface GetCustomVerificationEmailTemplateResponse {
    /**
     * The name of the custom verification email template.
     */
    TemplateName?: TemplateName;
    /**
     * The email address that the custom verification email is sent from.
     */
    FromEmailAddress?: FromAddress;
    /**
     * The subject line of the custom verification email.
     */
    TemplateSubject?: Subject;
    /**
     * The content of the custom verification email.
     */
    TemplateContent?: TemplateContent;
    /**
     * The URL that the recipient of the verification email is sent to if his or her address is successfully verified.
     */
    SuccessRedirectionURL?: SuccessRedirectionURL;
    /**
     * The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.
     */
    FailureRedirectionURL?: FailureRedirectionURL;
  }


export interface GetIdentityDkimAttributesRequest {
    /**
     * A list of one or more verified identities - email addresses, domains, or both.
     */
    Identities: IdentityList;
  }


export interface GetIdentityDkimAttributesResponse {
    /**
     * The DKIM attributes for an email address or a domain.
     */
    DkimAttributes: DkimAttributes;
  }


export interface GetIdentityMailFromDomainAttributesRequest {
    /**
     * A list of one or more identities.
     */
    Identities: IdentityList;
  }


export interface GetIdentityMailFromDomainAttributesResponse {
    /**
     * A map of identities to custom MAIL FROM attributes.
     */
    MailFromDomainAttributes: MailFromDomainAttributes;
  }


export interface GetIdentityNotificationAttributesRequest {
    /**
     * A list of one or more identities. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
     */
    Identities: IdentityList;
  }


export interface GetIdentityNotificationAttributesResponse {
    /**
     * A map of Identity to IdentityNotificationAttributes.
     */
    NotificationAttributes: NotificationAttributes;
  }


export interface GetIdentityPoliciesRequest {
    /**
     * The identity for which the policies will be retrieved. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. To successfully call this API, you must own the identity.
     */
    Identity: Identity;
    /**
     * A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use ListIdentityPolicies.
     */
    PolicyNames: PolicyNameList;
  }


export interface GetIdentityPoliciesResponse {
    /**
     * A map of policy names to policies.
     */
    Policies: PolicyMap;
  }


export interface GetIdentityVerificationAttributesRequest {
    /**
     * A list of identities.
     */
    Identities: IdentityList;
  }


export interface GetIdentityVerificationAttributesResponse {
    /**
     * A map of Identities to IdentityVerificationAttributes objects.
     */
    VerificationAttributes: VerificationAttributes;
  }


export interface GetSendQuotaResponse {
    /**
     * The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.
     */
    Max24HourSend?: Max24HourSend;
    /**
     * The maximum number of emails that Amazon SES can accept from the user's account per second.  The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.
     */
    MaxSendRate?: MaxSendRate;
    /**
     * The number of emails sent during the previous 24 hours.
     */
    SentLast24Hours?: SentLast24Hours;
  }


export interface GetSendStatisticsResponse {
    /**
     * A list of data points, each of which represents 15 minutes of activity.
     */
    SendDataPoints?: SendDataPointList;
  }


export interface GetTemplateRequest {
    /**
     * The name of the template you want to retrieve.
     */
    TemplateName: TemplateName;
  }


export interface GetTemplateResponse {
    Template?: Template;
  }


export interface IdentityDkimAttributes {
    /**
     * Is true if DKIM signing is enabled for email sent from the identity. It's false otherwise. The default value is true.
     */
    DkimEnabled: Enabled;
    /**
     * Describes whether Amazon SES has successfully verified the DKIM DNS records (tokens) published in the domain name's DNS. (This only applies to domain identities, not email address identities.)
     */
    DkimVerificationStatus: VerificationStatus;
    /**
     * A set of character strings that represent the domain's identity. Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by Amazon SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection process might take up to 72 hours. After successful detection, Amazon SES is able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.) For more information about creating DNS records using DKIM tokens, see the Amazon SES Developer Guide.
     */
    DkimTokens?: VerificationTokenList;
  }


export interface IdentityMailFromDomainAttributes {
    /**
     * The custom MAIL FROM domain that the identity is configured to use.
     */
    MailFromDomain: MailFromDomainName;
    /**
     * The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM domain setup. If the state is Success, Amazon SES uses the specified custom MAIL FROM domain when the verified identity sends an email. All other states indicate that Amazon SES takes the action described by BehaviorOnMXFailure.
     */
    MailFromDomainStatus: CustomMailFromStatus;
    /**
     * The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A value of UseDefaultValue indicates that if Amazon SES cannot read the required MX record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of RejectMessage indicates that if Amazon SES cannot read the required MX record, Amazon SES returns a MailFromDomainNotVerified error and does not send the email. The custom MAIL FROM setup states that result in this behavior are Pending, Failed, and TemporaryFailure.
     */
    BehaviorOnMXFailure: BehaviorOnMXFailure;
  }


export interface IdentityNotificationAttributes {
    /**
     * The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish bounce notifications.
     */
    BounceTopic: NotificationTopic;
    /**
     * The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish complaint notifications.
     */
    ComplaintTopic: NotificationTopic;
    /**
     * The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will publish delivery notifications.
     */
    DeliveryTopic: NotificationTopic;
    /**
     * Describes whether Amazon SES will forward bounce and complaint notifications as email. true indicates that Amazon SES will forward bounce and complaint notifications as email, while false indicates that bounce and complaint notifications will be published only to the specified bounce and complaint Amazon SNS topics.
     */
    ForwardingEnabled: Enabled;
    /**
     * Describes whether Amazon SES includes the original email headers in Amazon SNS notifications of type Bounce. A value of true specifies that Amazon SES will include headers in bounce notifications, and a value of false specifies that Amazon SES will not include headers in bounce notifications.
     */
    HeadersInBounceNotificationsEnabled?: Enabled;
    /**
     * Describes whether Amazon SES includes the original email headers in Amazon SNS notifications of type Complaint. A value of true specifies that Amazon SES will include headers in complaint notifications, and a value of false specifies that Amazon SES will not include headers in complaint notifications.
     */
    HeadersInComplaintNotificationsEnabled?: Enabled;
    /**
     * Describes whether Amazon SES includes the original email headers in Amazon SNS notifications of type Delivery. A value of true specifies that Amazon SES will include headers in delivery notifications, and a value of false specifies that Amazon SES will not include headers in delivery notifications.
     */
    HeadersInDeliveryNotificationsEnabled?: Enabled;
  }


export interface IdentityVerificationAttributes {
    /**
     * The verification status of the identity: "Pending", "Success", "Failed", or "TemporaryFailure".
     */
    VerificationStatus: VerificationStatus;
    /**
     * The verification token for a domain identity. Null for email address identities.
     */
    VerificationToken?: VerificationToken;
  }


export interface KinesisFirehoseDestination {
    /**
     * The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose stream.
     */
    IAMRoleARN: AmazonResourceName;
    /**
     * The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.
     */
    DeliveryStreamARN: AmazonResourceName;
  }


export interface LambdaAction {
    /**
     * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
     */
    TopicArn?: AmazonResourceName;
    /**
     * The Amazon Resource Name (ARN) of the AWS Lambda function. An example of an AWS Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction. For more information about AWS Lambda, see the AWS Lambda Developer Guide.
     */
    FunctionArn: AmazonResourceName;
    /**
     * The invocation type of the AWS Lambda function. An invocation type of RequestResponse means that the execution of the function will immediately result in a response, and a value of Event means that the function will be invoked asynchronously. The default value is Event. For information about AWS Lambda invocation types, see the AWS Lambda Developer Guide.  There is a 30-second timeout on RequestResponse invocations. You should use Event invocation in most cases. Use RequestResponse only when you want to make a mail flow decision, such as whether to stop the receipt rule or the receipt rule set.
     */
    InvocationType?: InvocationType;
  }


export interface ListConfigurationSetsRequest {
    /**
     * A token returned from a previous call to ListConfigurationSets to indicate the position of the configuration set in the configuration set list.
     */
    NextToken?: NextToken;
    /**
     * The number of configuration sets to return.
     */
    MaxItems?: MaxItems;
  }


export interface ListConfigurationSetsResponse {
    /**
     * A list of configuration sets.
     */
    ConfigurationSets?: ConfigurationSets;
    /**
     * A token indicating that there are additional configuration sets available to be listed. Pass this token to successive calls of ListConfigurationSets.
     */
    NextToken?: NextToken;
  }


export interface ListCustomVerificationEmailTemplatesRequest {
    /**
     * An array the contains the name and creation time stamp for each template in your Amazon SES account.
     */
    NextToken?: NextToken;
    /**
     * The maximum number of custom verification email templates to return. This value must be at least 1 and less than or equal to 50. If you do not specify a value, or if you specify a value less than 1 or greater than 50, the operation will return up to 50 results.
     */
    MaxResults?: MaxResults;
  }


export interface ListCustomVerificationEmailTemplatesResponse {
    /**
     * A list of the custom verification email templates that exist in your account.
     */
    CustomVerificationEmailTemplates?: CustomVerificationEmailTemplates;
    /**
     * A token indicating that there are additional custom verification email templates available to be listed. Pass this token to a subsequent call to ListTemplates to retrieve the next 50 custom verification email templates.
     */
    NextToken?: NextToken;
  }


export interface ListIdentitiesRequest {
    /**
     * The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.
     */
    IdentityType?: IdentityType;
    /**
     * The token to use for pagination.
     */
    NextToken?: NextToken;
    /**
     * The maximum number of identities per page. Possible values are 1-1000 inclusive.
     */
    MaxItems?: MaxItems;
  }


export interface ListIdentitiesResponse {
    /**
     * A list of identities.
     */
    Identities: IdentityList;
    /**
     * The token used for pagination.
     */
    NextToken?: NextToken;
  }


export interface ListIdentityPoliciesRequest {
    /**
     * The identity that is associated with the policy for which the policies will be listed. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. To successfully call this API, you must own the identity.
     */
    Identity: Identity;
  }


export interface ListIdentityPoliciesResponse {
    /**
     * A list of names of policies that apply to the specified identity.
     */
    PolicyNames: PolicyNameList;
  }


export interface ListReceiptFiltersRequest {
  }


export interface ListReceiptFiltersResponse {
    /**
     * A list of IP address filter data structures, which each consist of a name, an IP address range, and whether to allow or block mail from it.
     */
    Filters?: ReceiptFilterList;
  }


export interface ListReceiptRuleSetsRequest {
    /**
     * A token returned from a previous call to ListReceiptRuleSets to indicate the position in the receipt rule set list.
     */
    NextToken?: NextToken;
  }


export interface ListReceiptRuleSetsResponse {
    /**
     * The metadata for the currently active receipt rule set. The metadata consists of the rule set name and the timestamp of when the rule set was created.
     */
    RuleSets?: ReceiptRuleSetsLists;
    /**
     * A token indicating that there are additional receipt rule sets available to be listed. Pass this token to successive calls of ListReceiptRuleSets to retrieve up to 100 receipt rule sets at a time.
     */
    NextToken?: NextToken;
  }


export interface ListTemplatesRequest {
    /**
     * A token returned from a previous call to ListTemplates to indicate the position in the list of email templates.
     */
    NextToken?: NextToken;
    /**
     * The maximum number of templates to return. This value must be at least 1 and less than or equal to 10. If you do not specify a value, or if you specify a value less than 1 or greater than 10, the operation will return up to 10 results.
     */
    MaxItems?: MaxItems;
  }


export interface ListTemplatesResponse {
    /**
     * An array the contains the name and creation time stamp for each template in your Amazon SES account.
     */
    TemplatesMetadata?: TemplateMetadataList;
    /**
     * A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent call to ListTemplates to retrieve the next 50 email templates.
     */
    NextToken?: NextToken;
  }


export interface ListVerifiedEmailAddressesResponse {
    /**
     * A list of email addresses that have been verified.
     */
    VerifiedEmailAddresses?: AddressList;
  }


export interface Message {
    /**
     * The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
     */
    Subject: Content;
    /**
     * The message body.
     */
    Body: Body;
  }


export interface MessageDsn {
    /**
     * The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). The default value is dns; inbound-smtp.[region].amazonaws.com.
     */
    ReportingMta: ReportingMta;
    /**
     * When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
     */
    ArrivalDate?: ArrivalDate;
    /**
     * Additional X-headers to include in the DSN.
     */
    ExtensionFields?: ExtensionFieldList;
  }


export interface MessageTag {
    /**
     * The name of the tag. The name must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain less than 256 characters.
     */
    Name: MessageTagName;
    /**
     * The value of the tag. The value must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Contain less than 256 characters.
     */
    Value: MessageTagValue;
  }


export interface PutConfigurationSetDeliveryOptionsRequest {
    /**
     * The name of the configuration set that you want to specify the delivery options for.
     */
    ConfigurationSetName: ConfigurationSetName;
    /**
     * Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS).
     */
    DeliveryOptions?: DeliveryOptions;
  }


export interface PutConfigurationSetDeliveryOptionsResponse {
  }


export interface PutIdentityPolicyRequest {
    /**
     * The identity that the policy will apply to. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com. To successfully call this API, you must own the identity.
     */
    Identity: Identity;
    /**
     * The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
     */
    PolicyName: PolicyName;
    /**
     * The text of the policy in JSON format. The policy cannot exceed 4 KB. For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
     */
    Policy: Policy;
  }


export interface PutIdentityPolicyResponse {
  }


export interface RawMessage {
    /**
     * The raw data of the message. This data needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an AWS SDK, the SDK takes care of the base 64-encoding for you. In all cases, the client must ensure that the message format complies with Internet email standards regarding email header fields, MIME types, and MIME encoding. The To:, CC:, and BCC: headers in the raw message can contain a group list. If you are using SendRawEmail with sending authorization, you can include X-headers in the raw message to specify the "Source," "From," and "Return-Path" addresses. For more information, see the documentation for SendRawEmail.   Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email.  For more information, go to the Amazon SES Developer Guide.
     */
    Data: RawMessageData;
  }


export interface ReceiptAction {
    /**
     * Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
     */
    S3Action?: S3Action;
    /**
     * Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
     */
    BounceAction?: BounceAction;
    /**
     * Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.
     */
    WorkmailAction?: WorkmailAction;
    /**
     * Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
     */
    LambdaAction?: LambdaAction;
    /**
     * Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
     */
    StopAction?: StopAction;
    /**
     * Adds a header to the received email.
     */
    AddHeaderAction?: AddHeaderAction;
    /**
     * Publishes the email content within a notification to Amazon SNS.
     */
    SNSAction?: SNSAction;
  }


export interface ReceiptFilter {
    /**
     * The name of the IP address filter. The name must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Start and end with a letter or number.   Contain less than 64 characters.
     */
    Name: ReceiptFilterName;
    /**
     * A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
     */
    IpFilter: ReceiptIpFilter;
  }


export interface ReceiptIpFilter {
    /**
     * Indicates whether to block or allow incoming mail from the specified IP addresses.
     */
    Policy: ReceiptFilterPolicy;
    /**
     * A single IP address or a range of IP addresses that you want to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example of a single email address is 10.0.0.1. An example of a range of IP addresses is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317.
     */
    Cidr: Cidr;
  }


export interface ReceiptRule {
    /**
     * The name of the receipt rule. The name must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Start and end with a letter or number.   Contain less than 64 characters.
     */
    Name: ReceiptRuleName;
    /**
     * If true, the receipt rule is active. The default value is false.
     */
    Enabled?: Enabled;
    /**
     * Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to Require, Amazon SES will bounce emails that are not received over TLS. The default is Optional.
     */
    TlsPolicy?: TlsPolicy;
    /**
     * The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule will match all recipients under all verified domains.
     */
    Recipients?: RecipientsList;
    /**
     * An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.
     */
    Actions?: ReceiptActionsList;
    /**
     * If true, then messages that this receipt rule applies to are scanned for spam and viruses. The default value is false.
     */
    ScanEnabled?: Enabled;
  }


export interface ReceiptRuleSetMetadata {
    /**
     * The name of the receipt rule set. The name must:   This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).   Start and end with a letter or number.   Contain less than 64 characters.
     */
    Name?: ReceiptRuleSetName;
    /**
     * The date and time the receipt rule set was created.
     */
    CreatedTimestamp?: Timestamp;
  }


export interface RecipientDsnFields {
    /**
     * The email address that the message was ultimately delivered to. This corresponds to the Final-Recipient in the DSN. If not specified, FinalRecipient will be set to the Recipient specified in the BouncedRecipientInfo structure. Either FinalRecipient or the recipient in BouncedRecipientInfo must be a recipient of the original bounced message.  Do not prepend the FinalRecipient email address with rfc 822;, as described in RFC 3798.
     */
    FinalRecipient?: Address;
    /**
     * The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
     */
    Action: DsnAction;
    /**
     * The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). This parameter typically applies only to propagating synchronous bounces.
     */
    RemoteMta?: RemoteMta;
    /**
     * The status code that indicates what went wrong. This is required by RFC 3464.
     */
    Status: DsnStatus;
    /**
     * An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
     */
    DiagnosticCode?: DiagnosticCode;
    /**
     * The time the final delivery attempt was made, in RFC 822 date-time format.
     */
    LastAttemptDate?: LastAttemptDate;
    /**
     * Additional X-headers to include in the DSN.
     */
    ExtensionFields?: ExtensionFieldList;
  }


export interface ReorderReceiptRuleSetRequest {
    /**
     * The name of the receipt rule set to reorder.
     */
    RuleSetName: ReceiptRuleSetName;
    /**
     * A list of the specified receipt rule set's receipt rules in the order that you want to put them.
     */
    RuleNames: ReceiptRuleNamesList;
  }


export interface ReorderReceiptRuleSetResponse {
  }


export interface ReputationOptions {
    /**
     * Describes whether email sending is enabled or disabled for the configuration set. If the value is true, then Amazon SES will send emails that use the configuration set. If the value is false, Amazon SES will not send emails that use the configuration set. The default value is true. You can change this setting using UpdateConfigurationSetSendingEnabled.
     */
    SendingEnabled?: Enabled;
    /**
     * Describes whether or not Amazon SES publishes reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. If the value is true, reputation metrics are published. If the value is false, reputation metrics are not published. The default value is false.
     */
    ReputationMetricsEnabled?: Enabled;
    /**
     * The date and time at which the reputation metrics for the configuration set were last reset. Resetting these metrics is known as a fresh start. When you disable email sending for a configuration set using UpdateConfigurationSetSendingEnabled and later re-enable it, the reputation metrics for the configuration set (but not for the entire Amazon SES account) are reset. If email sending for the configuration set has never been disabled and later re-enabled, the value of this attribute is null.
     */
    LastFreshStart?: LastFreshStart;
  }


export interface S3Action {
    /**
     * The ARN of the Amazon SNS topic to notify when the message is saved to the Amazon S3 bucket. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
     */
    TopicArn?: AmazonResourceName;
    /**
     * The name of the Amazon S3 bucket that incoming email will be saved to.
     */
    BucketName: S3BucketName;
    /**
     * The key prefix of the Amazon S3 bucket. The key prefix is similar to a directory name that enables you to store similar data under the same directory in a bucket.
     */
    ObjectKeyPrefix?: S3KeyPrefix;
    /**
     * The customer master key that Amazon SES should use to encrypt your emails before saving them to the Amazon S3 bucket. You can use the default master key or a custom master key you created in AWS KMS as follows:   To use the default master key, provide an ARN in the form of arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses. For example, if your AWS account ID is 123456789012 and you want to use the default master key in the US West (Oregon) region, the ARN of the default master key would be arn:aws:kms:us-west-2:123456789012:alias/aws/ses. If you use the default master key, you don't need to perform any extra steps to give Amazon SES permission to use the key.   To use a custom master key you created in AWS KMS, provide the ARN of the master key and ensure that you add a statement to your key's policy to give Amazon SES permission to use it. For more information about giving permissions, see the Amazon SES Developer Guide.   For more information about key policies, see the AWS KMS Developer Guide. If you do not specify a master key, Amazon SES will not encrypt your emails.  Your mail is encrypted by Amazon SES using the Amazon S3 encryption client before the mail is submitted to Amazon S3 for storage. It is not encrypted using Amazon S3 server-side encryption. This means that you must use the Amazon S3 encryption client to decrypt the email after retrieving it from Amazon S3, as the service has no access to use your AWS KMS keys for decryption. This encryption client is currently available with the AWS SDK for Java and AWS SDK for Ruby only. For more information about client-side encryption using AWS KMS master keys, see the Amazon S3 Developer Guide.
     */
    KmsKeyArn?: AmazonResourceName;
  }


export interface SNSAction {
    /**
     * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
     */
    TopicArn: AmazonResourceName;
    /**
     * The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not preserve all special characters when a message was encoded with a different encoding format. Base64 preserves all special characters. The default value is UTF-8.
     */
    Encoding?: SNSActionEncoding;
  }


export interface SNSDestination {
    /**
     * The ARN of the Amazon SNS topic that email sending events will be published to. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
     */
    TopicARN: AmazonResourceName;
  }


export interface SendBounceRequest {
    /**
     * The message ID of the message to be bounced.
     */
    OriginalMessageId: MessageId;
    /**
     * The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.
     */
    BounceSender: Address;
    /**
     * Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.
     */
    Explanation?: Explanation;
    /**
     * Message-related DSN fields. If not specified, Amazon SES will choose the values.
     */
    MessageDsn?: MessageDsn;
    /**
     * A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list.
     */
    BouncedRecipientInfoList: BouncedRecipientInfoList;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide.
     */
    BounceSenderArn?: AmazonResourceName;
  }


export interface SendBounceResponse {
    /**
     * The message ID of the bounce message.
     */
    MessageId?: MessageId;
  }


export interface SendBulkTemplatedEmailRequest {
    /**
     * The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide. If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the SourceArn parameter. For more information about sending authorization, see the Amazon SES Developer Guide.  Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the local part of a source email address (the part of the email address that precedes the @ sign) may only contain 7-bit ASCII characters. If the domain part of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in RFC3492. The sender name (also known as the friendly name) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in RFC 2047. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=.
     */
    Source: Address;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
     */
    SourceArn?: AmazonResourceName;
    /**
     * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.
     */
    ReplyToAddresses?: AddressList;
    /**
     * The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the ReturnPath parameter. The ReturnPath parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.
     */
    ReturnPath?: Address;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
     */
    ReturnPathArn?: AmazonResourceName;
    /**
     * The name of the configuration set to use when you send an email using SendBulkTemplatedEmail.
     */
    ConfigurationSetName?: ConfigurationSetName;
    /**
     * A list of tags, in the form of name/value pairs, to apply to an email that you send to a destination using SendBulkTemplatedEmail.
     */
    DefaultTags?: MessageTagList;
    /**
     * The template to use when sending this email.
     */
    Template: TemplateName;
    /**
     * The ARN of the template to use when sending this email.
     */
    TemplateArn?: AmazonResourceName;
    /**
     * A list of replacement values to apply to the template when replacement data is not specified in a Destination object. These values act as a default or fallback option when no other data is available. The template data is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
     */
    DefaultTemplateData?: TemplateData;
    /**
     * One or more Destination objects. All of the recipients in a Destination will receive the same version of the email. You can specify up to 50 Destination objects within a Destinations array.
     */
    Destinations: BulkEmailDestinationList;
  }


export interface SendBulkTemplatedEmailResponse {
    /**
     * The unique message identifier returned from the SendBulkTemplatedEmail action.
     */
    Status: BulkEmailDestinationStatusList;
  }


export interface SendCustomVerificationEmailRequest {
    /**
     * The email address to verify.
     */
    EmailAddress: Address;
    /**
     * The name of the custom verification email template to use when sending the verification email.
     */
    TemplateName: TemplateName;
    /**
     * Name of a configuration set to use when sending the verification email.
     */
    ConfigurationSetName?: ConfigurationSetName;
  }


export interface SendCustomVerificationEmailResponse {
    /**
     * The unique message identifier returned from the SendCustomVerificationEmail operation.
     */
    MessageId?: MessageId;
  }


export interface SendDataPoint {
    /**
     * Time of the data point.
     */
    Timestamp?: Timestamp;
    /**
     * Number of emails that have been sent.
     */
    DeliveryAttempts?: Counter;
    /**
     * Number of emails that have bounced.
     */
    Bounces?: Counter;
    /**
     * Number of unwanted emails that were rejected by recipients.
     */
    Complaints?: Counter;
    /**
     * Number of emails rejected by Amazon SES.
     */
    Rejects?: Counter;
  }


export interface SendEmailRequest {
    /**
     * The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide. If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the SourceArn parameter. For more information about sending authorization, see the Amazon SES Developer Guide.  Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the local part of a source email address (the part of the email address that precedes the @ sign) may only contain 7-bit ASCII characters. If the domain part of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in RFC3492. The sender name (also known as the friendly name) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in RFC 2047. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=.
     */
    Source: Address;
    /**
     * The destination for this email, composed of To:, CC:, and BCC: fields.
     */
    Destination: Destination;
    /**
     * The message to be sent.
     */
    Message: Message;
    /**
     * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.
     */
    ReplyToAddresses?: AddressList;
    /**
     * The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the ReturnPath parameter. The ReturnPath parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.
     */
    ReturnPath?: Address;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
     */
    SourceArn?: AmazonResourceName;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
     */
    ReturnPathArn?: AmazonResourceName;
    /**
     * A list of tags, in the form of name/value pairs, to apply to an email that you send using SendEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
     */
    Tags?: MessageTagList;
    /**
     * The name of the configuration set to use when you send an email using SendEmail.
     */
    ConfigurationSetName?: ConfigurationSetName;
  }


export interface SendEmailResponse {
    /**
     * The unique message identifier returned from the SendEmail action.
     */
    MessageId: MessageId;
  }


export interface SendRawEmailRequest {
    /**
     * The identity's email address. If you do not provide a value for this parameter, you must specify a "From" address in the raw text of the message. (You can also specify both.)  Amazon SES does not support the SMTPUTF8 extension, as described inRFC6531. For this reason, the local part of a source email address (the part of the email address that precedes the @ sign) may only contain 7-bit ASCII characters. If the domain part of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in RFC3492. The sender name (also known as the friendly name) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in RFC 2047. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=.  If you specify the Source parameter and have feedback forwarding enabled, then bounces and complaints will be sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message.
     */
    Source?: Address;
    /**
     * A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.
     */
    Destinations?: AddressList;
    /**
     * The raw email message itself. The message has to meet the following criteria:   The message has to contain a header and a body, separated by a blank line.   All of the required header fields must be present in the message.   Each part of a multipart MIME message must be formatted properly.   Attachments must be of a content type that Amazon SES supports. For a list on unsupported content types, see Unsupported Attachment Types in the Amazon SES Developer Guide.   The entire message must be base64-encoded.   If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, we highly recommend that you encode that content. For more information, see Sending Raw Email in the Amazon SES Developer Guide.   Per RFC 5321, the maximum length of each line of text, including the <CRLF>, must not exceed 1,000 characters.
     */
    RawMessage: RawMessage;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to specify a particular "From" address in the header of the raw email. Instead of using this parameter, you can use the X-header X-SES-FROM-ARN in the raw message of the email. If you use both the FromArn parameter and the corresponding X-header, Amazon SES uses the value of the FromArn parameter.  For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide.
     */
    FromArn?: AmazonResourceName;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com. Instead of using this parameter, you can use the X-header X-SES-SOURCE-ARN in the raw message of the email. If you use both the SourceArn parameter and the corresponding X-header, Amazon SES uses the value of the SourceArn parameter.  For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide.
     */
    SourceArn?: AmazonResourceName;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com. Instead of using this parameter, you can use the X-header X-SES-RETURN-PATH-ARN in the raw message of the email. If you use both the ReturnPathArn parameter and the corresponding X-header, Amazon SES uses the value of the ReturnPathArn parameter.  For information about when to use this parameter, see the description of SendRawEmail in this guide, or see the Amazon SES Developer Guide.
     */
    ReturnPathArn?: AmazonResourceName;
    /**
     * A list of tags, in the form of name/value pairs, to apply to an email that you send using SendRawEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
     */
    Tags?: MessageTagList;
    /**
     * The name of the configuration set to use when you send an email using SendRawEmail.
     */
    ConfigurationSetName?: ConfigurationSetName;
  }


export interface SendRawEmailResponse {
    /**
     * The unique message identifier returned from the SendRawEmail action.
     */
    MessageId: MessageId;
  }


export interface SendTemplatedEmailRequest {
    /**
     * The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the Amazon SES Developer Guide. If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the SourceArn parameter. For more information about sending authorization, see the Amazon SES Developer Guide.  Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the local part of a source email address (the part of the email address that precedes the @ sign) may only contain 7-bit ASCII characters. If the domain part of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in RFC3492. The sender name (also known as the friendly name) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described inRFC 2047. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=.
     */
    Source: Address;
    /**
     * The destination for this email, composed of To:, CC:, and BCC: fields. A Destination can include up to 50 recipients across these three fields.
     */
    Destination: Destination;
    /**
     * The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.
     */
    ReplyToAddresses?: AddressList;
    /**
     * The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the ReturnPath parameter. The ReturnPath parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.
     */
    ReturnPath?: Address;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to send from user@example.com, then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the Source to be user@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
     */
    SourceArn?: AmazonResourceName;
    /**
     * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the ReturnPath parameter. For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the ReturnPath to be feedback@example.com. For more information about sending authorization, see the Amazon SES Developer Guide.
     */
    ReturnPathArn?: AmazonResourceName;
    /**
     * A list of tags, in the form of name/value pairs, to apply to an email that you send using SendTemplatedEmail. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.
     */
    Tags?: MessageTagList;
    /**
     * The name of the configuration set to use when you send an email using SendTemplatedEmail.
     */
    ConfigurationSetName?: ConfigurationSetName;
    /**
     * The template to use when sending this email.
     */
    Template: TemplateName;
    /**
     * The ARN of the template to use when sending this email.
     */
    TemplateArn?: AmazonResourceName;
    /**
     * A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
     */
    TemplateData: TemplateData;
  }


export interface SendTemplatedEmailResponse {
    /**
     * The unique message identifier returned from the SendTemplatedEmail action.
     */
    MessageId: MessageId;
  }


export interface SetActiveReceiptRuleSetRequest {
    /**
     * The name of the receipt rule set to make active. Setting this value to null disables all email receiving.
     */
    RuleSetName?: ReceiptRuleSetName;
  }


export interface SetActiveReceiptRuleSetResponse {
  }


export interface SetIdentityDkimEnabledRequest {
    /**
     * The identity for which DKIM signing should be enabled or disabled.
     */
    Identity: Identity;
    /**
     * Sets whether DKIM signing is enabled for an identity. Set to true to enable DKIM signing for this identity; false to disable it.
     */
    DkimEnabled: Enabled;
  }


export interface SetIdentityDkimEnabledResponse {
  }


export interface SetIdentityFeedbackForwardingEnabledRequest {
    /**
     * The identity for which to set bounce and complaint notification forwarding. Examples: user@example.com, example.com.
     */
    Identity: Identity;
    /**
     * Sets whether Amazon SES will forward bounce and complaint notifications as email. true specifies that Amazon SES will forward bounce and complaint notifications as email, in addition to any Amazon SNS topic publishing otherwise specified. false specifies that Amazon SES will publish bounce and complaint notifications only through Amazon SNS. This value can only be set to false when Amazon SNS topics are set for both Bounce and Complaint notification types.
     */
    ForwardingEnabled: Enabled;
  }


export interface SetIdentityFeedbackForwardingEnabledResponse {
  }


export interface SetIdentityHeadersInNotificationsEnabledRequest {
    /**
     * The identity for which to enable or disable headers in notifications. Examples: user@example.com, example.com.
     */
    Identity: Identity;
    /**
     * The notification type for which to enable or disable headers in notifications.
     */
    NotificationType: NotificationType;
    /**
     * Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified notification type. A value of true specifies that Amazon SES will include headers in notifications, and a value of false specifies that Amazon SES will not include headers in notifications. This value can only be set when NotificationType is already set to use a particular Amazon SNS topic.
     */
    Enabled: Enabled;
  }


export interface SetIdentityHeadersInNotificationsEnabledResponse {
  }


export interface SetIdentityMailFromDomainRequest {
    /**
     * The verified identity for which you want to enable or disable the specified custom MAIL FROM domain.
     */
    Identity: Identity;
    /**
     * The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a "From" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the Amazon SES Developer Guide), and 3) not be used to receive emails. A value of null disables the custom MAIL FROM setting for the identity.
     */
    MailFromDomain?: MailFromDomainName;
    /**
     * The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose UseDefaultValue, Amazon SES will use amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose RejectMessage, Amazon SES will return a MailFromDomainNotVerified error and not send the email. The action specified in BehaviorOnMXFailure is taken when the custom MAIL FROM domain setup is in the Pending, Failed, and TemporaryFailure states.
     */
    BehaviorOnMXFailure?: BehaviorOnMXFailure;
  }


export interface SetIdentityMailFromDomainResponse {
  }


export interface SetIdentityNotificationTopicRequest {
    /**
     * The identity (email address or domain) that you want to set the Amazon SNS topic for.  You can only specify a verified identity for this parameter.  You can specify an identity by using its name or by using its Amazon Resource Name (ARN). The following examples are all valid identities: sender@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
     */
    Identity: Identity;
    /**
     * The type of notifications that will be published to the specified Amazon SNS topic.
     */
    NotificationType: NotificationType;
    /**
     * The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, SnsTopic is cleared and publishing is disabled.
     */
    SnsTopic?: NotificationTopic;
  }


export interface SetIdentityNotificationTopicResponse {
  }


export interface SetReceiptRulePositionRequest {
    /**
     * The name of the receipt rule set that contains the receipt rule to reposition.
     */
    RuleSetName: ReceiptRuleSetName;
    /**
     * The name of the receipt rule to reposition.
     */
    RuleName: ReceiptRuleName;
    /**
     * The name of the receipt rule after which to place the specified receipt rule.
     */
    After?: ReceiptRuleName;
  }


export interface SetReceiptRulePositionResponse {
  }


export interface StopAction {
    /**
     * The scope of the StopAction. The only acceptable value is RuleSet.
     */
    Scope: StopScope;
    /**
     * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
     */
    TopicArn?: AmazonResourceName;
  }