@aws-accelerator/config
    Preparing search index...

    CustomizationsConfig / AppConfigItem / ApplicationLoadBalancerConfig / ApplicationLoadBalancerListenerConfig / AlbListenerFixedResponseConfig

    Application load balancer listener fixed response config It returns a custom HTTP response. Applicable only when type under ApplicationLoadBalancerListenerConfig | listener is fixed-response.

    fixedResponseConfig:
    statusCode: '200'
    contentType: text/plain
    messageBody: 'Hello World'
    interface IAlbListenerFixedResponseConfig {
        statusCode: string;
        contentType?: string;
        messageBody?: string;
    }
    Index

    Properties

    statusCode: string

    The content type. Valid Values: text/plain | text/css | text/html | application/javascript | application/json

    contentType?: string

    The message to send back.

    messageBody?: string

    The HTTP response code (2XX, 4XX, or 5XX).