You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::KinesisAnalyticsV2::Client

Inherits:
Seahorse::Client::Base show all
Defined in:
(unknown)

Overview

An API client for Amazon Kinesis Analytics. To construct a client, you need to configure a :region and :credentials.

kinesisanalyticsv2 = Aws::KinesisAnalyticsV2::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

See #initialize for a full list of supported configuration options.

Region

You can configure a default region in the following locations:

  • ENV['AWS_REGION']
  • Aws.config[:region]

Go here for a list of supported regions.

Credentials

Default credentials are loaded automatically from the following locations:

  • ENV['AWS_ACCESS_KEY_ID'] and ENV['AWS_SECRET_ACCESS_KEY']
  • Aws.config[:credentials]
  • The shared credentials ini file at ~/.aws/credentials (more information)
  • From an instance profile when running on EC2

You can also construct a credentials object from one of the following classes:

Alternatively, you configure credentials with :access_key_id and :secret_access_key:

# load credentials from disk
creds = YAML.load(File.read('/path/to/secrets'))

Aws::KinesisAnalyticsV2::Client.new(
  access_key_id: creds['access_key_id'],
  secret_access_key: creds['secret_access_key']
)

Always load your credentials from outside your application. Avoid configuring credentials statically and never commit them to source control.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

Constructor collapse

API Operations collapse

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Base

add_plugin, api, #build_request, clear_plugins, define, new, #operation, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options = {}) ⇒ Aws::KinesisAnalyticsV2::Client

Constructs an API client.

