-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-imagebuilder): Added support for EC2 Image Builder's inte…
…gration with AWS Marketplace for Marketplace components.
- Loading branch information
awstools
committed
Dec 2, 2024
1 parent
4ed232e
commit 967f0c2
Showing
15 changed files
with
570 additions
and
25 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
119 changes: 119 additions & 0 deletions
119
clients/client-imagebuilder/src/commands/GetMarketplaceResourceCommand.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,119 @@ | ||
// 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 { ImagebuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ImagebuilderClient"; | ||
import { GetMarketplaceResourceRequest, GetMarketplaceResourceResponse } from "../models/models_0"; | ||
import { de_GetMarketplaceResourceCommand, se_GetMarketplaceResourceCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link GetMarketplaceResourceCommand}. | ||
*/ | ||
export interface GetMarketplaceResourceCommandInput extends GetMarketplaceResourceRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link GetMarketplaceResourceCommand}. | ||
*/ | ||
export interface GetMarketplaceResourceCommandOutput extends GetMarketplaceResourceResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Verify the subscription and perform resource dependency checks on the requested | ||
* Amazon Web Services Marketplace resource. For Amazon Web Services Marketplace components, the response contains fields to download the | ||
* components and their artifacts.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { ImagebuilderClient, GetMarketplaceResourceCommand } from "@aws-sdk/client-imagebuilder"; // ES Modules import | ||
* // const { ImagebuilderClient, GetMarketplaceResourceCommand } = require("@aws-sdk/client-imagebuilder"); // CommonJS import | ||
* const client = new ImagebuilderClient(config); | ||
* const input = { // GetMarketplaceResourceRequest | ||
* resourceType: "COMPONENT_DATA" || "COMPONENT_ARTIFACT", // required | ||
* resourceArn: "STRING_VALUE", // required | ||
* resourceLocation: "STRING_VALUE", | ||
* }; | ||
* const command = new GetMarketplaceResourceCommand(input); | ||
* const response = await client.send(command); | ||
* // { // GetMarketplaceResourceResponse | ||
* // resourceArn: "STRING_VALUE", | ||
* // url: "STRING_VALUE", | ||
* // data: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param GetMarketplaceResourceCommandInput - {@link GetMarketplaceResourceCommandInput} | ||
* @returns {@link GetMarketplaceResourceCommandOutput} | ||
* @see {@link GetMarketplaceResourceCommandInput} for command's `input` shape. | ||
* @see {@link GetMarketplaceResourceCommandOutput} for command's `response` shape. | ||
* @see {@link ImagebuilderClientResolvedConfig | config} for ImagebuilderClient's `config` shape. | ||
* | ||
* @throws {@link CallRateLimitExceededException} (client fault) | ||
* <p>You have exceeded the permitted request rate for the specific operation.</p> | ||
* | ||
* @throws {@link ClientException} (client fault) | ||
* <p>These errors are usually caused by a client action, such as using an action or | ||
* resource on behalf of a user that doesn't have permissions to use the action or | ||
* resource, or specifying an invalid resource identifier.</p> | ||
* | ||
* @throws {@link ForbiddenException} (client fault) | ||
* <p>You are not authorized to perform the requested operation.</p> | ||
* | ||
* @throws {@link InvalidRequestException} (client fault) | ||
* <p>You have requested an action that that the service doesn't support.</p> | ||
* | ||
* @throws {@link ServiceException} (server fault) | ||
* <p>This exception is thrown when the service encounters an unrecoverable | ||
* exception.</p> | ||
* | ||
* @throws {@link ServiceUnavailableException} (server fault) | ||
* <p>The service is unable to process your request at this time.</p> | ||
* | ||
* @throws {@link ImagebuilderServiceException} | ||
* <p>Base exception class for all service exceptions from Imagebuilder service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class GetMarketplaceResourceCommand extends $Command | ||
.classBuilder< | ||
GetMarketplaceResourceCommandInput, | ||
GetMarketplaceResourceCommandOutput, | ||
ImagebuilderClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: ImagebuilderClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("imagebuilder", "GetMarketplaceResource", {}) | ||
.n("ImagebuilderClient", "GetMarketplaceResourceCommand") | ||
.f(void 0, void 0) | ||
.ser(se_GetMarketplaceResourceCommand) | ||
.de(de_GetMarketplaceResourceCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: GetMarketplaceResourceRequest; | ||
output: GetMarketplaceResourceResponse; | ||
}; | ||
sdk: { | ||
input: GetMarketplaceResourceCommandInput; | ||
output: GetMarketplaceResourceCommandOutput; | ||
}; | ||
}; | ||
} |
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
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.