We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.OSIS

Inherits:
AWS.Service show all
Identifier:
osis
API Version:
2022-01-01
Defined in:
(unknown)

Overview

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

Service Description

Use the Amazon OpenSearch Ingestion API to create and manage ingestion pipelines. OpenSearch Ingestion is a fully managed data collector that delivers real-time log and trace data to OpenSearch Service domains. For more information, see Getting data into your cluster using OpenSearch Ingestion.

Sending a Request Using OSIS

var osis = new AWS.OSIS();
osis.createPipeline(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 OSIS object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var osis = new AWS.OSIS({apiVersion: '2022-01-01'});

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

AWS.config.apiVersions = {
  osis: '2022-01-01',
  // other service API versions
};

var osis = new AWS.OSIS();

Version:

  • 2022-01-01

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.OSIS(options = {}) ⇒ Object

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

Examples:

Constructing a OSIS object

var osis = new AWS.OSIS({apiVersion: '2022-01-01'});

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|AWS.Endpoint)

    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' or an Endpoint object.

  • 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.OSIS.region for more information.

  • maxRetries (Integer)

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

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.OSIS.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. The function is only called for retryable errors.
  • 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'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

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

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

Creates an OpenSearch Ingestion pipeline. For more information, see Creating Amazon OpenSearch Ingestion pipelines.

Service Reference:

Examples:

Calling the createPipeline operation