Options Hash (options):

  • :access_key_id (String)

    Used to set credentials statically. See Plugins::RequestSigner for more details.

  • :active_endpoint_cache (Boolean)

    When set to true, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults to false. See Plugins::EndpointDiscovery for more details.

  • :convert_params (Boolean) — default: true

    When true, an attempt is made to coerce request parameters into the required types. See Plugins::ParamConverter for more details.

  • :credentials (required, Credentials)

    Your AWS credentials. The following locations will be searched in order for credentials:

    • :access_key_id, :secret_access_key, and :session_token options
    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
    • HOME/.aws/credentials shared credentials file
    • EC2 instance profile credentials See Plugins::RequestSigner for more details.
  • :disable_host_prefix_injection (Boolean)

    Set to true to disable SDK automatically adding host prefix to default service endpoint when available. See Plugins::EndpointPattern for more details.

  • :endpoint (String)

    A default endpoint is constructed from the :region. See Plugins::RegionalEndpoint for more details.

  • :endpoint_cache_max_entries (Integer)

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000. See Plugins::EndpointDiscovery for more details.

  • :endpoint_cache_max_threads (Integer)

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10. See Plugins::EndpointDiscovery for more details.

  • :endpoint_cache_poll_interval (Integer)

    When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec. See Plugins::EndpointDiscovery for more details.

  • :endpoint_discovery (Boolean)

    When set to true, endpoint discovery will be enabled for operations when available. Defaults to false. See Plugins::EndpointDiscovery for more details.

  • :http_continue_timeout (Float) — default: 1

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_idle_timeout (Integer) — default: 5

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_open_timeout (Integer) — default: 15

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_proxy (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_read_timeout (Integer) — default: 60

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_wire_trace (Boolean) — default: false

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :log_level (Symbol) — default: :info

    The log level to send messages to the logger at. See Plugins::Logging for more details.

  • :log_formatter (Logging::LogFormatter)

    The log formatter. Defaults to Seahorse::Client::Logging::Formatter.default. See Plugins::Logging for more details.

  • :logger (Logger) — default: nil

    The Logger instance to send log messages to. If this option is not set, logging will be disabled. See Plugins::Logging for more details.

  • :profile (String)

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used. See Plugins::RequestSigner for more details.

  • :raise_response_errors (Boolean) — default: true

    When true, response errors are raised. See Seahorse::Client::Plugins::RaiseResponseErrors for more details.

  • :region (required, String)

    The AWS region to connect to. The region is used to construct the client endpoint. Defaults to ENV['AWS_REGION']. Also checks AMAZON_REGION and AWS_DEFAULT_REGION. See Plugins::RegionalEndpoint for more details.

  • :retry_limit (Integer) — default: 3

    The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors and auth errors from expired credentials. See Plugins::RetryErrors for more details.

  • :secret_access_key (String)

    Used to set credentials statically. See Plugins::RequestSigner for more details.

  • :session_token (String)

    Used to set credentials statically. See Plugins::RequestSigner for more details.

  • :simple_json (Boolean) — default: false

    Disables request parameter conversion, validation, and formatting. Also disable response data type conversions. This option is useful when you want to ensure the highest level of performance by avoiding overhead of walking request parameters and response data structures.

    When :simple_json is enabled, the request parameters hash must be formatted exactly as the DynamoDB API expects. See Plugins::Protocols::JsonRpc for more details.

  • :ssl_ca_bundle (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :ssl_ca_directory (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :ssl_ca_store (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :ssl_verify_peer (Boolean) — default: true

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :stub_responses (Boolean) — default: false

    Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling ClientStubs#stub_responses. See ClientStubs for more information.

    Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled. See Plugins::StubResponses for more details.

  • :validate_params (Boolean) — default: true

    When true, request parameters are validated before sending the request. See Plugins::ParamValidator for more details.

Instance Method Details

#add_application_cloud_watch_logging_option(options = {}) ⇒ Types::AddApplicationCloudWatchLoggingOptionResponse

Adds an Amazon CloudWatch log stream to monitor application configuration errors.

Examples:

Request syntax with placeholder values


resp = client.add_application_cloud_watch_logging_option({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  cloud_watch_logging_option: { # required
    log_stream_arn: "LogStreamARN", # required
  },
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer
resp.cloud_watch_logging_option_descriptions #=> Array
resp.cloud_watch_logging_option_descriptions[0].cloud_watch_logging_option_id #=> String
resp.cloud_watch_logging_option_descriptions[0].log_stream_arn #=> String
resp.cloud_watch_logging_option_descriptions[0].role_arn #=> String

Options Hash (options):

  • :application_name (required, String)

    The Kinesis Data Analytics application name.

  • :current_application_version_id (required, Integer)

    The version ID of the Kinesis Data Analytics application. You can retrieve the application version ID using DescribeApplication.

  • :cloud_watch_logging_option (required, Types::CloudWatchLoggingOption)

    Provides the Amazon CloudWatch log stream Amazon Resource Name (ARN).

Returns:

See Also:

#add_application_input(options = {}) ⇒ Types::AddApplicationInputResponse

Adds a streaming source to your SQL-based Kinesis Data Analytics application.

You can add a streaming source when you create an application, or you can use this operation to add a streaming source after you create an application. For more information, see CreateApplication.

Any configuration update, including adding a streaming source using this operation, results in a new version of the application. You can use the DescribeApplication operation to find the current application version.

Examples:

Request syntax with placeholder values


resp = client.add_application_input({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  input: { # required
    name_prefix: "InAppStreamName", # required
    input_processing_configuration: {
      input_lambda_processor: { # required
        resource_arn: "ResourceARN", # required
      },
    },
    kinesis_streams_input: {
      resource_arn: "ResourceARN", # required
    },
    kinesis_firehose_input: {
      resource_arn: "ResourceARN", # required
    },
    input_parallelism: {
      count: 1,
    },
    input_schema: { # required
      record_format: { # required
        record_format_type: "JSON", # required, accepts JSON, CSV
        mapping_parameters: {
          json_mapping_parameters: {
            record_row_path: "RecordRowPath", # required
          },
          csv_mapping_parameters: {
            record_row_delimiter: "RecordRowDelimiter", # required
            record_column_delimiter: "RecordColumnDelimiter", # required
          },
        },
      },
      record_encoding: "RecordEncoding",
      record_columns: [ # required
        {
          name: "RecordColumnName", # required
          mapping: "RecordColumnMapping",
          sql_type: "RecordColumnSqlType", # required
        },
      ],
    },
  },
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer
resp.input_descriptions #=> Array
resp.input_descriptions[0].input_id #=> String
resp.input_descriptions[0].name_prefix #=> String
resp.input_descriptions[0].in_app_stream_names #=> Array
resp.input_descriptions[0].in_app_stream_names[0] #=> String
resp.input_descriptions[0].input_processing_configuration_description.input_lambda_processor_description.resource_arn #=> String
resp.input_descriptions[0].input_processing_configuration_description.input_lambda_processor_description.role_arn #=> String
resp.input_descriptions[0].kinesis_streams_input_description.resource_arn #=> String
resp.input_descriptions[0].kinesis_streams_input_description.role_arn #=> String
resp.input_descriptions[0].kinesis_firehose_input_description.resource_arn #=> String
resp.input_descriptions[0].kinesis_firehose_input_description.role_arn #=> String
resp.input_descriptions[0].input_schema.record_format.record_format_type #=> String, one of "JSON", "CSV"
resp.input_descriptions[0].input_schema.record_format.mapping_parameters.json_mapping_parameters.record_row_path #=> String
resp.input_descriptions[0].input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_row_delimiter #=> String
resp.input_descriptions[0].input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_column_delimiter #=> String
resp.input_descriptions[0].input_schema.record_encoding #=> String
resp.input_descriptions[0].input_schema.record_columns #=> Array
resp.input_descriptions[0].input_schema.record_columns[0].name #=> String
resp.input_descriptions[0].input_schema.record_columns[0].mapping #=> String
resp.input_descriptions[0].input_schema.record_columns[0].sql_type #=> String
resp.input_descriptions[0].input_parallelism.count #=> Integer
resp.input_descriptions[0].input_starting_position_configuration.input_starting_position #=> String, one of "NOW", "TRIM_HORIZON", "LAST_STOPPED_POINT"

Options Hash (options):

  • :application_name (required, String)

    The name of your existing application to which you want to add the streaming source.

  • :current_application_version_id (required, Integer)

    The current version of your application. You can use the DescribeApplication operation to find the current application version.

  • :input (required, Types::Input)

    The Input to add.

Returns:

See Also:

#add_application_input_processing_configuration(options = {}) ⇒ Types::AddApplicationInputProcessingConfigurationResponse

Adds an InputProcessingConfiguration to a SQL-based Kinesis Data Analytics application. An input processor pre-processes records on the input stream before the application's SQL code executes. Currently, the only input processor available is AWS Lambda.

Examples:

Request syntax with placeholder values


resp = client.add_application_input_processing_configuration({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  input_id: "Id", # required
  input_processing_configuration: { # required
    input_lambda_processor: { # required
      resource_arn: "ResourceARN", # required
    },
  },
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer
resp.input_id #=> String
resp.input_processing_configuration_description.input_lambda_processor_description.resource_arn #=> String
resp.input_processing_configuration_description.input_lambda_processor_description.role_arn #=> String

Options Hash (options):

  • :application_name (required, String)

    The name of the application to which you want to add the input processing configuration.

  • :current_application_version_id (required, Integer)

    The version of the application to which you want to add the input processing configuration. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

  • :input_id (required, String)

    The ID of the input configuration to add the input processing configuration to. You can get a list of the input IDs for an application using the DescribeApplication operation.

  • :input_processing_configuration (required, Types::InputProcessingConfiguration)

    The InputProcessingConfiguration to add to the application.

Returns:

See Also:

#add_application_output(options = {}) ⇒ Types::AddApplicationOutputResponse

Adds an external destination to your SQL-based Kinesis Data Analytics application.

If you want Kinesis Data Analytics to deliver data from an in-application stream within your application to an external destination (such as an Kinesis data stream, a Kinesis Data Firehose delivery stream, or an AWS Lambda function), you add the relevant configuration to your application using this operation. You can configure one or more outputs for your application. Each output configuration maps an in-application stream and an external destination.

You can use one of the output configurations to deliver data from your in-application error stream to an external destination so that you can analyze the errors.

Any configuration update, including adding a streaming source using this operation, results in a new version of the application. You can use the DescribeApplication operation to find the current application version.

Examples:

Request syntax with placeholder values


resp = client.add_application_output({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  output: { # required
    name: "InAppStreamName", # required
    kinesis_streams_output: {
      resource_arn: "ResourceARN", # required
    },
    kinesis_firehose_output: {
      resource_arn: "ResourceARN", # required
    },
    lambda_output: {
      resource_arn: "ResourceARN", # required
    },
    destination_schema: { # required
      record_format_type: "JSON", # required, accepts JSON, CSV
    },
  },
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer
resp.output_descriptions #=> Array
resp.output_descriptions[0].output_id #=> String
resp.output_descriptions[0].name #=> String
resp.output_descriptions[0].kinesis_streams_output_description.resource_arn #=> String
resp.output_descriptions[0].kinesis_streams_output_description.role_arn #=> String
resp.output_descriptions[0].kinesis_firehose_output_description.resource_arn #=> String
resp.output_descriptions[0].kinesis_firehose_output_description.role_arn #=> String
resp.output_descriptions[0].lambda_output_description.resource_arn #=> String
resp.output_descriptions[0].lambda_output_description.role_arn #=> String
resp.output_descriptions[0].destination_schema.record_format_type #=> String, one of "JSON", "CSV"

Options Hash (options):

  • :application_name (required, String)

    The name of the application to which you want to add the output configuration.

  • :current_application_version_id (required, Integer)

    The version of the application to which you want to add the output configuration. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

  • :output (required, Types::Output)

    An array of objects, each describing one output configuration. In the output configuration, you specify the name of an in-application stream, a destination (that is, a Kinesis data stream, a Kinesis Data Firehose delivery stream, or an AWS Lambda function), and record the formation to use when writing to the destination.

Returns:

See Also:

#add_application_reference_data_source(options = {}) ⇒ Types::AddApplicationReferenceDataSourceResponse

Adds a reference data source to an existing SQL-based Kinesis Data Analytics application.

Kinesis Data Analytics reads reference data (that is, an Amazon S3 object) and creates an in-application table within your application. In the request, you provide the source (S3 bucket name and object key name), name of the in-application table to create, and the necessary mapping information that describes how data in an Amazon S3 object maps to columns in the resulting in-application table.

Examples:

Request syntax with placeholder values


resp = client.add_application_reference_data_source({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  reference_data_source: { # required
    table_name: "InAppTableName", # required
    s3_reference_data_source: {
      bucket_arn: "BucketARN",
      file_key: "FileKey",
    },
    reference_schema: { # required
      record_format: { # required
        record_format_type: "JSON", # required, accepts JSON, CSV
        mapping_parameters: {
          json_mapping_parameters: {
            record_row_path: "RecordRowPath", # required
          },
          csv_mapping_parameters: {
            record_row_delimiter: "RecordRowDelimiter", # required
            record_column_delimiter: "RecordColumnDelimiter", # required
          },
        },
      },
      record_encoding: "RecordEncoding",
      record_columns: [ # required
        {
          name: "RecordColumnName", # required
          mapping: "RecordColumnMapping",
          sql_type: "RecordColumnSqlType", # required
        },
      ],
    },
  },
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer
resp.reference_data_source_descriptions #=> Array
resp.reference_data_source_descriptions[0].reference_id #=> String
resp.reference_data_source_descriptions[0].table_name #=> String
resp.reference_data_source_descriptions[0].s3_reference_data_source_description.bucket_arn #=> String
resp.reference_data_source_descriptions[0].s3_reference_data_source_description.file_key #=> String
resp.reference_data_source_descriptions[0].s3_reference_data_source_description.reference_role_arn #=> String
resp.reference_data_source_descriptions[0].reference_schema.record_format.record_format_type #=> String, one of "JSON", "CSV"
resp.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.json_mapping_parameters.record_row_path #=> String
resp.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.csv_mapping_parameters.record_row_delimiter #=> String
resp.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.csv_mapping_parameters.record_column_delimiter #=> String
resp.reference_data_source_descriptions[0].reference_schema.record_encoding #=> String
resp.reference_data_source_descriptions[0].reference_schema.record_columns #=> Array
resp.reference_data_source_descriptions[0].reference_schema.record_columns[0].name #=> String
resp.reference_data_source_descriptions[0].reference_schema.record_columns[0].mapping #=> String
resp.reference_data_source_descriptions[0].reference_schema.record_columns[0].sql_type #=> String

Options Hash (options):

  • :application_name (required, String)

    The name of an existing application.

  • :current_application_version_id (required, Integer)

    The version of the application for which you are adding the reference data source. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

  • :reference_data_source (required, Types::ReferenceDataSource)

    The reference data source can be an object in your Amazon S3 bucket. Kinesis Data Analytics reads the object and copies the data into the in-application table that is created. You provide an S3 bucket, object key name, and the resulting in-application table that is created.

Returns:

See Also:

#add_application_vpc_configuration(options = {}) ⇒ Types::AddApplicationVpcConfigurationResponse

Adds a Virtual Private Cloud (VPC) configuration to the application. Applications can use VPCs to store and access resources securely.

Note the following about VPC configurations for Kinesis Data Analytics applications:

  • VPC configurations are not supported for SQL applications.

  • When a VPC is added to a Kinesis Data Analytics application, the application can no longer be accessed from the Internet directly. To enable Internet access to the application, add an Internet gateway to your VPC.

Examples:

Request syntax with placeholder values


resp = client.add_application_vpc_configuration({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  vpc_configuration: { # required
    subnet_ids: ["SubnetId"], # required
    security_group_ids: ["SecurityGroupId"], # required
  },
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer
resp.vpc_configuration_description.vpc_configuration_id #=> String
resp.vpc_configuration_description.vpc_id #=> String
resp.vpc_configuration_description.subnet_ids #=> Array
resp.vpc_configuration_description.subnet_ids[0] #=> String
resp.vpc_configuration_description.security_group_ids #=> Array
resp.vpc_configuration_description.security_group_ids[0] #=> String

Options Hash (options):

  • :application_name (required, String)

    The name of an existing application.

  • :current_application_version_id (required, Integer)

    The version of the application to which you want to add the VPC configuration. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

  • :vpc_configuration (required, Types::VpcConfiguration)

    Description of the VPC to add to the application.

Returns:

See Also:

#create_application(options = {}) ⇒ Types::CreateApplicationResponse

Creates a Kinesis Data Analytics application. For information about creating a Kinesis Data Analytics application, see Creating an Application.

Examples:

Request syntax with placeholder values


resp = client.create_application({
  application_name: "ApplicationName", # required
  application_description: "ApplicationDescription",
  runtime_environment: "SQL-1_0", # required, accepts SQL-1_0, FLINK-1_6, FLINK-1_8, FLINK-1_11
  service_execution_role: "RoleARN", # required
  application_configuration: {
    sql_application_configuration: {
      inputs: [
        {
          name_prefix: "InAppStreamName", # required
          input_processing_configuration: {
            input_lambda_processor: { # required
              resource_arn: "ResourceARN", # required
            },
          },
          kinesis_streams_input: {
            resource_arn: "ResourceARN", # required
          },
          kinesis_firehose_input: {
            resource_arn: "ResourceARN", # required
          },
          input_parallelism: {
            count: 1,
          },
          input_schema: { # required
            record_format: { # required
              record_format_type: "JSON", # required, accepts JSON, CSV
              mapping_parameters: {
                json_mapping_parameters: {
                  record_row_path: "RecordRowPath", # required
                },
                csv_mapping_parameters: {
                  record_row_delimiter: "RecordRowDelimiter", # required
                  record_column_delimiter: "RecordColumnDelimiter", # required
                },
              },
            },
            record_encoding: "RecordEncoding",
            record_columns: [ # required
              {
                name: "RecordColumnName", # required
                mapping: "RecordColumnMapping",
                sql_type: "RecordColumnSqlType", # required
              },
            ],
          },
        },
      ],
      outputs: [
        {
          name: "InAppStreamName", # required
          kinesis_streams_output: {
            resource_arn: "ResourceARN", # required
          },
          kinesis_firehose_output: {
            resource_arn: "ResourceARN", # required
          },
          lambda_output: {
            resource_arn: "ResourceARN", # required
          },
          destination_schema: { # required
            record_format_type: "JSON", # required, accepts JSON, CSV
          },
        },
      ],
      reference_data_sources: [
        {
          table_name: "InAppTableName", # required
          s3_reference_data_source: {
            bucket_arn: "BucketARN",
            file_key: "FileKey",
          },
          reference_schema: { # required
            record_format: { # required
              record_format_type: "JSON", # required, accepts JSON, CSV
              mapping_parameters: {
                json_mapping_parameters: {
                  record_row_path: "RecordRowPath", # required
                },
                csv_mapping_parameters: {
                  record_row_delimiter: "RecordRowDelimiter", # required
                  record_column_delimiter: "RecordColumnDelimiter", # required
                },
              },
            },
            record_encoding: "RecordEncoding",
            record_columns: [ # required
              {
                name: "RecordColumnName", # required
                mapping: "RecordColumnMapping",
                sql_type: "RecordColumnSqlType", # required
              },
            ],
          },
        },
      ],
    },
    flink_application_configuration: {
      checkpoint_configuration: {
        configuration_type: "DEFAULT", # required, accepts DEFAULT, CUSTOM
        checkpointing_enabled: false,
        checkpoint_interval: 1,
        min_pause_between_checkpoints: 1,
      },
      monitoring_configuration: {
        configuration_type: "DEFAULT", # required, accepts DEFAULT, CUSTOM
        metrics_level: "APPLICATION", # accepts APPLICATION, TASK, OPERATOR, PARALLELISM
        log_level: "INFO", # accepts INFO, WARN, ERROR, DEBUG
      },
      parallelism_configuration: {
        configuration_type: "DEFAULT", # required, accepts DEFAULT, CUSTOM
        parallelism: 1,
        parallelism_per_kpu: 1,
        auto_scaling_enabled: false,
      },
    },
    environment_properties: {
      property_groups: [ # required
        {
          property_group_id: "Id", # required
          property_map: { # required
            "PropertyKey" => "PropertyValue",
          },
        },
      ],
    },
    application_code_configuration: { # required
      code_content: {
        text_content: "TextContent",
        zip_file_content: "data",
        s3_content_location: {
          bucket_arn: "BucketARN", # required
          file_key: "FileKey", # required
          object_version: "ObjectVersion",
        },
      },
      code_content_type: "PLAINTEXT", # required, accepts PLAINTEXT, ZIPFILE
    },
    application_snapshot_configuration: {
      snapshots_enabled: false, # required
    },
    vpc_configurations: [
      {
        subnet_ids: ["SubnetId"], # required
        security_group_ids: ["SecurityGroupId"], # required
      },
    ],
  },
  cloud_watch_logging_options: [
    {
      log_stream_arn: "LogStreamARN", # required
    },
  ],
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue",
    },
  ],
})

Response structure


resp.application_detail.application_arn #=> String
resp.application_detail.application_description #=> String
resp.application_detail.application_name #=> String
resp.application_detail.runtime_environment #=> String, one of "SQL-1_0", "FLINK-1_6", "FLINK-1_8", "FLINK-1_11"
resp.application_detail.service_execution_role #=> String
resp.application_detail.application_status #=> String, one of "DELETING", "STARTING", "STOPPING", "READY", "RUNNING", "UPDATING", "AUTOSCALING", "FORCE_STOPPING"
resp.application_detail.application_version_id #=> Integer
resp.application_detail.create_timestamp #=> Time
resp.application_detail.last_update_timestamp #=> Time
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_id #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].name_prefix #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].in_app_stream_names #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].in_app_stream_names[0] #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_processing_configuration_description.input_lambda_processor_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_processing_configuration_description.input_lambda_processor_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_streams_input_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_streams_input_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_firehose_input_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_firehose_input_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.record_format_type #=> String, one of "JSON", "CSV"
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.mapping_parameters.json_mapping_parameters.record_row_path #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_row_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_column_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_encoding #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns[0].name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns[0].mapping #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns[0].sql_type #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_parallelism.count #=> Integer
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_starting_position_configuration.input_starting_position #=> String, one of "NOW", "TRIM_HORIZON", "LAST_STOPPED_POINT"
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].output_id #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_streams_output_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_streams_output_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_firehose_output_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_firehose_output_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].lambda_output_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].lambda_output_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].destination_schema.record_format_type #=> String, one of "JSON", "CSV"
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_id #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].table_name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].s3_reference_data_source_description.bucket_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].s3_reference_data_source_description.file_key #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].s3_reference_data_source_description.reference_role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.record_format_type #=> String, one of "JSON", "CSV"
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.json_mapping_parameters.record_row_path #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.csv_mapping_parameters.record_row_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.csv_mapping_parameters.record_column_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_encoding #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns[0].name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns[0].mapping #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns[0].sql_type #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_type #=> String, one of "PLAINTEXT", "ZIPFILE"
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.text_content #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.code_md5 #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.code_size #=> Integer
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.s3_application_code_location_description.bucket_arn #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.s3_application_code_location_description.file_key #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.s3_application_code_location_description.object_version #=> String
resp.application_detail.application_configuration_description.run_configuration_description.application_restore_configuration_description.application_restore_type #=> String, one of "SKIP_RESTORE_FROM_SNAPSHOT", "RESTORE_FROM_LATEST_SNAPSHOT", "RESTORE_FROM_CUSTOM_SNAPSHOT"
resp.application_detail.application_configuration_description.run_configuration_description.application_restore_configuration_description.snapshot_name #=> String
resp.application_detail.application_configuration_description.run_configuration_description.flink_run_configuration_description.allow_non_restored_state #=> true/false
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.configuration_type #=> String, one of "DEFAULT", "CUSTOM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.checkpointing_enabled #=> true/false
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.checkpoint_interval #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.min_pause_between_checkpoints #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.monitoring_configuration_description.configuration_type #=> String, one of "DEFAULT", "CUSTOM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.monitoring_configuration_description.metrics_level #=> String, one of "APPLICATION", "TASK", "OPERATOR", "PARALLELISM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.monitoring_configuration_description.log_level #=> String, one of "INFO", "WARN", "ERROR", "DEBUG"
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.configuration_type #=> String, one of "DEFAULT", "CUSTOM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.parallelism #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.parallelism_per_kpu #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.current_parallelism #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.auto_scaling_enabled #=> true/false
resp.application_detail.application_configuration_description.flink_application_configuration_description.job_plan_description #=> String
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions #=> Array
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions[0].property_group_id #=> String
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions[0].property_map #=> Hash
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions[0].property_map["PropertyKey"] #=> String
resp.application_detail.application_configuration_description.application_snapshot_configuration_description.snapshots_enabled #=> true/false
resp.application_detail.application_configuration_description.vpc_configuration_descriptions #=> Array
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].vpc_configuration_id #=> String
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].vpc_id #=> String
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].subnet_ids #=> Array
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].subnet_ids[0] #=> String
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].security_group_ids #=> Array
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].security_group_ids[0] #=> String
resp.application_detail.cloud_watch_logging_option_descriptions #=> Array
resp.application_detail.cloud_watch_logging_option_descriptions[0].cloud_watch_logging_option_id #=> String
resp.application_detail.cloud_watch_logging_option_descriptions[0].log_stream_arn #=> String
resp.application_detail.cloud_watch_logging_option_descriptions[0].role_arn #=> String

Options Hash (options):

  • :application_name (required, String)

    The name of your application (for example, sample-app).

  • :application_description (String)

    A summary description of the application.

  • :runtime_environment (required, String)

    The runtime environment for the application (SQL-1.0, FLINK-1_6, or FLINK-1_8).

  • :service_execution_role (required, String)

    The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.

  • :application_configuration (Types::ApplicationConfiguration)

    Use this parameter to configure the application.

  • :cloud_watch_logging_options (Array<Types::CloudWatchLoggingOption>)

    Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors.

  • :tags (Array<Types::Tag>)

    A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging.

Returns:

See Also:

#create_application_presigned_url(options = {}) ⇒ Types::CreateApplicationPresignedUrlResponse

Creates and returns a URL that you can use to connect to an application's extension. Currently, the only available extension is the Apache Flink dashboard.

The IAM role or user used to call this API defines the permissions to access the extension. Once the presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for this API are also enforced for every HTTP request that attempts to connect to the extension.

The URL that you get from a call to CreateApplicationPresignedUrl must be used within 3 minutes to be valid. If you first try to use the URL after the 3-minute limit expires, the service returns an HTTP 403 Forbidden error.

Examples:

Request syntax with placeholder values


resp = client.create_application_presigned_url({
  application_name: "ApplicationName", # required
  url_type: "FLINK_DASHBOARD_URL", # required, accepts FLINK_DASHBOARD_URL
  session_expiration_duration_in_seconds: 1,
})

Response structure


resp.authorized_url #=> String

Options Hash (options):

  • :application_name (required, String)

    The name of the application.

  • :url_type (required, String)

    The type of the extension for which to create and return a URL. Currently, the only valid extension URL type is FLINK_DASHBOARD_URL.

  • :session_expiration_duration_in_seconds (Integer)

    The duration in seconds for which the returned URL will be valid.

Returns:

See Also:

#create_application_snapshot(options = {}) ⇒ Struct

Creates a snapshot of the application's state data.

Examples:

Request syntax with placeholder values


resp = client.create_application_snapshot({
  application_name: "ApplicationName", # required
  snapshot_name: "SnapshotName", # required
})

Options Hash (options):

  • :application_name (required, String)

    The name of an existing application

  • :snapshot_name (required, String)

    An identifier for the application snapshot.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#delete_application(options = {}) ⇒ Struct

Deletes the specified application. Kinesis Data Analytics halts application execution and deletes the application.

Examples:

Request syntax with placeholder values


resp = client.delete_application({
  application_name: "ApplicationName", # required
  create_timestamp: Time.now, # required
})

Options Hash (options):

  • :application_name (required, String)

    The name of the application to delete.

  • :create_timestamp (required, Time)

    Use the DescribeApplication operation to get this value.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#delete_application_cloud_watch_logging_option(options = {}) ⇒ Types::DeleteApplicationCloudWatchLoggingOptionResponse

Deletes an Amazon CloudWatch log stream from an Kinesis Data Analytics application.

Examples:

Request syntax with placeholder values


resp = client.delete_application_cloud_watch_logging_option({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  cloud_watch_logging_option_id: "Id", # required
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer
resp.cloud_watch_logging_option_descriptions #=> Array
resp.cloud_watch_logging_option_descriptions[0].cloud_watch_logging_option_id #=> String
resp.cloud_watch_logging_option_descriptions[0].log_stream_arn #=> String
resp.cloud_watch_logging_option_descriptions[0].role_arn #=> String

Options Hash (options):

  • :application_name (required, String)

    The application name.

  • :current_application_version_id (required, Integer)

    The version ID of the application. You can retrieve the application version ID using DescribeApplication.

  • :cloud_watch_logging_option_id (required, String)

    The CloudWatchLoggingOptionId of the Amazon CloudWatch logging option to delete. You can get the CloudWatchLoggingOptionId by using the DescribeApplication operation.

Returns:

See Also:

#delete_application_input_processing_configuration(options = {}) ⇒ Types::DeleteApplicationInputProcessingConfigurationResponse

Deletes an InputProcessingConfiguration from an input.

Examples:

Request syntax with placeholder values


resp = client.delete_application_input_processing_configuration({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  input_id: "Id", # required
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer

Options Hash (options):

  • :application_name (required, String)

    The name of the application.

  • :current_application_version_id (required, Integer)

    The application version. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

  • :input_id (required, String)

    The ID of the input configuration from which to delete the input processing configuration. You can get a list of the input IDs for an application by using the DescribeApplication operation.

Returns:

See Also:

#delete_application_output(options = {}) ⇒ Types::DeleteApplicationOutputResponse

Deletes the output destination configuration from your SQL-based Kinesis Data Analytics application's configuration. Kinesis Data Analytics will no longer write data from the corresponding in-application stream to the external output destination.

Examples:

Request syntax with placeholder values


resp = client.delete_application_output({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  output_id: "Id", # required
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer

Options Hash (options):

  • :application_name (required, String)

    The application name.

  • :current_application_version_id (required, Integer)

    The application version. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

  • :output_id (required, String)

    The ID of the configuration to delete. Each output configuration that is added to the application (either when the application is created or later) using the AddApplicationOutput operation has a unique ID. You need to provide the ID to uniquely identify the output configuration that you want to delete from the application configuration. You can use the DescribeApplication operation to get the specific OutputId.

Returns:

See Also:

#delete_application_reference_data_source(options = {}) ⇒ Types::DeleteApplicationReferenceDataSourceResponse

Deletes a reference data source configuration from the specified SQL-based Kinesis Data Analytics application's configuration.

If the application is running, Kinesis Data Analytics immediately removes the in-application table that you created using the AddApplicationReferenceDataSource operation.

Examples:

Request syntax with placeholder values


resp = client.delete_application_reference_data_source({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  reference_id: "Id", # required
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer

Options Hash (options):

  • :application_name (required, String)

    The name of an existing application.

  • :current_application_version_id (required, Integer)

    The current application version. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

  • :reference_id (required, String)

    The ID of the reference data source. When you add a reference data source to your application using the AddApplicationReferenceDataSource, Kinesis Data Analytics assigns an ID. You can use the DescribeApplication operation to get the reference ID.

Returns:

See Also:

#delete_application_snapshot(options = {}) ⇒ Struct

Deletes a snapshot of application state.

Examples:

Request syntax with placeholder values


resp = client.delete_application_snapshot({
  application_name: "ApplicationName", # required
  snapshot_name: "SnapshotName", # required
  snapshot_creation_timestamp: Time.now, # required
})

Options Hash (options):

  • :application_name (required, String)

    The name of an existing application.

  • :snapshot_name (required, String)

    The identifier for the snapshot delete.

  • :snapshot_creation_timestamp (required, Time)

    The creation timestamp of the application snapshot to delete. You can retrieve this value using or .

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#delete_application_vpc_configuration(options = {}) ⇒ Types::DeleteApplicationVpcConfigurationResponse

Removes a VPC configuration from a Kinesis Data Analytics application.

Examples:

Request syntax with placeholder values


resp = client.delete_application_vpc_configuration({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  vpc_configuration_id: "Id", # required
})

Response structure


resp.application_arn #=> String
resp.application_version_id #=> Integer

Options Hash (options):

  • :application_name (required, String)

    The name of an existing application.

  • :current_application_version_id (required, Integer)

    The current application version ID. You can retrieve the application version ID using DescribeApplication.

  • :vpc_configuration_id (required, String)

    The ID of the VPC configuration to delete.

Returns:

See Also:

#describe_application(options = {}) ⇒ Types::DescribeApplicationResponse

Returns information about a specific Kinesis Data Analytics application.

If you want to retrieve a list of all applications in your account, use the ListApplications operation.

Examples:

Request syntax with placeholder values


resp = client.describe_application({
  application_name: "ApplicationName", # required
  include_additional_details: false,
})

Response structure


resp.application_detail.application_arn #=> String
resp.application_detail.application_description #=> String
resp.application_detail.application_name #=> String
resp.application_detail.runtime_environment #=> String, one of "SQL-1_0", "FLINK-1_6", "FLINK-1_8", "FLINK-1_11"
resp.application_detail.service_execution_role #=> String
resp.application_detail.application_status #=> String, one of "DELETING", "STARTING", "STOPPING", "READY", "RUNNING", "UPDATING", "AUTOSCALING", "FORCE_STOPPING"
resp.application_detail.application_version_id #=> Integer
resp.application_detail.create_timestamp #=> Time
resp.application_detail.last_update_timestamp #=> Time
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_id #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].name_prefix #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].in_app_stream_names #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].in_app_stream_names[0] #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_processing_configuration_description.input_lambda_processor_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_processing_configuration_description.input_lambda_processor_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_streams_input_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_streams_input_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_firehose_input_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_firehose_input_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.record_format_type #=> String, one of "JSON", "CSV"
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.mapping_parameters.json_mapping_parameters.record_row_path #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_row_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_column_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_encoding #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns[0].name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns[0].mapping #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns[0].sql_type #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_parallelism.count #=> Integer
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_starting_position_configuration.input_starting_position #=> String, one of "NOW", "TRIM_HORIZON", "LAST_STOPPED_POINT"
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].output_id #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_streams_output_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_streams_output_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_firehose_output_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_firehose_output_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].lambda_output_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].lambda_output_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].destination_schema.record_format_type #=> String, one of "JSON", "CSV"
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_id #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].table_name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].s3_reference_data_source_description.bucket_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].s3_reference_data_source_description.file_key #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].s3_reference_data_source_description.reference_role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.record_format_type #=> String, one of "JSON", "CSV"
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.json_mapping_parameters.record_row_path #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.csv_mapping_parameters.record_row_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.csv_mapping_parameters.record_column_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_encoding #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns[0].name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns[0].mapping #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns[0].sql_type #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_type #=> String, one of "PLAINTEXT", "ZIPFILE"
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.text_content #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.code_md5 #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.code_size #=> Integer
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.s3_application_code_location_description.bucket_arn #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.s3_application_code_location_description.file_key #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.s3_application_code_location_description.object_version #=> String
resp.application_detail.application_configuration_description.run_configuration_description.application_restore_configuration_description.application_restore_type #=> String, one of "SKIP_RESTORE_FROM_SNAPSHOT", "RESTORE_FROM_LATEST_SNAPSHOT", "RESTORE_FROM_CUSTOM_SNAPSHOT"
resp.application_detail.application_configuration_description.run_configuration_description.application_restore_configuration_description.snapshot_name #=> String
resp.application_detail.application_configuration_description.run_configuration_description.flink_run_configuration_description.allow_non_restored_state #=> true/false
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.configuration_type #=> String, one of "DEFAULT", "CUSTOM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.checkpointing_enabled #=> true/false
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.checkpoint_interval #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.min_pause_between_checkpoints #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.monitoring_configuration_description.configuration_type #=> String, one of "DEFAULT", "CUSTOM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.monitoring_configuration_description.metrics_level #=> String, one of "APPLICATION", "TASK", "OPERATOR", "PARALLELISM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.monitoring_configuration_description.log_level #=> String, one of "INFO", "WARN", "ERROR", "DEBUG"
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.configuration_type #=> String, one of "DEFAULT", "CUSTOM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.parallelism #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.parallelism_per_kpu #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.current_parallelism #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.auto_scaling_enabled #=> true/false
resp.application_detail.application_configuration_description.flink_application_configuration_description.job_plan_description #=> String
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions #=> Array
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions[0].property_group_id #=> String
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions[0].property_map #=> Hash
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions[0].property_map["PropertyKey"] #=> String
resp.application_detail.application_configuration_description.application_snapshot_configuration_description.snapshots_enabled #=> true/false
resp.application_detail.application_configuration_description.vpc_configuration_descriptions #=> Array
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].vpc_configuration_id #=> String
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].vpc_id #=> String
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].subnet_ids #=> Array
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].subnet_ids[0] #=> String
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].security_group_ids #=> Array
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].security_group_ids[0] #=> String
resp.application_detail.cloud_watch_logging_option_descriptions #=> Array
resp.application_detail.cloud_watch_logging_option_descriptions[0].cloud_watch_logging_option_id #=> String
resp.application_detail.cloud_watch_logging_option_descriptions[0].log_stream_arn #=> String
resp.application_detail.cloud_watch_logging_option_descriptions[0].role_arn #=> String

Options Hash (options):

  • :application_name (required, String)

    The name of the application.

  • :include_additional_details (Boolean)

    Displays verbose information about a Kinesis Data Analytics application, including the application\'s job plan.

Returns:

See Also:

#describe_application_snapshot(options = {}) ⇒ Types::DescribeApplicationSnapshotResponse

Returns information about a snapshot of application state data.

Examples:

Request syntax with placeholder values


resp = client.describe_application_snapshot({
  application_name: "ApplicationName", # required
  snapshot_name: "SnapshotName", # required
})

Response structure


resp.snapshot_details.snapshot_name #=> String
resp.snapshot_details.snapshot_status #=> String, one of "CREATING", "READY", "DELETING", "FAILED"
resp.snapshot_details.application_version_id #=> Integer
resp.snapshot_details.snapshot_creation_timestamp #=> Time

Options Hash (options):

  • :application_name (required, String)

    The name of an existing application.

  • :snapshot_name (required, String)

    The identifier of an application snapshot. You can retrieve this value using .

Returns:

See Also:

#discover_input_schema(options = {}) ⇒ Types::DiscoverInputSchemaResponse

Infers a schema for a SQL-based Kinesis Data Analytics application by evaluating sample records on the specified streaming source (Kinesis data stream or Kinesis Data Firehose delivery stream) or Amazon S3 object. In the response, the operation returns the inferred schema and also the sample records that the operation used to infer the schema.

You can use the inferred schema when configuring a streaming source for your application. When you create an application using the Kinesis Data Analytics console, the console uses this operation to infer a schema and show it in the console user interface.

Examples:

Request syntax with placeholder values


resp = client.discover_input_schema({
  resource_arn: "ResourceARN",
  service_execution_role: "RoleARN", # required
  input_starting_position_configuration: {
    input_starting_position: "NOW", # accepts NOW, TRIM_HORIZON, LAST_STOPPED_POINT
  },
  s3_configuration: {
    bucket_arn: "BucketARN", # required
    file_key: "FileKey", # required
  },
  input_processing_configuration: {
    input_lambda_processor: { # required
      resource_arn: "ResourceARN", # required
    },
  },
})

Response structure


resp.input_schema.record_format.record_format_type #=> String, one of "JSON", "CSV"
resp.input_schema.record_format.mapping_parameters.json_mapping_parameters.record_row_path #=> String
resp.input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_row_delimiter #=> String
resp.input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_column_delimiter #=> String
resp.input_schema.record_encoding #=> String
resp.input_schema.record_columns #=> Array
resp.input_schema.record_columns[0].name #=> String
resp.input_schema.record_columns[0].mapping #=> String
resp.input_schema.record_columns[0].sql_type #=> String
resp.parsed_input_records #=> Array
resp.parsed_input_records[0] #=> Array
resp.parsed_input_records[0][0] #=> String
resp.processed_input_records #=> Array
resp.processed_input_records[0] #=> String
resp.raw_input_records #=> Array
resp.raw_input_records[0] #=> String

Options Hash (options):

  • :resource_arn (String)

    The Amazon Resource Name (ARN) of the streaming source.

  • :service_execution_role (required, String)

    The ARN of the role that is used to access the streaming source.

  • :input_starting_position_configuration (Types::InputStartingPositionConfiguration)

    The point at which you want Kinesis Data Analytics to start reading records from the specified streaming source discovery purposes.

  • :s3_configuration (Types::S3Configuration)

    Specify this parameter to discover a schema from data in an Amazon S3 object.

  • :input_processing_configuration (Types::InputProcessingConfiguration)

    The InputProcessingConfiguration to use to preprocess the records before discovering the schema of the records.

Returns:

See Also:

#list_application_snapshots(options = {}) ⇒ Types::ListApplicationSnapshotsResponse

Lists information about the current application snapshots.

Examples:

Request syntax with placeholder values


resp = client.list_application_snapshots({
  application_name: "ApplicationName", # required
  limit: 1,
  next_token: "NextToken",
})

Response structure


resp.snapshot_summaries #=> Array
resp.snapshot_summaries[0].snapshot_name #=> String
resp.snapshot_summaries[0].snapshot_status #=> String, one of "CREATING", "READY", "DELETING", "FAILED"
resp.snapshot_summaries[0].application_version_id #=> Integer
resp.snapshot_summaries[0].snapshot_creation_timestamp #=> Time
resp.next_token #=> String

Options Hash (options):

  • :application_name (required, String)

    The name of an existing application.

  • :limit (Integer)

    The maximum number of application snapshots to list.

  • :next_token (String)

    Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call\'s NextToken response to indicate where the output should continue from.

Returns:

See Also:

#list_applications(options = {}) ⇒ Types::ListApplicationsResponse

Returns a list of Kinesis Data Analytics applications in your account. For each application, the response includes the application name, Amazon Resource Name (ARN), and status.

If you want detailed information about a specific application, use DescribeApplication.

Examples:

Request syntax with placeholder values


resp = client.list_applications({
  limit: 1,
  next_token: "ApplicationName",
})

Response structure


resp.application_summaries #=> Array
resp.application_summaries[0].application_name #=> String
resp.application_summaries[0].application_arn #=> String
resp.application_summaries[0].application_status #=> String, one of "DELETING", "STARTING", "STOPPING", "READY", "RUNNING", "UPDATING", "AUTOSCALING", "FORCE_STOPPING"
resp.application_summaries[0].application_version_id #=> Integer
resp.application_summaries[0].runtime_environment #=> String, one of "SQL-1_0", "FLINK-1_6", "FLINK-1_8", "FLINK-1_11"
resp.next_token #=> String

Options Hash (options):

  • :limit (Integer)

    The maximum number of applications to list.

  • :next_token (String)

    If a previous command returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see Using the AWS Command Line Interface\'s Pagination Options.

Returns:

See Also:

#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse

Retrieves the list of key-value tags assigned to the application. For more information, see Using Tagging.

Examples:

Request syntax with placeholder values


resp = client.list_tags_for_resource({
  resource_arn: "KinesisAnalyticsARN", # required
})

Response structure


resp.tags #=> Array
resp.tags[0].key #=> String
resp.tags[0].value #=> String

Options Hash (options):

  • :resource_arn (required, String)

    The ARN of the application for which to retrieve tags.

Returns:

See Also:

#start_application(options = {}) ⇒ Struct

Starts the specified Kinesis Data Analytics application. After creating an application, you must exclusively call this operation to start your application.

Examples:

Request syntax with placeholder values


resp = client.start_application({
  application_name: "ApplicationName", # required
  run_configuration: { # required
    flink_run_configuration: {
      allow_non_restored_state: false,
    },
    sql_run_configurations: [
      {
        input_id: "Id", # required
        input_starting_position_configuration: { # required
          input_starting_position: "NOW", # accepts NOW, TRIM_HORIZON, LAST_STOPPED_POINT
        },
      },
    ],
    application_restore_configuration: {
      application_restore_type: "SKIP_RESTORE_FROM_SNAPSHOT", # required, accepts SKIP_RESTORE_FROM_SNAPSHOT, RESTORE_FROM_LATEST_SNAPSHOT, RESTORE_FROM_CUSTOM_SNAPSHOT
      snapshot_name: "SnapshotName",
    },
  },
})

Options Hash (options):

  • :application_name (required, String)

    The name of the application.

  • :run_configuration (required, Types::RunConfiguration)

    Identifies the run configuration (start parameters) of a Kinesis Data Analytics application.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#stop_application(options = {}) ⇒ Struct

Stops the application from processing data. You can stop an application only if it is in the running status, unless you set the Force parameter to true.

You can use the DescribeApplication operation to find the application status.

Kinesis Data Analytics takes a snapshot when the application is stopped, unless Force is set to true.

Examples:

Request syntax with placeholder values


resp = client.stop_application({
  application_name: "ApplicationName", # required
  force: false,
})

Options Hash (options):

  • :application_name (required, String)

    The name of the running application to stop.

  • :force (Boolean)

    Set to true to force the application to stop. If you set Force to true, Kinesis Data Analytics stops the application without taking a snapshot.

    Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate processing of data during application restarts, we recommend you to take frequent snapshots of your application.

    You can only force stop a Flink-based Kinesis Data Analytics application. You can\'t force stop a SQL-based Kinesis Data Analytics application.

    The application must be in the STARTING, UPDATING, STOPPING, AUTOSCALING, or RUNNING status.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#tag_resource(options = {}) ⇒ Struct

Adds one or more key-value tags to a Kinesis Data Analytics application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "KinesisAnalyticsARN", # required
  tags: [ # required
    {
      key: "TagKey", # required
      value: "TagValue",
    },
  ],
})

Options Hash (options):

  • :resource_arn (required, String)

    The ARN of the application to assign the tags.

  • :tags (required, Array<Types::Tag>)

    The key-value tags to assign to the application.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#untag_resource(options = {}) ⇒ Struct

Removes one or more tags from a Kinesis Data Analytics application. For more information, see Using Tagging.

Examples:

Request syntax with placeholder values


resp = client.untag_resource({
  resource_arn: "KinesisAnalyticsARN", # required
  tag_keys: ["TagKey"], # required
})

Options Hash (options):

  • :resource_arn (required, String)

    The ARN of the Kinesis Data Analytics application from which to remove the tags.

  • :tag_keys (required, Array<String>)

    A list of keys of tags to remove from the specified application.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#update_application(options = {}) ⇒ Types::UpdateApplicationResponse

Updates an existing Kinesis Data Analytics application. Using this operation, you can update application code, input configuration, and output configuration.

Kinesis Data Analytics updates the ApplicationVersionId each time you update your application.

You cannot update the RuntimeEnvironment of an existing application. If you need to update an application's RuntimeEnvironment, you must delete the application and create it again.

Examples:

Request syntax with placeholder values


resp = client.update_application({
  application_name: "ApplicationName", # required
  current_application_version_id: 1, # required
  application_configuration_update: {
    sql_application_configuration_update: {
      input_updates: [
        {
          input_id: "Id", # required
          name_prefix_update: "InAppStreamName",
          input_processing_configuration_update: {
            input_lambda_processor_update: { # required
              resource_arn_update: "ResourceARN", # required
            },
          },
          kinesis_streams_input_update: {
            resource_arn_update: "ResourceARN", # required
          },
          kinesis_firehose_input_update: {
            resource_arn_update: "ResourceARN", # required
          },
          input_schema_update: {
            record_format_update: {
              record_format_type: "JSON", # required, accepts JSON, CSV
              mapping_parameters: {
                json_mapping_parameters: {
                  record_row_path: "RecordRowPath", # required
                },
                csv_mapping_parameters: {
                  record_row_delimiter: "RecordRowDelimiter", # required
                  record_column_delimiter: "RecordColumnDelimiter", # required
                },
              },
            },
            record_encoding_update: "RecordEncoding",
            record_column_updates: [
              {
                name: "RecordColumnName", # required
                mapping: "RecordColumnMapping",
                sql_type: "RecordColumnSqlType", # required
              },
            ],
          },
          input_parallelism_update: {
            count_update: 1, # required
          },
        },
      ],
      output_updates: [
        {
          output_id: "Id", # required
          name_update: "InAppStreamName",
          kinesis_streams_output_update: {
            resource_arn_update: "ResourceARN", # required
          },
          kinesis_firehose_output_update: {
            resource_arn_update: "ResourceARN", # required
          },
          lambda_output_update: {
            resource_arn_update: "ResourceARN", # required
          },
          destination_schema_update: {
            record_format_type: "JSON", # required, accepts JSON, CSV
          },
        },
      ],
      reference_data_source_updates: [
        {
          reference_id: "Id", # required
          table_name_update: "InAppTableName",
          s3_reference_data_source_update: {
            bucket_arn_update: "BucketARN",
            file_key_update: "FileKey",
          },
          reference_schema_update: {
            record_format: { # required
              record_format_type: "JSON", # required, accepts JSON, CSV
              mapping_parameters: {
                json_mapping_parameters: {
                  record_row_path: "RecordRowPath", # required
                },
                csv_mapping_parameters: {
                  record_row_delimiter: "RecordRowDelimiter", # required
                  record_column_delimiter: "RecordColumnDelimiter", # required
                },
              },
            },
            record_encoding: "RecordEncoding",
            record_columns: [ # required
              {
                name: "RecordColumnName", # required
                mapping: "RecordColumnMapping",
                sql_type: "RecordColumnSqlType", # required
              },
            ],
          },
        },
      ],
    },
    application_code_configuration_update: {
      code_content_type_update: "PLAINTEXT", # accepts PLAINTEXT, ZIPFILE
      code_content_update: {
        text_content_update: "TextContent",
        zip_file_content_update: "data",
        s3_content_location_update: {
          bucket_arn_update: "BucketARN",
          file_key_update: "FileKey",
          object_version_update: "ObjectVersion",
        },
      },
    },
    flink_application_configuration_update: {
      checkpoint_configuration_update: {
        configuration_type_update: "DEFAULT", # accepts DEFAULT, CUSTOM
        checkpointing_enabled_update: false,
        checkpoint_interval_update: 1,
        min_pause_between_checkpoints_update: 1,
      },
      monitoring_configuration_update: {
        configuration_type_update: "DEFAULT", # accepts DEFAULT, CUSTOM
        metrics_level_update: "APPLICATION", # accepts APPLICATION, TASK, OPERATOR, PARALLELISM
        log_level_update: "INFO", # accepts INFO, WARN, ERROR, DEBUG
      },
      parallelism_configuration_update: {
        configuration_type_update: "DEFAULT", # accepts DEFAULT, CUSTOM
        parallelism_update: 1,
        parallelism_per_kpu_update: 1,
        auto_scaling_enabled_update: false,
      },
    },
    environment_property_updates: {
      property_groups: [ # required
        {
          property_group_id: "Id", # required
          property_map: { # required
            "PropertyKey" => "PropertyValue",
          },
        },
      ],
    },
    application_snapshot_configuration_update: {
      snapshots_enabled_update: false, # required
    },
    vpc_configuration_updates: [
      {
        vpc_configuration_id: "Id", # required
        subnet_id_updates: ["SubnetId"],
        security_group_id_updates: ["SecurityGroupId"],
      },
    ],
  },
  service_execution_role_update: "RoleARN",
  run_configuration_update: {
    flink_run_configuration: {
      allow_non_restored_state: false,
    },
    application_restore_configuration: {
      application_restore_type: "SKIP_RESTORE_FROM_SNAPSHOT", # required, accepts SKIP_RESTORE_FROM_SNAPSHOT, RESTORE_FROM_LATEST_SNAPSHOT, RESTORE_FROM_CUSTOM_SNAPSHOT
      snapshot_name: "SnapshotName",
    },
  },
  cloud_watch_logging_option_updates: [
    {
      cloud_watch_logging_option_id: "Id", # required
      log_stream_arn_update: "LogStreamARN",
    },
  ],
})

Response structure


resp.application_detail.application_arn #=> String
resp.application_detail.application_description #=> String
resp.application_detail.application_name #=> String
resp.application_detail.runtime_environment #=> String, one of "SQL-1_0", "FLINK-1_6", "FLINK-1_8", "FLINK-1_11"
resp.application_detail.service_execution_role #=> String
resp.application_detail.application_status #=> String, one of "DELETING", "STARTING", "STOPPING", "READY", "RUNNING", "UPDATING", "AUTOSCALING", "FORCE_STOPPING"
resp.application_detail.application_version_id #=> Integer
resp.application_detail.create_timestamp #=> Time
resp.application_detail.last_update_timestamp #=> Time
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_id #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].name_prefix #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].in_app_stream_names #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].in_app_stream_names[0] #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_processing_configuration_description.input_lambda_processor_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_processing_configuration_description.input_lambda_processor_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_streams_input_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_streams_input_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_firehose_input_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].kinesis_firehose_input_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.record_format_type #=> String, one of "JSON", "CSV"
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.mapping_parameters.json_mapping_parameters.record_row_path #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_row_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_format.mapping_parameters.csv_mapping_parameters.record_column_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_encoding #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns[0].name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns[0].mapping #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_schema.record_columns[0].sql_type #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_parallelism.count #=> Integer
resp.application_detail.application_configuration_description.sql_application_configuration_description.input_descriptions[0].input_starting_position_configuration.input_starting_position #=> String, one of "NOW", "TRIM_HORIZON", "LAST_STOPPED_POINT"
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].output_id #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_streams_output_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_streams_output_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_firehose_output_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].kinesis_firehose_output_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].lambda_output_description.resource_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].lambda_output_description.role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.output_descriptions[0].destination_schema.record_format_type #=> String, one of "JSON", "CSV"
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_id #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].table_name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].s3_reference_data_source_description.bucket_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].s3_reference_data_source_description.file_key #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].s3_reference_data_source_description.reference_role_arn #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.record_format_type #=> String, one of "JSON", "CSV"
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.json_mapping_parameters.record_row_path #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.csv_mapping_parameters.record_row_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_format.mapping_parameters.csv_mapping_parameters.record_column_delimiter #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_encoding #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns #=> Array
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns[0].name #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns[0].mapping #=> String
resp.application_detail.application_configuration_description.sql_application_configuration_description.reference_data_source_descriptions[0].reference_schema.record_columns[0].sql_type #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_type #=> String, one of "PLAINTEXT", "ZIPFILE"
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.text_content #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.code_md5 #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.code_size #=> Integer
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.s3_application_code_location_description.bucket_arn #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.s3_application_code_location_description.file_key #=> String
resp.application_detail.application_configuration_description.application_code_configuration_description.code_content_description.s3_application_code_location_description.object_version #=> String
resp.application_detail.application_configuration_description.run_configuration_description.application_restore_configuration_description.application_restore_type #=> String, one of "SKIP_RESTORE_FROM_SNAPSHOT", "RESTORE_FROM_LATEST_SNAPSHOT", "RESTORE_FROM_CUSTOM_SNAPSHOT"
resp.application_detail.application_configuration_description.run_configuration_description.application_restore_configuration_description.snapshot_name #=> String
resp.application_detail.application_configuration_description.run_configuration_description.flink_run_configuration_description.allow_non_restored_state #=> true/false
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.configuration_type #=> String, one of "DEFAULT", "CUSTOM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.checkpointing_enabled #=> true/false
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.checkpoint_interval #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.checkpoint_configuration_description.min_pause_between_checkpoints #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.monitoring_configuration_description.configuration_type #=> String, one of "DEFAULT", "CUSTOM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.monitoring_configuration_description.metrics_level #=> String, one of "APPLICATION", "TASK", "OPERATOR", "PARALLELISM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.monitoring_configuration_description.log_level #=> String, one of "INFO", "WARN", "ERROR", "DEBUG"
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.configuration_type #=> String, one of "DEFAULT", "CUSTOM"
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.parallelism #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.parallelism_per_kpu #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.current_parallelism #=> Integer
resp.application_detail.application_configuration_description.flink_application_configuration_description.parallelism_configuration_description.auto_scaling_enabled #=> true/false
resp.application_detail.application_configuration_description.flink_application_configuration_description.job_plan_description #=> String
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions #=> Array
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions[0].property_group_id #=> String
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions[0].property_map #=> Hash
resp.application_detail.application_configuration_description.environment_property_descriptions.property_group_descriptions[0].property_map["PropertyKey"] #=> String
resp.application_detail.application_configuration_description.application_snapshot_configuration_description.snapshots_enabled #=> true/false
resp.application_detail.application_configuration_description.vpc_configuration_descriptions #=> Array
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].vpc_configuration_id #=> String
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].vpc_id #=> String
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].subnet_ids #=> Array
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].subnet_ids[0] #=> String
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].security_group_ids #=> Array
resp.application_detail.application_configuration_description.vpc_configuration_descriptions[0].security_group_ids[0] #=> String
resp.application_detail.cloud_watch_logging_option_descriptions #=> Array
resp.application_detail.cloud_watch_logging_option_descriptions[0].cloud_watch_logging_option_id #=> String
resp.application_detail.cloud_watch_logging_option_descriptions[0].log_stream_arn #=> String
resp.application_detail.cloud_watch_logging_option_descriptions[0].role_arn #=> String

