Class: Aws::DataExchange::Client

Inherits:
Seahorse::Client::Base show all
Includes:
ClientStubs
Defined in:
gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb

Overview

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

client = Aws::DataExchange::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

For details on configuring region and credentials see the developer guide.

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

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

API Operations collapse

Instance Method Summary collapse

Methods included from ClientStubs

#api_requests, #stub_data, #stub_responses

Methods inherited from Seahorse::Client::Base

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

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.

Parameters:

  • options (Hash)

Options Hash (options):

  • :credentials (required, Aws::CredentialProvider)

    Your AWS credentials. This can be an instance of any one of the following classes:

    • Aws::Credentials - Used for configuring static, non-refreshing credentials.

    • Aws::SharedCredentials - Used for loading static credentials from a shared file, such as ~/.aws/config.

    • Aws::AssumeRoleCredentials - Used when you need to assume a role.

    • Aws::AssumeRoleWebIdentityCredentials - Used when you need to assume a role after providing credentials via the web.

    • Aws::SSOCredentials - Used for loading credentials from AWS SSO using an access token generated from aws login.

    • Aws::ProcessCredentials - Used for loading credentials from a process that outputs to stdout.

    • Aws::InstanceProfileCredentials - Used for loading credentials from an EC2 IMDS on an EC2 instance.

    • Aws::ECSCredentials - Used for loading credentials from instances running in ECS.

    • Aws::CognitoIdentityCredentials - Used for loading credentials from the Cognito Identity service.

    When :credentials are not configured directly, the following locations will be searched for credentials:

    • Aws.config[:credentials]
    • The :access_key_id, :secret_access_key, and :session_token options.
    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
    • ~/.aws/credentials
    • ~/.aws/config
    • EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive. Construct and pass an instance of Aws::InstanceProfileCredentails or Aws::ECSCredentials to enable retries and extended timeouts. Instance profile credential fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] to true.
  • :region (required, String)

    The AWS region to connect to. The configured :region is used to determine the service :endpoint. When not passed, a default :region is searched for in the following locations:

    • Aws.config[:region]
    • ENV['AWS_REGION']
    • ENV['AMAZON_REGION']
    • ENV['AWS_DEFAULT_REGION']
    • ~/.aws/credentials
    • ~/.aws/config
  • :access_key_id (String)
  • :active_endpoint_cache (Boolean) — default: false

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

  • :adaptive_retry_wait_to_fill (Boolean) — default: true

    Used only in adaptive retry mode. When true, the request will sleep until there is sufficent client side capacity to retry the request. When false, the request will raise a RetryCapacityNotAvailableError and will not retry instead of sleeping.

  • :client_side_monitoring (Boolean) — default: false

    When true, client-side metrics will be collected for all API requests from this client.

  • :client_side_monitoring_client_id (String) — default: ""

    Allows you to provide an identifier for this client which will be attached to all generated client side metrics. Defaults to an empty string.

  • :client_side_monitoring_host (String) — default: "127.0.0.1"

    Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_port (Integer) — default: 31000

    Required for publishing client metrics. The port that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) — default: Aws::ClientSideMonitoring::Publisher

    Allows you to provide a custom client-side monitoring publisher class. By default, will use the Client Side Monitoring Agent Publisher.

  • :convert_params (Boolean) — default: true

    When true, an attempt is made to coerce request parameters into the required types.

  • :correct_clock_skew (Boolean) — default: true

    Used only in standard and adaptive retry modes. Specifies whether to apply a clock skew correction and retry requests with skewed client clocks.

  • :defaults_mode (String) — default: "legacy"

    See Aws::DefaultsModeConfiguration for a list of the accepted modes and the configuration defaults that are included.

  • :disable_host_prefix_injection (Boolean) — default: false

    Set to true to disable SDK automatically adding host prefix to default service endpoint when available.

  • :endpoint (String)

    The client endpoint is normally constructed from the :region option. You should only configure an :endpoint when connecting to test or custom endpoints. This should be a valid HTTP(S) URI.

  • :endpoint_cache_max_entries (Integer) — default: 1000

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000.

  • :endpoint_cache_max_threads (Integer) — default: 10

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.

  • :endpoint_cache_poll_interval (Integer) — default: 60

    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.

  • :endpoint_discovery (Boolean) — default: false

    When set to true, endpoint discovery will be enabled for operations when available.

  • :log_formatter (Aws::Log::Formatter) — default: Aws::Log::Formatter.default

    The log formatter.

  • :log_level (Symbol) — default: :info

    The log level to send messages to the :logger at.

  • :logger (Logger)

    The Logger instance to send log messages to. If this option is not set, logging will be disabled.

  • :max_attempts (Integer) — default: 3

    An integer representing the maximum number attempts that will be made for a single request, including the initial attempt. For example, setting this value to 5 will result in a request being retried up to 4 times. Used in standard and adaptive retry modes.

  • :profile (String) — default: "default"

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used.

  • :retry_backoff (Proc)

    A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. This option is only used in the legacy retry mode.

  • :retry_base_delay (Float) — default: 0.3

    The base delay in seconds used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_jitter (Symbol) — default: :none

    A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number. This option is only used in the legacy retry mode.

    @see https://www.awsarchitectureblog.com/2015/03/backoff.html

  • :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, auth errors, endpoint discovery, and errors from expired credentials. This option is only used in the legacy retry mode.

  • :retry_max_delay (Integer) — default: 0

    The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_mode (String) — default: "legacy"

    Specifies which retry algorithm to use. Values are:

    • legacy - The pre-existing retry behavior. This is default value if no retry mode is provided.

    • standard - A standardized set of retry rules across the AWS SDKs. This includes support for retry quotas, which limit the number of unsuccessful retries a client can make.

    • adaptive - An experimental retry mode that includes all the functionality of standard mode along with automatic client side throttling. This is a provisional mode that may change behavior in the future.

  • :secret_access_key (String)
  • :session_token (String)
  • :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.

  • :use_dualstack_endpoint (Boolean)

    When set to true, dualstack enabled endpoints (with .aws TLD) will be used if available.

  • :use_fips_endpoint (Boolean)

    When set to true, fips compatible endpoints will be used if available. When a fips region is used, the region is normalized and this config is set to true.

  • :validate_params (Boolean) — default: true

    When true, request parameters are validated before sending the request.

  • :http_proxy (URI::HTTP, String)

    A proxy to send requests through. Formatted like 'http://proxy.com:123'.

  • :http_open_timeout (Float) — default: 15

    The number of seconds to wait when opening a HTTP session before raising a Timeout::Error.

  • :http_read_timeout (Float) — default: 60

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_idle_timeout (Float) — default: 5

    The number of seconds a connection is allowed to sit idle before it is considered stale. Stale connections are closed and removed from the pool before making a request.

  • :http_continue_timeout (Float) — default: 1

    The number of seconds to wait for a 100-continue response before sending the request body. This option has no effect unless the request has "Expect" header set to "100-continue". Defaults to nil which disables this behaviour. This value can safely be set per request on the session.

  • :ssl_timeout (Float) — default: nil

    Sets the SSL timeout in seconds.

  • :http_wire_trace (Boolean) — default: false

    When true, HTTP debug output will be sent to the :logger.

  • :ssl_verify_peer (Boolean) — default: true

    When true, SSL peer certificates are verified when establishing a connection.

  • :ssl_ca_bundle (String)

    Full path to the SSL certificate authority bundle file that should be used when verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_directory (String)

    Full path of the directory that contains the unbundled SSL certificate authority files for verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.