var params = {
  MaxUnits: 'NUMBER_VALUE', /* required */
  MinUnits: 'NUMBER_VALUE', /* required */
  PipelineConfigurationBody: 'STRING_VALUE', /* required */
  PipelineName: 'STRING_VALUE', /* required */
  BufferOptions: {
    PersistentBufferEnabled: true || false /* required */
  },
  EncryptionAtRestOptions: {
    KmsKeyArn: 'STRING_VALUE' /* required */
  },
  LogPublishingOptions: {
    CloudWatchLogDestination: {
      LogGroup: 'STRING_VALUE' /* required */
    },
    IsLoggingEnabled: true || false
  },
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  VpcOptions: {
    SubnetIds: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    SecurityGroupIds: [
      'STRING_VALUE',
      /* more items */
    ],
    VpcAttachmentOptions: {
      AttachToVpc: true || false, /* required */
      CidrBlock: 'STRING_VALUE'
    },
    VpcEndpointManagement: CUSTOMER | SERVICE
  }
};
osis.createPipeline(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: {})
    • PipelineName — (String)

      The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an Amazon Web Services Region.

    • MinUnits — (Integer)

      The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

    • MaxUnits — (Integer)

      The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

    • PipelineConfigurationBody — (String)

      The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.

    • LogPublishingOptions — (map)

      Key-value pairs to configure log publishing.

      • IsLoggingEnabled — (Boolean)

        Whether logs should be published.

      • CloudWatchLogDestination — (map)

        The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true.

        • LogGrouprequired — (String)

          The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines.

    • VpcOptions — (map)

      Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint.

      • SubnetIdsrequired — (Array<String>)

        A list of subnet IDs associated with the VPC endpoint.

      • SecurityGroupIds — (Array<String>)

        A list of security groups associated with the VPC endpoint.

      • VpcAttachmentOptions — (map)

        Options for attaching a VPC to a pipeline.

        • AttachToVpcrequired — (Boolean)

          Whether a VPC is attached to the pipeline.

        • CidrBlock — (String)

          The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).

      • VpcEndpointManagement — (String)

        Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.

        Possible values include:
        • "CUSTOMER"
        • "SERVICE"
    • BufferOptions — (map)

      Key-value pairs to configure persistent buffering for the pipeline.

      • PersistentBufferEnabledrequired — (Boolean)

        Whether persistent buffering should be enabled.

    • EncryptionAtRestOptions — (map)

      Key-value pairs to configure encryption for data that is written to a persistent buffer.

      • KmsKeyArnrequired — (String)

        The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key.

    • Tags — (Array<map>)

      List of tags to add to the pipeline upon creation.

      • Keyrequired — (String)

        The tag key. Tag keys must be unique for the pipeline to which they are attached.

      • Valuerequired — (String)

        The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

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:

      • Pipeline — (map)

        Container for information about the created pipeline.

        • PipelineName — (String)

          The name of the pipeline.

        • PipelineArn — (String)

          The Amazon Resource Name (ARN) of the pipeline.

        • MinUnits — (Integer)

          The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

        • MaxUnits — (Integer)

          The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

        • Status — (String)

          The current status of the pipeline.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "UPDATING"
          • "DELETING"
          • "CREATE_FAILED"
          • "UPDATE_FAILED"
          • "STARTING"
          • "START_FAILED"
          • "STOPPING"
          • "STOPPED"
        • StatusReason — (map)

          The reason for the current status of the pipeline.

          • Description — (String)

            A description of why a pipeline has a certain status.

        • PipelineConfigurationBody — (String)

          The Data Prepper pipeline configuration in YAML format.

        • CreatedAt — (Date)

          The date and time when the pipeline was created.

        • LastUpdatedAt — (Date)

          The date and time when the pipeline was last updated.

        • IngestEndpointUrls — (Array<String>)

          The ingestion endpoints for the pipeline, which you can send data to.

        • LogPublishingOptions — (map)

          Key-value pairs that represent log publishing settings.

          • IsLoggingEnabled — (Boolean)

            Whether logs should be published.

          • CloudWatchLogDestination — (map)

            The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true.

            • LogGrouprequired — (String)

              The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines.

        • VpcEndpoints — (Array<map>)

          The VPC interface endpoints that have access to the pipeline.

          • VpcEndpointId — (String)

            The unique identifier of the endpoint.

          • VpcId — (String)

            The ID for your VPC. Amazon Web Services PrivateLink generates this value when you create a VPC.

          • VpcOptions — (map)

            Information about the VPC, including associated subnets and security groups.

            • SubnetIdsrequired — (Array<String>)

              A list of subnet IDs associated with the VPC endpoint.

            • SecurityGroupIds — (Array<String>)

              A list of security groups associated with the VPC endpoint.

            • VpcAttachmentOptions — (map)

              Options for attaching a VPC to a pipeline.

              • AttachToVpcrequired — (Boolean)

                Whether a VPC is attached to the pipeline.

              • CidrBlock — (String)

                The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).

            • VpcEndpointManagement — (String)

              Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.

              Possible values include:
              • "CUSTOMER"
              • "SERVICE"
        • BufferOptions — (map)

          Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the EncryptionAtRestOptions. For more information, see Persistent buffering.

          • PersistentBufferEnabledrequired — (Boolean)

            Whether persistent buffering should be enabled.

        • EncryptionAtRestOptions — (map)

          Options to control how OpenSearch encrypts buffer data.

          • KmsKeyArnrequired — (String)

            The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key.

        • VpcEndpointService — (String)

          The VPC endpoint service name for the pipeline.

        • ServiceVpcEndpoints — (Array<map>)

          A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.

          • ServiceName — (String)

            The name of the service for which a VPC endpoint was created.

            Possible values include:
            • "OPENSEARCH_SERVERLESS"
          • VpcEndpointId — (String)

            The unique identifier of the VPC endpoint that was created.

        • Destinations — (Array<map>)

          Destinations to which the pipeline writes data.

          • ServiceName — (String)

            The name of the service receiving data from the pipeline.

          • Endpoint — (String)

            The endpoint receiving data from the pipeline.

        • Tags — (Array<map>)

          A list of tags associated with the given pipeline.

          • Keyrequired — (String)

            The tag key. Tag keys must be unique for the pipeline to which they are attached.

          • Valuerequired — (String)

            The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

Returns:

  • (AWS.Request)

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

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

Deletes an OpenSearch Ingestion pipeline. For more information, see Deleting Amazon OpenSearch Ingestion pipelines.

Service Reference:

Examples:

Calling the deletePipeline operation

var params = {
  PipelineName: 'STRING_VALUE' /* required */
};
osis.deletePipeline(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: {})
    • PipelineName — (String)

      The name of the 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.

