Class: AWS.Imagebuilder

Inherits:
AWS.Service show all
Identifier:
imagebuilder
API Version:
2019-12-02
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

EC2 Image Builder is a fully managed AWS 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.

Sending a Request Using Imagebuilder

var imagebuilder = new AWS.Imagebuilder();
imagebuilder.cancelImageCreation(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the Imagebuilder object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var imagebuilder = new AWS.Imagebuilder({apiVersion: '2019-12-02'});

You can also set the API version globally in AWS.config.apiVersions using the imagebuilder service identifier:

AWS.config.apiVersions = {
  imagebuilder: '2019-12-02',
  // other service API versions
};

var imagebuilder = new AWS.Imagebuilder();

Version:

  • 2019-12-02

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.Imagebuilder(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a Imagebuilder object

var imagebuilder = new AWS.Imagebuilder({apiVersion: '2019-12-02'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com'.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.Imagebuilder.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.Imagebuilder.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.Imagebuilder.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

cancelImageCreation(params = {}, callback) ⇒ AWS.Request

CancelImageCreation cancels the creation of Image. This operation can only be used on images in a non-terminal state.

Service Reference:

Examples:

Calling the cancelImageCreation operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  imageBuildVersionArn: 'STRING_VALUE' /* required */
};
imagebuilder.cancelImageCreation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageBuildVersionArn — (String)

      The Amazon Resource Name (ARN) of the image whose creation you want to cancel.

    • clientToken — (String)

      The idempotency token used to make this request idempotent.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • imageBuildVersionArn — (String)

        The Amazon Resource Name (ARN) of the image whose creation has been cancelled.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createComponent(params = {}, callback) ⇒ AWS.Request

Creates a new component that can be used to build, validate, test, and assess your image.

Service Reference:

Examples:

Calling the createComponent operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  name: 'STRING_VALUE', /* required */
  platform: Windows | Linux, /* required */
  semanticVersion: 'STRING_VALUE', /* required */
  changeDescription: 'STRING_VALUE',
  data: 'STRING_VALUE',
  description: 'STRING_VALUE',
  kmsKeyId: 'STRING_VALUE',
  supportedOsVersions: [
    'STRING_VALUE',
    /* more items */
  ],
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  uri: 'STRING_VALUE'
};
imagebuilder.createComponent(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

      The name of the component.

    • semanticVersion — (String)

      The semantic version of the component. This version follows the semantic version syntax. For example, major.minor.patch. This could be versioned like software (2.0.1) or like a date (2019.12.01).

    • description — (String)

      The description of the component. Describes the contents of the component.

    • changeDescription — (String)

      The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of this component.

    • platform — (String)

      The platform of the component.

      Possible values include:
      • "Windows"
      • "Linux"
    • supportedOsVersions — (Array<String>)

      The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the parent image OS version during image recipe creation.

    • data — (String)

      The data of the component. Used to specify the data inline. Either data or uri can be used to specify the data within the component.

    • uri — (String)

      The uri of the component. Must be an S3 URL and the requester must have permission to access the S3 bucket. If you use S3, you can specify component content up to your service quota. Either data or uri can be used to specify the data within the component.

    • kmsKeyId — (String)

      The ID of the KMS key that should be used to encrypt this component.

    • tags — (map<String>)

      The tags of the component.

    • clientToken — (String)

      The idempotency token of the component.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • componentBuildVersionArn — (String)

        The Amazon Resource Name (ARN) of the component that was created by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDistributionConfiguration(params = {}, callback) ⇒ AWS.Request

Creates a new distribution configuration. Distribution configurations define and configure the outputs of your pipeline.

Service Reference:

Examples:

Calling the createDistributionConfiguration operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  distributions: [ /* required */
    {
      region: 'STRING_VALUE', /* required */
      amiDistributionConfiguration: {
        amiTags: {
          '<TagKey>': 'STRING_VALUE',
          /* '<TagKey>': ... */
        },
        description: 'STRING_VALUE',
        kmsKeyId: 'STRING_VALUE',
        launchPermission: {
          userGroups: [
            'STRING_VALUE',
            /* more items */
          ],
          userIds: [
            'STRING_VALUE',
            /* more items */
          ]
        },
        name: 'STRING_VALUE'
      },
      licenseConfigurationArns: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  name: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
imagebuilder.createDistributionConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

      The name of the distribution configuration.

    • description — (String)

      The description of the distribution configuration.

    • distributions — (Array<map>)

      The distributions of the distribution configuration.

      • regionrequired — (String)

        The target Region.

      • amiDistributionConfiguration — (map)

        The specific AMI settings (for example, launch permissions, AMI tags).

        • name — (String)

          The name of the distribution configuration.

        • description — (String)

          The description of the distribution configuration.

        • amiTags — (map<String>)

          The tags to apply to AMIs distributed to this Region.

        • kmsKeyId — (String)

          The KMS key identifier used to encrypt the distributed image.

        • launchPermission — (map)

          Launch permissions can be used to configure which AWS accounts can use the AMI to launch instances.

          • userIds — (Array<String>)

            The AWS account ID.

          • userGroups — (Array<String>)

            The name of the group.

      • licenseConfigurationArns — (Array<String>)

        The License Manager Configuration to associate with the AMI in the specified Region.

    • tags — (map<String>)

      The tags of the distribution configuration.

    • clientToken — (String)

      The idempotency token of the distribution configuration.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • distributionConfigurationArn — (String)

        The Amazon Resource Name (ARN) of the distribution configuration that was created by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createImage(params = {}, callback) ⇒ AWS.Request

Creates a new image. This request will create a new image along with all of the configured output resources defined in the distribution configuration.

Service Reference:

Examples:

Calling the createImage operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  imageRecipeArn: 'STRING_VALUE', /* required */
  infrastructureConfigurationArn: 'STRING_VALUE', /* required */
  distributionConfigurationArn: 'STRING_VALUE',
  enhancedImageMetadataEnabled: true || false,
  imageTestsConfiguration: {
    imageTestsEnabled: true || false,
    timeoutMinutes: 'NUMBER_VALUE'
  },
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
imagebuilder.createImage(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageRecipeArn — (String)

      The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.

    • distributionConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.

    • infrastructureConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.

    • imageTestsConfiguration — (map)

      The image tests configuration of the image.

      • imageTestsEnabled — (Boolean)

        Defines if tests should be executed when building this image.

      • timeoutMinutes — (Integer)

        The maximum time in minutes that tests are permitted to run.

    • enhancedImageMetadataEnabled — (Boolean)

      Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.

    • tags — (map<String>)

      The tags of the image.

    • clientToken — (String)

      The idempotency token used to make this request idempotent.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • imageBuildVersionArn — (String)

        The Amazon Resource Name (ARN) of the image that was created by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createImagePipeline(params = {}, callback) ⇒ AWS.Request

Creates a new image pipeline. Image pipelines enable you to automate the creation and distribution of images.

Service Reference:

Examples:

Calling the createImagePipeline operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  imageRecipeArn: 'STRING_VALUE', /* required */
  infrastructureConfigurationArn: 'STRING_VALUE', /* required */
  name: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  distributionConfigurationArn: 'STRING_VALUE',
  enhancedImageMetadataEnabled: true || false,
  imageTestsConfiguration: {
    imageTestsEnabled: true || false,
    timeoutMinutes: 'NUMBER_VALUE'
  },
  schedule: {
    pipelineExecutionStartCondition: EXPRESSION_MATCH_ONLY | EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE,
    scheduleExpression: 'STRING_VALUE'
  },
  status: DISABLED | ENABLED,
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
imagebuilder.createImagePipeline(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

      The name of the image pipeline.

    • description — (String)

      The description of the image pipeline.

    • imageRecipeArn — (String)

      The Amazon Resource Name (ARN) of the image recipe that will be used to configure images created by this image pipeline.

    • infrastructureConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to build images created by this image pipeline.

    • distributionConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the distribution configuration that will be used to configure and distribute images created by this image pipeline.

    • imageTestsConfiguration — (map)

      The image test configuration of the image pipeline.

      • imageTestsEnabled — (Boolean)

        Defines if tests should be executed when building this image.

      • timeoutMinutes — (Integer)

        The maximum time in minutes that tests are permitted to run.

    • enhancedImageMetadataEnabled — (Boolean)

      Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.

    • schedule — (map)

      The schedule of the image pipeline.

      • scheduleExpression — (String)

        The expression determines how often EC2 Image Builder evaluates your pipelineExecutionStartCondition.

      • pipelineExecutionStartCondition — (String)

        The condition configures when the pipeline should trigger a new image build. When the pipelineExecutionStartCondition is set to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, EC2 Image Builder will build a new image only when there are known changes pending. When it is set to EXPRESSION_MATCH_ONLY, it will build a new image every time the CRON expression matches the current time.

        Possible values include:
        • "EXPRESSION_MATCH_ONLY"
        • "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE"
    • status — (String)

      The status of the image pipeline.

      Possible values include:
      • "DISABLED"
      • "ENABLED"
    • tags — (map<String>)

      The tags of the image pipeline.

    • clientToken — (String)

      The idempotency token used to make this request idempotent.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • imagePipelineArn — (String)

        The Amazon Resource Name (ARN) of the image pipeline that was created by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createImageRecipe(params = {}, callback) ⇒ AWS.Request

Creates a new image recipe. Image recipes define how images are configured, tested, and assessed.

Service Reference:

Examples:

Calling the createImageRecipe operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  components: [ /* required */
    {
      componentArn: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  name: 'STRING_VALUE', /* required */
  parentImage: 'STRING_VALUE', /* required */
  semanticVersion: 'STRING_VALUE', /* required */
  blockDeviceMappings: [
    {
      deviceName: 'STRING_VALUE',
      ebs: {
        deleteOnTermination: true || false,
        encrypted: true || false,
        iops: 'NUMBER_VALUE',
        kmsKeyId: 'STRING_VALUE',
        snapshotId: 'STRING_VALUE',
        volumeSize: 'NUMBER_VALUE',
        volumeType: standard | io1 | gp2 | sc1 | st1
      },
      noDevice: 'STRING_VALUE',
      virtualName: 'STRING_VALUE'
    },
    /* more items */
  ],
  description: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  workingDirectory: 'STRING_VALUE'
};
imagebuilder.createImageRecipe(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

      The name of the image recipe.

    • description — (String)

      The description of the image recipe.

    • semanticVersion — (String)

      The semantic version of the image recipe.

    • components — (Array<map>)

      The components of the image recipe.

      • componentArnrequired — (String)

        The Amazon Resource Name (ARN) of the component.

    • parentImage — (String)

      The parent image of the image recipe. The value of the string can be the ARN of the parent image or an AMI ID. The format for the ARN follows this example: arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/2019.x.x. The ARN ends with /20xx.x.x, which communicates to EC2 Image Builder that you want to use the latest AMI created in 20xx (year). You can provide the specific version that you want to use, or you can use a wildcard in all of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, and the AMI must be in the same Region in which you are using Image Builder.

    • blockDeviceMappings — (Array<map>)

      The block device mappings of the image recipe.

      • deviceName — (String)

        The device to which these mappings apply.

      • ebs — (map)

        Use to manage Amazon EBS-specific configuration for this mapping.

        • encrypted — (Boolean)

          Use to configure device encryption.

        • deleteOnTermination — (Boolean)

          Use to configure delete on termination of the associated device.

        • iops — (Integer)

          Use to configure device IOPS.

        • kmsKeyId — (String)

          Use to configure the KMS key to use when encrypting the device.

        • snapshotId — (String)

          The snapshot that defines the device contents.

        • volumeSize — (Integer)

          Use to override the device's volume size.

        • volumeType — (String)

          Use to override the device's volume type.

          Possible values include:
          • "standard"
          • "io1"
          • "gp2"
          • "sc1"
          • "st1"
      • virtualName — (String)

        Use to manage instance ephemeral devices.

      • noDevice — (String)

        Use to remove a mapping from the parent image.

    • tags — (map<String>)

      The tags of the image recipe.

    • workingDirectory — (String)

      The working directory to be used during build and test workflows.

    • clientToken — (String)

      The idempotency token used to make this request idempotent.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • imageRecipeArn — (String)

        The Amazon Resource Name (ARN) of the image recipe that was created by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createInfrastructureConfiguration(params = {}, callback) ⇒ AWS.Request

Creates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.

Examples:

Calling the createInfrastructureConfiguration operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  instanceProfileName: 'STRING_VALUE', /* required */
  name: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  instanceTypes: [
    'STRING_VALUE',
    /* more items */
  ],
  keyPair: 'STRING_VALUE',
  logging: {
    s3Logs: {
      s3BucketName: 'STRING_VALUE',
      s3KeyPrefix: 'STRING_VALUE'
    }
  },
  resourceTags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  securityGroupIds: [
    'STRING_VALUE',
    /* more items */
  ],
  snsTopicArn: 'STRING_VALUE',
  subnetId: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  terminateInstanceOnFailure: true || false
};
imagebuilder.createInfrastructureConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

      The name of the infrastructure configuration.

    • description — (String)

      The description of the infrastructure configuration.

    • instanceTypes — (Array<String>)

      The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.

    • instanceProfileName — (String)

      The instance profile to associate with the instance used to customize your EC2 AMI.

    • securityGroupIds — (Array<String>)

      The security group IDs to associate with the instance used to customize your EC2 AMI.

    • subnetId — (String)

      The subnet ID in which to place the instance used to customize your EC2 AMI.

    • logging — (map)

      The logging configuration of the infrastructure configuration.

      • s3Logs — (map)

        The Amazon S3 logging configuration.

        • s3BucketName — (String)

          The Amazon S3 bucket in which to store the logs.

        • s3KeyPrefix — (String)

          The Amazon S3 path in which to store the logs.

    • keyPair — (String)

      The key pair of the infrastructure configuration. This can be used to log on to and debug the instance used to create your image.

    • terminateInstanceOnFailure — (Boolean)

      The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.

    • snsTopicArn — (String)

      The SNS topic on which to send image build events.

    • resourceTags — (map<String>)

      The tags attached to the resource created by Image Builder.

    • tags — (map<String>)

      The tags of the infrastructure configuration.

    • clientToken — (String)

      The idempotency token used to make this request idempotent.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • infrastructureConfigurationArn — (String)

        The Amazon Resource Name (ARN) of the infrastructure configuration that was created by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteComponent(params = {}, callback) ⇒ AWS.Request

Deletes a component build version.

Service Reference:

Examples:

Calling the deleteComponent operation

var params = {
  componentBuildVersionArn: 'STRING_VALUE' /* required */
};
imagebuilder.deleteComponent(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • componentBuildVersionArn — (String)

      The Amazon Resource Name (ARN) of the component build version to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • componentBuildVersionArn — (String)

        The Amazon Resource Name (ARN) of the component build version that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDistributionConfiguration(params = {}, callback) ⇒ AWS.Request

Deletes a distribution configuration.

Service Reference:

Examples:

Calling the deleteDistributionConfiguration operation

var params = {
  distributionConfigurationArn: 'STRING_VALUE' /* required */
};
imagebuilder.deleteDistributionConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the distribution configuration to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • distributionConfigurationArn — (String)

        The Amazon Resource Name (ARN) of the distribution configuration that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteImage(params = {}, callback) ⇒ AWS.Request

Deletes an image.

Service Reference:

Examples:

Calling the deleteImage operation

var params = {
  imageBuildVersionArn: 'STRING_VALUE' /* required */
};
imagebuilder.deleteImage(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageBuildVersionArn — (String)

      The Amazon Resource Name (ARN) of the image to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imageBuildVersionArn — (String)

        The Amazon Resource Name (ARN) of the image that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteImagePipeline(params = {}, callback) ⇒ AWS.Request

Deletes an image pipeline.

Service Reference:

Examples:

Calling the deleteImagePipeline operation

var params = {
  imagePipelineArn: 'STRING_VALUE' /* required */
};
imagebuilder.deleteImagePipeline(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imagePipelineArn — (String)

      The Amazon Resource Name (ARN) of the image pipeline to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imagePipelineArn — (String)

        The Amazon Resource Name (ARN) of the image pipeline that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteImageRecipe(params = {}, callback) ⇒ AWS.Request

Deletes an image recipe.

Service Reference:

Examples:

Calling the deleteImageRecipe operation

var params = {
  imageRecipeArn: 'STRING_VALUE' /* required */
};
imagebuilder.deleteImageRecipe(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageRecipeArn — (String)

      The Amazon Resource Name (ARN) of the image recipe to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imageRecipeArn — (String)

        The Amazon Resource Name (ARN) of the image recipe that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteInfrastructureConfiguration(params = {}, callback) ⇒ AWS.Request

Deletes an infrastructure configuration.

Examples:

Calling the deleteInfrastructureConfiguration operation

var params = {
  infrastructureConfigurationArn: 'STRING_VALUE' /* required */
};
imagebuilder.deleteInfrastructureConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • infrastructureConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the infrastructure configuration to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • infrastructureConfigurationArn — (String)

        The Amazon Resource Name (ARN) of the infrastructure configuration that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getComponent(params = {}, callback) ⇒ AWS.Request

Gets a component object.

Service Reference:

Examples:

Calling the getComponent operation

var params = {
  componentBuildVersionArn: 'STRING_VALUE' /* required */
};
imagebuilder.getComponent(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • componentBuildVersionArn — (String)

      The Amazon Resource Name (ARN) of the component that you want to retrieve. Regex requires "/\d+$" suffix.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • component — (map)

        The component object associated with the specified ARN.

        • arn — (String)

          The Amazon Resource Name (ARN) of the component.

        • name — (String)

          The name of the component.

        • version — (String)

          The version of the component.

        • description — (String)

          The description of the component.

        • changeDescription — (String)

          The change description of the component.

        • type — (String)

          The type of the component denotes whether the component is used to build the image or only to test it.

          Possible values include:
          • "BUILD"
          • "TEST"
        • platform — (String)

          The platform of the component.

          Possible values include:
          • "Windows"
          • "Linux"
        • supportedOsVersions — (Array<String>)

          The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the parent image OS version during image recipe creation.

        • owner — (String)

          The owner of the component.

        • data — (String)

          The data of the component.

        • kmsKeyId — (String)

          The KMS key identifier used to encrypt the component.

        • encrypted — (Boolean)

          The encryption status of the component.

        • dateCreated — (String)

          The date that the component was created.

        • tags — (map<String>)

          The tags associated with the component.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getComponentPolicy(params = {}, callback) ⇒ AWS.Request

Gets a component policy.

Service Reference:

Examples:

Calling the getComponentPolicy operation

var params = {
  componentArn: 'STRING_VALUE' /* required */
};
imagebuilder.getComponentPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • componentArn — (String)

      The Amazon Resource Name (ARN) of the component whose policy you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • policy — (String)

        The component policy.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDistributionConfiguration(params = {}, callback) ⇒ AWS.Request

Gets a distribution configuration.

Service Reference:

Examples:

Calling the getDistributionConfiguration operation

var params = {
  distributionConfigurationArn: 'STRING_VALUE' /* required */
};
imagebuilder.getDistributionConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the distribution configuration that you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • distributionConfiguration — (map)

        The distribution configuration object.

        • arn — (String)

          The Amazon Resource Name (ARN) of the distribution configuration.

        • name — (String)

          The name of the distribution configuration.

        • description — (String)

          The description of the distribution configuration.

        • distributions — (Array<map>)

          The distributions of the distribution configuration.

          • regionrequired — (String)

            The target Region.

          • amiDistributionConfiguration — (map)

            The specific AMI settings (for example, launch permissions, AMI tags).

            • name — (String)

              The name of the distribution configuration.

            • description — (String)

              The description of the distribution configuration.

            • amiTags — (map<String>)

              The tags to apply to AMIs distributed to this Region.

            • kmsKeyId — (String)

              The KMS key identifier used to encrypt the distributed image.

            • launchPermission — (map)

              Launch permissions can be used to configure which AWS accounts can use the AMI to launch instances.

              • userIds — (Array<String>)

                The AWS account ID.

              • userGroups — (Array<String>)

                The name of the group.

          • licenseConfigurationArns — (Array<String>)

            The License Manager Configuration to associate with the AMI in the specified Region.

        • timeoutMinutesrequired — (Integer)

          The maximum duration in minutes for this distribution configuration.

        • dateCreated — (String)

          The date on which this distribution configuration was created.

        • dateUpdated — (String)

          The date on which this distribution configuration was last updated.

        • tags — (map<String>)

          The tags of the distribution configuration.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getImage(params = {}, callback) ⇒ AWS.Request

Gets an image.

Service Reference:

Examples:

Calling the getImage operation

var params = {
  imageBuildVersionArn: 'STRING_VALUE' /* required */
};
imagebuilder.getImage(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageBuildVersionArn — (String)

      The Amazon Resource Name (ARN) of the image that you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • image — (map)

        The image object.

        • arn — (String)

          The Amazon Resource Name (ARN) of the image.

        • name — (String)

          The name of the image.

        • version — (String)

          The semantic version of the image.

        • platform — (String)

          The platform of the image.

          Possible values include:
          • "Windows"
          • "Linux"
        • enhancedImageMetadataEnabled — (Boolean)

          Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.

        • osVersion — (String)

          The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.

        • state — (map)

          The state of the image.

          • status — (String)

            The status of the image.

            Possible values include:
            • "PENDING"
            • "CREATING"
            • "BUILDING"
            • "TESTING"
            • "DISTRIBUTING"
            • "INTEGRATING"
            • "AVAILABLE"
            • "CANCELLED"
            • "FAILED"
            • "DEPRECATED"
            • "DELETED"
          • reason — (String)

            The reason for the image's status.

        • imageRecipe — (map)

          The image recipe used when creating the image.

          • arn — (String)

            The Amazon Resource Name (ARN) of the image recipe.

          • name — (String)

            The name of the image recipe.

          • description — (String)

            The description of the image recipe.

          • platform — (String)

            The platform of the image recipe.

            Possible values include:
            • "Windows"
            • "Linux"
          • owner — (String)

            The owner of the image recipe.

          • version — (String)

            The version of the image recipe.

          • components — (Array<map>)

            The components of the image recipe.

            • componentArnrequired — (String)

              The Amazon Resource Name (ARN) of the component.

          • parentImage — (String)

            The parent image of the image recipe.

          • blockDeviceMappings — (Array<map>)

            The block device mappings to apply when creating images from this recipe.

            • deviceName — (String)

              The device to which these mappings apply.

            • ebs — (map)

              Use to manage Amazon EBS-specific configuration for this mapping.

              • encrypted — (Boolean)

                Use to configure device encryption.

              • deleteOnTermination — (Boolean)

                Use to configure delete on termination of the associated device.

              • iops — (Integer)

                Use to configure device IOPS.

              • kmsKeyId — (String)

                Use to configure the KMS key to use when encrypting the device.

              • snapshotId — (String)

                The snapshot that defines the device contents.

              • volumeSize — (Integer)

                Use to override the device's volume size.

              • volumeType — (String)

                Use to override the device's volume type.

                Possible values include:
                • "standard"
                • "io1"
                • "gp2"
                • "sc1"
                • "st1"
            • virtualName — (String)

              Use to manage instance ephemeral devices.

            • noDevice — (String)

              Use to remove a mapping from the parent image.

          • dateCreated — (String)

            The date on which this image recipe was created.

          • tags — (map<String>)

            The tags of the image recipe.

          • workingDirectory — (String)

            The working directory to be used during build and test workflows.

        • sourcePipelineName — (String)

          The name of the image pipeline that created this image.

        • sourcePipelineArn — (String)

          The Amazon Resource Name (ARN) of the image pipeline that created this image.

        • infrastructureConfiguration — (map)

          The infrastructure used when creating this image.

          • arn — (String)

            The Amazon Resource Name (ARN) of the infrastructure configuration.

          • name — (String)

            The name of the infrastructure configuration.

          • description — (String)

            The description of the infrastructure configuration.

          • instanceTypes — (Array<String>)

            The instance types of the infrastructure configuration.

          • instanceProfileName — (String)

            The instance profile of the infrastructure configuration.

          • securityGroupIds — (Array<String>)

            The security group IDs of the infrastructure configuration.

          • subnetId — (String)

            The subnet ID of the infrastructure configuration.

          • logging — (map)

            The logging configuration of the infrastructure configuration.

            • s3Logs — (map)

              The Amazon S3 logging configuration.

              • s3BucketName — (String)

                The Amazon S3 bucket in which to store the logs.

              • s3KeyPrefix — (String)

                The Amazon S3 path in which to store the logs.

          • keyPair — (String)

            The EC2 key pair of the infrastructure configuration.

          • terminateInstanceOnFailure — (Boolean)

            The terminate instance on failure configuration of the infrastructure configuration.

          • snsTopicArn — (String)

            The SNS topic Amazon Resource Name (ARN) of the infrastructure configuration.

          • dateCreated — (String)

            The date on which the infrastructure configuration was created.

          • dateUpdated — (String)

            The date on which the infrastructure configuration was last updated.

          • resourceTags — (map<String>)

            The tags attached to the resource created by Image Builder.

          • tags — (map<String>)

            The tags of the infrastructure configuration.

        • distributionConfiguration — (map)

          The distribution configuration used when creating this image.

          • arn — (String)

            The Amazon Resource Name (ARN) of the distribution configuration.

          • name — (String)

            The name of the distribution configuration.

          • description — (String)

            The description of the distribution configuration.

          • distributions — (Array<map>)

            The distributions of the distribution configuration.

            • regionrequired — (String)

              The target Region.

            • amiDistributionConfiguration — (map)

              The specific AMI settings (for example, launch permissions, AMI tags).

              • name — (String)

                The name of the distribution configuration.

              • description — (String)

                The description of the distribution configuration.

              • amiTags — (map<String>)

                The tags to apply to AMIs distributed to this Region.

              • kmsKeyId — (String)

                The KMS key identifier used to encrypt the distributed image.

              • launchPermission — (map)

                Launch permissions can be used to configure which AWS accounts can use the AMI to launch instances.

                • userIds — (Array<String>)

                  The AWS account ID.

                • userGroups — (Array<String>)

                  The name of the group.

            • licenseConfigurationArns — (Array<String>)

              The License Manager Configuration to associate with the AMI in the specified Region.

          • timeoutMinutesrequired — (Integer)

            The maximum duration in minutes for this distribution configuration.

          • dateCreated — (String)

            The date on which this distribution configuration was created.

          • dateUpdated — (String)

            The date on which this distribution configuration was last updated.

          • tags — (map<String>)

            The tags of the distribution configuration.

        • imageTestsConfiguration — (map)

          The image tests configuration used when creating this image.

          • imageTestsEnabled — (Boolean)

            Defines if tests should be executed when building this image.

          • timeoutMinutes — (Integer)

            The maximum time in minutes that tests are permitted to run.

        • dateCreated — (String)

          The date on which this image was created.

        • outputResources — (map)

          The output resources produced when creating this image.

          • amis — (Array<map>)

            The EC2 AMIs created by this image.

            • region — (String)

              The AWS Region of the EC2 AMI.

            • image — (String)

              The AMI ID of the EC2 AMI.

            • name — (String)

              The name of the EC2 AMI.

            • description — (String)

              The description of the EC2 AMI.

            • state — (map)

              Image state shows the image status and the reason for that status.

              • status — (String)

                The status of the image.

                Possible values include:
                • "PENDING"
                • "CREATING"
                • "BUILDING"
                • "TESTING"
                • "DISTRIBUTING"
                • "INTEGRATING"
                • "AVAILABLE"
                • "CANCELLED"
                • "FAILED"
                • "DEPRECATED"
                • "DELETED"
              • reason — (String)

                The reason for the image's status.

        • tags — (map<String>)

          The tags of the image.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getImagePipeline(params = {}, callback) ⇒ AWS.Request

Gets an image pipeline.

Service Reference:

Examples:

Calling the getImagePipeline operation

var params = {
  imagePipelineArn: 'STRING_VALUE' /* required */
};
imagebuilder.getImagePipeline(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imagePipelineArn — (String)

      The Amazon Resource Name (ARN) of the image pipeline that you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imagePipeline — (map)

        The image pipeline object.

        • arn — (String)

          The Amazon Resource Name (ARN) of the image pipeline.

        • name — (String)

          The name of the image pipeline.

        • description — (String)

          The description of the image pipeline.

        • platform — (String)

          The platform of the image pipeline.

          Possible values include:
          • "Windows"
          • "Linux"
        • enhancedImageMetadataEnabled — (Boolean)

          Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.

        • imageRecipeArn — (String)

          The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.

        • infrastructureConfigurationArn — (String)

          The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.

        • distributionConfigurationArn — (String)

          The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.

        • imageTestsConfiguration — (map)

          The image tests configuration of the image pipeline.

          • imageTestsEnabled — (Boolean)

            Defines if tests should be executed when building this image.

          • timeoutMinutes — (Integer)

            The maximum time in minutes that tests are permitted to run.

        • schedule — (map)

          The schedule of the image pipeline.

          • scheduleExpression — (String)

            The expression determines how often EC2 Image Builder evaluates your pipelineExecutionStartCondition.

          • pipelineExecutionStartCondition — (String)

            The condition configures when the pipeline should trigger a new image build. When the pipelineExecutionStartCondition is set to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, EC2 Image Builder will build a new image only when there are known changes pending. When it is set to EXPRESSION_MATCH_ONLY, it will build a new image every time the CRON expression matches the current time.

            Possible values include:
            • "EXPRESSION_MATCH_ONLY"
            • "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE"
        • status — (String)

          The status of the image pipeline.

          Possible values include:
          • "DISABLED"
          • "ENABLED"
        • dateCreated — (String)

          The date on which this image pipeline was created.

        • dateUpdated — (String)

          The date on which this image pipeline was last updated.

        • dateLastRun — (String)

          The date on which this image pipeline was last run.

        • dateNextRun — (String)

          The date on which this image pipeline will next be run.

        • tags — (map<String>)

          The tags of this image pipeline.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getImagePolicy(params = {}, callback) ⇒ AWS.Request

Gets an image policy.

Service Reference:

Examples:

Calling the getImagePolicy operation

var params = {
  imageArn: 'STRING_VALUE' /* required */
};
imagebuilder.getImagePolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageArn — (String)

      The Amazon Resource Name (ARN) of the image whose policy you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • policy — (String)

        The image policy object.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getImageRecipe(params = {}, callback) ⇒ AWS.Request

Gets an image recipe.

Service Reference:

Examples:

Calling the getImageRecipe operation

var params = {
  imageRecipeArn: 'STRING_VALUE' /* required */
};
imagebuilder.getImageRecipe(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageRecipeArn — (String)

      The Amazon Resource Name (ARN) of the image recipe that you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imageRecipe — (map)

        The image recipe object.

        • arn — (String)

          The Amazon Resource Name (ARN) of the image recipe.

        • name — (String)

          The name of the image recipe.

        • description — (String)

          The description of the image recipe.

        • platform — (String)

          The platform of the image recipe.

          Possible values include:
          • "Windows"
          • "Linux"
        • owner — (String)

          The owner of the image recipe.

        • version — (String)

          The version of the image recipe.

        • components — (Array<map>)

          The components of the image recipe.

          • componentArnrequired — (String)

            The Amazon Resource Name (ARN) of the component.

        • parentImage — (String)

          The parent image of the image recipe.

        • blockDeviceMappings — (Array<map>)

          The block device mappings to apply when creating images from this recipe.

          • deviceName — (String)

            The device to which these mappings apply.

          • ebs — (map)

            Use to manage Amazon EBS-specific configuration for this mapping.

            • encrypted — (Boolean)

              Use to configure device encryption.

            • deleteOnTermination — (Boolean)

              Use to configure delete on termination of the associated device.

            • iops — (Integer)

              Use to configure device IOPS.

            • kmsKeyId — (String)

              Use to configure the KMS key to use when encrypting the device.

            • snapshotId — (String)

              The snapshot that defines the device contents.

            • volumeSize — (Integer)

              Use to override the device's volume size.

            • volumeType — (String)

              Use to override the device's volume type.

              Possible values include:
              • "standard"
              • "io1"
              • "gp2"
              • "sc1"
              • "st1"
          • virtualName — (String)

            Use to manage instance ephemeral devices.

          • noDevice — (String)

            Use to remove a mapping from the parent image.

        • dateCreated — (String)

          The date on which this image recipe was created.

        • tags — (map<String>)

          The tags of the image recipe.

        • workingDirectory — (String)

          The working directory to be used during build and test workflows.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getImageRecipePolicy(params = {}, callback) ⇒ AWS.Request

Gets an image recipe policy.

Service Reference:

Examples:

Calling the getImageRecipePolicy operation

var params = {
  imageRecipeArn: 'STRING_VALUE' /* required */
};
imagebuilder.getImageRecipePolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageRecipeArn — (String)

      The Amazon Resource Name (ARN) of the image recipe whose policy you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • policy — (String)

        The image recipe policy object.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getInfrastructureConfiguration(params = {}, callback) ⇒ AWS.Request

Gets an infrastructure configuration.

Service Reference:

Examples:

Calling the getInfrastructureConfiguration operation

var params = {
  infrastructureConfigurationArn: 'STRING_VALUE' /* required */
};
imagebuilder.getInfrastructureConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • infrastructureConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the infrastructure configuration that you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • infrastructureConfiguration — (map)

        The infrastructure configuration object.

        • arn — (String)

          The Amazon Resource Name (ARN) of the infrastructure configuration.

        • name — (String)

          The name of the infrastructure configuration.

        • description — (String)

          The description of the infrastructure configuration.

        • instanceTypes — (Array<String>)

          The instance types of the infrastructure configuration.

        • instanceProfileName — (String)

          The instance profile of the infrastructure configuration.

        • securityGroupIds — (Array<String>)

          The security group IDs of the infrastructure configuration.

        • subnetId — (String)

          The subnet ID of the infrastructure configuration.

        • logging — (map)

          The logging configuration of the infrastructure configuration.

          • s3Logs — (map)

            The Amazon S3 logging configuration.

            • s3BucketName — (String)

              The Amazon S3 bucket in which to store the logs.

            • s3KeyPrefix — (String)

              The Amazon S3 path in which to store the logs.

        • keyPair — (String)

          The EC2 key pair of the infrastructure configuration.

        • terminateInstanceOnFailure — (Boolean)

          The terminate instance on failure configuration of the infrastructure configuration.

        • snsTopicArn — (String)

          The SNS topic Amazon Resource Name (ARN) of the infrastructure configuration.

        • dateCreated — (String)

          The date on which the infrastructure configuration was created.

        • dateUpdated — (String)

          The date on which the infrastructure configuration was last updated.

        • resourceTags — (map<String>)

          The tags attached to the resource created by Image Builder.

        • tags — (map<String>)

          The tags of the infrastructure configuration.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

importComponent(params = {}, callback) ⇒ AWS.Request

Imports a component and transforms its data into a component document.

Service Reference:

Examples:

Calling the importComponent operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  format: SHELL, /* required */
  name: 'STRING_VALUE', /* required */
  platform: Windows | Linux, /* required */
  semanticVersion: 'STRING_VALUE', /* required */
  type: BUILD | TEST, /* required */
  changeDescription: 'STRING_VALUE',
  data: 'STRING_VALUE',
  description: 'STRING_VALUE',
  kmsKeyId: 'STRING_VALUE',
  tags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  uri: 'STRING_VALUE'
};
imagebuilder.importComponent(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

      The name of the component.

    • semanticVersion — (String)

      The semantic version of the component. This version follows the semantic version syntax. For example, major.minor.patch. This could be versioned like software (2.0.1) or like a date (2019.12.01).

    • description — (String)

      The description of the component. Describes the contents of the component.

    • changeDescription — (String)

      The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of this component.

    • type — (String)

      The type of the component denotes whether the component is used to build the image or only to test it.

      Possible values include:
      • "BUILD"
      • "TEST"
    • format — (String)

      The format of the resource that you want to import as a component.

      Possible values include:
      • "SHELL"
    • platform — (String)

      The platform of the component.

      Possible values include:
      • "Windows"
      • "Linux"
    • data — (String)

      The data of the component. Used to specify the data inline. Either data or uri can be used to specify the data within the component.

    • uri — (String)

      The uri of the component. Must be an S3 URL and the requester must have permission to access the S3 bucket. If you use S3, you can specify component content up to your service quota. Either data or uri can be used to specify the data within the component.

    • kmsKeyId — (String)

      The ID of the KMS key that should be used to encrypt this component.

    • tags — (map<String>)

      The tags of the component.

    • clientToken — (String)

      The idempotency token of the component.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • componentBuildVersionArn — (String)

        The Amazon Resource Name (ARN) of the imported component.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listComponentBuildVersions(params = {}, callback) ⇒ AWS.Request

Returns the list of component build versions for the specified semantic version.

Service Reference:

Examples:

Calling the listComponentBuildVersions operation

var params = {
  componentVersionArn: 'STRING_VALUE', /* required */
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
imagebuilder.listComponentBuildVersions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • componentVersionArn — (String)

      The component version Amazon Resource Name (ARN) whose versions you want to list.

    • maxResults — (Integer)

      The maximum items to return in a request.

    • nextToken — (String)

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • componentSummaryList — (Array<map>)

        The list of component summaries for the specified semantic version.

        • arn — (String)

          The Amazon Resource Name (ARN) of the component.

        • name — (String)

          The name of the component.

        • version — (String)

          The version of the component.

        • platform — (String)

          The platform of the component.

          Possible values include:
          • "Windows"
          • "Linux"
        • supportedOsVersions — (Array<String>)

          The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the parent image OS version during image recipe creation.

        • type — (String)

          The type of the component denotes whether the component is used to build the image or only to test it.

          Possible values include:
          • "BUILD"
          • "TEST"
        • owner — (String)

          The owner of the component.

        • description — (String)

          The description of the component.

        • changeDescription — (String)

          The change description of the component.

        • dateCreated — (String)

          The date that the component was created.

        • tags — (map<String>)

          The tags associated with the component.

      • nextToken — (String)

        The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listComponents(params = {}, callback) ⇒ AWS.Request

Returns the list of component build versions for the specified semantic version.

Service Reference:

Examples:

Calling the listComponents operation

var params = {
  filters: [
    {
      name: 'STRING_VALUE',
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  owner: Self | Shared | Amazon
};
imagebuilder.listComponents(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • owner — (String)

      The owner defines which components you want to list. By default, this request will only show components owned by your account. You can use this field to specify if you want to view components owned by yourself, by Amazon, or those components that have been shared with you by other customers.

      Possible values include:
      • "Self"
      • "Shared"
      • "Amazon"
    • filters — (Array<map>)

      The filters.

      • name — (String)

        The name of the filter. Filter names are case-sensitive.

      • values — (Array<String>)

        The filter values. Filter values are case-sensitive.

    • maxResults — (Integer)

      The maximum items to return in a request.

    • nextToken — (String)

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • componentVersionList — (Array<map>)

        The list of component semantic versions.

        • arn — (String)

          The Amazon Resource Name (ARN) of the component.

        • name — (String)

          The name of the component.

        • version — (String)

          The semantic version of the component.

        • description — (String)

          The description of the component.

        • platform — (String)

          The platform of the component.

          Possible values include:
          • "Windows"
          • "Linux"
        • supportedOsVersions — (Array<String>)

          The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the parent image OS version during image recipe creation.

        • type — (String)

          The type of the component denotes whether the component is used to build the image or only to test it.

          Possible values include:
          • "BUILD"
          • "TEST"
        • owner — (String)

          The owner of the component.

        • dateCreated — (String)

          The date that the component was created.

      • nextToken — (String)

        The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listDistributionConfigurations(params = {}, callback) ⇒ AWS.Request

Returns a list of distribution configurations.

Service Reference:

Examples:

Calling the listDistributionConfigurations operation

var params = {
  filters: [
    {
      name: 'STRING_VALUE',
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
imagebuilder.listDistributionConfigurations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • filters — (Array<map>)

      The filters.

      • name - The name of this distribution configuration.

      • name — (String)

        The name of the filter. Filter names are case-sensitive.

      • values — (Array<String>)

        The filter values. Filter values are case-sensitive.

    • maxResults — (Integer)

      The maximum items to return in a request.

    • nextToken — (String)

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • distributionConfigurationSummaryList — (Array<map>)

        The list of distributions.

        • arn — (String)

          The Amazon Resource Name (ARN) of the distribution configuration.

        • name — (String)

          The name of the distribution configuration.

        • description — (String)

          The description of the distribution configuration.

        • dateCreated — (String)

          The date on which the distribution configuration was created.

        • dateUpdated — (String)

          The date on which the distribution configuration was updated.

        • tags — (map<String>)

          The tags associated with the distribution configuration.

      • nextToken — (String)

        The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listImageBuildVersions(params = {}, callback) ⇒ AWS.Request

Returns a list of image build versions.

Service Reference:

Examples:

Calling the listImageBuildVersions operation

var params = {
  imageVersionArn: 'STRING_VALUE', /* required */
  filters: [
    {
      name: 'STRING_VALUE',
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
imagebuilder.listImageBuildVersions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageVersionArn — (String)

      The Amazon Resource Name (ARN) of the image whose build versions you want to retrieve.

    • filters — (Array<map>)

      The filters.

      • name — (String)

        The name of the filter. Filter names are case-sensitive.

      • values — (Array<String>)

        The filter values. Filter values are case-sensitive.

    • maxResults — (Integer)

      The maximum items to return in a request.

    • nextToken — (String)

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imageSummaryList — (Array<map>)

        The list of image build versions.

        • arn — (String)

          The Amazon Resource Name (ARN) of the image.

        • name — (String)

          The name of the image.

        • version — (String)

          The version of the image.

        • platform — (String)

          The platform of the image.

          Possible values include:
          • "Windows"
          • "Linux"
        • osVersion — (String)

          The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.

        • state — (map)

          The state of the image.

          • status — (String)

            The status of the image.

            Possible values include:
            • "PENDING"
            • "CREATING"
            • "BUILDING"
            • "TESTING"
            • "DISTRIBUTING"
            • "INTEGRATING"
            • "AVAILABLE"
            • "CANCELLED"
            • "FAILED"
            • "DEPRECATED"
            • "DELETED"
          • reason — (String)

            The reason for the image's status.

        • owner — (String)

          The owner of the image.

        • dateCreated — (String)

          The date on which this image was created.

        • outputResources — (map)

          The output resources produced when creating this image.

          • amis — (Array<map>)

            The EC2 AMIs created by this image.

            • region — (String)

              The AWS Region of the EC2 AMI.

            • image — (String)

              The AMI ID of the EC2 AMI.

            • name — (String)

              The name of the EC2 AMI.

            • description — (String)

              The description of the EC2 AMI.

            • state — (map)

              Image state shows the image status and the reason for that status.

              • status — (String)

                The status of the image.

                Possible values include:
                • "PENDING"
                • "CREATING"
                • "BUILDING"
                • "TESTING"
                • "DISTRIBUTING"
                • "INTEGRATING"
                • "AVAILABLE"
                • "CANCELLED"
                • "FAILED"
                • "DEPRECATED"
                • "DELETED"
              • reason — (String)

                The reason for the image's status.

        • tags — (map<String>)

          The tags of the image.

      • nextToken — (String)

        The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listImagePipelineImages(params = {}, callback) ⇒ AWS.Request

Returns a list of images created by the specified pipeline.

Service Reference:

Examples:

Calling the listImagePipelineImages operation

var params = {
  imagePipelineArn: 'STRING_VALUE', /* required */
  filters: [
    {
      name: 'STRING_VALUE',
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
imagebuilder.listImagePipelineImages(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imagePipelineArn — (String)

      The Amazon Resource Name (ARN) of the image pipeline whose images you want to view.

    • filters — (Array<map>)

      The filters.

      • name — (String)

        The name of the filter. Filter names are case-sensitive.

      • values — (Array<String>)

        The filter values. Filter values are case-sensitive.

    • maxResults — (Integer)

      The maximum items to return in a request.

    • nextToken — (String)

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imageSummaryList — (Array<map>)

        The list of images built by this pipeline.

        • arn — (String)

          The Amazon Resource Name (ARN) of the image.

        • name — (String)

          The name of the image.

        • version — (String)

          The version of the image.

        • platform — (String)

          The platform of the image.

          Possible values include:
          • "Windows"
          • "Linux"
        • osVersion — (String)

          The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.

        • state — (map)

          The state of the image.

          • status — (String)

            The status of the image.

            Possible values include:
            • "PENDING"
            • "CREATING"
            • "BUILDING"
            • "TESTING"
            • "DISTRIBUTING"
            • "INTEGRATING"
            • "AVAILABLE"
            • "CANCELLED"
            • "FAILED"
            • "DEPRECATED"
            • "DELETED"
          • reason — (String)

            The reason for the image's status.

        • owner — (String)

          The owner of the image.

        • dateCreated — (String)

          The date on which this image was created.

        • outputResources — (map)

          The output resources produced when creating this image.

          • amis — (Array<map>)

            The EC2 AMIs created by this image.

            • region — (String)

              The AWS Region of the EC2 AMI.

            • image — (String)

              The AMI ID of the EC2 AMI.

            • name — (String)

              The name of the EC2 AMI.

            • description — (String)

              The description of the EC2 AMI.

            • state — (map)

              Image state shows the image status and the reason for that status.

              • status — (String)

                The status of the image.

                Possible values include:
                • "PENDING"
                • "CREATING"
                • "BUILDING"
                • "TESTING"
                • "DISTRIBUTING"
                • "INTEGRATING"
                • "AVAILABLE"
                • "CANCELLED"
                • "FAILED"
                • "DEPRECATED"
                • "DELETED"
              • reason — (String)

                The reason for the image's status.

        • tags — (map<String>)

          The tags of the image.

      • nextToken — (String)

        The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listImagePipelines(params = {}, callback) ⇒ AWS.Request

Returns a list of image pipelines.

Service Reference:

Examples:

Calling the listImagePipelines operation

var params = {
  filters: [
    {
      name: 'STRING_VALUE',
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
imagebuilder.listImagePipelines(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • filters — (Array<map>)

      The filters.

      • name — (String)

        The name of the filter. Filter names are case-sensitive.

      • values — (Array<String>)

        The filter values. Filter values are case-sensitive.

    • maxResults — (Integer)

      The maximum items to return in a request.

    • nextToken — (String)

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imagePipelineList — (Array<map>)

        The list of image pipelines.

        • arn — (String)

          The Amazon Resource Name (ARN) of the image pipeline.

        • name — (String)

          The name of the image pipeline.

        • description — (String)

          The description of the image pipeline.

        • platform — (String)

          The platform of the image pipeline.

          Possible values include:
          • "Windows"
          • "Linux"
        • enhancedImageMetadataEnabled — (Boolean)

          Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.

        • imageRecipeArn — (String)

          The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.

        • infrastructureConfigurationArn — (String)

          The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.

        • distributionConfigurationArn — (String)

          The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.

        • imageTestsConfiguration — (map)

          The image tests configuration of the image pipeline.

          • imageTestsEnabled — (Boolean)

            Defines if tests should be executed when building this image.

          • timeoutMinutes — (Integer)

            The maximum time in minutes that tests are permitted to run.

        • schedule — (map)

          The schedule of the image pipeline.

          • scheduleExpression — (String)

            The expression determines how often EC2 Image Builder evaluates your pipelineExecutionStartCondition.

          • pipelineExecutionStartCondition — (String)

            The condition configures when the pipeline should trigger a new image build. When the pipelineExecutionStartCondition is set to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, EC2 Image Builder will build a new image only when there are known changes pending. When it is set to EXPRESSION_MATCH_ONLY, it will build a new image every time the CRON expression matches the current time.

            Possible values include:
            • "EXPRESSION_MATCH_ONLY"
            • "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE"
        • status — (String)

          The status of the image pipeline.

          Possible values include:
          • "DISABLED"
          • "ENABLED"
        • dateCreated — (String)

          The date on which this image pipeline was created.

        • dateUpdated — (String)

          The date on which this image pipeline was last updated.

        • dateLastRun — (String)

          The date on which this image pipeline was last run.

        • dateNextRun — (String)

          The date on which this image pipeline will next be run.

        • tags — (map<String>)

          The tags of this image pipeline.

      • nextToken — (String)

        The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listImageRecipes(params = {}, callback) ⇒ AWS.Request

Returns a list of image recipes.

Service Reference:

Examples:

Calling the listImageRecipes operation

var params = {
  filters: [
    {
      name: 'STRING_VALUE',
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  owner: Self | Shared | Amazon
};
imagebuilder.listImageRecipes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • owner — (String)

      The owner defines which image recipes you want to list. By default, this request will only show image recipes owned by your account. You can use this field to specify if you want to view image recipes owned by yourself, by Amazon, or those image recipes that have been shared with you by other customers.

      Possible values include:
      • "Self"
      • "Shared"
      • "Amazon"
    • filters — (Array<map>)

      The filters.

      • name — (String)

        The name of the filter. Filter names are case-sensitive.

      • values — (Array<String>)

        The filter values. Filter values are case-sensitive.

    • maxResults — (Integer)

      The maximum items to return in a request.

    • nextToken — (String)

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imageRecipeSummaryList — (Array<map>)

        The list of image pipelines.

        • arn — (String)

          The Amazon Resource Name (ARN) of the image recipe.

        • name — (String)

          The name of the image recipe.

        • platform — (String)

          The platform of the image recipe.

          Possible values include:
          • "Windows"
          • "Linux"
        • owner — (String)

          The owner of the image recipe.

        • parentImage — (String)

          The parent image of the image recipe.

        • dateCreated — (String)

          The date on which this image recipe was created.

        • tags — (map<String>)

          The tags of the image recipe.

      • nextToken — (String)

        The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listImages(params = {}, callback) ⇒ AWS.Request

Returns the list of images that you have access to.

Service Reference:

Examples:

Calling the listImages operation

var params = {
  filters: [
    {
      name: 'STRING_VALUE',
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE',
  owner: Self | Shared | Amazon
};
imagebuilder.listImages(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • owner — (String)

      The owner defines which images you want to list. By default, this request will only show images owned by your account. You can use this field to specify if you want to view images owned by yourself, by Amazon, or those images that have been shared with you by other customers.

      Possible values include:
      • "Self"
      • "Shared"
      • "Amazon"
    • filters — (Array<map>)

      The filters.

      • name — (String)

        The name of the filter. Filter names are case-sensitive.

      • values — (Array<String>)

        The filter values. Filter values are case-sensitive.

    • maxResults — (Integer)

      The maximum items to return in a request.

    • nextToken — (String)

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imageVersionList — (Array<map>)

        The list of image semantic versions.

        • arn — (String)

          The Amazon Resource Name (ARN) of the image semantic version.

        • name — (String)

          The name of the image semantic version.

        • version — (String)

          The semantic version of the image semantic version.

        • platform — (String)

          The platform of the image semantic version.

          Possible values include:
          • "Windows"
          • "Linux"
        • osVersion — (String)

          The operating system version of the instance. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.

        • owner — (String)

          The owner of the image semantic version.

        • dateCreated — (String)

          The date at which this image semantic version was created.

      • nextToken — (String)

        The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listInfrastructureConfigurations(params = {}, callback) ⇒ AWS.Request

Returns a list of infrastructure configurations.

Examples:

Calling the listInfrastructureConfigurations operation

var params = {
  filters: [
    {
      name: 'STRING_VALUE',
      values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
imagebuilder.listInfrastructureConfigurations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • filters — (Array<map>)

      The filters.

      • name — (String)

        The name of the filter. Filter names are case-sensitive.

      • values — (Array<String>)

        The filter values. Filter values are case-sensitive.

    • maxResults — (Integer)

      The maximum items to return in a request.

    • nextToken — (String)

      A token to specify where to start paginating. This is the NextToken from a previously truncated response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • infrastructureConfigurationSummaryList — (Array<map>)

        The list of infrastructure configurations.

        • arn — (String)

          The Amazon Resource Name (ARN) of the infrastructure configuration.

        • name — (String)

          The name of the infrastructure configuration.

        • description — (String)

          The description of the infrastructure configuration.

        • dateCreated — (String)

          The date on which the infrastructure configuration was created.

        • dateUpdated — (String)

          The date on which the infrastructure configuration was last updated.

        • resourceTags — (map<String>)

          The tags attached to the image created by Image Builder.

        • tags — (map<String>)

          The tags of the infrastructure configuration.

      • nextToken — (String)

        The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Returns the list of tags for the specified resource.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  resourceArn: 'STRING_VALUE' /* required */
};
imagebuilder.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • tags — (map<String>)

        The tags for the specified resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putComponentPolicy(params = {}, callback) ⇒ AWS.Request

Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutComponentPolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.

Service Reference:

Examples:

Calling the putComponentPolicy operation

var params = {
  componentArn: 'STRING_VALUE', /* required */
  policy: 'STRING_VALUE' /* required */
};
imagebuilder.putComponentPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • componentArn — (String)

      The Amazon Resource Name (ARN) of the component that this policy should be applied to.

    • policy — (String)

      The policy to apply.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • componentArn — (String)

        The Amazon Resource Name (ARN) of the component that this policy was applied to.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putImagePolicy(params = {}, callback) ⇒ AWS.Request

Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutImagePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.

Service Reference:

Examples:

Calling the putImagePolicy operation

var params = {
  imageArn: 'STRING_VALUE', /* required */
  policy: 'STRING_VALUE' /* required */
};
imagebuilder.putImagePolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageArn — (String)

      The Amazon Resource Name (ARN) of the image that this policy should be applied to.

    • policy — (String)

      The policy to apply.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imageArn — (String)

        The Amazon Resource Name (ARN) of the image that this policy was applied to.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putImageRecipePolicy(params = {}, callback) ⇒ AWS.Request

Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutImageRecipePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.

Service Reference:

Examples:

Calling the putImageRecipePolicy operation

var params = {
  imageRecipeArn: 'STRING_VALUE', /* required */
  policy: 'STRING_VALUE' /* required */
};
imagebuilder.putImageRecipePolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imageRecipeArn — (String)

      The Amazon Resource Name (ARN) of the image recipe that this policy should be applied to.

    • policy — (String)

      The policy to apply.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • imageRecipeArn — (String)

        The Amazon Resource Name (ARN) of the image recipe that this policy was applied to.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startImagePipelineExecution(params = {}, callback) ⇒ AWS.Request

Manually triggers a pipeline to create an image.

Service Reference:

Examples:

Calling the startImagePipelineExecution operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  imagePipelineArn: 'STRING_VALUE' /* required */
};
imagebuilder.startImagePipelineExecution(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imagePipelineArn — (String)

      The Amazon Resource Name (ARN) of the image pipeline that you want to manually invoke.

    • clientToken — (String)

      The idempotency token used to make this request idempotent.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • imageBuildVersionArn — (String)

        The Amazon Resource Name (ARN) of the image that was created by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Adds a tag to a resource.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tags: { /* required */
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  }
};
imagebuilder.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource that you want to tag.

    • tags — (map<String>)

      The tags to apply to the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Removes a tag from a resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
imagebuilder.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource that you want to untag.

    • tagKeys — (Array<String>)

      The tag keys to remove from the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateDistributionConfiguration(params = {}, callback) ⇒ AWS.Request

Updates a new distribution configuration. Distribution configurations define and configure the outputs of your pipeline.

Service Reference:

Examples:

Calling the updateDistributionConfiguration operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  distributionConfigurationArn: 'STRING_VALUE', /* required */
  distributions: [ /* required */
    {
      region: 'STRING_VALUE', /* required */
      amiDistributionConfiguration: {
        amiTags: {
          '<TagKey>': 'STRING_VALUE',
          /* '<TagKey>': ... */
        },
        description: 'STRING_VALUE',
        kmsKeyId: 'STRING_VALUE',
        launchPermission: {
          userGroups: [
            'STRING_VALUE',
            /* more items */
          ],
          userIds: [
            'STRING_VALUE',
            /* more items */
          ]
        },
        name: 'STRING_VALUE'
      },
      licenseConfigurationArns: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  description: 'STRING_VALUE'
};
imagebuilder.updateDistributionConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the distribution configuration that you want to update.

    • description — (String)

      The description of the distribution configuration.

    • distributions — (Array<map>)

      The distributions of the distribution configuration.

      • regionrequired — (String)

        The target Region.

      • amiDistributionConfiguration — (map)

        The specific AMI settings (for example, launch permissions, AMI tags).

        • name — (String)

          The name of the distribution configuration.

        • description — (String)

          The description of the distribution configuration.

        • amiTags — (map<String>)

          The tags to apply to AMIs distributed to this Region.

        • kmsKeyId — (String)

          The KMS key identifier used to encrypt the distributed image.

        • launchPermission — (map)

          Launch permissions can be used to configure which AWS accounts can use the AMI to launch instances.

          • userIds — (Array<String>)

            The AWS account ID.

          • userGroups — (Array<String>)

            The name of the group.

      • licenseConfigurationArns — (Array<String>)

        The License Manager Configuration to associate with the AMI in the specified Region.

    • clientToken — (String)

      The idempotency token of the distribution configuration.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • distributionConfigurationArn — (String)

        The Amazon Resource Name (ARN) of the distribution configuration that was updated by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateImagePipeline(params = {}, callback) ⇒ AWS.Request

Updates a new image pipeline. Image pipelines enable you to automate the creation and distribution of images.

Service Reference:

Examples:

Calling the updateImagePipeline operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  imagePipelineArn: 'STRING_VALUE', /* required */
  imageRecipeArn: 'STRING_VALUE', /* required */
  infrastructureConfigurationArn: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  distributionConfigurationArn: 'STRING_VALUE',
  enhancedImageMetadataEnabled: true || false,
  imageTestsConfiguration: {
    imageTestsEnabled: true || false,
    timeoutMinutes: 'NUMBER_VALUE'
  },
  schedule: {
    pipelineExecutionStartCondition: EXPRESSION_MATCH_ONLY | EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE,
    scheduleExpression: 'STRING_VALUE'
  },
  status: DISABLED | ENABLED
};
imagebuilder.updateImagePipeline(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • imagePipelineArn — (String)

      The Amazon Resource Name (ARN) of the image pipeline that you want to update.

    • description — (String)

      The description of the image pipeline.

    • imageRecipeArn — (String)

      The Amazon Resource Name (ARN) of the image recipe that will be used to configure images updated by this image pipeline.

    • infrastructureConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the infrastructure configuration that will be used to build images updated by this image pipeline.

    • distributionConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the distribution configuration that will be used to configure and distribute images updated by this image pipeline.

    • imageTestsConfiguration — (map)

      The image test configuration of the image pipeline.

      • imageTestsEnabled — (Boolean)

        Defines if tests should be executed when building this image.

      • timeoutMinutes — (Integer)

        The maximum time in minutes that tests are permitted to run.

    • enhancedImageMetadataEnabled — (Boolean)

      Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.

    • schedule — (map)

      The schedule of the image pipeline.

      • scheduleExpression — (String)

        The expression determines how often EC2 Image Builder evaluates your pipelineExecutionStartCondition.

      • pipelineExecutionStartCondition — (String)

        The condition configures when the pipeline should trigger a new image build. When the pipelineExecutionStartCondition is set to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE, EC2 Image Builder will build a new image only when there are known changes pending. When it is set to EXPRESSION_MATCH_ONLY, it will build a new image every time the CRON expression matches the current time.

        Possible values include:
        • "EXPRESSION_MATCH_ONLY"
        • "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE"
    • status — (String)

      The status of the image pipeline.

      Possible values include:
      • "DISABLED"
      • "ENABLED"
    • clientToken — (String)

      The idempotency token used to make this request idempotent.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • imagePipelineArn — (String)

        The Amazon Resource Name (ARN) of the image pipeline that was updated by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateInfrastructureConfiguration(params = {}, callback) ⇒ AWS.Request

Updates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.

Examples:

Calling the updateInfrastructureConfiguration operation

var params = {
  clientToken: 'STRING_VALUE', /* required */
  infrastructureConfigurationArn: 'STRING_VALUE', /* required */
  instanceProfileName: 'STRING_VALUE', /* required */
  description: 'STRING_VALUE',
  instanceTypes: [
    'STRING_VALUE',
    /* more items */
  ],
  keyPair: 'STRING_VALUE',
  logging: {
    s3Logs: {
      s3BucketName: 'STRING_VALUE',
      s3KeyPrefix: 'STRING_VALUE'
    }
  },
  resourceTags: {
    '<TagKey>': 'STRING_VALUE',
    /* '<TagKey>': ... */
  },
  securityGroupIds: [
    'STRING_VALUE',
    /* more items */
  ],
  snsTopicArn: 'STRING_VALUE',
  subnetId: 'STRING_VALUE',
  terminateInstanceOnFailure: true || false
};
imagebuilder.updateInfrastructureConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • infrastructureConfigurationArn — (String)

      The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.

    • description — (String)

      The description of the infrastructure configuration.

    • instanceTypes — (Array<String>)

      The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.

    • instanceProfileName — (String)

      The instance profile to associate with the instance used to customize your EC2 AMI.

    • securityGroupIds — (Array<String>)

      The security group IDs to associate with the instance used to customize your EC2 AMI.

    • subnetId — (String)

      The subnet ID to place the instance used to customize your EC2 AMI in.

    • logging — (map)

      The logging configuration of the infrastructure configuration.

      • s3Logs — (map)

        The Amazon S3 logging configuration.

        • s3BucketName — (String)

          The Amazon S3 bucket in which to store the logs.

        • s3KeyPrefix — (String)

          The Amazon S3 path in which to store the logs.

    • keyPair — (String)

      The key pair of the infrastructure configuration. This can be used to log on to and debug the instance used to create your image.

    • terminateInstanceOnFailure — (Boolean)

      The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.

    • snsTopicArn — (String)

      The SNS topic on which to send image build events.

    • clientToken — (String)

      The idempotency token used to make this request idempotent.

      If a token is not provided, the SDK will use a version 4 UUID.
    • resourceTags — (map<String>)

      The tags attached to the resource created by Image Builder.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • requestId — (String)

        The request ID that uniquely identifies this request.

      • clientToken — (String)

        The idempotency token used to make this request idempotent.

      • infrastructureConfigurationArn — (String)

        The Amazon Resource Name (ARN) of the infrastructure configuration that was updated by this request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.