348
349
350
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 348

def initialize(*args)
  super
end

Instance Method Details

#cancel_job(params = {}) ⇒ Struct

This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state.

Examples:

Request syntax with placeholder values


resp = client.cancel_job({
  job_id: "__string", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :job_id (required, String)

    The unique identifier for a job.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



372
373
374
375
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 372

def cancel_job(params = {}, options = {})
  req = build_request(:cancel_job, params)
  req.send_request(options)
end

#create_data_set(params = {}) ⇒ Types::CreateDataSetResponse

This operation creates a data set.

Examples:

Request syntax with placeholder values


resp = client.create_data_set({
  asset_type: "S3_SNAPSHOT", # required, accepts S3_SNAPSHOT, REDSHIFT_DATA_SHARE, API_GATEWAY_API
  description: "Description", # required
  name: "Name", # required
  tags: {
    "__string" => "__string",
  },
})

Response structure


resp.arn #=> String
resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
resp.created_at #=> Time
resp.description #=> String
resp.id #=> String
resp.name #=> String
resp.origin #=> String, one of "OWNED", "ENTITLED"
resp.origin_details.product_id #=> String
resp.source_id #=> String
resp.tags #=> Hash
resp.tags["__string"] #=> String
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :asset_type (required, String)

    The type of asset that is added to a data set.

  • :description (required, String)

    A description for the data set. This value can be up to 16,348 characters long.

  • :name (required, String)

    The name of the data set.

  • :tags (Hash<String,String>)

    A data set tag is an optional label that you can assign to a data set when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions.

Returns:

See Also:



440
441
442
443
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 440

def create_data_set(params = {}, options = {})
  req = build_request(:create_data_set, params)
  req.send_request(options)
end

#create_event_action(params = {}) ⇒ Types::CreateEventActionResponse

This operation creates an event action.

Examples:

Request syntax with placeholder values


resp = client.create_event_action({
  action: { # required
    export_revision_to_s3: {
      encryption: {
        kms_key_arn: "__string",
        type: "aws:kms", # required, accepts aws:kms, AES256
      },
      revision_destination: { # required
        bucket: "__string", # required
        key_pattern: "__string",
      },
    },
  },
  event: { # required
    revision_published: {
      data_set_id: "Id", # required
    },
  },
})

Response structure


resp.action.export_revision_to_s3.encryption.kms_key_arn #=> String
resp.action.export_revision_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.action.export_revision_to_s3.revision_destination.bucket #=> String
resp.action.export_revision_to_s3.revision_destination.key_pattern #=> String
resp.arn #=> String
resp.created_at #=> Time
resp.event.revision_published.data_set_id #=> String
resp.id #=> String
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :action (required, Types::Action)

    What occurs after a certain event.

  • :event (required, Types::Event)

    What occurs to start an action.

Returns:

See Also:



500
501
502
503
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 500

def create_event_action(params = {}, options = {})
  req = build_request(:create_event_action, params)
  req.send_request(options)
end

#create_job(params = {}) ⇒ Types::CreateJobResponse

This operation creates a job.

Examples:

Request syntax with placeholder values


resp = client.create_job({
  details: { # required
    export_asset_to_signed_url: {
      asset_id: "Id", # required
      data_set_id: "Id", # required
      revision_id: "Id", # required
    },
    export_assets_to_s3: {
      asset_destinations: [ # required
        {
          asset_id: "Id", # required
          bucket: "__string", # required
          key: "__string",
        },
      ],
      data_set_id: "Id", # required
      encryption: {
        kms_key_arn: "__string",
        type: "aws:kms", # required, accepts aws:kms, AES256
      },
      revision_id: "Id", # required
    },
    export_revisions_to_s3: {
      data_set_id: "Id", # required
      encryption: {
        kms_key_arn: "__string",
        type: "aws:kms", # required, accepts aws:kms, AES256
      },
      revision_destinations: [ # required
        {
          bucket: "__string", # required
          key_pattern: "__string",
          revision_id: "Id", # required
        },
      ],
    },
    import_asset_from_signed_url: {
      asset_name: "AssetName", # required
      data_set_id: "Id", # required
      md_5_hash: "__stringMin24Max24PatternAZaZ094AZaZ092AZaZ093", # required
      revision_id: "Id", # required
    },
    import_assets_from_s3: {
      asset_sources: [ # required
        {
          bucket: "__string", # required
          key: "__string", # required
        },
      ],
      data_set_id: "Id", # required
      revision_id: "Id", # required
    },
    import_assets_from_redshift_data_shares: {
      asset_sources: [ # required
        {
          data_share_arn: "__string", # required
        },
      ],
      data_set_id: "Id", # required
      revision_id: "Id", # required
    },
    import_asset_from_api_gateway_api: {
      api_description: "ApiDescription",
      api_id: "__string", # required
      api_key: "__string",
      api_name: "__string", # required
      api_specification_md_5_hash: "__stringMin24Max24PatternAZaZ094AZaZ092AZaZ093", # required
      data_set_id: "Id", # required
      protocol_type: "REST", # required, accepts REST
      revision_id: "Id", # required
      stage: "__string", # required
    },
  },
  type: "IMPORT_ASSETS_FROM_S3", # required, accepts IMPORT_ASSETS_FROM_S3, IMPORT_ASSET_FROM_SIGNED_URL, EXPORT_ASSETS_TO_S3, EXPORT_ASSET_TO_SIGNED_URL, EXPORT_REVISIONS_TO_S3, IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES, IMPORT_ASSET_FROM_API_GATEWAY_API
})

Response structure


resp.arn #=> String
resp.created_at #=> Time
resp.details.export_asset_to_signed_url.asset_id #=> String
resp.details.export_asset_to_signed_url.data_set_id #=> String
resp.details.export_asset_to_signed_url.revision_id #=> String
resp.details.export_asset_to_signed_url.signed_url #=> String
resp.details.export_asset_to_signed_url.signed_url_expires_at #=> Time
resp.details.export_assets_to_s3.asset_destinations #=> Array
resp.details.export_assets_to_s3.asset_destinations[0].asset_id #=> String
resp.details.export_assets_to_s3.asset_destinations[0].bucket #=> String
resp.details.export_assets_to_s3.asset_destinations[0].key #=> String
resp.details.export_assets_to_s3.data_set_id #=> String
resp.details.export_assets_to_s3.encryption.kms_key_arn #=> String
resp.details.export_assets_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.details.export_assets_to_s3.revision_id #=> String
resp.details.export_revisions_to_s3.data_set_id #=> String
resp.details.export_revisions_to_s3.encryption.kms_key_arn #=> String
resp.details.export_revisions_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.details.export_revisions_to_s3.revision_destinations #=> Array
resp.details.export_revisions_to_s3.revision_destinations[0].bucket #=> String
resp.details.export_revisions_to_s3.revision_destinations[0].key_pattern #=> String
resp.details.export_revisions_to_s3.revision_destinations[0].revision_id #=> String
resp.details.export_revisions_to_s3.event_action_arn #=> String
resp.details.import_asset_from_signed_url.asset_name #=> String
resp.details.import_asset_from_signed_url.data_set_id #=> String
resp.details.import_asset_from_signed_url.md_5_hash #=> String
resp.details.import_asset_from_signed_url.revision_id #=> String
resp.details.import_asset_from_signed_url.signed_url #=> String
resp.details.import_asset_from_signed_url.signed_url_expires_at #=> Time
resp.details.import_assets_from_s3.asset_sources #=> Array
resp.details.import_assets_from_s3.asset_sources[0].bucket #=> String
resp.details.import_assets_from_s3.asset_sources[0].key #=> String
resp.details.import_assets_from_s3.data_set_id #=> String
resp.details.import_assets_from_s3.revision_id #=> String
resp.details.import_assets_from_redshift_data_shares.asset_sources #=> Array
resp.details.import_assets_from_redshift_data_shares.asset_sources[0].data_share_arn #=> String
resp.details.import_assets_from_redshift_data_shares.data_set_id #=> String
resp.details.import_assets_from_redshift_data_shares.revision_id #=> String
resp.details.import_asset_from_api_gateway_api.api_description #=> String
resp.details.import_asset_from_api_gateway_api.api_id #=> String
resp.details.import_asset_from_api_gateway_api.api_key #=> String
resp.details.import_asset_from_api_gateway_api.api_name #=> String
resp.details.import_asset_from_api_gateway_api.api_specification_md_5_hash #=> String
resp.details.import_asset_from_api_gateway_api.api_specification_upload_url #=> String
resp.details.import_asset_from_api_gateway_api.api_specification_upload_url_expires_at #=> Time
resp.details.import_asset_from_api_gateway_api.data_set_id #=> String
resp.details.import_asset_from_api_gateway_api.protocol_type #=> String, one of "REST"
resp.details.import_asset_from_api_gateway_api.revision_id #=> String
resp.details.import_asset_from_api_gateway_api.stage #=> String
resp.errors #=> Array
resp.errors[0].code #=> String, one of "ACCESS_DENIED_EXCEPTION", "INTERNAL_SERVER_EXCEPTION", "MALWARE_DETECTED", "RESOURCE_NOT_FOUND_EXCEPTION", "SERVICE_QUOTA_EXCEEDED_EXCEPTION", "VALIDATION_EXCEPTION", "MALWARE_SCAN_ENCRYPTED_FILE"
resp.errors[0].details.import_asset_from_signed_url_job_error_details.asset_name #=> String
resp.errors[0].details.import_assets_from_s3_job_error_details #=> Array
resp.errors[0].details.import_assets_from_s3_job_error_details[0].bucket #=> String
resp.errors[0].details.import_assets_from_s3_job_error_details[0].key #=> String
resp.errors[0].limit_name #=> String, one of "Assets per revision", "Asset size in GB", "Amazon Redshift datashare assets per revision"
resp.errors[0].limit_value #=> Float
resp.errors[0].message #=> String
resp.errors[0].resource_id #=> String
resp.errors[0].resource_type #=> String, one of "REVISION", "ASSET", "DATA_SET"
resp.id #=> String
resp.state #=> String, one of "WAITING", "IN_PROGRESS", "ERROR", "COMPLETED", "CANCELLED", "TIMED_OUT"
resp.type #=> String, one of "IMPORT_ASSETS_FROM_S3", "IMPORT_ASSET_FROM_SIGNED_URL", "EXPORT_ASSETS_TO_S3", "EXPORT_ASSET_TO_SIGNED_URL", "EXPORT_REVISIONS_TO_S3", "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES", "IMPORT_ASSET_FROM_API_GATEWAY_API"
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :details (required, Types::RequestDetails)

    The details for the CreateJob request.

  • :type (required, String)

    The type of job to be created.

Returns:

See Also:



673
674
675
676
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 673

def create_job(params = {}, options = {})
  req = build_request(:create_job, params)
  req.send_request(options)
end

#create_revision(params = {}) ⇒ Types::CreateRevisionResponse

This operation creates a revision for a data set.

Examples:

Request syntax with placeholder values


resp = client.create_revision({
  comment: "__stringMin0Max16384",
  data_set_id: "__string", # required
  tags: {
    "__string" => "__string",
  },
})

Response structure


resp.arn #=> String
resp.comment #=> String
resp.created_at #=> Time
resp.data_set_id #=> String
resp.finalized #=> Boolean
resp.id #=> String
resp.source_id #=> String
resp.tags #=> Hash
resp.tags["__string"] #=> String
resp.updated_at #=> Time
resp.revocation_comment #=> String
resp.revoked #=> Boolean
resp.revoked_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :comment (String)

    An optional comment about the revision.

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :tags (Hash<String,String>)

    A revision tag is an optional label that you can assign to a revision when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions.

Returns:

See Also:



738
739
740
741
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 738

def create_revision(params = {}, options = {})
  req = build_request(:create_revision, params)
  req.send_request(options)
end

#delete_asset(params = {}) ⇒ Struct

This operation deletes an asset.

Examples:

Request syntax with placeholder values


resp = client.delete_asset({
  asset_id: "__string", # required
  data_set_id: "__string", # required
  revision_id: "__string", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :asset_id (required, String)

    The unique identifier for an asset.

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :revision_id (required, String)

    The unique identifier for a revision.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



768
769
770
771
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 768

def delete_asset(params = {}, options = {})
  req = build_request(:delete_asset, params)
  req.send_request(options)
end

#delete_data_set(params = {}) ⇒ Struct

This operation deletes a data set.

Examples:

Request syntax with placeholder values


resp = client.delete_data_set({
  data_set_id: "__string", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :data_set_id (required, String)

    The unique identifier for a data set.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



790
791
792
793
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 790

def delete_data_set(params = {}, options = {})
  req = build_request(:delete_data_set, params)
  req.send_request(options)
end

#delete_event_action(params = {}) ⇒ Struct

This operation deletes the event action.

Examples:

Request syntax with placeholder values


resp = client.delete_event_action({
  event_action_id: "__string", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :event_action_id (required, String)

    The unique identifier for the event action.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



812
813
814
815
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 812

def delete_event_action(params = {}, options = {})
  req = build_request(:delete_event_action, params)
  req.send_request(options)
end

#delete_revision(params = {}) ⇒ Struct

This operation deletes a revision.

Examples:

Request syntax with placeholder values


resp = client.delete_revision({
  data_set_id: "__string", # required
  revision_id: "__string", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :revision_id (required, String)

    The unique identifier for a revision.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



838
839
840
841
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 838

def delete_revision(params = {}, options = {})
  req = build_request(:delete_revision, params)
  req.send_request(options)
end

#get_asset(params = {}) ⇒ Types::GetAssetResponse

This operation returns information about an asset.

Examples:

Request syntax with placeholder values


resp = client.get_asset({
  asset_id: "__string", # required
  data_set_id: "__string", # required
  revision_id: "__string", # required
})

Response structure


resp.arn #=> String
resp.asset_details.s3_snapshot_asset.size #=> Float
resp.asset_details.redshift_data_share_asset.arn #=> String
resp.asset_details.api_gateway_api_asset.api_description #=> String
resp.asset_details.api_gateway_api_asset.api_endpoint #=> String
resp.asset_details.api_gateway_api_asset.api_id #=> String
resp.asset_details.api_gateway_api_asset.api_key #=> String
resp.asset_details.api_gateway_api_asset.api_name #=> String
resp.asset_details.api_gateway_api_asset.api_specification_download_url #=> String
resp.asset_details.api_gateway_api_asset.api_specification_download_url_expires_at #=> Time
resp.asset_details.api_gateway_api_asset.protocol_type #=> String, one of "REST"
resp.asset_details.api_gateway_api_asset.stage #=> String
resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
resp.created_at #=> Time
resp.data_set_id #=> String
resp.id #=> String
resp.name #=> String
resp.revision_id #=> String
resp.source_id #=> String
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :asset_id (required, String)

    The unique identifier for an asset.

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :revision_id (required, String)

    The unique identifier for a revision.

Returns:

See Also:



902
903
904
905
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 902

def get_asset(params = {}, options = {})
  req = build_request(:get_asset, params)
  req.send_request(options)
end

#get_data_set(params = {}) ⇒ Types::GetDataSetResponse

This operation returns information about a data set.

Examples:

Request syntax with placeholder values


resp = client.get_data_set({
  data_set_id: "__string", # required
})

Response structure


resp.arn #=> String
resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
resp.created_at #=> Time
resp.description #=> String
resp.id #=> String
resp.name #=> String
resp.origin #=> String, one of "OWNED", "ENTITLED"
resp.origin_details.product_id #=> String
resp.source_id #=> String
resp.tags #=> Hash
resp.tags["__string"] #=> String
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :data_set_id (required, String)

    The unique identifier for a data set.

Returns:

See Also:



951
952
953
954
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 951

def get_data_set(params = {}, options = {})
  req = build_request(:get_data_set, params)
  req.send_request(options)
end

#get_event_action(params = {}) ⇒ Types::GetEventActionResponse

This operation retrieves information about an event action.

Examples:

Request syntax with placeholder values


resp = client.get_event_action({
  event_action_id: "__string", # required
})

Response structure


resp.action.export_revision_to_s3.encryption.kms_key_arn #=> String
resp.action.export_revision_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.action.export_revision_to_s3.revision_destination.bucket #=> String
resp.action.export_revision_to_s3.revision_destination.key_pattern #=> String
resp.arn #=> String
resp.created_at #=> Time
resp.event.revision_published.data_set_id #=> String
resp.id #=> String
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :event_action_id (required, String)

    The unique identifier for the event action.

Returns:

See Also:



992
993
994
995
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 992

def get_event_action(params = {}, options = {})
  req = build_request(:get_event_action, params)
  req.send_request(options)
end

#get_job(params = {}) ⇒ Types::GetJobResponse

This operation returns information about a job.

Examples:

Request syntax with placeholder values


resp = client.get_job({
  job_id: "__string", # required
})

Response structure


resp.arn #=> String
resp.created_at #=> Time
resp.details.export_asset_to_signed_url.asset_id #=> String
resp.details.export_asset_to_signed_url.data_set_id #=> String
resp.details.export_asset_to_signed_url.revision_id #=> String
resp.details.export_asset_to_signed_url.signed_url #=> String
resp.details.export_asset_to_signed_url.signed_url_expires_at #=> Time
resp.details.export_assets_to_s3.asset_destinations #=> Array
resp.details.export_assets_to_s3.asset_destinations[0].asset_id #=> String
resp.details.export_assets_to_s3.asset_destinations[0].bucket #=> String
resp.details.export_assets_to_s3.asset_destinations[0].key #=> String
resp.details.export_assets_to_s3.data_set_id #=> String
resp.details.export_assets_to_s3.encryption.kms_key_arn #=> String
resp.details.export_assets_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.details.export_assets_to_s3.revision_id #=> String
resp.details.export_revisions_to_s3.data_set_id #=> String
resp.details.export_revisions_to_s3.encryption.kms_key_arn #=> String
resp.details.export_revisions_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.details.export_revisions_to_s3.revision_destinations #=> Array
resp.details.export_revisions_to_s3.revision_destinations[0].bucket #=> String
resp.details.export_revisions_to_s3.revision_destinations[0].key_pattern #=> String
resp.details.export_revisions_to_s3.revision_destinations[0].revision_id #=> String
resp.details.export_revisions_to_s3.event_action_arn #=> String
resp.details.import_asset_from_signed_url.asset_name #=> String
resp.details.import_asset_from_signed_url.data_set_id #=> String
resp.details.import_asset_from_signed_url.md_5_hash #=> String
resp.details.import_asset_from_signed_url.revision_id #=> String
resp.details.import_asset_from_signed_url.signed_url #=> String
resp.details.import_asset_from_signed_url.signed_url_expires_at #=> Time
resp.details.import_assets_from_s3.asset_sources #=> Array
resp.details.import_assets_from_s3.asset_sources[0].bucket #=> String
resp.details.import_assets_from_s3.asset_sources[0].key #=> String
resp.details.import_assets_from_s3.data_set_id #=> String
resp.details.import_assets_from_s3.revision_id #=> String
resp.details.import_assets_from_redshift_data_shares.asset_sources #=> Array
resp.details.import_assets_from_redshift_data_shares.asset_sources[0].data_share_arn #=> String
resp.details.import_assets_from_redshift_data_shares.data_set_id #=> String
resp.details.import_assets_from_redshift_data_shares.revision_id #=> String
resp.details.import_asset_from_api_gateway_api.api_description #=> String
resp.details.import_asset_from_api_gateway_api.api_id #=> String
resp.details.import_asset_from_api_gateway_api.api_key #=> String
resp.details.import_asset_from_api_gateway_api.api_name #=> String
resp.details.import_asset_from_api_gateway_api.api_specification_md_5_hash #=> String
resp.details.import_asset_from_api_gateway_api.api_specification_upload_url #=> String
resp.details.import_asset_from_api_gateway_api.api_specification_upload_url_expires_at #=> Time
resp.details.import_asset_from_api_gateway_api.data_set_id #=> String
resp.details.import_asset_from_api_gateway_api.protocol_type #=> String, one of "REST"
resp.details.import_asset_from_api_gateway_api.revision_id #=> String
resp.details.import_asset_from_api_gateway_api.stage #=> String
resp.errors #=> Array
resp.errors[0].code #=> String, one of "ACCESS_DENIED_EXCEPTION", "INTERNAL_SERVER_EXCEPTION", "MALWARE_DETECTED", "RESOURCE_NOT_FOUND_EXCEPTION", "SERVICE_QUOTA_EXCEEDED_EXCEPTION", "VALIDATION_EXCEPTION", "MALWARE_SCAN_ENCRYPTED_FILE"
resp.errors[0].details.import_asset_from_signed_url_job_error_details.asset_name #=> String
resp.errors[0].details.import_assets_from_s3_job_error_details #=> Array
resp.errors[0].details.import_assets_from_s3_job_error_details[0].bucket #=> String
resp.errors[0].details.import_assets_from_s3_job_error_details[0].key #=> String
resp.errors[0].limit_name #=> String, one of "Assets per revision", "Asset size in GB", "Amazon Redshift datashare assets per revision"
resp.errors[0].limit_value #=> Float
resp.errors[0].message #=> String
resp.errors[0].resource_id #=> String
resp.errors[0].resource_type #=> String, one of "REVISION", "ASSET", "DATA_SET"
resp.id #=> String
resp.state #=> String, one of "WAITING", "IN_PROGRESS", "ERROR", "COMPLETED", "CANCELLED", "TIMED_OUT"
resp.type #=> String, one of "IMPORT_ASSETS_FROM_S3", "IMPORT_ASSET_FROM_SIGNED_URL", "EXPORT_ASSETS_TO_S3", "EXPORT_ASSET_TO_SIGNED_URL", "EXPORT_REVISIONS_TO_S3", "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES", "IMPORT_ASSET_FROM_API_GATEWAY_API"
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :job_id (required, String)

    The unique identifier for a job.

Returns:

See Also:



1090
1091
1092
1093
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1090

def get_job(params = {}, options = {})
  req = build_request(:get_job, params)
  req.send_request(options)
end

#get_revision(params = {}) ⇒ Types::GetRevisionResponse

This operation returns information about a revision.

Examples:

Request syntax with placeholder values


resp = client.get_revision({
  data_set_id: "__string", # required
  revision_id: "__string", # required
})

Response structure


resp.arn #=> String
resp.comment #=> String
resp.created_at #=> Time
resp.data_set_id #=> String
resp.finalized #=> Boolean
resp.id #=> String
resp.source_id #=> String
resp.tags #=> Hash
resp.tags["__string"] #=> String
resp.updated_at #=> Time
resp.revocation_comment #=> String
resp.revoked #=> Boolean
resp.revoked_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :revision_id (required, String)

    The unique identifier for a revision.

Returns:

See Also:



1145
1146
1147
1148
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1145

def get_revision(params = {}, options = {})
  req = build_request(:get_revision, params)
  req.send_request(options)
end

#list_data_set_revisions(params = {}) ⇒ Types::ListDataSetRevisionsResponse

This operation lists a data set's revisions sorted by CreatedAt in descending order.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_data_set_revisions({
  data_set_id: "__string", # required
  max_results: 1,
  next_token: "__string",
})

Response structure


resp.next_token #=> String
resp.revisions #=> Array
resp.revisions[0].arn #=> String
resp.revisions[0].comment #=> String
resp.revisions[0].created_at #=> Time
resp.revisions[0].data_set_id #=> String
resp.revisions[0].finalized #=> Boolean
resp.revisions[0].id #=> String
resp.revisions[0].source_id #=> String
resp.revisions[0].updated_at #=> Time
resp.revisions[0].revocation_comment #=> String
resp.revisions[0].revoked #=> Boolean
resp.revisions[0].revoked_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :max_results (Integer)

    The maximum number of results returned by a single call.

  • :next_token (String)

    The token value retrieved from a previous call to access the next page of results.

Returns:

See Also:



1198
1199
1200
1201
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1198

def list_data_set_revisions(params = {}, options = {})
  req = build_request(:list_data_set_revisions, params)
  req.send_request(options)
end

#list_data_sets(params = {}) ⇒ Types::ListDataSetsResponse

This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order and the maxResults parameter is ignored.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_data_sets({
  max_results: 1,
  next_token: "__string",
  origin: "__string",
})

Response structure


resp.data_sets #=> Array
resp.data_sets[0].arn #=> String
resp.data_sets[0].asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
resp.data_sets[0].created_at #=> Time
resp.data_sets[0].description #=> String
resp.data_sets[0].id #=> String
resp.data_sets[0].name #=> String
resp.data_sets[0].origin #=> String, one of "OWNED", "ENTITLED"
resp.data_sets[0].origin_details.product_id #=> String
resp.data_sets[0].source_id #=> String
resp.data_sets[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :max_results (Integer)

    The maximum number of results returned by a single call.

  • :next_token (String)

    The token value retrieved from a previous call to access the next page of results.

  • :origin (String)

    A property that defines the data set as OWNED by the account (for providers) or ENTITLED to the account (for subscribers).

Returns:

See Also:



1253
1254
1255
1256
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1253

def list_data_sets(params = {}, options = {})
  req = build_request(:list_data_sets, params)
  req.send_request(options)
end

#list_event_actions(params = {}) ⇒ Types::ListEventActionsResponse

This operation lists your event actions.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_event_actions({
  event_source_id: "__string",
  max_results: 1,
  next_token: "__string",
})

Response structure


resp.event_actions #=> Array
resp.event_actions[0].action.export_revision_to_s3.encryption.kms_key_arn #=> String
resp.event_actions[0].action.export_revision_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.event_actions[0].action.export_revision_to_s3.revision_destination.bucket #=> String
resp.event_actions[0].action.export_revision_to_s3.revision_destination.key_pattern #=> String
resp.event_actions[0].arn #=> String
resp.event_actions[0].created_at #=> Time
resp.event_actions[0].event.revision_published.data_set_id #=> String
resp.event_actions[0].id #=> String
resp.event_actions[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :event_source_id (String)

    The unique identifier for the event source.

  • :max_results (Integer)

    The maximum number of results returned by a single call.

  • :next_token (String)

    The token value retrieved from a previous call to access the next page of results.

Returns:

See Also:



1303
1304
1305
1306
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1303

def list_event_actions(params = {}, options = {})
  req = build_request(:list_event_actions, params)
  req.send_request(options)
end

#list_jobs(params = {}) ⇒ Types::ListJobsResponse

This operation lists your jobs sorted by CreatedAt in descending order.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_jobs({
  data_set_id: "__string",
  max_results: 1,
  next_token: "__string",
  revision_id: "__string",
})

Response structure


resp.jobs #=> Array
resp.jobs[0].arn #=> String
resp.jobs[0].created_at #=> Time
resp.jobs[0].details.export_asset_to_signed_url.asset_id #=> String
resp.jobs[0].details.export_asset_to_signed_url.data_set_id #=> String
resp.jobs[0].details.export_asset_to_signed_url.revision_id #=> String
resp.jobs[0].details.export_asset_to_signed_url.signed_url #=> String
resp.jobs[0].details.export_asset_to_signed_url.signed_url_expires_at #=> Time
resp.jobs[0].details.export_assets_to_s3.asset_destinations #=> Array
resp.jobs[0].details.export_assets_to_s3.asset_destinations[0].asset_id #=> String
resp.jobs[0].details.export_assets_to_s3.asset_destinations[0].bucket #=> String
resp.jobs[0].details.export_assets_to_s3.asset_destinations[0].key #=> String
resp.jobs[0].details.export_assets_to_s3.data_set_id #=> String
resp.jobs[0].details.export_assets_to_s3.encryption.kms_key_arn #=> String
resp.jobs[0].details.export_assets_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.jobs[0].details.export_assets_to_s3.revision_id #=> String
resp.jobs[0].details.export_revisions_to_s3.data_set_id #=> String
resp.jobs[0].details.export_revisions_to_s3.encryption.kms_key_arn #=> String
resp.jobs[0].details.export_revisions_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.jobs[0].details.export_revisions_to_s3.revision_destinations #=> Array
resp.jobs[0].details.export_revisions_to_s3.revision_destinations[0].bucket #=> String
resp.jobs[0].details.export_revisions_to_s3.revision_destinations[0].key_pattern #=> String
resp.jobs[0].details.export_revisions_to_s3.revision_destinations[0].revision_id #=> String
resp.jobs[0].details.export_revisions_to_s3.event_action_arn #=> String
resp.jobs[0].details.import_asset_from_signed_url.asset_name #=> String
resp.jobs[0].details.import_asset_from_signed_url.data_set_id #=> String
resp.jobs[0].details.import_asset_from_signed_url.md_5_hash #=> String
resp.jobs[0].details.import_asset_from_signed_url.revision_id #=> String
resp.jobs[0].details.import_asset_from_signed_url.signed_url #=> String
resp.jobs[0].details.import_asset_from_signed_url.signed_url_expires_at #=> Time
resp.jobs[0].details.import_assets_from_s3.asset_sources #=> Array
resp.jobs[0].details.import_assets_from_s3.asset_sources[0].bucket #=> String
resp.jobs[0].details.import_assets_from_s3.asset_sources[0].key #=> String
resp.jobs[0].details.import_assets_from_s3.data_set_id #=> String
resp.jobs[0].details.import_assets_from_s3.revision_id #=> String
resp.jobs[0].details.import_assets_from_redshift_data_shares.asset_sources #=> Array
resp.jobs[0].details.import_assets_from_redshift_data_shares.asset_sources[0].data_share_arn #=> String
resp.jobs[0].details.import_assets_from_redshift_data_shares.data_set_id #=> String
resp.jobs[0].details.import_assets_from_redshift_data_shares.revision_id #=> String
resp.jobs[0].details.import_asset_from_api_gateway_api.api_description #=> String
resp.jobs[0].details.import_asset_from_api_gateway_api.api_id #=> String
resp.jobs[0].details.import_asset_from_api_gateway_api.api_key #=> String
resp.jobs[0].details.import_asset_from_api_gateway_api.api_name #=> String
resp.jobs[0].details.import_asset_from_api_gateway_api.api_specification_md_5_hash #=> String
resp.jobs[0].details.import_asset_from_api_gateway_api.api_specification_upload_url #=> String
resp.jobs[0].details.import_asset_from_api_gateway_api.api_specification_upload_url_expires_at #=> Time
resp.jobs[0].details.import_asset_from_api_gateway_api.data_set_id #=> String
resp.jobs[0].details.import_asset_from_api_gateway_api.protocol_type #=> String, one of "REST"
resp.jobs[0].details.import_asset_from_api_gateway_api.revision_id #=> String
resp.jobs[0].details.import_asset_from_api_gateway_api.stage #=> String
resp.jobs[0].errors #=> Array
resp.jobs[0].errors[0].code #=> String, one of "ACCESS_DENIED_EXCEPTION", "INTERNAL_SERVER_EXCEPTION", "MALWARE_DETECTED", "RESOURCE_NOT_FOUND_EXCEPTION", "SERVICE_QUOTA_EXCEEDED_EXCEPTION", "VALIDATION_EXCEPTION", "MALWARE_SCAN_ENCRYPTED_FILE"
resp.jobs[0].errors[0].details.import_asset_from_signed_url_job_error_details.asset_name #=> String
resp.jobs[0].errors[0].details.import_assets_from_s3_job_error_details #=> Array
resp.jobs[0].errors[0].details.import_assets_from_s3_job_error_details[0].bucket #=> String
resp.jobs[0].errors[0].details.import_assets_from_s3_job_error_details[0].key #=> String
resp.jobs[0].errors[0].limit_name #=> String, one of "Assets per revision", "Asset size in GB", "Amazon Redshift datashare assets per revision"
resp.jobs[0].errors[0].limit_value #=> Float
resp.jobs[0].errors[0].message #=> String
resp.jobs[0].errors[0].resource_id #=> String
resp.jobs[0].errors[0].resource_type #=> String, one of "REVISION", "ASSET", "DATA_SET"
resp.jobs[0].id #=> String
resp.jobs[0].state #=> String, one of "WAITING", "IN_PROGRESS", "ERROR", "COMPLETED", "CANCELLED", "TIMED_OUT"
resp.jobs[0].type #=> String, one of "IMPORT_ASSETS_FROM_S3", "IMPORT_ASSET_FROM_SIGNED_URL", "EXPORT_ASSETS_TO_S3", "EXPORT_ASSET_TO_SIGNED_URL", "EXPORT_REVISIONS_TO_S3", "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES", "IMPORT_ASSET_FROM_API_GATEWAY_API"
resp.jobs[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :data_set_id (String)

    The unique identifier for a data set.

  • :max_results (Integer)

    The maximum number of results returned by a single call.

  • :next_token (String)

    The token value retrieved from a previous call to access the next page of results.

  • :revision_id (String)

    The unique identifier for a revision.

Returns:

See Also:



1413
1414
1415
1416
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1413

def list_jobs(params = {}, options = {})
  req = build_request(:list_jobs, params)
  req.send_request(options)
end

#list_revision_assets(params = {}) ⇒ Types::ListRevisionAssetsResponse

This operation lists a revision's assets sorted alphabetically in descending order.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_revision_assets({
  data_set_id: "__string", # required
  max_results: 1,
  next_token: "__string",
  revision_id: "__string", # required
})

Response structure


resp.assets #=> Array
resp.assets[0].arn #=> String
resp.assets[0].asset_details.s3_snapshot_asset.size #=> Float
resp.assets[0].asset_details.redshift_data_share_asset.arn #=> String
resp.assets[0].asset_details.api_gateway_api_asset.api_description #=> String
resp.assets[0].asset_details.api_gateway_api_asset.api_endpoint #=> String
resp.assets[0].asset_details.api_gateway_api_asset.api_id #=> String
resp.assets[0].asset_details.api_gateway_api_asset.api_key #=> String
resp.assets[0].asset_details.api_gateway_api_asset.api_name #=> String
resp.assets[0].asset_details.api_gateway_api_asset.api_specification_download_url #=> String
resp.assets[0].asset_details.api_gateway_api_asset.api_specification_download_url_expires_at #=> Time
resp.assets[0].asset_details.api_gateway_api_asset.protocol_type #=> String, one of "REST"
resp.assets[0].asset_details.api_gateway_api_asset.stage #=> String
resp.assets[0].asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
resp.assets[0].created_at #=> Time
resp.assets[0].data_set_id #=> String
resp.assets[0].id #=> String
resp.assets[0].name #=> String
resp.assets[0].revision_id #=> String
resp.assets[0].source_id #=> String
resp.assets[0].updated_at #=> Time
resp.next_token #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :max_results (Integer)

    The maximum number of results returned by a single call.

  • :next_token (String)

    The token value retrieved from a previous call to access the next page of results.

  • :revision_id (required, String)

    The unique identifier for a revision.

Returns:

See Also:



1479
1480
1481
1482
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1479

def list_revision_assets(params = {}, options = {})
  req = build_request(:list_revision_assets, params)
  req.send_request(options)
end

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

This operation lists the tags on the resource.

Examples:

Request syntax with placeholder values


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

Response structure


resp.tags #=> Hash
resp.tags["__string"] #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.

Returns:

See Also:



1509
1510
1511
1512
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1509

def list_tags_for_resource(params = {}, options = {})
  req = build_request(:list_tags_for_resource, params)
  req.send_request(options)
end

#revoke_revision(params = {}) ⇒ Types::RevokeRevisionResponse

This operation revokes subscribers' access to a revision.

Examples:

Request syntax with placeholder values


resp = client.revoke_revision({
  data_set_id: "__string", # required
  revision_id: "__string", # required
  revocation_comment: "__stringMin10Max512", # required
})

Response structure


resp.arn #=> String
resp.comment #=> String
resp.created_at #=> Time
resp.data_set_id #=> String
resp.finalized #=> Boolean
resp.id #=> String
resp.source_id #=> String
resp.updated_at #=> Time
resp.revocation_comment #=> String
resp.revoked #=> Boolean
resp.revoked_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :revision_id (required, String)

    The unique identifier for a revision.

  • :revocation_comment (required, String)

    A required comment to inform subscribers of the reason their access to the revision was revoked.

Returns:

See Also:



1566
1567
1568
1569
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1566

def revoke_revision(params = {}, options = {})
  req = build_request(:revoke_revision, params)
  req.send_request(options)
end

#send_api_asset(params = {}) ⇒ Types::SendApiAssetResponse

This operation invokes an API Gateway API asset. The request is proxied to the provider’s API Gateway API.

Examples:

Request syntax with placeholder values


resp = client.send_api_asset({
  body: "__string",
  query_string_parameters: {
    "__string" => "__string",
  },
  asset_id: "__string", # required
  data_set_id: "__string", # required
  request_headers: {
    "__string" => "__string",
  },
  method: "__string",
  path: "__string",
  revision_id: "__string", # required
})

Response structure


resp.body #=> String
resp.response_headers #=> Hash
resp.response_headers["__string"] #=> String

Parameters:

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

    ({})

Options Hash (params):

  • :body (String)

    The request body.

  • :query_string_parameters (Hash<String,String>)

    Attach query string parameters to the end of the URI (for example, /v1/examplePath?exampleParam=exampleValue).

  • :asset_id (required, String)

    Asset ID value for the API request.

  • :data_set_id (required, String)

    Data set ID value for the API request.

  • :request_headers (Hash<String,String>)

    Any header value prefixed with x-amzn-dataexchange-header- will have that stripped before sending the Asset API request. Use this when you want to override a header that AWS Data Exchange uses. Alternatively, you can use the header without a prefix to the HTTP request.

  • :method (String)

    HTTP method value for the API request. Alternatively, you can use the appropriate verb in your request.

  • :path (String)

    URI path value for the API request. Alternatively, you can set the URI path directly by invoking /v1/{pathValue\}.

  • :revision_id (required, String)

    Revision ID value for the API request.

Returns:

See Also:



1636
1637
1638
1639
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1636

def send_api_asset(params = {}, options = {})
  req = build_request(:send_api_asset, params)
  req.send_request(options)
end

#start_job(params = {}) ⇒ Struct

This operation starts a job.

Examples:

Request syntax with placeholder values


resp = client.start_job({
  job_id: "__string", # required
})

Parameters:

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

    ({})

Options Hash (params):

  • :job_id (required, String)

    The unique identifier for a job.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1658
1659
1660
1661
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1658

def start_job(params = {}, options = {})
  req = build_request(:start_job, params)
  req.send_request(options)
end

#tag_resource(params = {}) ⇒ Struct

This operation tags a resource.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "__string", # required
  tags: { # required
    "__string" => "__string",
  },
})

Parameters:

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

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.

  • :tags (required, Hash<String,String>)

    A label that consists of a customer-defined key and an optional value.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1687
1688
1689
1690
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1687

def tag_resource(params = {}, options = {})
  req = build_request(:tag_resource, params)
  req.send_request(options)
end

#untag_resource(params = {}) ⇒ Struct

This operation removes one or more tags from a resource.

Examples:

Request syntax with placeholder values


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

Parameters:

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

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.

  • :tag_keys (required, Array<String>)

    The key tags.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1714
1715
1716
1717
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1714

def untag_resource(params = {}, options = {})
  req = build_request(:untag_resource, params)
  req.send_request(options)
end

#update_asset(params = {}) ⇒ Types::UpdateAssetResponse

This operation updates an asset.

Examples:

Request syntax with placeholder values


resp = client.update_asset({
  asset_id: "__string", # required
  data_set_id: "__string", # required
  name: "AssetName", # required
  revision_id: "__string", # required
})

Response structure


resp.arn #=> String
resp.asset_details.s3_snapshot_asset.size #=> Float
resp.asset_details.redshift_data_share_asset.arn #=> String
resp.asset_details.api_gateway_api_asset.api_description #=> String
resp.asset_details.api_gateway_api_asset.api_endpoint #=> String
resp.asset_details.api_gateway_api_asset.api_id #=> String
resp.asset_details.api_gateway_api_asset.api_key #=> String
resp.asset_details.api_gateway_api_asset.api_name #=> String
resp.asset_details.api_gateway_api_asset.api_specification_download_url #=> String
resp.asset_details.api_gateway_api_asset.api_specification_download_url_expires_at #=> Time
resp.asset_details.api_gateway_api_asset.protocol_type #=> String, one of "REST"
resp.asset_details.api_gateway_api_asset.stage #=> String
resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
resp.created_at #=> Time
resp.data_set_id #=> String
resp.id #=> String
resp.name #=> String
resp.revision_id #=> String
resp.source_id #=> String
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :asset_id (required, String)

    The unique identifier for an asset.

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :name (required, String)

    The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key. When importing from Amazon API Gateway API, the API name is used as the asset name. When importing from Amazon Redshift, the datashare name is used as the asset name.

  • :revision_id (required, String)

    The unique identifier for a revision.

Returns:

See Also:



1787
1788
1789
1790
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1787

def update_asset(params = {}, options = {})
  req = build_request(:update_asset, params)
  req.send_request(options)
end

#update_data_set(params = {}) ⇒ Types::UpdateDataSetResponse

This operation updates a data set.

Examples:

Request syntax with placeholder values


resp = client.update_data_set({
  data_set_id: "__string", # required
  description: "Description",
  name: "Name",
})

Response structure


resp.arn #=> String
resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
resp.created_at #=> Time
resp.description #=> String
resp.id #=> String
resp.name #=> String
resp.origin #=> String, one of "OWNED", "ENTITLED"
resp.origin_details.product_id #=> String
resp.source_id #=> String
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :description (String)

    The description for the data set.

  • :name (String)

    The name of the data set.

Returns:

See Also:



1841
1842
1843
1844
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1841

def update_data_set(params = {}, options = {})
  req = build_request(:update_data_set, params)
  req.send_request(options)
end

#update_event_action(params = {}) ⇒ Types::UpdateEventActionResponse

This operation updates the event action.

Examples:

Request syntax with placeholder values


resp = client.update_event_action({
  action: {
    export_revision_to_s3: {
      encryption: {
        kms_key_arn: "__string",
        type: "aws:kms", # required, accepts aws:kms, AES256
      },
      revision_destination: { # required
        bucket: "__string", # required
        key_pattern: "__string",
      },
    },
  },
  event_action_id: "__string", # required
})

Response structure


resp.action.export_revision_to_s3.encryption.kms_key_arn #=> String
resp.action.export_revision_to_s3.encryption.type #=> String, one of "aws:kms", "AES256"
resp.action.export_revision_to_s3.revision_destination.bucket #=> String
resp.action.export_revision_to_s3.revision_destination.key_pattern #=> String
resp.arn #=> String
resp.created_at #=> Time
resp.event.revision_published.data_set_id #=> String
resp.id #=> String
resp.updated_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :action (Types::Action)

    What occurs after a certain event.

  • :event_action_id (required, String)

    The unique identifier for the event action.

Returns:

See Also:



1897
1898
1899
1900
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1897

def update_event_action(params = {}, options = {})
  req = build_request(:update_event_action, params)
  req.send_request(options)
end

#update_revision(params = {}) ⇒ Types::UpdateRevisionResponse

This operation updates a revision.

Examples:

Request syntax with placeholder values


resp = client.update_revision({
  comment: "__stringMin0Max16384",
  data_set_id: "__string", # required
  finalized: false,
  revision_id: "__string", # required
})

Response structure


resp.arn #=> String
resp.comment #=> String
resp.created_at #=> Time
resp.data_set_id #=> String
resp.finalized #=> Boolean
resp.id #=> String
resp.source_id #=> String
resp.updated_at #=> Time
resp.revocation_comment #=> String
resp.revoked #=> Boolean
resp.revoked_at #=> Time

Parameters:

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

    ({})

Options Hash (params):

  • :comment (String)

    An optional comment about the revision.

  • :data_set_id (required, String)

    The unique identifier for a data set.

  • :finalized (Boolean)

    Finalizing a revision tells AWS Data Exchange that your changes to the assets in the revision are complete. After it's in this read-only state, you can publish the revision to your products.

  • :revision_id (required, String)

    The unique identifier for a revision.

Returns:

See Also:



1959
1960
1961
1962
# File 'gems/aws-sdk-dataexchange/lib/aws-sdk-dataexchange/client.rb', line 1959

def update_revision(params = {}, options = {})
  req = build_request(:update_revision, params)
  req.send_request(options)
end