Skip to content

Commit

Permalink
Add tags interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Mar 27, 2024
1 parent 53d53dc commit 3575ac8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This is the changelog for [AWS Architect](readme.md).
* Duplicate all .html files as cleaned files. `file.html` => `file` and `file/`, all three will work
* Fix validateTemplate so that it actually uses S3 when available.
* Add support for new status `CONFIGURATION_COMPLETE`
* Add missing `tags` properties to all interfaces.

## 6.6 ##
* Add support to `deleteWebsiteVersion(version)`
Expand Down
34 changes: 17 additions & 17 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,68 +1,70 @@
interface PackageMetadata {
export interface PackageMetadata {
name: string;
version: string;
}

interface ApiOptions {
export interface ApiOptions {
regions: string[];
deploymentBucket: string,
sourceDirectory: string,
description: string,
}

interface ContentOptions {
export interface ContentOptions {
bucket: string;
contentDirectory: string;
}

interface PublishLambdaOptions {
export interface PublishLambdaOptions {
zipFileName: string;
bucket: string;
autoHandleCompileOfSourceDirectory: boolean;
}

interface PublishZipOptions {
export interface PublishZipOptions {
zipFileName: string;
sourceDirectory: string;
}

interface StackConfiguration {
export interface StackConfiguration {
changeSetName: string;
stackName: string;
automaticallyProtectStack: boolean;
automaticallyProtectStack?: boolean;
tags?: Record<string, string>;
}

interface StackSetConfiguration {
export interface StackSetConfiguration {
changeSetName: string;
stackSetName: string;
regions: string[];
tags?: Record<string, string>;
}

interface OrganizationalStackSetConfiguration {
export interface OrganizationalStackSetConfiguration {
changeSetName: string;
stackSetName: string;
tags?: Record<string, string>;
}


interface StageDeploymentOptions {
export interface StageDeploymentOptions {
stage: string;
functionName: string;
deploymentBucketName: string;
deploymentKeyName: string;
}

interface RegexOption {
export interface RegexOption {
explicit?: string,
regex?: RegExp,
value: string | number
}

interface WebsiteDeploymentOptions {
export interface WebsiteDeploymentOptions {
cacheControlRegexMap?: RegexOption[];
contentTypeMappingOverride?: object;
}

declare class AwsArchitect {
export class AwsArchitect {
constructor(packageMetadata: PackageMetadata, apiOptions: ApiOptions, contentOptions: ContentOptions);

publishZipArchive(options: PublishZipOptions): Promise<object>;
Expand Down Expand Up @@ -99,6 +101,4 @@ declare class AwsArchitect {
// Delete a version of the website from S3
deleteWebsiteVersion(version: string): Promise<object>;
/* ****** */
}

export = AwsArchitect;
}

0 comments on commit 3575ac8

Please sign in to comment.