-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b41fd29
commit 6060521
Showing
11 changed files
with
60 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
import AWS from 'aws-sdk' | ||
type StackEvent = { | ||
StackId: string | ||
EventId: string | ||
StackName: string | ||
LogicalResourceId: string | ||
PhysicalResourceId: string | ||
ResourceType: string | ||
Timestamp: string | ||
ResourceStatus: string | ||
ResourceStatusReason?: string | ||
ResourceProperties?: string | ||
} | ||
|
||
export default function getCurrentStackEvents(options: { | ||
cloudformation?: AWS.CloudFormation | null | undefined | ||
awsConfig?: AWS.ConfigurationOptions | null | ||
StackName: string | ||
}): AsyncIterable<StackEvent> | ||
StackName: AWS.CloudFormation.StackName | ||
}): AsyncIterable<AWS.CloudFormation.StackEvent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
import AWS from 'aws-sdk' | ||
|
||
type StackResource = { | ||
LogicalResourceId: string | ||
PhysicalResourceId: string | ||
ResourceType: string | ||
LastUpdatedTimestamp: Date | ||
ResourceStatus: string | ||
ResourceStatusReason?: string | ||
DriftInformation: { StackResourceDriftStatus: string } | ||
} | ||
|
||
export default function getStackResources(options: { | ||
cloudformation?: AWS.CloudFormation | null | undefined | ||
awsConfig?: AWS.ConfigurationOptions | null | ||
StackName: string | ||
}): Promise<Array<StackResource>> | ||
StackName: AWS.CloudFormation.StackName | ||
}): Promise<Array<AWS.CloudFormation.StackResource>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
import AWS from 'aws-sdk' | ||
import { Writable } from 'stream' | ||
|
||
type Resource = { | ||
LogicalResourceId: string | ||
ResourceType: string | ||
ResourceStatus: string | ||
ResourceStatusReason?: string | ||
} | ||
|
||
export default function printStackResources(options: { | ||
stream?: Writable | null | undefined | ||
resources: Resource[] | ||
resources: AWS.CloudFormation.StackResource[] | ||
}): Promise<void> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,8 @@ | ||
import AWS from 'aws-sdk' | ||
|
||
export type SubnetInfo = { | ||
AvailabilityZone: string | ||
AvailabilityZoneId: string | ||
AvailableAddressCount: number | ||
CidrBlock: string | ||
DefaultForAz: boolean | ||
MapPublicIpOnLaunch: boolean | ||
MapCustomerOwnedIpOnLaunch: boolean | ||
CustomerOwnedIpv4Pool: string | ||
State: 'pending' | 'available' | ||
SubnetId: string | ||
VpcId: string | ||
OwnerId: string | ||
AssignIpv6AddressOnCreation: boolean | ||
Tags: Array<{ Key: string; Value: string }> | ||
SubnetArn: string | ||
OutpostArn: string | ||
} | ||
|
||
export function getSubnetInfo(options: { | ||
subnetId: string | ||
subnetId: AWS.EC2.SubnetId | ||
ec2?: AWS.EC2 | undefined | ||
region?: string | undefined | ||
awsConfig?: AWS.ConfigurationOptions | null | ||
}): Promise<SubnetInfo> | ||
}): Promise<AWS.EC2.Subnet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import AWS from 'aws-sdk' | ||
|
||
export function getVPCIdBySubnetId(options: { | ||
subnetId: string | ||
subnetId: AWS.EC2.SubnetId | ||
ec2?: AWS.EC2 | null | undefined | ||
region?: string | null | undefined | ||
awsConfig?: AWS.ConfigurationOptions | null | ||
}): Promise<string> | ||
}): Promise<AWS.EC2.VpcId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters