lib/aws-sdk-datazone/client.rb in aws-sdk-datazone-1.20.0 vs lib/aws-sdk-datazone/client.rb in aws-sdk-datazone-1.21.0
- old
+ new
@@ -30,10 +30,11 @@
require 'aws-sdk-core/plugins/http_checksum.rb'
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
require 'aws-sdk-core/plugins/request_compression.rb'
require 'aws-sdk-core/plugins/defaults_mode.rb'
require 'aws-sdk-core/plugins/recursion_detection.rb'
+require 'aws-sdk-core/plugins/telemetry.rb'
require 'aws-sdk-core/plugins/sign.rb'
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
Aws::Plugins::GlobalConfiguration.add_identifier(:datazone)
@@ -81,10 +82,11 @@
add_plugin(Aws::Plugins::HttpChecksum)
add_plugin(Aws::Plugins::ChecksumAlgorithm)
add_plugin(Aws::Plugins::RequestCompression)
add_plugin(Aws::Plugins::DefaultsMode)
add_plugin(Aws::Plugins::RecursionDetection)
+ add_plugin(Aws::Plugins::Telemetry)
add_plugin(Aws::Plugins::Sign)
add_plugin(Aws::Plugins::Protocols::RestJson)
add_plugin(Aws::DataZone::Plugins::Endpoints)
# @overload initialize(options)
@@ -328,10 +330,20 @@
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
#
# ** Please note ** When response stubbing is enabled, no HTTP
# requests are made, and retries are disabled.
#
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
+ # Allows you to provide a telemetry provider, which is used to
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
+ # will not record or emit any telemetry data. The SDK supports the
+ # following telemetry providers:
+ #
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
+ #
# @option options [Aws::TokenProvider] :token_provider
# A Bearer Token Provider. This can be an instance of any one of the
# following classes:
#
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
@@ -494,10 +506,13 @@
req.send_request(options)
end
# Accepts a subscription request to a specific asset.
#
+ # @option params [Array<Types::AcceptedAssetScope>] :asset_scopes
+ # The asset scopes of the accept subscription request.
+ #
# @option params [String] :decision_comment
# A description that specifies the reason for accepting the specified
# subscription request.
#
# @option params [required, String] :domain_identifier
@@ -524,10 +539,16 @@
# * {Types::AcceptSubscriptionRequestOutput#updated_by #updated_by} => String
#
# @example Request syntax with placeholder values
#
# resp = client.accept_subscription_request({
+ # asset_scopes: [
+ # {
+ # asset_id: "AssetId", # required
+ # filter_ids: ["FilterId"], # required
+ # },
+ # ],
# decision_comment: "DecisionComment",
# domain_identifier: "DomainId", # required
# identifier: "SubscriptionRequestId", # required
# })
#
@@ -542,10 +563,15 @@
# resp.reviewer_id #=> String
# resp.status #=> String, one of "PENDING", "ACCEPTED", "REJECTED"
# resp.subscribed_listings #=> Array
# resp.subscribed_listings[0].description #=> String
# resp.subscribed_listings[0].id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.asset_id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.error_message #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.status #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_id #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_revision #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_type #=> String
# resp.subscribed_listings[0].item.asset_listing.forms #=> String
# resp.subscribed_listings[0].item.asset_listing.glossary_terms #=> Array
@@ -838,10 +864,15 @@
# resp.id #=> String
# resp.retain_permissions #=> Boolean
# resp.status #=> String, one of "APPROVED", "REVOKED", "CANCELLED"
# resp.subscribed_listing.description #=> String
# resp.subscribed_listing.id #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.asset_id #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.error_message #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.subscribed_listing.item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.status #=> String
# resp.subscribed_listing.item.asset_listing.entity_id #=> String
# resp.subscribed_listing.item.asset_listing.entity_revision #=> String
# resp.subscribed_listing.item.asset_listing.entity_type #=> String
# resp.subscribed_listing.item.asset_listing.forms #=> String
# resp.subscribed_listing.item.asset_listing.glossary_terms #=> Array
@@ -2746,10 +2777,15 @@
# @example Response structure
#
# resp.assets #=> Array
# resp.assets[0].asset_id #=> String
# resp.assets[0].asset_revision #=> String
+ # resp.assets[0].asset_scope.asset_id #=> String
+ # resp.assets[0].asset_scope.error_message #=> String
+ # resp.assets[0].asset_scope.filter_ids #=> Array
+ # resp.assets[0].asset_scope.filter_ids[0] #=> String
+ # resp.assets[0].asset_scope.status #=> String
# resp.assets[0].failure_cause.message #=> String
# resp.assets[0].failure_timestamp #=> Time
# resp.assets[0].granted_timestamp #=> Time
# resp.assets[0].status #=> String, one of "GRANT_PENDING", "REVOKE_PENDING", "GRANT_IN_PROGRESS", "REVOKE_IN_PROGRESS", "GRANTED", "REVOKED", "GRANT_FAILED", "REVOKE_FAILED"
# resp.assets[0].target_name #=> String
@@ -2843,10 +2879,15 @@
# resp.reviewer_id #=> String
# resp.status #=> String, one of "PENDING", "ACCEPTED", "REJECTED"
# resp.subscribed_listings #=> Array
# resp.subscribed_listings[0].description #=> String
# resp.subscribed_listings[0].id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.asset_id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.error_message #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.status #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_id #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_revision #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_type #=> String
# resp.subscribed_listings[0].item.asset_listing.forms #=> String
# resp.subscribed_listings[0].item.asset_listing.glossary_terms #=> Array
@@ -3664,10 +3705,15 @@
# @example Response structure
#
# resp.assets #=> Array
# resp.assets[0].asset_id #=> String
# resp.assets[0].asset_revision #=> String
+ # resp.assets[0].asset_scope.asset_id #=> String
+ # resp.assets[0].asset_scope.error_message #=> String
+ # resp.assets[0].asset_scope.filter_ids #=> Array
+ # resp.assets[0].asset_scope.filter_ids[0] #=> String
+ # resp.assets[0].asset_scope.status #=> String
# resp.assets[0].failure_cause.message #=> String
# resp.assets[0].failure_timestamp #=> Time
# resp.assets[0].granted_timestamp #=> Time
# resp.assets[0].status #=> String, one of "GRANT_PENDING", "REVOKE_PENDING", "GRANT_IN_PROGRESS", "REVOKE_IN_PROGRESS", "GRANTED", "REVOKED", "GRANT_FAILED", "REVOKE_FAILED"
# resp.assets[0].target_name #=> String
@@ -5310,10 +5356,15 @@
# resp.id #=> String
# resp.retain_permissions #=> Boolean
# resp.status #=> String, one of "APPROVED", "REVOKED", "CANCELLED"
# resp.subscribed_listing.description #=> String
# resp.subscribed_listing.id #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.asset_id #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.error_message #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.subscribed_listing.item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.status #=> String
# resp.subscribed_listing.item.asset_listing.entity_id #=> String
# resp.subscribed_listing.item.asset_listing.entity_revision #=> String
# resp.subscribed_listing.item.asset_listing.entity_type #=> String
# resp.subscribed_listing.item.asset_listing.forms #=> String
# resp.subscribed_listing.item.asset_listing.glossary_terms #=> Array
@@ -5382,10 +5433,15 @@
# @example Response structure
#
# resp.assets #=> Array
# resp.assets[0].asset_id #=> String
# resp.assets[0].asset_revision #=> String
+ # resp.assets[0].asset_scope.asset_id #=> String
+ # resp.assets[0].asset_scope.error_message #=> String
+ # resp.assets[0].asset_scope.filter_ids #=> Array
+ # resp.assets[0].asset_scope.filter_ids[0] #=> String
+ # resp.assets[0].asset_scope.status #=> String
# resp.assets[0].failure_cause.message #=> String
# resp.assets[0].failure_timestamp #=> Time
# resp.assets[0].granted_timestamp #=> Time
# resp.assets[0].status #=> String, one of "GRANT_PENDING", "REVOKE_PENDING", "GRANT_IN_PROGRESS", "REVOKE_IN_PROGRESS", "GRANTED", "REVOKED", "GRANT_FAILED", "REVOKE_FAILED"
# resp.assets[0].target_name #=> String
@@ -5453,10 +5509,15 @@
# resp.reviewer_id #=> String
# resp.status #=> String, one of "PENDING", "ACCEPTED", "REJECTED"
# resp.subscribed_listings #=> Array
# resp.subscribed_listings[0].description #=> String
# resp.subscribed_listings[0].id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.asset_id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.error_message #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.status #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_id #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_revision #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_type #=> String
# resp.subscribed_listings[0].item.asset_listing.forms #=> String
# resp.subscribed_listings[0].item.asset_listing.glossary_terms #=> Array
@@ -7154,10 +7215,15 @@
#
# resp.items #=> Array
# resp.items[0].assets #=> Array
# resp.items[0].assets[0].asset_id #=> String
# resp.items[0].assets[0].asset_revision #=> String
+ # resp.items[0].assets[0].asset_scope.asset_id #=> String
+ # resp.items[0].assets[0].asset_scope.error_message #=> String
+ # resp.items[0].assets[0].asset_scope.filter_ids #=> Array
+ # resp.items[0].assets[0].asset_scope.filter_ids[0] #=> String
+ # resp.items[0].assets[0].asset_scope.status #=> String
# resp.items[0].assets[0].failure_cause.message #=> String
# resp.items[0].assets[0].failure_timestamp #=> Time
# resp.items[0].assets[0].granted_timestamp #=> Time
# resp.items[0].assets[0].status #=> String, one of "GRANT_PENDING", "REVOKE_PENDING", "GRANT_IN_PROGRESS", "REVOKE_IN_PROGRESS", "GRANTED", "REVOKED", "GRANT_FAILED", "REVOKE_FAILED"
# resp.items[0].assets[0].target_name #=> String
@@ -7261,10 +7327,15 @@
# resp.items[0].reviewer_id #=> String
# resp.items[0].status #=> String, one of "PENDING", "ACCEPTED", "REJECTED"
# resp.items[0].subscribed_listings #=> Array
# resp.items[0].subscribed_listings[0].description #=> String
# resp.items[0].subscribed_listings[0].id #=> String
+ # resp.items[0].subscribed_listings[0].item.asset_listing.asset_scope.asset_id #=> String
+ # resp.items[0].subscribed_listings[0].item.asset_listing.asset_scope.error_message #=> String
+ # resp.items[0].subscribed_listings[0].item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.items[0].subscribed_listings[0].item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.items[0].subscribed_listings[0].item.asset_listing.asset_scope.status #=> String
# resp.items[0].subscribed_listings[0].item.asset_listing.entity_id #=> String
# resp.items[0].subscribed_listings[0].item.asset_listing.entity_revision #=> String
# resp.items[0].subscribed_listings[0].item.asset_listing.entity_type #=> String
# resp.items[0].subscribed_listings[0].item.asset_listing.forms #=> String
# resp.items[0].subscribed_listings[0].item.asset_listing.glossary_terms #=> Array
@@ -7466,10 +7537,15 @@
# resp.items[0].id #=> String
# resp.items[0].retain_permissions #=> Boolean
# resp.items[0].status #=> String, one of "APPROVED", "REVOKED", "CANCELLED"
# resp.items[0].subscribed_listing.description #=> String
# resp.items[0].subscribed_listing.id #=> String
+ # resp.items[0].subscribed_listing.item.asset_listing.asset_scope.asset_id #=> String
+ # resp.items[0].subscribed_listing.item.asset_listing.asset_scope.error_message #=> String
+ # resp.items[0].subscribed_listing.item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.items[0].subscribed_listing.item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.items[0].subscribed_listing.item.asset_listing.asset_scope.status #=> String
# resp.items[0].subscribed_listing.item.asset_listing.entity_id #=> String
# resp.items[0].subscribed_listing.item.asset_listing.entity_revision #=> String
# resp.items[0].subscribed_listing.item.asset_listing.entity_type #=> String
# resp.items[0].subscribed_listing.item.asset_listing.forms #=> String
# resp.items[0].subscribed_listing.item.asset_listing.glossary_terms #=> Array
@@ -7917,10 +7993,15 @@
# resp.reviewer_id #=> String
# resp.status #=> String, one of "PENDING", "ACCEPTED", "REJECTED"
# resp.subscribed_listings #=> Array
# resp.subscribed_listings[0].description #=> String
# resp.subscribed_listings[0].id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.asset_id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.error_message #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.status #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_id #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_revision #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_type #=> String
# resp.subscribed_listings[0].item.asset_listing.forms #=> String
# resp.subscribed_listings[0].item.asset_listing.glossary_terms #=> Array
@@ -8121,10 +8202,15 @@
# resp.id #=> String
# resp.retain_permissions #=> Boolean
# resp.status #=> String, one of "APPROVED", "REVOKED", "CANCELLED"
# resp.subscribed_listing.description #=> String
# resp.subscribed_listing.id #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.asset_id #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.error_message #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.subscribed_listing.item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.subscribed_listing.item.asset_listing.asset_scope.status #=> String
# resp.subscribed_listing.item.asset_listing.entity_id #=> String
# resp.subscribed_listing.item.asset_listing.entity_revision #=> String
# resp.subscribed_listing.item.asset_listing.entity_type #=> String
# resp.subscribed_listing.item.asset_listing.forms #=> String
# resp.subscribed_listing.item.asset_listing.glossary_terms #=> Array
@@ -10001,10 +10087,15 @@
# @example Response structure
#
# resp.assets #=> Array
# resp.assets[0].asset_id #=> String
# resp.assets[0].asset_revision #=> String
+ # resp.assets[0].asset_scope.asset_id #=> String
+ # resp.assets[0].asset_scope.error_message #=> String
+ # resp.assets[0].asset_scope.filter_ids #=> Array
+ # resp.assets[0].asset_scope.filter_ids[0] #=> String
+ # resp.assets[0].asset_scope.status #=> String
# resp.assets[0].failure_cause.message #=> String
# resp.assets[0].failure_timestamp #=> Time
# resp.assets[0].granted_timestamp #=> Time
# resp.assets[0].status #=> String, one of "GRANT_PENDING", "REVOKE_PENDING", "GRANT_IN_PROGRESS", "REVOKE_IN_PROGRESS", "GRANTED", "REVOKED", "GRANT_FAILED", "REVOKE_FAILED"
# resp.assets[0].target_name #=> String
@@ -10075,10 +10166,15 @@
# resp.reviewer_id #=> String
# resp.status #=> String, one of "PENDING", "ACCEPTED", "REJECTED"
# resp.subscribed_listings #=> Array
# resp.subscribed_listings[0].description #=> String
# resp.subscribed_listings[0].id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.asset_id #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.error_message #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids #=> Array
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.filter_ids[0] #=> String
+ # resp.subscribed_listings[0].item.asset_listing.asset_scope.status #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_id #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_revision #=> String
# resp.subscribed_listings[0].item.asset_listing.entity_type #=> String
# resp.subscribed_listings[0].item.asset_listing.forms #=> String
# resp.subscribed_listings[0].item.asset_listing.glossary_terms #=> Array
@@ -10275,17 +10371,22 @@
# @param params ({})
# @api private
def build_request(operation_name, params = {})
handlers = @handlers.for(operation_name)
+ tracer = config.telemetry_provider.tracer_provider.tracer(
+ Aws::Telemetry.module_to_tracer_name('Aws::DataZone')
+ )
context = Seahorse::Client::RequestContext.new(
operation_name: operation_name,
operation: config.api.operation(operation_name),
client: self,
params: params,
- config: config)
+ config: config,
+ tracer: tracer
+ )
context[:gem_name] = 'aws-sdk-datazone'
- context[:gem_version] = '1.20.0'
+ context[:gem_version] = '1.21.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated