clients/client-imagebuilder/README.md
AWS SDK for JavaScript Imagebuilder Client for Node.js, Browser and React Native.
<p>EC2 Image Builder is a fully managed Amazon Web Services service that makes it easier to automate the creation, management, and deployment of customized, secure, and up-to-date "golden" server images that are pre-installed and pre-configured with software and settings to meet specific IT standards.</p>To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-imagebuilderyarn add @aws-sdk/client-imagebuilderpnpm add @aws-sdk/client-imagebuilderThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the ImagebuilderClient and
the commands you need, for example ListImagesCommand:
// ES5 example
const { ImagebuilderClient, ListImagesCommand } = require("@aws-sdk/client-imagebuilder");
// ES6+ example
import { ImagebuilderClient, ListImagesCommand } from "@aws-sdk/client-imagebuilder";
To send a request:
send operation on the client, providing the command object as input.const client = new ImagebuilderClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListImagesCommand(params);
We recommend using the await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
You can also use Promise chaining.
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
The aggregated client class is exported from the same package, but without the "Client" suffix.
Imagebuilder extends ImagebuilderClient and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (ImagebuilderClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { Imagebuilder } from "@aws-sdk/client-imagebuilder";
const client = new Imagebuilder({ region: "REGION" });
// async/await.
try {
const data = await client.listImages(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listImages(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listImages(params, (err, data) => {
// process err and data.
});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
See also docs/ERROR_HANDLING.
Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-imagebuilder package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Command API Reference / Input / Output
</details> <details> <summary> CancelLifecycleExecution </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateComponent </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateContainerRecipe </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDistributionConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateImage </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateImagePipeline </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateImageRecipe </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateInfrastructureConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateLifecyclePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateWorkflow </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteComponent </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteContainerRecipe </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDistributionConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteImage </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteImagePipeline </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteImageRecipe </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteInfrastructureConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteLifecyclePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteWorkflow </summary>Command API Reference / Input / Output
</details> <details> <summary> DistributeImage </summary>Command API Reference / Input / Output
</details> <details> <summary> GetComponent </summary>Command API Reference / Input / Output
</details> <details> <summary> GetComponentPolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> GetContainerRecipe </summary>Command API Reference / Input / Output
</details> <details> <summary> GetContainerRecipePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> GetDistributionConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> GetImage </summary>Command API Reference / Input / Output
</details> <details> <summary> GetImagePipeline </summary>Command API Reference / Input / Output
</details> <details> <summary> GetImagePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> GetImageRecipe </summary>Command API Reference / Input / Output
</details> <details> <summary> GetImageRecipePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> GetInfrastructureConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> GetLifecycleExecution </summary>Command API Reference / Input / Output
</details> <details> <summary> GetLifecyclePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> GetMarketplaceResource </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWorkflow </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWorkflowExecution </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWorkflowStepExecution </summary>Command API Reference / Input / Output
</details> <details> <summary> ImportComponent </summary>Command API Reference / Input / Output
</details> <details> <summary> ImportDiskImage </summary>Command API Reference / Input / Output
</details> <details> <summary> ImportVmImage </summary>Command API Reference / Input / Output
</details> <details> <summary> ListComponentBuildVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListComponents </summary>Command API Reference / Input / Output
</details> <details> <summary> ListContainerRecipes </summary>Command API Reference / Input / Output
</details> <details> <summary> ListDistributionConfigurations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListImageBuildVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListImagePackages </summary>Command API Reference / Input / Output
</details> <details> <summary> ListImagePipelineImages </summary>Command API Reference / Input / Output
</details> <details> <summary> ListImagePipelines </summary>Command API Reference / Input / Output
</details> <details> <summary> ListImageRecipes </summary>Command API Reference / Input / Output
</details> <details> <summary> ListImages </summary>Command API Reference / Input / Output
</details> <details> <summary> ListImageScanFindingAggregations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListImageScanFindings </summary>Command API Reference / Input / Output
</details> <details> <summary> ListInfrastructureConfigurations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListLifecycleExecutionResources </summary>Command API Reference / Input / Output
</details> <details> <summary> ListLifecycleExecutions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListLifecyclePolicies </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWaitingWorkflowSteps </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWorkflowBuildVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWorkflowExecutions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWorkflows </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWorkflowStepExecutions </summary>Command API Reference / Input / Output
</details> <details> <summary> PutComponentPolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> PutContainerRecipePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> PutImagePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> PutImageRecipePolicy </summary>Command API Reference / Input / Output
</details> <details> <summary> RetryImage </summary>Command API Reference / Input / Output
</details> <details> <summary> SendWorkflowStepAction </summary>Command API Reference / Input / Output
</details> <details> <summary> StartImagePipelineExecution </summary>Command API Reference / Input / Output
</details> <details> <summary> StartResourceStateUpdate </summary>Command API Reference / Input / Output
</details> <details> <summary> TagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UntagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateDistributionConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateImagePipeline </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateInfrastructureConfiguration </summary> </details> <details> <summary> UpdateLifecyclePolicy </summary> </details>