-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-glue): This change is for releasing TestConnection api SD…
…K model
- Loading branch information
awstools
committed
Sep 19, 2024
1 parent
97088ae
commit ddea9dd
Showing
11 changed files
with
470 additions
and
91 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
144 changes: 144 additions & 0 deletions
144
clients/client-glue/src/commands/TestConnectionCommand.ts
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,144 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; | ||
import { TestConnectionRequest, TestConnectionResponse } from "../models/models_2"; | ||
import { de_TestConnectionCommand, se_TestConnectionCommand } from "../protocols/Aws_json1_1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link TestConnectionCommand}. | ||
*/ | ||
export interface TestConnectionCommandInput extends TestConnectionRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link TestConnectionCommand}. | ||
*/ | ||
export interface TestConnectionCommandOutput extends TestConnectionResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Tests a connection to a service to validate the service credentials that you provide.</p> | ||
* <p>You can either provide an existing connection name or a <code>TestConnectionInput</code> for testing a non-existing connection input. Providing both at the same time will cause an error.</p> | ||
* <p>If the action is successful, the service sends back an HTTP 200 response.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { GlueClient, TestConnectionCommand } from "@aws-sdk/client-glue"; // ES Modules import | ||
* // const { GlueClient, TestConnectionCommand } = require("@aws-sdk/client-glue"); // CommonJS import | ||
* const client = new GlueClient(config); | ||
* const input = { // TestConnectionRequest | ||
* ConnectionName: "STRING_VALUE", | ||
* TestConnectionInput: { // TestConnectionInput | ||
* ConnectionType: "JDBC" || "SFTP" || "MONGODB" || "KAFKA" || "NETWORK" || "MARKETPLACE" || "CUSTOM" || "SALESFORCE" || "VIEW_VALIDATION_REDSHIFT" || "VIEW_VALIDATION_ATHENA", // required | ||
* ConnectionProperties: { // ConnectionProperties // required | ||
* "<keys>": "STRING_VALUE", | ||
* }, | ||
* AuthenticationConfiguration: { // AuthenticationConfigurationInput | ||
* AuthenticationType: "BASIC" || "OAUTH2" || "CUSTOM", | ||
* SecretArn: "STRING_VALUE", | ||
* OAuth2Properties: { // OAuth2PropertiesInput | ||
* OAuth2GrantType: "AUTHORIZATION_CODE" || "CLIENT_CREDENTIALS" || "JWT_BEARER", | ||
* OAuth2ClientApplication: { // OAuth2ClientApplication | ||
* UserManagedClientApplicationClientId: "STRING_VALUE", | ||
* AWSManagedClientApplicationReference: "STRING_VALUE", | ||
* }, | ||
* TokenUrl: "STRING_VALUE", | ||
* TokenUrlParametersMap: { // TokenUrlParametersMap | ||
* "<keys>": "STRING_VALUE", | ||
* }, | ||
* AuthorizationCodeProperties: { // AuthorizationCodeProperties | ||
* AuthorizationCode: "STRING_VALUE", | ||
* RedirectUri: "STRING_VALUE", | ||
* }, | ||
* }, | ||
* }, | ||
* }, | ||
* }; | ||
* const command = new TestConnectionCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param TestConnectionCommandInput - {@link TestConnectionCommandInput} | ||
* @returns {@link TestConnectionCommandOutput} | ||
* @see {@link TestConnectionCommandInput} for command's `input` shape. | ||
* @see {@link TestConnectionCommandOutput} for command's `response` shape. | ||
* @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>Access to a resource was denied.</p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p>The <code>CreatePartitions</code> API was called on a table that has indexes enabled. </p> | ||
* | ||
* @throws {@link EntityNotFoundException} (client fault) | ||
* <p>A specified entity does not exist</p> | ||
* | ||
* @throws {@link FederationSourceException} (client fault) | ||
* <p>A federation source failed.</p> | ||
* | ||
* @throws {@link GlueEncryptionException} (client fault) | ||
* <p>An encryption operation failed.</p> | ||
* | ||
* @throws {@link InternalServiceException} (server fault) | ||
* <p>An internal service error occurred.</p> | ||
* | ||
* @throws {@link InvalidInputException} (client fault) | ||
* <p>The input provided was not valid.</p> | ||
* | ||
* @throws {@link OperationTimeoutException} (client fault) | ||
* <p>The operation timed out.</p> | ||
* | ||
* @throws {@link ResourceNumberLimitExceededException} (client fault) | ||
* <p>A resource numerical limit was exceeded.</p> | ||
* | ||
* @throws {@link GlueServiceException} | ||
* <p>Base exception class for all service exceptions from Glue service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class TestConnectionCommand extends $Command | ||
.classBuilder< | ||
TestConnectionCommandInput, | ||
TestConnectionCommandOutput, | ||
GlueClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: GlueClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AWSGlue", "TestConnection", {}) | ||
.n("GlueClient", "TestConnectionCommand") | ||
.f(void 0, void 0) | ||
.ser(se_TestConnectionCommand) | ||
.de(de_TestConnectionCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: TestConnectionRequest; | ||
output: {}; | ||
}; | ||
sdk: { | ||
input: TestConnectionCommandInput; | ||
output: TestConnectionCommandOutput; | ||
}; | ||
}; | ||
} |
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
Oops, something went wrong.