Sha256: 31f961b612086e5bb1b8771f01360a97daf199f300b9dfe9ee5d685573f19152

Contents?: true

Size: 1.74 KB

Versions: 35

Compression:

Stored size: 1.74 KB

Contents

export class PresignedPost {
    /**
     * The URL that should be used as the action of the form.
     */
    url: string;

    /**
     * The fields that must be included as hidden inputs on the form.
     */
    fields: PresignedPost.Fields;
}

export namespace PresignedPost {
    export interface Params {
        /**
         * The S3 bucket to which the form should upload an attached file.
         */
        Bucket?: string;

        /**
         * An array of conditions that must be met for the form upload to be
         * accepted by S3.
         */
        Conditions?: Array<{[key: string]: any}|[string, any, any]>;

        /**
         * The number of seconds for which the POST form's signed policy should be
         * valid. Defaults to 3600 (one hour).
         */
        Expires?: number;

        /**
         * A hash of form fields to include in the presigned POST form. All fields
         * (except 'key') will be included as exact match conditions in the
         * presigned policy.
         */
        Fields?: {[key: string]: any};
    }

    export interface Fields {
        /**
         * A base64-encoded policy detailing what constitutes an acceptable POST
         * upload. Composed of the conditions and expiration provided to
         * s3.createPresignedPost
         */
        Policy: string;

        /**
         * A hex-encoded HMAC of the POST policy, signed with the credentials
         * provided to the S3 client.
         */
            'X-Amz-Signature': string;

        /**
         * Additional keys that must be included in the form to be submitted. This
         * will include signature metadata as well as any fields provided to
         * s3.createPresignedPost
         */
        [key: string]: string;
    }
}

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
sumomo-0.10.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.10.4 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.10.3 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.10.2 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.10.1 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.10.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.9.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.22 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.21 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.20 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.17 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.16 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.15 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.14 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.13 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.12 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.11 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.10 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.9 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts
sumomo-0.8.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/s3/presigned_post.d.ts