feat: CORS enable button...ish still now understanding this
This commit is contained in:
@@ -508,6 +508,7 @@ export interface ApiGatewayRouteOverview {
|
||||
path: string
|
||||
method: string
|
||||
functionName: string | null
|
||||
integrationType: string | null
|
||||
}
|
||||
|
||||
export interface ApiGatewayRoutesResult {
|
||||
@@ -522,6 +523,19 @@ export interface ApiGatewayDeleteRouteInput {
|
||||
stage: string
|
||||
}
|
||||
|
||||
export interface ApiGatewayCorsInput {
|
||||
resourceId: string
|
||||
stage: string
|
||||
origin: string
|
||||
headers: string
|
||||
methods: string[]
|
||||
}
|
||||
|
||||
export interface ApiGatewayCorsResult {
|
||||
configuredMethods: string[]
|
||||
proxyMethods: string[]
|
||||
}
|
||||
|
||||
export interface S3LambdaTriggerInput {
|
||||
functionName: string
|
||||
events: string[]
|
||||
@@ -538,6 +552,10 @@ export interface S3LambdaTriggerOverview {
|
||||
suffix: string | null
|
||||
}
|
||||
|
||||
export type S3BucketWebsiteConfiguration =
|
||||
| {mode: 'index'; indexDocument: string; errorDocument: string | null}
|
||||
| {mode: 'redirect'; hostName: string; protocol: 'http' | 'https' | null}
|
||||
|
||||
export interface EventBridgeLambdaTriggerInput {
|
||||
ruleName: string
|
||||
scheduleExpression: string
|
||||
@@ -663,9 +681,13 @@ export interface CloudServiceAdapter {
|
||||
testApiGatewayRoute?(apiId: string, input: ApiGatewayTestRouteInput): Promise<ApiGatewayTestRouteResult>
|
||||
listApiGatewayRoutes?(apiId: string): Promise<ApiGatewayRoutesResult>
|
||||
deleteApiGatewayRoute?(apiId: string, input: ApiGatewayDeleteRouteInput): Promise<void>
|
||||
enableApiGatewayCors?(apiId: string, input: ApiGatewayCorsInput): Promise<ApiGatewayCorsResult>
|
||||
createS3LambdaTrigger?(bucketName: string, input: S3LambdaTriggerInput): Promise<S3LambdaTriggerOverview>
|
||||
listS3LambdaTriggers?(bucketName: string): Promise<S3LambdaTriggerOverview[]>
|
||||
deleteS3LambdaTrigger?(bucketName: string, triggerId: string): Promise<void>
|
||||
getS3BucketWebsite?(bucketName: string): Promise<S3BucketWebsiteConfiguration | null>
|
||||
putS3BucketWebsite?(bucketName: string, configuration: S3BucketWebsiteConfiguration): Promise<void>
|
||||
deleteS3BucketWebsite?(bucketName: string): Promise<void>
|
||||
createEventBridgeLambdaTrigger?(input: EventBridgeLambdaTriggerInput): Promise<EventBridgeLambdaTriggerOverview>
|
||||
listEventBridgeLambdaTriggers?(functionName: string): Promise<EventBridgeLambdaTriggerOverview[]>
|
||||
deleteEventBridgeLambdaTrigger?(functionName: string, triggerId: string): Promise<void>
|
||||
|
||||
Reference in New Issue
Block a user