lib/aws-sdk-mediapackage/client.rb in aws-sdk-mediapackage-1.8.0 vs lib/aws-sdk-mediapackage/client.rb in aws-sdk-mediapackage-1.9.0

- old
+ new

@@ -13,10 +13,11 @@ require 'aws-sdk-core/plugins/user_agent.rb' require 'aws-sdk-core/plugins/helpful_socket_errors.rb' require 'aws-sdk-core/plugins/retry_errors.rb' require 'aws-sdk-core/plugins/global_configuration.rb' require 'aws-sdk-core/plugins/regional_endpoint.rb' +require 'aws-sdk-core/plugins/endpoint_discovery.rb' require 'aws-sdk-core/plugins/response_paging.rb' require 'aws-sdk-core/plugins/stub_responses.rb' require 'aws-sdk-core/plugins/idempotency_token.rb' require 'aws-sdk-core/plugins/jsonvalue_converter.rb' require 'aws-sdk-core/plugins/client_metrics_plugin.rb' @@ -43,10 +44,11 @@ add_plugin(Aws::Plugins::UserAgent) add_plugin(Aws::Plugins::HelpfulSocketErrors) add_plugin(Aws::Plugins::RetryErrors) add_plugin(Aws::Plugins::GlobalConfiguration) add_plugin(Aws::Plugins::RegionalEndpoint) + add_plugin(Aws::Plugins::EndpointDiscovery) add_plugin(Aws::Plugins::ResponsePaging) add_plugin(Aws::Plugins::StubResponses) add_plugin(Aws::Plugins::IdempotencyToken) add_plugin(Aws::Plugins::JsonvalueConverter) add_plugin(Aws::Plugins::ClientMetricsPlugin) @@ -96,10 +98,14 @@ # * `~/.aws/credentials` # * `~/.aws/config` # # @option options [String] :access_key_id # + # @option options [Boolean] :active_endpoint_cache (false) + # When set to `true`, a thread polling for endpoints will be running in + # the background every 60 secs (default). Defaults to `false`. + # # @option options [Boolean] :client_side_monitoring (false) # When `true`, client-side metrics will be collected for all API requests from # this client. # # @option options [String] :client_side_monitoring_client_id ("") @@ -121,10 +127,25 @@ # @option options [String] :endpoint # The client endpoint is normally constructed from the `:region` # option. You should only configure an `:endpoint` when connecting # to test endpoints. This should be avalid HTTP(S) URI. # + # @option options [Integer] :endpoint_cache_max_entries (1000) + # Used for the maximum size limit of the LRU cache storing endpoints data + # for endpoint discovery enabled operations. Defaults to 1000. + # + # @option options [Integer] :endpoint_cache_max_threads (10) + # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10. + # + # @option options [Integer] :endpoint_cache_poll_interval (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. + # + # @option options [Boolean] :endpoint_discovery (false) + # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`. + # # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default) # The log formatter. # # @option options [Symbol] :log_level (:info) # The log level to send messages to the `:logger` at. @@ -268,10 +289,11 @@ # channel_id: "__string", # required # cmaf_package: { # encryption: { # key_rotation_interval_seconds: 1, # speke_key_provider: { # required + # certificate_arn: "__string", # resource_id: "__string", # required # role_arn: "__string", # required # system_ids: ["__string"], # required # url: "__string", # required # }, @@ -297,10 +319,11 @@ # }, # dash_package: { # encryption: { # key_rotation_interval_seconds: 1, # speke_key_provider: { # required + # certificate_arn: "__string", # resource_id: "__string", # required # role_arn: "__string", # required # system_ids: ["__string"], # required # url: "__string", # required # }, @@ -325,10 +348,11 @@ # constant_initialization_vector: "__string", # encryption_method: "AES_128", # accepts AES_128, SAMPLE_AES # key_rotation_interval_seconds: 1, # repeat_ext_x_key: false, # speke_key_provider: { # required + # certificate_arn: "__string", # resource_id: "__string", # required # role_arn: "__string", # required # system_ids: ["__string"], # required # url: "__string", # required # }, @@ -348,10 +372,11 @@ # id: "__string", # required # manifest_name: "__string", # mss_package: { # encryption: { # speke_key_provider: { # required + # certificate_arn: "__string", # resource_id: "__string", # required # role_arn: "__string", # required # system_ids: ["__string"], # required # url: "__string", # required # }, @@ -372,10 +397,11 @@ # @example Response structure # # resp.arn #=> String # resp.channel_id #=> String # resp.cmaf_package.encryption.key_rotation_interval_seconds #=> Integer + # resp.cmaf_package.encryption.speke_key_provider.certificate_arn #=> String # resp.cmaf_package.encryption.speke_key_provider.resource_id #=> String # resp.cmaf_package.encryption.speke_key_provider.role_arn #=> String # resp.cmaf_package.encryption.speke_key_provider.system_ids #=> Array # resp.cmaf_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.cmaf_package.encryption.speke_key_provider.url #=> String @@ -392,10 +418,11 @@ # resp.cmaf_package.segment_prefix #=> String # resp.cmaf_package.stream_selection.max_video_bits_per_second #=> Integer # resp.cmaf_package.stream_selection.min_video_bits_per_second #=> Integer # resp.cmaf_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.dash_package.encryption.key_rotation_interval_seconds #=> Integer + # resp.dash_package.encryption.speke_key_provider.certificate_arn #=> String # resp.dash_package.encryption.speke_key_provider.resource_id #=> String # resp.dash_package.encryption.speke_key_provider.role_arn #=> String # resp.dash_package.encryption.speke_key_provider.system_ids #=> Array # resp.dash_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.dash_package.encryption.speke_key_provider.url #=> String @@ -414,10 +441,11 @@ # resp.hls_package.ad_markers #=> String, one of "NONE", "SCTE35_ENHANCED", "PASSTHROUGH" # resp.hls_package.encryption.constant_initialization_vector #=> String # resp.hls_package.encryption.encryption_method #=> String, one of "AES_128", "SAMPLE_AES" # resp.hls_package.encryption.key_rotation_interval_seconds #=> Integer # resp.hls_package.encryption.repeat_ext_x_key #=> Boolean + # resp.hls_package.encryption.speke_key_provider.certificate_arn #=> String # resp.hls_package.encryption.speke_key_provider.resource_id #=> String # resp.hls_package.encryption.speke_key_provider.role_arn #=> String # resp.hls_package.encryption.speke_key_provider.system_ids #=> Array # resp.hls_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.hls_package.encryption.speke_key_provider.url #=> String @@ -430,10 +458,11 @@ # resp.hls_package.stream_selection.min_video_bits_per_second #=> Integer # resp.hls_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.hls_package.use_audio_rendition_group #=> Boolean # resp.id #=> String # resp.manifest_name #=> String + # resp.mss_package.encryption.speke_key_provider.certificate_arn #=> String # resp.mss_package.encryption.speke_key_provider.resource_id #=> String # resp.mss_package.encryption.speke_key_provider.role_arn #=> String # resp.mss_package.encryption.speke_key_provider.system_ids #=> Array # resp.mss_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.mss_package.encryption.speke_key_provider.url #=> String @@ -565,10 +594,11 @@ # @example Response structure # # resp.arn #=> String # resp.channel_id #=> String # resp.cmaf_package.encryption.key_rotation_interval_seconds #=> Integer + # resp.cmaf_package.encryption.speke_key_provider.certificate_arn #=> String # resp.cmaf_package.encryption.speke_key_provider.resource_id #=> String # resp.cmaf_package.encryption.speke_key_provider.role_arn #=> String # resp.cmaf_package.encryption.speke_key_provider.system_ids #=> Array # resp.cmaf_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.cmaf_package.encryption.speke_key_provider.url #=> String @@ -585,10 +615,11 @@ # resp.cmaf_package.segment_prefix #=> String # resp.cmaf_package.stream_selection.max_video_bits_per_second #=> Integer # resp.cmaf_package.stream_selection.min_video_bits_per_second #=> Integer # resp.cmaf_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.dash_package.encryption.key_rotation_interval_seconds #=> Integer + # resp.dash_package.encryption.speke_key_provider.certificate_arn #=> String # resp.dash_package.encryption.speke_key_provider.resource_id #=> String # resp.dash_package.encryption.speke_key_provider.role_arn #=> String # resp.dash_package.encryption.speke_key_provider.system_ids #=> Array # resp.dash_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.dash_package.encryption.speke_key_provider.url #=> String @@ -607,10 +638,11 @@ # resp.hls_package.ad_markers #=> String, one of "NONE", "SCTE35_ENHANCED", "PASSTHROUGH" # resp.hls_package.encryption.constant_initialization_vector #=> String # resp.hls_package.encryption.encryption_method #=> String, one of "AES_128", "SAMPLE_AES" # resp.hls_package.encryption.key_rotation_interval_seconds #=> Integer # resp.hls_package.encryption.repeat_ext_x_key #=> Boolean + # resp.hls_package.encryption.speke_key_provider.certificate_arn #=> String # resp.hls_package.encryption.speke_key_provider.resource_id #=> String # resp.hls_package.encryption.speke_key_provider.role_arn #=> String # resp.hls_package.encryption.speke_key_provider.system_ids #=> Array # resp.hls_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.hls_package.encryption.speke_key_provider.url #=> String @@ -623,10 +655,11 @@ # resp.hls_package.stream_selection.min_video_bits_per_second #=> Integer # resp.hls_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.hls_package.use_audio_rendition_group #=> Boolean # resp.id #=> String # resp.manifest_name #=> String + # resp.mss_package.encryption.speke_key_provider.certificate_arn #=> String # resp.mss_package.encryption.speke_key_provider.resource_id #=> String # resp.mss_package.encryption.speke_key_provider.role_arn #=> String # resp.mss_package.encryption.speke_key_provider.system_ids #=> Array # resp.mss_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.mss_package.encryption.speke_key_provider.url #=> String @@ -716,10 +749,11 @@ # resp.next_token #=> String # resp.origin_endpoints #=> Array # resp.origin_endpoints[0].arn #=> String # resp.origin_endpoints[0].channel_id #=> String # resp.origin_endpoints[0].cmaf_package.encryption.key_rotation_interval_seconds #=> Integer + # resp.origin_endpoints[0].cmaf_package.encryption.speke_key_provider.certificate_arn #=> String # resp.origin_endpoints[0].cmaf_package.encryption.speke_key_provider.resource_id #=> String # resp.origin_endpoints[0].cmaf_package.encryption.speke_key_provider.role_arn #=> String # resp.origin_endpoints[0].cmaf_package.encryption.speke_key_provider.system_ids #=> Array # resp.origin_endpoints[0].cmaf_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.origin_endpoints[0].cmaf_package.encryption.speke_key_provider.url #=> String @@ -736,10 +770,11 @@ # resp.origin_endpoints[0].cmaf_package.segment_prefix #=> String # resp.origin_endpoints[0].cmaf_package.stream_selection.max_video_bits_per_second #=> Integer # resp.origin_endpoints[0].cmaf_package.stream_selection.min_video_bits_per_second #=> Integer # resp.origin_endpoints[0].cmaf_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.origin_endpoints[0].dash_package.encryption.key_rotation_interval_seconds #=> Integer + # resp.origin_endpoints[0].dash_package.encryption.speke_key_provider.certificate_arn #=> String # resp.origin_endpoints[0].dash_package.encryption.speke_key_provider.resource_id #=> String # resp.origin_endpoints[0].dash_package.encryption.speke_key_provider.role_arn #=> String # resp.origin_endpoints[0].dash_package.encryption.speke_key_provider.system_ids #=> Array # resp.origin_endpoints[0].dash_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.origin_endpoints[0].dash_package.encryption.speke_key_provider.url #=> String @@ -758,10 +793,11 @@ # resp.origin_endpoints[0].hls_package.ad_markers #=> String, one of "NONE", "SCTE35_ENHANCED", "PASSTHROUGH" # resp.origin_endpoints[0].hls_package.encryption.constant_initialization_vector #=> String # resp.origin_endpoints[0].hls_package.encryption.encryption_method #=> String, one of "AES_128", "SAMPLE_AES" # resp.origin_endpoints[0].hls_package.encryption.key_rotation_interval_seconds #=> Integer # resp.origin_endpoints[0].hls_package.encryption.repeat_ext_x_key #=> Boolean + # resp.origin_endpoints[0].hls_package.encryption.speke_key_provider.certificate_arn #=> String # resp.origin_endpoints[0].hls_package.encryption.speke_key_provider.resource_id #=> String # resp.origin_endpoints[0].hls_package.encryption.speke_key_provider.role_arn #=> String # resp.origin_endpoints[0].hls_package.encryption.speke_key_provider.system_ids #=> Array # resp.origin_endpoints[0].hls_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.origin_endpoints[0].hls_package.encryption.speke_key_provider.url #=> String @@ -774,10 +810,11 @@ # resp.origin_endpoints[0].hls_package.stream_selection.min_video_bits_per_second #=> Integer # resp.origin_endpoints[0].hls_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.origin_endpoints[0].hls_package.use_audio_rendition_group #=> Boolean # resp.origin_endpoints[0].id #=> String # resp.origin_endpoints[0].manifest_name #=> String + # resp.origin_endpoints[0].mss_package.encryption.speke_key_provider.certificate_arn #=> String # resp.origin_endpoints[0].mss_package.encryption.speke_key_provider.resource_id #=> String # resp.origin_endpoints[0].mss_package.encryption.speke_key_provider.role_arn #=> String # resp.origin_endpoints[0].mss_package.encryption.speke_key_provider.system_ids #=> Array # resp.origin_endpoints[0].mss_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.origin_endpoints[0].mss_package.encryption.speke_key_provider.url #=> String @@ -968,10 +1005,11 @@ # resp = client.update_origin_endpoint({ # cmaf_package: { # encryption: { # key_rotation_interval_seconds: 1, # speke_key_provider: { # required + # certificate_arn: "__string", # resource_id: "__string", # required # role_arn: "__string", # required # system_ids: ["__string"], # required # url: "__string", # required # }, @@ -997,10 +1035,11 @@ # }, # dash_package: { # encryption: { # key_rotation_interval_seconds: 1, # speke_key_provider: { # required + # certificate_arn: "__string", # resource_id: "__string", # required # role_arn: "__string", # required # system_ids: ["__string"], # required # url: "__string", # required # }, @@ -1025,10 +1064,11 @@ # constant_initialization_vector: "__string", # encryption_method: "AES_128", # accepts AES_128, SAMPLE_AES # key_rotation_interval_seconds: 1, # repeat_ext_x_key: false, # speke_key_provider: { # required + # certificate_arn: "__string", # resource_id: "__string", # required # role_arn: "__string", # required # system_ids: ["__string"], # required # url: "__string", # required # }, @@ -1048,10 +1088,11 @@ # id: "__string", # required # manifest_name: "__string", # mss_package: { # encryption: { # speke_key_provider: { # required + # certificate_arn: "__string", # resource_id: "__string", # required # role_arn: "__string", # required # system_ids: ["__string"], # required # url: "__string", # required # }, @@ -1072,10 +1113,11 @@ # @example Response structure # # resp.arn #=> String # resp.channel_id #=> String # resp.cmaf_package.encryption.key_rotation_interval_seconds #=> Integer + # resp.cmaf_package.encryption.speke_key_provider.certificate_arn #=> String # resp.cmaf_package.encryption.speke_key_provider.resource_id #=> String # resp.cmaf_package.encryption.speke_key_provider.role_arn #=> String # resp.cmaf_package.encryption.speke_key_provider.system_ids #=> Array # resp.cmaf_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.cmaf_package.encryption.speke_key_provider.url #=> String @@ -1092,10 +1134,11 @@ # resp.cmaf_package.segment_prefix #=> String # resp.cmaf_package.stream_selection.max_video_bits_per_second #=> Integer # resp.cmaf_package.stream_selection.min_video_bits_per_second #=> Integer # resp.cmaf_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.dash_package.encryption.key_rotation_interval_seconds #=> Integer + # resp.dash_package.encryption.speke_key_provider.certificate_arn #=> String # resp.dash_package.encryption.speke_key_provider.resource_id #=> String # resp.dash_package.encryption.speke_key_provider.role_arn #=> String # resp.dash_package.encryption.speke_key_provider.system_ids #=> Array # resp.dash_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.dash_package.encryption.speke_key_provider.url #=> String @@ -1114,10 +1157,11 @@ # resp.hls_package.ad_markers #=> String, one of "NONE", "SCTE35_ENHANCED", "PASSTHROUGH" # resp.hls_package.encryption.constant_initialization_vector #=> String # resp.hls_package.encryption.encryption_method #=> String, one of "AES_128", "SAMPLE_AES" # resp.hls_package.encryption.key_rotation_interval_seconds #=> Integer # resp.hls_package.encryption.repeat_ext_x_key #=> Boolean + # resp.hls_package.encryption.speke_key_provider.certificate_arn #=> String # resp.hls_package.encryption.speke_key_provider.resource_id #=> String # resp.hls_package.encryption.speke_key_provider.role_arn #=> String # resp.hls_package.encryption.speke_key_provider.system_ids #=> Array # resp.hls_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.hls_package.encryption.speke_key_provider.url #=> String @@ -1130,10 +1174,11 @@ # resp.hls_package.stream_selection.min_video_bits_per_second #=> Integer # resp.hls_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.hls_package.use_audio_rendition_group #=> Boolean # resp.id #=> String # resp.manifest_name #=> String + # resp.mss_package.encryption.speke_key_provider.certificate_arn #=> String # resp.mss_package.encryption.speke_key_provider.resource_id #=> String # resp.mss_package.encryption.speke_key_provider.role_arn #=> String # resp.mss_package.encryption.speke_key_provider.system_ids #=> Array # resp.mss_package.encryption.speke_key_provider.system_ids[0] #=> String # resp.mss_package.encryption.speke_key_provider.url #=> String @@ -1168,10 +1213,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-mediapackage' - context[:gem_version] = '1.8.0' + context[:gem_version] = '1.9.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated