-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-datazone): Introduces GetEnvironmentCredentials operation…
… to SDK
- Loading branch information
awstools
committed
Jul 25, 2024
1 parent
83e5411
commit 2156a87
Showing
10 changed files
with
448 additions
and
106 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
108 changes: 108 additions & 0 deletions
108
clients/client-datazone/src/commands/GetEnvironmentCredentialsCommand.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,108 @@ | ||
// 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 { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { | ||
GetEnvironmentCredentialsInput, | ||
GetEnvironmentCredentialsOutput, | ||
GetEnvironmentCredentialsOutputFilterSensitiveLog, | ||
} from "../models/models_0"; | ||
import { de_GetEnvironmentCredentialsCommand, se_GetEnvironmentCredentialsCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link GetEnvironmentCredentialsCommand}. | ||
*/ | ||
export interface GetEnvironmentCredentialsCommandInput extends GetEnvironmentCredentialsInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link GetEnvironmentCredentialsCommand}. | ||
*/ | ||
export interface GetEnvironmentCredentialsCommandOutput extends GetEnvironmentCredentialsOutput, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Gets the credentials of an environment in Amazon DataZone.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DataZoneClient, GetEnvironmentCredentialsCommand } from "@aws-sdk/client-datazone"; // ES Modules import | ||
* // const { DataZoneClient, GetEnvironmentCredentialsCommand } = require("@aws-sdk/client-datazone"); // CommonJS import | ||
* const client = new DataZoneClient(config); | ||
* const input = { // GetEnvironmentCredentialsInput | ||
* domainIdentifier: "STRING_VALUE", // required | ||
* environmentIdentifier: "STRING_VALUE", // required | ||
* }; | ||
* const command = new GetEnvironmentCredentialsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // GetEnvironmentCredentialsOutput | ||
* // accessKeyId: "STRING_VALUE", | ||
* // secretAccessKey: "STRING_VALUE", | ||
* // sessionToken: "STRING_VALUE", | ||
* // expiration: new Date("TIMESTAMP"), | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param GetEnvironmentCredentialsCommandInput - {@link GetEnvironmentCredentialsCommandInput} | ||
* @returns {@link GetEnvironmentCredentialsCommandOutput} | ||
* @see {@link GetEnvironmentCredentialsCommandInput} for command's `input` shape. | ||
* @see {@link GetEnvironmentCredentialsCommandOutput} for command's `response` shape. | ||
* @see {@link DataZoneClientResolvedConfig | config} for DataZoneClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>You do not have sufficient access to perform this action.</p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>The request has failed because of an unknown error, exception or failure.</p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>The specified resource cannot be found.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>The request was denied due to request throttling.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>The input fails to satisfy the constraints specified by the Amazon Web Services service.</p> | ||
* | ||
* @throws {@link UnauthorizedException} (client fault) | ||
* <p>You do not have permission to perform this action.</p> | ||
* | ||
* @throws {@link DataZoneServiceException} | ||
* <p>Base exception class for all service exceptions from DataZone service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class GetEnvironmentCredentialsCommand extends $Command | ||
.classBuilder< | ||
GetEnvironmentCredentialsCommandInput, | ||
GetEnvironmentCredentialsCommandOutput, | ||
DataZoneClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: DataZoneClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("DataZone", "GetEnvironmentCredentials", {}) | ||
.n("DataZoneClient", "GetEnvironmentCredentialsCommand") | ||
.f(void 0, GetEnvironmentCredentialsOutputFilterSensitiveLog) | ||
.ser(se_GetEnvironmentCredentialsCommand) | ||
.de(de_GetEnvironmentCredentialsCommand) | ||
.build() {} |
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.