Options Hash (options):

  • :application_name (required, String)

    The name of the application to update.

  • :current_application_version_id (required, Integer)

    The current application version ID. You can retrieve the application version ID using DescribeApplication.

  • :application_configuration_update (Types::ApplicationConfigurationUpdate)

    Describes application configuration updates.

  • :service_execution_role_update (String)

    Describes updates to the service execution role.

  • :run_configuration_update (Types::RunConfigurationUpdate)

    Describes updates to the application\'s starting parameters.

  • :cloud_watch_logging_option_updates (Array<Types::CloudWatchLoggingOptionUpdate>)

    Describes application Amazon CloudWatch logging option updates. You can only update existing CloudWatch logging options with this action. To add a new CloudWatch logging option, use AddApplicationCloudWatchLoggingOption.

Returns:

See Also:

#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean

Waiters polls an API operation until a resource enters a desired state.

Basic Usage

Waiters will poll until they are succesful, they fail by entering a terminal state, or until a maximum number of attempts are made.

# polls in a loop, sleeping between attempts client.waiter_until(waiter_name, params)

Configuration

You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You configure waiters by passing a block to #wait_until:

# poll for ~25 seconds
client.wait_until(...) do |w|
  w.max_attempts = 5
  w.delay = 5
end

Callbacks