Returns:

  • (AWS.Request)

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

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

Retrieves information about an OpenSearch Ingestion pipeline.

Service Reference:

Examples:

Calling the getPipeline operation

var params = {
  PipelineName: 'STRING_VALUE' /* required */
};
osis.getPipeline(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: {})
    • PipelineName — (String)

      The name of the pipeline.

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:

      • Pipeline — (map)

        Detailed information about the requested pipeline.

        • PipelineName — (String)

          The name of the pipeline.

        • PipelineArn — (String)

          The Amazon Resource Name (ARN) of the pipeline.

        • MinUnits — (Integer)

          The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

        • MaxUnits — (Integer)

          The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

        • Status — (String)

          The current status of the pipeline.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "UPDATING"
          • "DELETING"
          • "CREATE_FAILED"
          • "UPDATE_FAILED"
          • "STARTING"
          • "START_FAILED"
          • "STOPPING"
          • "STOPPED"
        • StatusReason — (map)

          The reason for the current status of the pipeline.

          • Description — (String)

            A description of why a pipeline has a certain status.

        • PipelineConfigurationBody — (String)

          The Data Prepper pipeline configuration in YAML format.

        • CreatedAt — (Date)

          The date and time when the pipeline was created.

        • LastUpdatedAt — (Date)

          The date and time when the pipeline was last updated.

        • IngestEndpointUrls — (Array<String>)

          The ingestion endpoints for the pipeline, which you can send data to.

        • LogPublishingOptions — (map)

          Key-value pairs that represent log publishing settings.

          • IsLoggingEnabled — (Boolean)

            Whether logs should be published.

          • CloudWatchLogDestination — (map)

            The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true.

            • LogGrouprequired — (String)

              The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines.

        • VpcEndpoints — (Array<map>)

          The VPC interface endpoints that have access to the pipeline.

          • VpcEndpointId — (String)

            The unique identifier of the endpoint.

          • VpcId — (String)

            The ID for your VPC. Amazon Web Services PrivateLink generates this value when you create a VPC.

          • VpcOptions — (map)

            Information about the VPC, including associated subnets and security groups.

            • SubnetIdsrequired — (Array<String>)

              A list of subnet IDs associated with the VPC endpoint.

            • SecurityGroupIds — (Array<String>)

              A list of security groups associated with the VPC endpoint.

            • VpcAttachmentOptions — (map)

              Options for attaching a VPC to a pipeline.

              • AttachToVpcrequired — (Boolean)

                Whether a VPC is attached to the pipeline.

              • CidrBlock — (String)

                The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).

            • VpcEndpointManagement — (String)

              Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.

              Possible values include:
              • "CUSTOMER"
              • "SERVICE"
        • BufferOptions — (map)

          Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the EncryptionAtRestOptions. For more information, see Persistent buffering.

          • PersistentBufferEnabledrequired — (Boolean)

            Whether persistent buffering should be enabled.

        • EncryptionAtRestOptions — (map)

          Options to control how OpenSearch encrypts buffer data.

          • KmsKeyArnrequired — (String)

            The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key.

        • VpcEndpointService — (String)

          The VPC endpoint service name for the pipeline.

        • ServiceVpcEndpoints — (Array<map>)

          A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.

          • ServiceName — (String)

            The name of the service for which a VPC endpoint was created.

            Possible values include:
            • "OPENSEARCH_SERVERLESS"
          • VpcEndpointId — (String)

            The unique identifier of the VPC endpoint that was created.

        • Destinations — (Array<map>)

          Destinations to which the pipeline writes data.

          • ServiceName — (String)

            The name of the service receiving data from the pipeline.

          • Endpoint — (String)

            The endpoint receiving data from the pipeline.

        • Tags — (Array<map>)

          A list of tags associated with the given pipeline.

          • Keyrequired — (String)

            The tag key. Tag keys must be unique for the pipeline to which they are attached.

          • Valuerequired — (String)

            The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

Returns:

  • (AWS.Request)

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

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

