-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(clients): codegen update for runtime extensions (#5103)
- Loading branch information
Showing
1,444 changed files
with
19,430 additions
and
766 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// smithy-typescript generated code | ||
import { DefaultClientConfiguration } from "@smithy/types"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface AccessAnalyzerClientConfiguration extends DefaultClientConfiguration {} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// smithy-typescript generated code | ||
import { getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "@smithy/types"; | ||
|
||
import { AccessAnalyzerClientConfiguration } from "./clientConfiguration"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface RuntimeExtension { | ||
configureClient(clientConfiguration: AccessAnalyzerClientConfiguration): void; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface RuntimeExtensionsConfig { | ||
extensions: RuntimeExtension[]; | ||
} | ||
|
||
const asPartial = <T extends Partial<AccessAnalyzerClientConfiguration>>(t: T) => t; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => { | ||
const clientConfiguration: AccessAnalyzerClientConfiguration = { | ||
...asPartial(getDefaultClientConfiguration(runtimeConfig)), | ||
}; | ||
|
||
extensions.forEach((extension) => extension.configureClient(clientConfiguration)); | ||
|
||
return { | ||
...runtimeConfig, | ||
...resolveDefaultRuntimeConfig(clientConfiguration), | ||
}; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// smithy-typescript generated code | ||
import { DefaultClientConfiguration } from "@smithy/types"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface AccountClientConfiguration extends DefaultClientConfiguration {} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// smithy-typescript generated code | ||
import { getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "@smithy/types"; | ||
|
||
import { AccountClientConfiguration } from "./clientConfiguration"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface RuntimeExtension { | ||
configureClient(clientConfiguration: AccountClientConfiguration): void; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface RuntimeExtensionsConfig { | ||
extensions: RuntimeExtension[]; | ||
} | ||
|
||
const asPartial = <T extends Partial<AccountClientConfiguration>>(t: T) => t; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => { | ||
const clientConfiguration: AccountClientConfiguration = { | ||
...asPartial(getDefaultClientConfiguration(runtimeConfig)), | ||
}; | ||
|
||
extensions.forEach((extension) => extension.configureClient(clientConfiguration)); | ||
|
||
return { | ||
...runtimeConfig, | ||
...resolveDefaultRuntimeConfig(clientConfiguration), | ||
}; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// smithy-typescript generated code | ||
import { DefaultClientConfiguration } from "@smithy/types"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface ACMPCAClientConfiguration extends DefaultClientConfiguration {} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// smithy-typescript generated code | ||
import { getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "@smithy/types"; | ||
|
||
import { ACMPCAClientConfiguration } from "./clientConfiguration"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface RuntimeExtension { | ||
configureClient(clientConfiguration: ACMPCAClientConfiguration): void; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface RuntimeExtensionsConfig { | ||
extensions: RuntimeExtension[]; | ||
} | ||
|
||
const asPartial = <T extends Partial<ACMPCAClientConfiguration>>(t: T) => t; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => { | ||
const clientConfiguration: ACMPCAClientConfiguration = { | ||
...asPartial(getDefaultClientConfiguration(runtimeConfig)), | ||
}; | ||
|
||
extensions.forEach((extension) => extension.configureClient(clientConfiguration)); | ||
|
||
return { | ||
...runtimeConfig, | ||
...resolveDefaultRuntimeConfig(clientConfiguration), | ||
}; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// smithy-typescript generated code | ||
import { DefaultClientConfiguration } from "@smithy/types"; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export interface ACMClientConfiguration extends DefaultClientConfiguration {} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// smithy-typescript generated code | ||
import { getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "@smithy/types"; | ||
|
||
import { ACMClientConfiguration } from "./clientConfiguration"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface RuntimeExtension { | ||
configureClient(clientConfiguration: ACMClientConfiguration): void; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface RuntimeExtensionsConfig { | ||
extensions: RuntimeExtension[]; | ||
} | ||
|
||
const asPartial = <T extends Partial<ACMClientConfiguration>>(t: T) => t; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => { | ||
const clientConfiguration: ACMClientConfiguration = { | ||
...asPartial(getDefaultClientConfiguration(runtimeConfig)), | ||
}; | ||
|
||
extensions.forEach((extension) => extension.configureClient(clientConfiguration)); | ||
|
||
return { | ||
...runtimeConfig, | ||
...resolveDefaultRuntimeConfig(clientConfiguration), | ||
}; | ||
}; |
Oops, something went wrong.