You can be notified before each polling attempt and before each delay. If you throw :success or :failure from these callbacks, it will terminate the waiter.

started_at = Time.now
client.wait_until(...) do |w|

  # disable max attempts
  w.max_attempts = nil

  # poll for 1 hour, instead of a number of attempts
  w.before_wait do |attempts, response|
    throw :failure if Time.now - started_at > 3600
  end

end

Handling Errors

When a waiter is successful, it returns true. When a waiter fails, it raises an error. All errors raised extend from Waiters::Errors::WaiterFailed.

begin
  client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
  # resource did not enter the desired state in time
end

Parameters:

  • waiter_name (Symbol)

    The name of the waiter. See #waiter_names for a full list of supported waiters.

  • params (Hash) (defaults to: {})

    Additional request parameters. See the #waiter_names for a list of supported waiters and what request they call. The called request determines the list of accepted parameters.

Yield Parameters:

Returns:

  • (Boolean)

    Returns true if the waiter was successful.

Raises:

  • (Errors::FailureStateError)

    Raised when the waiter terminates because the waiter has entered a state that it will not transition out of, preventing success.

  • (Errors::TooManyAttemptsError)

    Raised when the configured maximum number of attempts have been made, and the waiter is not yet successful.

  • (Errors::UnexpectedError)

    Raised when an error is encounted while polling for a resource that is not expected.

  • (Errors::NoSuchWaiterError)

    Raised when you request to wait for an unknown state.

#waiter_namesArray<Symbol>

Returns the list of supported waiters. The following table lists the supported waiters and the client method they call:

Waiter NameClient MethodDefault Delay:Default Max Attempts:

Returns:

  • (Array<Symbol>)

    the list of supported waiters.