Retrieves information about a specific blueprint for OpenSearch Ingestion. Blueprints are templates for the configuration needed for a CreatePipeline request. For more information, see Using blueprints to create a pipeline.

Service Reference:

Examples:

Calling the getPipelineBlueprint operation

var params = {
  BlueprintName: 'STRING_VALUE', /* required */
  Format: 'STRING_VALUE'
};
osis.getPipelineBlueprint(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: {})
    • BlueprintName — (String)

      The name of the blueprint to retrieve.

    • Format — (String)

      The format format of the blueprint 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:

      • Blueprint — (map)

        The requested blueprint in YAML format.

        • BlueprintName — (String)

          The name of the blueprint.

        • PipelineConfigurationBody — (String)

          The YAML configuration of the blueprint.

        • DisplayName — (String)

          The display name of the blueprint.

        • DisplayDescription — (String)

          A description of the blueprint.

        • Service — (String)

          The name of the service that the blueprint is associated with.

        • UseCase — (String)

          The use case that the blueprint relates to.

      • Format — (String)

        The format of the blueprint.

Returns:

  • (AWS.Request)

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

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

Returns progress information for the current change happening on an OpenSearch Ingestion pipeline. Currently, this operation only returns information when a pipeline is being created.

For more information, see Tracking the status of pipeline creation.

Service Reference:

Examples:

Calling the getPipelineChangeProgress operation

var params = {
  PipelineName: 'STRING_VALUE' /* required */
};
osis.getPipelineChangeProgress(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: {})
    • PipelineName — (String)

      The name of the pipeline.

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:

      • ChangeProgressStatuses — (Array<map>)

        The current status of the change happening on the pipeline.

        • StartTime — (Date)

          The time at which the configuration change is made on the pipeline.

        • Status — (String)

          The overall status of the pipeline configuration change.

          Possible values include:
          • "PENDING"
          • "IN_PROGRESS"
          • "COMPLETED"
          • "FAILED"
        • TotalNumberOfStages — (Integer)

          The total number of stages required for the pipeline configuration change.

        • ChangeProgressStages — (Array<map>)

          Information about the stages that the pipeline is going through to perform the configuration change.

          • Name — (String)

            The name of the stage.

          • Status — (String)

            The current status of the stage that the change is in.

            Possible values include:
            • "PENDING"
            • "IN_PROGRESS"
            • "COMPLETED"
            • "FAILED"
          • Description — (String)

            A description of the stage.

          • LastUpdatedAt — (Date)

            The most recent updated timestamp of the stage.

Returns:

  • (AWS.Request)

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

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

Retrieves a list of all available blueprints for Data Prepper. For more information, see Using blueprints to create a pipeline.

Service Reference:

Examples:

Calling the listPipelineBlueprints operation

var params = {
};
osis.listPipelineBlueprints(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: {})

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:

      • Blueprints — (Array<map>)

        A list of available blueprints for Data Prepper.

        • BlueprintName — (String)

          The name of the blueprint.

        • DisplayName — (String)

          The display name of the blueprint.

        • DisplayDescription — (String)

          A description of the blueprint.

        • Service — (String)

          The name of the service that the blueprint is associated with.

        • UseCase — (String)

          The use case that the blueprint relates to.

Returns:

  • (AWS.Request)

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

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

Lists all OpenSearch Ingestion pipelines in the current Amazon Web Services account and Region. For more information, see Viewing Amazon OpenSearch Ingestion pipelines.

Service Reference:

Examples:

Calling the listPipelines operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
osis.listPipelines(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: {})
    • MaxResults — (Integer)

      An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

    • NextToken — (String)

      If your initial ListPipelines operation returns a nextToken, you can include the returned nextToken in subsequent ListPipelines operations, which returns results in the next page.

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:

      • NextToken — (String)

        When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

      • Pipelines — (Array<map>)

        A list of all existing Data Prepper pipelines.

        • Status — (String)

          The current status of the pipeline.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "UPDATING"
          • "DELETING"
          • "CREATE_FAILED"
          • "UPDATE_FAILED"
          • "STARTING"
          • "START_FAILED"
          • "STOPPING"
          • "STOPPED"
        • StatusReason — (map)

          Information about a pipeline's current status.

          • Description — (String)

            A description of why a pipeline has a certain status.

        • PipelineName — (String)

          The name of the pipeline.

        • PipelineArn — (String)

          The Amazon Resource Name (ARN) of the pipeline.

        • MinUnits — (Integer)

          The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

        • MaxUnits — (Integer)

          The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

        • CreatedAt — (Date)

          The date and time when the pipeline was created.

        • LastUpdatedAt — (Date)

          The date and time when the pipeline was last updated.

        • Destinations — (Array<map>)

          A list of destinations to which the pipeline writes data.

          • ServiceName — (String)

            The name of the service receiving data from the pipeline.

          • Endpoint — (String)

            The endpoint receiving data from the pipeline.

        • Tags — (Array<map>)

          A list of tags associated with the given pipeline.

          • Keyrequired — (String)

            The tag key. Tag keys must be unique for the pipeline to which they are attached.

          • Valuerequired — (String)

            The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

Returns:

  • (AWS.Request)

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

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

Lists all resource tags associated with an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  Arn: 'STRING_VALUE' /* required */
};
osis.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: {})
    • Arn — (String)

      The Amazon Resource Name (ARN) of the pipeline to retrieve tags for.

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 — (Array<map>)

        A list of tags associated with the given pipeline.

        • Keyrequired — (String)

          The tag key. Tag keys must be unique for the pipeline to which they are attached.

        • Valuerequired — (String)

          The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

Returns:

  • (AWS.Request)

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

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

Starts an OpenSearch Ingestion pipeline. For more information, see Starting an OpenSearch Ingestion pipeline.

Service Reference:

Examples:

Calling the startPipeline operation

var params = {
  PipelineName: 'STRING_VALUE' /* required */
};
osis.startPipeline(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: {})
    • PipelineName — (String)

      The name of the pipeline to start.

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:

      • Pipeline — (map)

        Information about an existing OpenSearch Ingestion pipeline.

        • PipelineName — (String)

          The name of the pipeline.

        • PipelineArn — (String)

          The Amazon Resource Name (ARN) of the pipeline.

        • MinUnits — (Integer)

          The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

        • MaxUnits — (Integer)

          The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

        • Status — (String)

          The current status of the pipeline.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "UPDATING"
          • "DELETING"
          • "CREATE_FAILED"
          • "UPDATE_FAILED"
          • "STARTING"
          • "START_FAILED"
          • "STOPPING"
          • "STOPPED"
        • StatusReason — (map)

          The reason for the current status of the pipeline.

          • Description — (String)

            A description of why a pipeline has a certain status.

        • PipelineConfigurationBody — (String)

          The Data Prepper pipeline configuration in YAML format.

        • CreatedAt — (Date)

          The date and time when the pipeline was created.

        • LastUpdatedAt — (Date)

          The date and time when the pipeline was last updated.

        • IngestEndpointUrls — (Array<String>)

          The ingestion endpoints for the pipeline, which you can send data to.

        • LogPublishingOptions — (map)

          Key-value pairs that represent log publishing settings.

          • IsLoggingEnabled — (Boolean)

            Whether logs should be published.

          • CloudWatchLogDestination — (map)

            The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true.

            • LogGrouprequired — (String)

              The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines.

        • VpcEndpoints — (Array<map>)

          The VPC interface endpoints that have access to the pipeline.

          • VpcEndpointId — (String)

            The unique identifier of the endpoint.

          • VpcId — (String)

            The ID for your VPC. Amazon Web Services PrivateLink generates this value when you create a VPC.

          • VpcOptions — (map)

            Information about the VPC, including associated subnets and security groups.

            • SubnetIdsrequired — (Array<String>)

              A list of subnet IDs associated with the VPC endpoint.

            • SecurityGroupIds — (Array<String>)

              A list of security groups associated with the VPC endpoint.

            • VpcAttachmentOptions — (map)

              Options for attaching a VPC to a pipeline.

              • AttachToVpcrequired — (Boolean)

                Whether a VPC is attached to the pipeline.

              • CidrBlock — (String)

                The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).

            • VpcEndpointManagement — (String)

              Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.

              Possible values include:
              • "CUSTOMER"
              • "SERVICE"
        • BufferOptions — (map)

          Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the EncryptionAtRestOptions. For more information, see Persistent buffering.

          • PersistentBufferEnabledrequired — (Boolean)

            Whether persistent buffering should be enabled.

        • EncryptionAtRestOptions — (map)

          Options to control how OpenSearch encrypts buffer data.

          • KmsKeyArnrequired — (String)

            The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key.

        • VpcEndpointService — (String)

          The VPC endpoint service name for the pipeline.

        • ServiceVpcEndpoints — (Array<map>)

          A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.

          • ServiceName — (String)

            The name of the service for which a VPC endpoint was created.

            Possible values include:
            • "OPENSEARCH_SERVERLESS"
          • VpcEndpointId — (String)

            The unique identifier of the VPC endpoint that was created.

        • Destinations — (Array<map>)

          Destinations to which the pipeline writes data.

          • ServiceName — (String)

            The name of the service receiving data from the pipeline.

          • Endpoint — (String)

            The endpoint receiving data from the pipeline.

        • Tags — (Array<map>)

          A list of tags associated with the given pipeline.

          • Keyrequired — (String)

            The tag key. Tag keys must be unique for the pipeline to which they are attached.

          • Valuerequired — (String)

            The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

Returns:

  • (AWS.Request)

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

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

Stops an OpenSearch Ingestion pipeline. For more information, see Stopping an OpenSearch Ingestion pipeline.

Service Reference:

Examples:

Calling the stopPipeline operation

var params = {
  PipelineName: 'STRING_VALUE' /* required */
};
osis.stopPipeline(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: {})
    • PipelineName — (String)

      The name of the pipeline to stop.

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:

      • Pipeline — (map)

        Information about an existing OpenSearch Ingestion pipeline.

        • PipelineName — (String)

          The name of the pipeline.

        • PipelineArn — (String)

          The Amazon Resource Name (ARN) of the pipeline.

        • MinUnits — (Integer)

          The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

        • MaxUnits — (Integer)

          The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

        • Status — (String)

          The current status of the pipeline.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "UPDATING"
          • "DELETING"
          • "CREATE_FAILED"
          • "UPDATE_FAILED"
          • "STARTING"
          • "START_FAILED"
          • "STOPPING"
          • "STOPPED"
        • StatusReason — (map)

          The reason for the current status of the pipeline.

          • Description — (String)

            A description of why a pipeline has a certain status.

        • PipelineConfigurationBody — (String)

          The Data Prepper pipeline configuration in YAML format.

        • CreatedAt — (Date)

          The date and time when the pipeline was created.

        • LastUpdatedAt — (Date)

          The date and time when the pipeline was last updated.

        • IngestEndpointUrls — (Array<String>)

          The ingestion endpoints for the pipeline, which you can send data to.

        • LogPublishingOptions — (map)

          Key-value pairs that represent log publishing settings.

          • IsLoggingEnabled — (Boolean)

            Whether logs should be published.

          • CloudWatchLogDestination — (map)

            The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true.

            • LogGrouprequired — (String)

              The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines.

        • VpcEndpoints — (Array<map>)

          The VPC interface endpoints that have access to the pipeline.

          • VpcEndpointId — (String)

            The unique identifier of the endpoint.

          • VpcId — (String)

            The ID for your VPC. Amazon Web Services PrivateLink generates this value when you create a VPC.

          • VpcOptions — (map)

            Information about the VPC, including associated subnets and security groups.

            • SubnetIdsrequired — (Array<String>)

              A list of subnet IDs associated with the VPC endpoint.

            • SecurityGroupIds — (Array<String>)

              A list of security groups associated with the VPC endpoint.

            • VpcAttachmentOptions — (map)

              Options for attaching a VPC to a pipeline.

              • AttachToVpcrequired — (Boolean)

                Whether a VPC is attached to the pipeline.

              • CidrBlock — (String)

                The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).

            • VpcEndpointManagement — (String)

              Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.

              Possible values include:
              • "CUSTOMER"
              • "SERVICE"
        • BufferOptions — (map)

          Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the EncryptionAtRestOptions. For more information, see Persistent buffering.

          • PersistentBufferEnabledrequired — (Boolean)

            Whether persistent buffering should be enabled.

        • EncryptionAtRestOptions — (map)

          Options to control how OpenSearch encrypts buffer data.

          • KmsKeyArnrequired — (String)

            The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key.

        • VpcEndpointService — (String)

          The VPC endpoint service name for the pipeline.

        • ServiceVpcEndpoints — (Array<map>)

          A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.

          • ServiceName — (String)

            The name of the service for which a VPC endpoint was created.

            Possible values include:
            • "OPENSEARCH_SERVERLESS"
          • VpcEndpointId — (String)

            The unique identifier of the VPC endpoint that was created.

        • Destinations — (Array<map>)

          Destinations to which the pipeline writes data.

          • ServiceName — (String)

            The name of the service receiving data from the pipeline.

          • Endpoint — (String)

            The endpoint receiving data from the pipeline.

        • Tags — (Array<map>)

          A list of tags associated with the given pipeline.

          • Keyrequired — (String)

            The tag key. Tag keys must be unique for the pipeline to which they are attached.

          • Valuerequired — (String)

            The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

Returns:

  • (AWS.Request)

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

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

Tags an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  Arn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
osis.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: {})
    • Arn — (String)

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

    • Tags — (Array<map>)

      The list of key-value tags to add to the pipeline.

      • Keyrequired — (String)

        The tag key. Tag keys must be unique for the pipeline to which they are attached.

      • Valuerequired — (String)

        The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

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 one or more tags from an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  Arn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
osis.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: {})
    • Arn — (String)

      The Amazon Resource Name (ARN) of the pipeline to remove tags from.

    • TagKeys — (Array<String>)

      The tag keys to remove.

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.

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

Updates an OpenSearch Ingestion pipeline. For more information, see Updating Amazon OpenSearch Ingestion pipelines.

Service Reference:

Examples:

Calling the updatePipeline operation

var params = {
  PipelineName: 'STRING_VALUE', /* required */
  BufferOptions: {
    PersistentBufferEnabled: true || false /* required */
  },
  EncryptionAtRestOptions: {
    KmsKeyArn: 'STRING_VALUE' /* required */
  },
  LogPublishingOptions: {
    CloudWatchLogDestination: {
      LogGroup: 'STRING_VALUE' /* required */
    },
    IsLoggingEnabled: true || false
  },
  MaxUnits: 'NUMBER_VALUE',
  MinUnits: 'NUMBER_VALUE',
  PipelineConfigurationBody: 'STRING_VALUE'
};
osis.updatePipeline(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: {})
    • PipelineName — (String)

      The name of the pipeline to update.

    • MinUnits — (Integer)

      The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

    • MaxUnits — (Integer)

      The maximum pipeline capacity, in Ingestion Compute Units (ICUs)

    • PipelineConfigurationBody — (String)

      The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.

    • LogPublishingOptions — (map)

      Key-value pairs to configure log publishing.

      • IsLoggingEnabled — (Boolean)

        Whether logs should be published.

      • CloudWatchLogDestination — (map)

        The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true.

        • LogGrouprequired — (String)

          The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines.

    • BufferOptions — (map)

      Key-value pairs to configure persistent buffering for the pipeline.

      • PersistentBufferEnabledrequired — (Boolean)

        Whether persistent buffering should be enabled.

    • EncryptionAtRestOptions — (map)

      Key-value pairs to configure encryption for data that is written to a persistent buffer.

      • KmsKeyArnrequired — (String)

        The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key.

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:

      • Pipeline — (map)

        Container for information about the updated pipeline.

        • PipelineName — (String)

          The name of the pipeline.

        • PipelineArn — (String)

          The Amazon Resource Name (ARN) of the pipeline.

        • MinUnits — (Integer)

          The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

        • MaxUnits — (Integer)

          The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

        • Status — (String)

          The current status of the pipeline.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "UPDATING"
          • "DELETING"
          • "CREATE_FAILED"
          • "UPDATE_FAILED"
          • "STARTING"
          • "START_FAILED"
          • "STOPPING"
          • "STOPPED"
        • StatusReason — (map)

          The reason for the current status of the pipeline.

          • Description — (String)

            A description of why a pipeline has a certain status.

        • PipelineConfigurationBody — (String)

          The Data Prepper pipeline configuration in YAML format.

        • CreatedAt — (Date)

          The date and time when the pipeline was created.

        • LastUpdatedAt — (Date)

          The date and time when the pipeline was last updated.

        • IngestEndpointUrls — (Array<String>)

          The ingestion endpoints for the pipeline, which you can send data to.

        • LogPublishingOptions — (map)

          Key-value pairs that represent log publishing settings.

          • IsLoggingEnabled — (Boolean)

            Whether logs should be published.

          • CloudWatchLogDestination — (map)

            The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required if IsLoggingEnabled is set to true.

            • LogGrouprequired — (String)

              The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines.

        • VpcEndpoints — (Array<map>)

          The VPC interface endpoints that have access to the pipeline.

          • VpcEndpointId — (String)

            The unique identifier of the endpoint.

          • VpcId — (String)

            The ID for your VPC. Amazon Web Services PrivateLink generates this value when you create a VPC.

          • VpcOptions — (map)

            Information about the VPC, including associated subnets and security groups.

            • SubnetIdsrequired — (Array<String>)

              A list of subnet IDs associated with the VPC endpoint.

            • SecurityGroupIds — (Array<String>)

              A list of security groups associated with the VPC endpoint.

            • VpcAttachmentOptions — (map)

              Options for attaching a VPC to a pipeline.

              • AttachToVpcrequired — (Boolean)

                Whether a VPC is attached to the pipeline.

              • CidrBlock — (String)

                The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).

            • VpcEndpointManagement — (String)

              Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.

              Possible values include:
              • "CUSTOMER"
              • "SERVICE"
        • BufferOptions — (map)

          Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the EncryptionAtRestOptions. For more information, see Persistent buffering.

          • PersistentBufferEnabledrequired — (Boolean)

            Whether persistent buffering should be enabled.

        • EncryptionAtRestOptions — (map)

          Options to control how OpenSearch encrypts buffer data.

          • KmsKeyArnrequired — (String)

            The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key.

        • VpcEndpointService — (String)

          The VPC endpoint service name for the pipeline.

        • ServiceVpcEndpoints — (Array<map>)

          A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.

          • ServiceName — (String)

            The name of the service for which a VPC endpoint was created.

            Possible values include:
            • "OPENSEARCH_SERVERLESS"
          • VpcEndpointId — (String)

            The unique identifier of the VPC endpoint that was created.

        • Destinations — (Array<map>)

          Destinations to which the pipeline writes data.

          • ServiceName — (String)

            The name of the service receiving data from the pipeline.

          • Endpoint — (String)

            The endpoint receiving data from the pipeline.

        • Tags — (Array<map>)

          A list of tags associated with the given pipeline.

          • Keyrequired — (String)

            The tag key. Tag keys must be unique for the pipeline to which they are attached.

          • Valuerequired — (String)

            The value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

Returns:

  • (AWS.Request)

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

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

Checks whether an OpenSearch Ingestion pipeline configuration is valid prior to creation. For more information, see Creating Amazon OpenSearch Ingestion pipelines.

Service Reference:

Examples:

Calling the validatePipeline operation

var params = {
  PipelineConfigurationBody: 'STRING_VALUE' /* required */
};
osis.validatePipeline(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: {})
    • PipelineConfigurationBody — (String)

      The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \n.

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:

      • isValid — (Boolean)

        A boolean indicating whether or not the pipeline configuration is valid.

      • Errors — (Array<map>)

        A list of errors if the configuration is invalid.

        • Message — (String)

          The validation message.

Returns:

  • (AWS.Request)

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