# frozen_string_literal: true

# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE

require 'seahorse/client/plugins/content_length'
require 'aws-sdk-core/plugins/credentials_configuration'
require 'aws-sdk-core/plugins/logging'
require 'aws-sdk-core/plugins/param_converter'
require 'aws-sdk-core/plugins/param_validator'
require 'aws-sdk-core/plugins/user_agent'
require 'aws-sdk-core/plugins/helpful_socket_errors'
require 'aws-sdk-core/plugins/retry_errors'
require 'aws-sdk-core/plugins/global_configuration'
require 'aws-sdk-core/plugins/regional_endpoint'
require 'aws-sdk-core/plugins/endpoint_discovery'
require 'aws-sdk-core/plugins/endpoint_pattern'
require 'aws-sdk-core/plugins/response_paging'
require 'aws-sdk-core/plugins/stub_responses'
require 'aws-sdk-core/plugins/idempotency_token'
require 'aws-sdk-core/plugins/invocation_id'
require 'aws-sdk-core/plugins/jsonvalue_converter'
require 'aws-sdk-core/plugins/client_metrics_plugin'
require 'aws-sdk-core/plugins/client_metrics_send_plugin'
require 'aws-sdk-core/plugins/transfer_encoding'
require 'aws-sdk-core/plugins/http_checksum'
require 'aws-sdk-core/plugins/checksum_algorithm'
require 'aws-sdk-core/plugins/request_compression'
require 'aws-sdk-core/plugins/defaults_mode'
require 'aws-sdk-core/plugins/recursion_detection'
require 'aws-sdk-core/plugins/telemetry'
require 'aws-sdk-core/plugins/sign'
require 'aws-sdk-core/plugins/protocols/rest_json'

module Aws::IVS
  # An API client for IVS.  To construct a client, you need to configure a `:region` and `:credentials`.
  #
  #     client = Aws::IVS::Client.new(
  #       region: region_name,
  #       credentials: credentials,
  #       # ...
  #     )
  #
  # For details on configuring region and credentials see
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
  #
  # See {#initialize} for a full list of supported configuration options.
  class Client < Seahorse::Client::Base

    include Aws::ClientStubs

    @identifier = :ivs

    set_api(ClientApi::API)

    add_plugin(Seahorse::Client::Plugins::ContentLength)
    add_plugin(Aws::Plugins::CredentialsConfiguration)
    add_plugin(Aws::Plugins::Logging)
    add_plugin(Aws::Plugins::ParamConverter)
    add_plugin(Aws::Plugins::ParamValidator)
    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::EndpointPattern)
    add_plugin(Aws::Plugins::ResponsePaging)
    add_plugin(Aws::Plugins::StubResponses)
    add_plugin(Aws::Plugins::IdempotencyToken)
    add_plugin(Aws::Plugins::InvocationId)
    add_plugin(Aws::Plugins::JsonvalueConverter)
    add_plugin(Aws::Plugins::ClientMetricsPlugin)
    add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
    add_plugin(Aws::Plugins::TransferEncoding)
    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::IVS::Plugins::Endpoints)

    # @overload initialize(options)
    #   @param [Hash] options
    #
    #   @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
    #     A list of plugins to apply to the client. Each plugin is either a
    #     class name or an instance of a plugin class.
    #
    #   @option options [required, Aws::CredentialProvider] :credentials
    #     Your AWS credentials used for authentication. This can be any class that includes and implements
    #     `Aws::CredentialProvider`, or 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`, `:session_token`, and
    #       `:account_id` options.
    #
    #     * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
    #       `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
    #
    #     * `~/.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::InstanceProfileCredentials` 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`.
    #
    #   @option options [required, String] :region
    #     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`
    #
    #   @option options [String] :access_key_id
    #
    #   @option options [String] :account_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] :adaptive_retry_wait_to_fill (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.
    #
    #   @option options [Array<String>] :auth_scheme_preference
    #     A list of preferred authentication schemes to use when making a request. Supported values are:
    #     `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
    #     shared config as `auth_scheme_preference`, the value should be a comma-separated list.
    #
    #   @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 ("")
    #     Allows you to provide an identifier for this client which will be attached to
    #     all generated client side metrics. Defaults to an empty string.
    #
    #   @option options [String] :client_side_monitoring_host ("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.
    #
    #   @option options [Integer] :client_side_monitoring_port (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.
    #
    #   @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
    #     Allows you to provide a custom client-side monitoring publisher class. By default,
    #     will use the Client Side Monitoring Agent Publisher.
    #
    #   @option options [Boolean] :convert_params (true)
    #     When `true`, an attempt is made to coerce request parameters into
    #     the required types.
    #
    #   @option options [Boolean] :correct_clock_skew (true)
    #     Used only in `standard` and adaptive retry modes. Specifies whether to apply
    #     a clock skew correction and retry requests with skewed client clocks.
    #
    #   @option options [String] :defaults_mode ("legacy")
    #     See {Aws::DefaultsModeConfiguration} for a list of the
    #     accepted modes and the configuration defaults that are included.
    #
    #   @option options [Boolean] :disable_host_prefix_injection (false)
    #     When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
    #
    #   @option options [Boolean] :disable_request_compression (false)
    #     When set to 'true' the request body will not be compressed
    #     for supported operations.
    #
    #   @option options [String, URI::HTTPS, URI::HTTP] :endpoint
    #     Normally you should not configure the `:endpoint` option
    #     directly. This is normally constructed from the `:region`
    #     option. Configuring `:endpoint` is normally reserved for
    #     connecting to test or custom endpoints. The endpoint should
    #     be a URI formatted like:
    #
    #         'http://example.com'
    #         'https://example.com'
    #         'http://example.com:123'
    #
    #   @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.
    #
    #   @option options [Boolean] :ignore_configured_endpoint_urls
    #     Setting to true disables use of endpoint URLs provided via environment
    #     variables and the shared configuration file.
    #
    #   @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.
    #
    #   @option options [Logger] :logger
    #     The Logger instance to send log messages to.  If this option
    #     is not set, logging will be disabled.
    #
    #   @option options [Integer] :max_attempts (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.
    #
    #   @option options [String] :profile ("default")
    #     Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
    #     When not specified, 'default' is used.
    #
    #   @option options [String] :request_checksum_calculation ("when_supported")
    #     Determines when a checksum will be calculated for request payloads. Values are:
    #
    #     * `when_supported` - (default) When set, a checksum will be
    #       calculated for all request payloads of operations modeled with the
    #       `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
    #       `requestAlgorithmMember` is modeled.
    #     * `when_required` - When set, a checksum will only be calculated for
    #       request payloads of operations modeled with the  `httpChecksum` trait where
    #       `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
    #       is modeled and supplied.
    #
    #   @option options [Integer] :request_min_compression_size_bytes (10240)
    #     The minimum size in bytes that triggers compression for request
    #     bodies. The value must be non-negative integer value between 0
    #     and 10485780 bytes inclusive.
    #
    #   @option options [String] :response_checksum_validation ("when_supported")
    #     Determines when checksum validation will be performed on response payloads. Values are:
    #
    #     * `when_supported` - (default) When set, checksum validation is performed on all
    #       response payloads of operations modeled with the `httpChecksum` trait where
    #       `responseAlgorithms` is modeled, except when no modeled checksum algorithms
    #       are supported.
    #     * `when_required` - When set, checksum validation is not performed on
    #       response payloads of operations unless the checksum algorithm is supported and
    #       the `requestValidationModeMember` member is set to `ENABLED`.
    #
    #   @option options [Proc] :retry_backoff
    #     A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
    #     This option is only used in the `legacy` retry mode.
    #
    #   @option options [Float] :retry_base_delay (0.3)
    #     The base delay in seconds used by the default backoff function. This option
    #     is only used in the `legacy` retry mode.
    #
    #   @option options [Symbol] :retry_jitter (: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
    #
    #   @option options [Integer] :retry_limit (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.
    #
    #   @option options [Integer] :retry_max_delay (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.
    #
    #   @option options [String] :retry_mode ("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.
    #
    #   @option options [String] :sdk_ua_app_id
    #     A unique and opaque application ID that is appended to the
    #     User-Agent header as app/sdk_ua_app_id. It should have a
    #     maximum length of 50. This variable is sourced from environment
    #     variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
    #
    #   @option options [String] :secret_access_key
    #
    #   @option options [String] :session_token
    #
    #   @option options [Array] :sigv4a_signing_region_set
    #     A list of regions that should be signed with SigV4a signing. When
    #     not passed, a default `:sigv4a_signing_region_set` is searched for
    #     in the following locations:
    #
    #     * `Aws.config[:sigv4a_signing_region_set]`
    #     * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
    #     * `~/.aws/config`
    #
    #   @option options [Boolean] :stub_responses (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.
    #
    #   @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
    #     Your Bearer token used for authentication. This can be any class that includes and implements
    #     `Aws::TokenProvider`, or instance of any one of the following classes:
    #
    #     * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
    #       tokens.
    #
    #     * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
    #       access token generated from `aws login`.
    #
    #     When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
    #     will be used to search for tokens configured for your profile in shared configuration files.
    #
    #   @option options [Boolean] :use_dualstack_endpoint
    #     When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
    #     will be used if available.
    #
    #   @option options [Boolean] :use_fips_endpoint
    #     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`.
    #
    #   @option options [Boolean] :validate_params (true)
    #     When `true`, request parameters are validated before
    #     sending the request.
    #
    #   @option options [Aws::IVS::EndpointProvider] :endpoint_provider
    #     The endpoint provider used to resolve endpoints. Any object that responds to
    #     `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
    #     `Aws::IVS::EndpointParameters`.
    #
    #   @option options [Float] :http_continue_timeout (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.
    #
    #   @option options [Float] :http_idle_timeout (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.
    #
    #   @option options [Float] :http_open_timeout (15)
    #     The default number of seconds to wait for response data.
    #     This value can safely be set per-request on the session.
    #
    #   @option options [URI::HTTP,String] :http_proxy
    #     A proxy to send requests through.  Formatted like 'http://proxy.com:123'.
    #
    #   @option options [Float] :http_read_timeout (60)
    #     The default number of seconds to wait for response data.
    #     This value can safely be set per-request on the session.
    #
    #   @option options [Boolean] :http_wire_trace (false)
    #     When `true`,  HTTP debug output will be sent to the `:logger`.
    #
    #   @option options [Proc] :on_chunk_received
    #     When a Proc object is provided, it will be used as callback when each chunk
    #     of the response body is received. It provides three arguments: the chunk,
    #     the number of bytes received, and the total number of
    #     bytes in the response (or nil if the server did not send a `content-length`).
    #
    #   @option options [Proc] :on_chunk_sent
    #     When a Proc object is provided, it will be used as callback when each chunk
    #     of the request body is sent. It provides three arguments: the chunk,
    #     the number of bytes read from the body, and the total number of
    #     bytes in the body.
    #
    #   @option options [Boolean] :raise_response_errors (true)
    #     When `true`, response errors are raised.
    #
    #   @option options [String] :ssl_ca_bundle
    #     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.
    #
    #   @option options [String] :ssl_ca_directory
    #     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.
    #
    #   @option options [String] :ssl_ca_store
    #     Sets the X509::Store to verify peer certificate.
    #
    #   @option options [OpenSSL::X509::Certificate] :ssl_cert
    #     Sets a client certificate when creating http connections.
    #
    #   @option options [OpenSSL::PKey] :ssl_key
    #     Sets a client key when creating http connections.
    #
    #   @option options [Float] :ssl_timeout
    #     Sets the SSL timeout in seconds
    #
    #   @option options [Boolean] :ssl_verify_peer (true)
    #     When `true`, SSL peer certificates are verified when establishing a connection.
    #
    def initialize(*args)
      super
    end

    # @!group API Operations

    # Performs GetChannel on multiple ARNs simultaneously.
    #
    # @option params [required, Array<String>] :arns
    #   Array of ARNs, one per channel.
    #
    # @return [Types::BatchGetChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::BatchGetChannelResponse#channels #channels} => Array&lt;Types::Channel&gt;
    #   * {Types::BatchGetChannelResponse#errors #errors} => Array&lt;Types::BatchError&gt;
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.batch_get_channel({
    #     arns: ["ChannelArn"], # required
    #   })
    #
    # @example Response structure
    #
    #   resp.channels #=> Array
    #   resp.channels[0].arn #=> String
    #   resp.channels[0].authorized #=> Boolean
    #   resp.channels[0].container_format #=> String, one of "TS", "FRAGMENTED_MP4"
    #   resp.channels[0].ingest_endpoint #=> String
    #   resp.channels[0].insecure_ingest #=> Boolean
    #   resp.channels[0].latency_mode #=> String, one of "NORMAL", "LOW"
    #   resp.channels[0].multitrack_input_configuration.enabled #=> Boolean
    #   resp.channels[0].multitrack_input_configuration.maximum_resolution #=> String, one of "SD", "HD", "FULL_HD"
    #   resp.channels[0].multitrack_input_configuration.policy #=> String, one of "ALLOW", "REQUIRE"
    #   resp.channels[0].name #=> String
    #   resp.channels[0].playback_restriction_policy_arn #=> String
    #   resp.channels[0].playback_url #=> String
    #   resp.channels[0].preset #=> String, one of "HIGHER_BANDWIDTH_DELIVERY", "CONSTRAINED_BANDWIDTH_DELIVERY"
    #   resp.channels[0].recording_configuration_arn #=> String
    #   resp.channels[0].srt.endpoint #=> String
    #   resp.channels[0].srt.passphrase #=> String
    #   resp.channels[0].tags #=> Hash
    #   resp.channels[0].tags["TagKey"] #=> String
    #   resp.channels[0].type #=> String, one of "BASIC", "STANDARD", "ADVANCED_SD", "ADVANCED_HD"
    #   resp.errors #=> Array
    #   resp.errors[0].arn #=> String
    #   resp.errors[0].code #=> String
    #   resp.errors[0].message #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/BatchGetChannel AWS API Documentation
    #
    # @overload batch_get_channel(params = {})
    # @param [Hash] params ({})
    def batch_get_channel(params = {}, options = {})
      req = build_request(:batch_get_channel, params)
      req.send_request(options)
    end

    # Performs GetStreamKey on multiple ARNs simultaneously.
    #
    # @option params [required, Array<String>] :arns
    #   Array of ARNs, one per stream key.
    #
    # @return [Types::BatchGetStreamKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::BatchGetStreamKeyResponse#errors #errors} => Array&lt;Types::BatchError&gt;
    #   * {Types::BatchGetStreamKeyResponse#stream_keys #stream_keys} => Array&lt;Types::StreamKey&gt;
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.batch_get_stream_key({
    #     arns: ["StreamKeyArn"], # required
    #   })
    #
    # @example Response structure
    #
    #   resp.errors #=> Array
    #   resp.errors[0].arn #=> String
    #   resp.errors[0].code #=> String
    #   resp.errors[0].message #=> String
    #   resp.stream_keys #=> Array
    #   resp.stream_keys[0].arn #=> String
    #   resp.stream_keys[0].channel_arn #=> String
    #   resp.stream_keys[0].tags #=> Hash
    #   resp.stream_keys[0].tags["TagKey"] #=> String
    #   resp.stream_keys[0].value #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/BatchGetStreamKey AWS API Documentation
    #
    # @overload batch_get_stream_key(params = {})
    # @param [Hash] params ({})
    def batch_get_stream_key(params = {}, options = {})
      req = build_request(:batch_get_stream_key, params)
      req.send_request(options)
    end

    # Performs StartViewerSessionRevocation on multiple channel ARN and
    # viewer ID pairs simultaneously.
    #
    # @option params [required, Array<Types::BatchStartViewerSessionRevocationViewerSession>] :viewer_sessions
    #   Array of viewer sessions, one per channel-ARN and viewer-ID pair.
    #
    # @return [Types::BatchStartViewerSessionRevocationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::BatchStartViewerSessionRevocationResponse#errors #errors} => Array&lt;Types::BatchStartViewerSessionRevocationError&gt;
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.batch_start_viewer_session_revocation({
    #     viewer_sessions: [ # required
    #       {
    #         channel_arn: "ChannelArn", # required
    #         viewer_id: "ViewerId", # required
    #         viewer_session_versions_less_than_or_equal_to: 1,
    #       },
    #     ],
    #   })
    #
    # @example Response structure
    #
    #   resp.errors #=> Array
    #   resp.errors[0].channel_arn #=> String
    #   resp.errors[0].code #=> String
    #   resp.errors[0].message #=> String
    #   resp.errors[0].viewer_id #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/BatchStartViewerSessionRevocation AWS API Documentation
    #
    # @overload batch_start_viewer_session_revocation(params = {})
    # @param [Hash] params ({})
    def batch_start_viewer_session_revocation(params = {}, options = {})
      req = build_request(:batch_start_viewer_session_revocation, params)
      req.send_request(options)
    end

    # Creates a new channel and an associated stream key to start streaming.
    #
    # @option params [Boolean] :authorized
    #   Whether the channel is private (enabled for playback authorization).
    #   Default: `false`.
    #
    # @option params [String] :container_format
    #   Indicates which content-packaging format is used (MPEG-TS or fMP4). If
    #   `multitrackInputConfiguration` is specified and `enabled` is `true`,
    #   then `containerFormat` is required and must be set to
    #   `FRAGMENTED_MP4`. Otherwise, `containerFormat` may be set to `TS` or
    #   `FRAGMENTED_MP4`. Default: `TS`.
    #
    # @option params [Boolean] :insecure_ingest
    #   Whether the channel allows insecure RTMP and SRT ingest. Default:
    #   `false`.
    #
    # @option params [String] :latency_mode
    #   Channel latency mode. Use `NORMAL` to broadcast and deliver live video
    #   up to Full HD. Use `LOW` for near-real-time interaction with viewers.
    #   Default: `LOW`.
    #
    # @option params [Types::MultitrackInputConfiguration] :multitrack_input_configuration
    #   Object specifying multitrack input configuration. Default: no
    #   multitrack input configuration is specified.
    #
    # @option params [String] :name
    #   Channel name.
    #
    # @option params [String] :playback_restriction_policy_arn
    #   Playback-restriction-policy ARN. A valid ARN value here both specifies
    #   the ARN and enables playback restriction. Default: "" (empty string,
    #   no playback restriction policy is applied).
    #
    # @option params [String] :preset
    #   Optional transcode preset for the channel. This is selectable only for
    #   `ADVANCED_HD` and `ADVANCED_SD` channel types. For those channel
    #   types, the default `preset` is `HIGHER_BANDWIDTH_DELIVERY`. For other
    #   channel types (`BASIC` and `STANDARD`), `preset` is the empty string
    #   (`""`).
    #
    # @option params [String] :recording_configuration_arn
    #   Recording-configuration ARN. A valid ARN value here both specifies the
    #   ARN and enables recording. Default: "" (empty string, recording is
    #   disabled).
    #
    # @option params [Hash<String,String>] :tags
    #   Array of 1-50 maps, each of the form `string:string (key:value)`. See
    #   [Best practices and strategies][1] in *Tagging Amazon Web Services
    #   Resources and Tag Editor* for details, including restrictions that
    #   apply to tags and "Tag naming limits and requirements"; Amazon IVS
    #   has no service-specific constraints beyond what is documented there.
    #
    #
    #
    #   [1]: https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html
    #
    # @option params [String] :type
    #   Channel type, which determines the allowable resolution and bitrate.
    #   *If you exceed the allowable input resolution or bitrate, the stream
    #   probably will disconnect immediately.* Default: `STANDARD`. For
    #   details, see [Channel Types][1].
    #
    #
    #
    #   [1]: https://docs.aws.amazon.com/ivs/latest/LowLatencyAPIReference/channel-types.html
    #
    # @return [Types::CreateChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::CreateChannelResponse#channel #channel} => Types::Channel
    #   * {Types::CreateChannelResponse#stream_key #stream_key} => Types::StreamKey
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.create_channel({
    #     authorized: false,
    #     container_format: "TS", # accepts TS, FRAGMENTED_MP4
    #     insecure_ingest: false,
    #     latency_mode: "NORMAL", # accepts NORMAL, LOW
    #     multitrack_input_configuration: {
    #       enabled: false,
    #       maximum_resolution: "SD", # accepts SD, HD, FULL_HD
    #       policy: "ALLOW", # accepts ALLOW, REQUIRE
    #     },
    #     name: "ChannelName",
    #     playback_restriction_policy_arn: "ChannelPlaybackRestrictionPolicyArn",
    #     preset: "HIGHER_BANDWIDTH_DELIVERY", # accepts HIGHER_BANDWIDTH_DELIVERY, CONSTRAINED_BANDWIDTH_DELIVERY
    #     recording_configuration_arn: "ChannelRecordingConfigurationArn",
    #     tags: {
    #       "TagKey" => "TagValue",
    #     },
    #     type: "BASIC", # accepts BASIC, STANDARD, ADVANCED_SD, ADVANCED_HD
    #   })
    #
    # @example Response structure
    #
    #   resp.channel.arn #=> String
    #   resp.channel.authorized #=> Boolean
    #   resp.channel.container_format #=> String, one of "TS", "FRAGMENTED_MP4"
    #   resp.channel.ingest_endpoint #=> String
    #   resp.channel.insecure_ingest #=> Boolean
    #   resp.channel.latency_mode #=> String, one of "NORMAL", "LOW"
    #   resp.channel.multitrack_input_configuration.enabled #=> Boolean
    #   resp.channel.multitrack_input_configuration.maximum_resolution #=> String, one of "SD", "HD", "FULL_HD"
    #   resp.channel.multitrack_input_configuration.policy #=> String, one of "ALLOW", "REQUIRE"
    #   resp.channel.name #=> String
    #   resp.channel.playback_restriction_policy_arn #=> String
    #   resp.channel.playback_url #=> String
    #   resp.channel.preset #=> String, one of "HIGHER_BANDWIDTH_DELIVERY", "CONSTRAINED_BANDWIDTH_DELIVERY"
    #   resp.channel.recording_configuration_arn #=> String
    #   resp.channel.srt.endpoint #=> String
    #   resp.channel.srt.passphrase #=> String
    #   resp.channel.tags #=> Hash
    #   resp.channel.tags["TagKey"] #=> String
    #   resp.channel.type #=> String, one of "BASIC", "STANDARD", "ADVANCED_SD", "ADVANCED_HD"
    #   resp.stream_key.arn #=> String
    #   resp.stream_key.channel_arn #=> String
    #   resp.stream_key.tags #=> Hash
    #   resp.stream_key.tags["TagKey"] #=> String
    #   resp.stream_key.value #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/CreateChannel AWS API Documentation
    #
    # @overload create_channel(params = {})
    # @param [Hash] params ({})
    def create_channel(params = {}, options = {})
      req = build_request(:create_channel, params)
      req.send_request(options)
    end

    # Creates a new playback restriction policy, for constraining playback
    # by countries and/or origins.
    #
    # @option params [Array<String>] :allowed_countries
    #   A list of country codes that control geoblocking restriction. Allowed
    #   values are the officially assigned [ISO 3166-1 alpha-2][1] codes.
    #   Default: All countries (an empty array).
    #
    #
    #
    #   [1]: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
    #
    # @option params [Array<String>] :allowed_origins
    #   A list of origin sites that control CORS restriction. Allowed values
    #   are the same as valid values of the Origin header defined at
    #   [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin][1].
    #   Default: All origins (an empty array).
    #
    #
    #
    #   [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
    #
    # @option params [Boolean] :enable_strict_origin_enforcement
    #   Whether channel playback is constrained by origin site. Default:
    #   `false`.
    #
    # @option params [String] :name
    #   Playback-restriction-policy name. The value does not need to be
    #   unique.
    #
    # @option params [Hash<String,String>] :tags
    #   Array of 1-50 maps, each of the form `string:string (key:value)`. See
    #   [Best practices and strategies][1] in *Tagging Amazon Web Services
    #   Resources and Tag Editor* for details, including restrictions that
    #   apply to tags and "Tag naming limits and requirements"; Amazon IVS
    #   has no service-specific constraints beyond what is documented there.
    #
    #
    #
    #   [1]: https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html
    #
    # @return [Types::CreatePlaybackRestrictionPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::CreatePlaybackRestrictionPolicyResponse#playback_restriction_policy #playback_restriction_policy} => Types::PlaybackRestrictionPolicy
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.create_playback_restriction_policy({
    #     allowed_countries: ["PlaybackRestrictionPolicyAllowedCountry"],
    #     allowed_origins: ["PlaybackRestrictionPolicyAllowedOrigin"],
    #     enable_strict_origin_enforcement: false,
    #     name: "PlaybackRestrictionPolicyName",
    #     tags: {
    #       "TagKey" => "TagValue",
    #     },
    #   })
    #
    # @example Response structure
    #
    #   resp.playback_restriction_policy.allowed_countries #=> Array
    #   resp.playback_restriction_policy.allowed_countries[0] #=> String
    #   resp.playback_restriction_policy.allowed_origins #=> Array
    #   resp.playback_restriction_policy.allowed_origins[0] #=> String
    #   resp.playback_restriction_policy.arn #=> String
    #   resp.playback_restriction_policy.enable_strict_origin_enforcement #=> Boolean
    #   resp.playback_restriction_policy.name #=> String
    #   resp.playback_restriction_policy.tags #=> Hash
    #   resp.playback_restriction_policy.tags["TagKey"] #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/CreatePlaybackRestrictionPolicy AWS API Documentation
    #
    # @overload create_playback_restriction_policy(params = {})
    # @param [Hash] params ({})
    def create_playback_restriction_policy(params = {}, options = {})
      req = build_request(:create_playback_restriction_policy, params)
      req.send_request(options)
    end

    # Creates a new recording configuration, used to enable recording to
    # Amazon S3.
    #
    # **Known issue:** In the us-east-1 region, if you use the Amazon Web
    # Services CLI to create a recording configuration, it returns success
    # even if the S3 bucket is in a different region. In this case, the
    # `state` of the recording configuration is `CREATE_FAILED` (instead of
    # `ACTIVE`). (In other regions, the CLI correctly returns failure if the
    # bucket is in a different region.)
    #
    # **Workaround:** Ensure that your S3 bucket is in the same region as
    # the recording configuration. If you create a recording configuration
    # in a different region as your S3 bucket, delete that recording
    # configuration and create a new one with an S3 bucket from the correct
    # region.
    #
    # @option params [required, Types::DestinationConfiguration] :destination_configuration
    #   A complex type that contains a destination configuration for where
    #   recorded video will be stored.
    #
    # @option params [String] :name
    #   Recording-configuration name. The value does not need to be unique.
    #
    # @option params [Integer] :recording_reconnect_window_seconds
    #   If a broadcast disconnects and then reconnects within the specified
    #   interval, the multiple streams will be considered a single broadcast
    #   and merged together. Default: 0.
    #
    # @option params [Types::RenditionConfiguration] :rendition_configuration
    #   Object that describes which renditions should be recorded for a
    #   stream.
    #
    # @option params [Hash<String,String>] :tags
    #   Array of 1-50 maps, each of the form `string:string (key:value)`. See
    #   [Best practices and strategies][1] in *Tagging Amazon Web Services
    #   Resources and Tag Editor* for details, including restrictions that
    #   apply to tags and "Tag naming limits and requirements"; Amazon IVS
    #   has no service-specific constraints beyond what is documented there.
    #
    #
    #
    #   [1]: https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html
    #
    # @option params [Types::ThumbnailConfiguration] :thumbnail_configuration
    #   A complex type that allows you to enable/disable the recording of
    #   thumbnails for a live session and modify the interval at which
    #   thumbnails are generated for the live session.
    #
    # @return [Types::CreateRecordingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::CreateRecordingConfigurationResponse#recording_configuration #recording_configuration} => Types::RecordingConfiguration
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.create_recording_configuration({
    #     destination_configuration: { # required
    #       s3: {
    #         bucket_name: "S3DestinationBucketName", # required
    #       },
    #     },
    #     name: "RecordingConfigurationName",
    #     recording_reconnect_window_seconds: 1,
    #     rendition_configuration: {
    #       rendition_selection: "ALL", # accepts ALL, NONE, CUSTOM
    #       renditions: ["SD"], # accepts SD, HD, FULL_HD, LOWEST_RESOLUTION
    #     },
    #     tags: {
    #       "TagKey" => "TagValue",
    #     },
    #     thumbnail_configuration: {
    #       recording_mode: "DISABLED", # accepts DISABLED, INTERVAL
    #       resolution: "SD", # accepts SD, HD, FULL_HD, LOWEST_RESOLUTION
    #       storage: ["SEQUENTIAL"], # accepts SEQUENTIAL, LATEST
    #       target_interval_seconds: 1,
    #     },
    #   })
    #
    # @example Response structure
    #
    #   resp.recording_configuration.arn #=> String
    #   resp.recording_configuration.destination_configuration.s3.bucket_name #=> String
    #   resp.recording_configuration.name #=> String
    #   resp.recording_configuration.recording_reconnect_window_seconds #=> Integer
    #   resp.recording_configuration.rendition_configuration.rendition_selection #=> String, one of "ALL", "NONE", "CUSTOM"
    #   resp.recording_configuration.rendition_configuration.renditions #=> Array
    #   resp.recording_configuration.rendition_configuration.renditions[0] #=> String, one of "SD", "HD", "FULL_HD", "LOWEST_RESOLUTION"
    #   resp.recording_configuration.state #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE"
    #   resp.recording_configuration.tags #=> Hash
    #   resp.recording_configuration.tags["TagKey"] #=> String
    #   resp.recording_configuration.thumbnail_configuration.recording_mode #=> String, one of "DISABLED", "INTERVAL"
    #   resp.recording_configuration.thumbnail_configuration.resolution #=> String, one of "SD", "HD", "FULL_HD", "LOWEST_RESOLUTION"
    #   resp.recording_configuration.thumbnail_configuration.storage #=> Array
    #   resp.recording_configuration.thumbnail_configuration.storage[0] #=> String, one of "SEQUENTIAL", "LATEST"
    #   resp.recording_configuration.thumbnail_configuration.target_interval_seconds #=> Integer
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/CreateRecordingConfiguration AWS API Documentation
    #
    # @overload create_recording_configuration(params = {})
    # @param [Hash] params ({})
    def create_recording_configuration(params = {}, options = {})
      req = build_request(:create_recording_configuration, params)
      req.send_request(options)
    end

    # Creates a stream key, used to initiate a stream, for the specified
    # channel ARN.
    #
    # Note that CreateChannel creates a stream key. If you subsequently use
    # CreateStreamKey on the same channel, it will fail because a stream key
    # already exists and there is a limit of 1 stream key per channel. To
    # reset the stream key on a channel, use DeleteStreamKey and then
    # CreateStreamKey.
    #
    # @option params [required, String] :channel_arn
    #   ARN of the channel for which to create the stream key.
    #
    # @option params [Hash<String,String>] :tags
    #   Array of 1-50 maps, each of the form `string:string (key:value)`. See
    #   [Best practices and strategies][1] in *Tagging Amazon Web Services
    #   Resources and Tag Editor* for details, including restrictions that
    #   apply to tags and "Tag naming limits and requirements"; Amazon IVS
    #   has no service-specific constraints beyond what is documented there.
    #
    #
    #
    #   [1]: https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html
    #
    # @return [Types::CreateStreamKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::CreateStreamKeyResponse#stream_key #stream_key} => Types::StreamKey
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.create_stream_key({
    #     channel_arn: "ChannelArn", # required
    #     tags: {
    #       "TagKey" => "TagValue",
    #     },
    #   })
    #
    # @example Response structure
    #
    #   resp.stream_key.arn #=> String
    #   resp.stream_key.channel_arn #=> String
    #   resp.stream_key.tags #=> Hash
    #   resp.stream_key.tags["TagKey"] #=> String
    #   resp.stream_key.value #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/CreateStreamKey AWS API Documentation
    #
    # @overload create_stream_key(params = {})
    # @param [Hash] params ({})
    def create_stream_key(params = {}, options = {})
      req = build_request(:create_stream_key, params)
      req.send_request(options)
    end

    # Deletes the specified channel and its associated stream keys.
    #
    # If you try to delete a live channel, you will get an error (409
    # ConflictException). To delete a channel that is live, call StopStream,
    # wait for the Amazon EventBridge "Stream End" event (to verify that
    # the stream's state is no longer Live), then call DeleteChannel. (See
    # [ Using EventBridge with Amazon IVS][1].)
    #
    #
    #
    # [1]: https://docs.aws.amazon.com/ivs/latest/userguide/eventbridge.html
    #
    # @option params [required, String] :arn
    #   ARN of the channel to be deleted.
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.delete_channel({
    #     arn: "ChannelArn", # required
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/DeleteChannel AWS API Documentation
    #
    # @overload delete_channel(params = {})
    # @param [Hash] params ({})
    def delete_channel(params = {}, options = {})
      req = build_request(:delete_channel, params)
      req.send_request(options)
    end

    # Deletes a specified authorization key pair. This invalidates future
    # viewer tokens generated using the key pair’s `privateKey`. For more
    # information, see [Setting Up Private Channels][1] in the *Amazon IVS
    # User Guide*.
    #
    #
    #
    # [1]: https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html
    #
    # @option params [required, String] :arn
    #   ARN of the key pair to be deleted.
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.delete_playback_key_pair({
    #     arn: "PlaybackKeyPairArn", # required
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/DeletePlaybackKeyPair AWS API Documentation
    #
    # @overload delete_playback_key_pair(params = {})
    # @param [Hash] params ({})
    def delete_playback_key_pair(params = {}, options = {})
      req = build_request(:delete_playback_key_pair, params)
      req.send_request(options)
    end

    # Deletes the specified playback restriction policy.
    #
    # @option params [required, String] :arn
    #   ARN of the playback restriction policy to be deleted.
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.delete_playback_restriction_policy({
    #     arn: "PlaybackRestrictionPolicyArn", # required
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/DeletePlaybackRestrictionPolicy AWS API Documentation
    #
    # @overload delete_playback_restriction_policy(params = {})
    # @param [Hash] params ({})
    def delete_playback_restriction_policy(params = {}, options = {})
      req = build_request(:delete_playback_restriction_policy, params)
      req.send_request(options)
    end

    # Deletes the recording configuration for the specified ARN.
    #
    # If you try to delete a recording configuration that is associated with
    # a channel, you will get an error (409 ConflictException). To avoid
    # this, for all channels that reference the recording configuration,
    # first use UpdateChannel to set the `recordingConfigurationArn` field
    # to an empty string, then use DeleteRecordingConfiguration.
    #
    # @option params [required, String] :arn
    #   ARN of the recording configuration to be deleted.
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.delete_recording_configuration({
    #     arn: "RecordingConfigurationArn", # required
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/DeleteRecordingConfiguration AWS API Documentation
    #
    # @overload delete_recording_configuration(params = {})
    # @param [Hash] params ({})
    def delete_recording_configuration(params = {}, options = {})
      req = build_request(:delete_recording_configuration, params)
      req.send_request(options)
    end

    # Deletes the stream key for the specified ARN, so it can no longer be
    # used to stream.
    #
    # @option params [required, String] :arn
    #   ARN of the stream key to be deleted.
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.delete_stream_key({
    #     arn: "StreamKeyArn", # required
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/DeleteStreamKey AWS API Documentation
    #
    # @overload delete_stream_key(params = {})
    # @param [Hash] params ({})
    def delete_stream_key(params = {}, options = {})
      req = build_request(:delete_stream_key, params)
      req.send_request(options)
    end

    # Gets the channel configuration for the specified channel ARN. See also
    # BatchGetChannel.
    #
    # @option params [required, String] :arn
    #   ARN of the channel for which the configuration is to be retrieved.
    #
    # @return [Types::GetChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::GetChannelResponse#channel #channel} => Types::Channel
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.get_channel({
    #     arn: "ChannelArn", # required
    #   })
    #
    # @example Response structure
    #
    #   resp.channel.arn #=> String
    #   resp.channel.authorized #=> Boolean
    #   resp.channel.container_format #=> String, one of "TS", "FRAGMENTED_MP4"
    #   resp.channel.ingest_endpoint #=> String
    #   resp.channel.insecure_ingest #=> Boolean
    #   resp.channel.latency_mode #=> String, one of "NORMAL", "LOW"
    #   resp.channel.multitrack_input_configuration.enabled #=> Boolean
    #   resp.channel.multitrack_input_configuration.maximum_resolution #=> String, one of "SD", "HD", "FULL_HD"
    #   resp.channel.multitrack_input_configuration.policy #=> String, one of "ALLOW", "REQUIRE"
    #   resp.channel.name #=> String
    #   resp.channel.playback_restriction_policy_arn #=> String
    #   resp.channel.playback_url #=> String
    #   resp.channel.preset #=> String, one of "HIGHER_BANDWIDTH_DELIVERY", "CONSTRAINED_BANDWIDTH_DELIVERY"
    #   resp.channel.recording_configuration_arn #=> String
    #   resp.channel.srt.endpoint #=> String
    #   resp.channel.srt.passphrase #=> String
    #   resp.channel.tags #=> Hash
    #   resp.channel.tags["TagKey"] #=> String
    #   resp.channel.type #=> String, one of "BASIC", "STANDARD", "ADVANCED_SD", "ADVANCED_HD"
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/GetChannel AWS API Documentation
    #
    # @overload get_channel(params = {})
    # @param [Hash] params ({})
    def get_channel(params = {}, options = {})
      req = build_request(:get_channel, params)
      req.send_request(options)
    end

    # Gets a specified playback authorization key pair and returns the `arn`
    # and `fingerprint`. The `privateKey` held by the caller can be used to
    # generate viewer authorization tokens, to grant viewers access to
    # private channels. For more information, see [Setting Up Private
    # Channels][1] in the *Amazon IVS User Guide*.
    #
    #
    #
    # [1]: https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html
    #
    # @option params [required, String] :arn
    #   ARN of the key pair to be returned.
    #
    # @return [Types::GetPlaybackKeyPairResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::GetPlaybackKeyPairResponse#key_pair #key_pair} => Types::PlaybackKeyPair
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.get_playback_key_pair({
    #     arn: "PlaybackKeyPairArn", # required
    #   })
    #
    # @example Response structure
    #
    #   resp.key_pair.arn #=> String
    #   resp.key_pair.fingerprint #=> String
    #   resp.key_pair.name #=> String
    #   resp.key_pair.tags #=> Hash
    #   resp.key_pair.tags["TagKey"] #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/GetPlaybackKeyPair AWS API Documentation
    #
    # @overload get_playback_key_pair(params = {})
    # @param [Hash] params ({})
    def get_playback_key_pair(params = {}, options = {})
      req = build_request(:get_playback_key_pair, params)
      req.send_request(options)
    end

    # Gets the specified playback restriction policy.
    #
    # @option params [required, String] :arn
    #   ARN of the playback restriction policy to be returned.
    #
    # @return [Types::GetPlaybackRestrictionPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::GetPlaybackRestrictionPolicyResponse#playback_restriction_policy #playback_restriction_policy} => Types::PlaybackRestrictionPolicy
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.get_playback_restriction_policy({
    #     arn: "PlaybackRestrictionPolicyArn", # required
    #   })
    #
    # @example Response structure
    #
    #   resp.playback_restriction_policy.allowed_countries #=> Array
    #   resp.playback_restriction_policy.allowed_countries[0] #=> String
    #   resp.playback_restriction_policy.allowed_origins #=> Array
    #   resp.playback_restriction_policy.allowed_origins[0] #=> String
    #   resp.playback_restriction_policy.arn #=> String
    #   resp.playback_restriction_policy.enable_strict_origin_enforcement #=> Boolean
    #   resp.playback_restriction_policy.name #=> String
    #   resp.playback_restriction_policy.tags #=> Hash
    #   resp.playback_restriction_policy.tags["TagKey"] #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/GetPlaybackRestrictionPolicy AWS API Documentation
    #
    # @overload get_playback_restriction_policy(params = {})
    # @param [Hash] params ({})
    def get_playback_restriction_policy(params = {}, options = {})
      req = build_request(:get_playback_restriction_policy, params)
      req.send_request(options)
    end

    # Gets the recording configuration for the specified ARN.
    #
    # @option params [required, String] :arn
    #   ARN of the recording configuration to be retrieved.
    #
    # @return [Types::GetRecordingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::GetRecordingConfigurationResponse#recording_configuration #recording_configuration} => Types::RecordingConfiguration
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.get_recording_configuration({
    #     arn: "RecordingConfigurationArn", # required
    #   })
    #
    # @example Response structure
    #
    #   resp.recording_configuration.arn #=> String
    #   resp.recording_configuration.destination_configuration.s3.bucket_name #=> String
    #   resp.recording_configuration.name #=> String
    #   resp.recording_configuration.recording_reconnect_window_seconds #=> Integer
    #   resp.recording_configuration.rendition_configuration.rendition_selection #=> String, one of "ALL", "NONE", "CUSTOM"
    #   resp.recording_configuration.rendition_configuration.renditions #=> Array
    #   resp.recording_configuration.rendition_configuration.renditions[0] #=> String, one of "SD", "HD", "FULL_HD", "LOWEST_RESOLUTION"
    #   resp.recording_configuration.state #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE"
    #   resp.recording_configuration.tags #=> Hash
    #   resp.recording_configuration.tags["TagKey"] #=> String
    #   resp.recording_configuration.thumbnail_configuration.recording_mode #=> String, one of "DISABLED", "INTERVAL"
    #   resp.recording_configuration.thumbnail_configuration.resolution #=> String, one of "SD", "HD", "FULL_HD", "LOWEST_RESOLUTION"
    #   resp.recording_configuration.thumbnail_configuration.storage #=> Array
    #   resp.recording_configuration.thumbnail_configuration.storage[0] #=> String, one of "SEQUENTIAL", "LATEST"
    #   resp.recording_configuration.thumbnail_configuration.target_interval_seconds #=> Integer
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/GetRecordingConfiguration AWS API Documentation
    #
    # @overload get_recording_configuration(params = {})
    # @param [Hash] params ({})
    def get_recording_configuration(params = {}, options = {})
      req = build_request(:get_recording_configuration, params)
      req.send_request(options)
    end

    # Gets information about the active (live) stream on a specified
    # channel.
    #
    # @option params [required, String] :channel_arn
    #   Channel ARN for stream to be accessed.
    #
    # @return [Types::GetStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::GetStreamResponse#stream #stream} => Types::Stream
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.get_stream({
    #     channel_arn: "ChannelArn", # required
    #   })
    #
    # @example Response structure
    #
    #   resp.stream.channel_arn #=> String
    #   resp.stream.health #=> String, one of "HEALTHY", "STARVING", "UNKNOWN"
    #   resp.stream.playback_url #=> String
    #   resp.stream.start_time #=> Time
    #   resp.stream.state #=> String, one of "LIVE", "OFFLINE"
    #   resp.stream.stream_id #=> String
    #   resp.stream.viewer_count #=> Integer
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/GetStream AWS API Documentation
    #
    # @overload get_stream(params = {})
    # @param [Hash] params ({})
    def get_stream(params = {}, options = {})
      req = build_request(:get_stream, params)
      req.send_request(options)
    end

    # Gets stream-key information for a specified ARN.
    #
    # @option params [required, String] :arn
    #   ARN for the stream key to be retrieved.
    #
    # @return [Types::GetStreamKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::GetStreamKeyResponse#stream_key #stream_key} => Types::StreamKey
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.get_stream_key({
    #     arn: "StreamKeyArn", # required
    #   })
    #
    # @example Response structure
    #
    #   resp.stream_key.arn #=> String
    #   resp.stream_key.channel_arn #=> String
    #   resp.stream_key.tags #=> Hash
    #   resp.stream_key.tags["TagKey"] #=> String
    #   resp.stream_key.value #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/GetStreamKey AWS API Documentation
    #
    # @overload get_stream_key(params = {})
    # @param [Hash] params ({})
    def get_stream_key(params = {}, options = {})
      req = build_request(:get_stream_key, params)
      req.send_request(options)
    end

    # Gets metadata on a specified stream.
    #
    # @option params [required, String] :channel_arn
    #   ARN of the channel resource
    #
    # @option params [String] :stream_id
    #   Unique identifier for a live or previously live stream in the
    #   specified channel. If no `streamId` is provided, this returns the most
    #   recent stream session for the channel, if it exists.
    #
    # @return [Types::GetStreamSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::GetStreamSessionResponse#stream_session #stream_session} => Types::StreamSession
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.get_stream_session({
    #     channel_arn: "ChannelArn", # required
    #     stream_id: "StreamId",
    #   })
    #
    # @example Response structure
    #
    #   resp.stream_session.channel.arn #=> String
    #   resp.stream_session.channel.authorized #=> Boolean
    #   resp.stream_session.channel.container_format #=> String, one of "TS", "FRAGMENTED_MP4"
    #   resp.stream_session.channel.ingest_endpoint #=> String
    #   resp.stream_session.channel.insecure_ingest #=> Boolean
    #   resp.stream_session.channel.latency_mode #=> String, one of "NORMAL", "LOW"
    #   resp.stream_session.channel.multitrack_input_configuration.enabled #=> Boolean
    #   resp.stream_session.channel.multitrack_input_configuration.maximum_resolution #=> String, one of "SD", "HD", "FULL_HD"
    #   resp.stream_session.channel.multitrack_input_configuration.policy #=> String, one of "ALLOW", "REQUIRE"
    #   resp.stream_session.channel.name #=> String
    #   resp.stream_session.channel.playback_restriction_policy_arn #=> String
    #   resp.stream_session.channel.playback_url #=> String
    #   resp.stream_session.channel.preset #=> String, one of "HIGHER_BANDWIDTH_DELIVERY", "CONSTRAINED_BANDWIDTH_DELIVERY"
    #   resp.stream_session.channel.recording_configuration_arn #=> String
    #   resp.stream_session.channel.srt.endpoint #=> String
    #   resp.stream_session.channel.srt.passphrase #=> String
    #   resp.stream_session.channel.tags #=> Hash
    #   resp.stream_session.channel.tags["TagKey"] #=> String
    #   resp.stream_session.channel.type #=> String, one of "BASIC", "STANDARD", "ADVANCED_SD", "ADVANCED_HD"
    #   resp.stream_session.end_time #=> Time
    #   resp.stream_session.ingest_configuration.audio.channels #=> Integer
    #   resp.stream_session.ingest_configuration.audio.codec #=> String
    #   resp.stream_session.ingest_configuration.audio.sample_rate #=> Integer
    #   resp.stream_session.ingest_configuration.audio.target_bitrate #=> Integer
    #   resp.stream_session.ingest_configuration.audio.track #=> String
    #   resp.stream_session.ingest_configuration.video.avc_level #=> String
    #   resp.stream_session.ingest_configuration.video.avc_profile #=> String
    #   resp.stream_session.ingest_configuration.video.codec #=> String
    #   resp.stream_session.ingest_configuration.video.encoder #=> String
    #   resp.stream_session.ingest_configuration.video.level #=> String
    #   resp.stream_session.ingest_configuration.video.profile #=> String
    #   resp.stream_session.ingest_configuration.video.target_bitrate #=> Integer
    #   resp.stream_session.ingest_configuration.video.target_framerate #=> Integer
    #   resp.stream_session.ingest_configuration.video.track #=> String
    #   resp.stream_session.ingest_configuration.video.video_height #=> Integer
    #   resp.stream_session.ingest_configuration.video.video_width #=> Integer
    #   resp.stream_session.ingest_configurations.audio_configurations #=> Array
    #   resp.stream_session.ingest_configurations.audio_configurations[0].channels #=> Integer
    #   resp.stream_session.ingest_configurations.audio_configurations[0].codec #=> String
    #   resp.stream_session.ingest_configurations.audio_configurations[0].sample_rate #=> Integer
    #   resp.stream_session.ingest_configurations.audio_configurations[0].target_bitrate #=> Integer
    #   resp.stream_session.ingest_configurations.audio_configurations[0].track #=> String
    #   resp.stream_session.ingest_configurations.video_configurations #=> Array
    #   resp.stream_session.ingest_configurations.video_configurations[0].avc_level #=> String
    #   resp.stream_session.ingest_configurations.video_configurations[0].avc_profile #=> String
    #   resp.stream_session.ingest_configurations.video_configurations[0].codec #=> String
    #   resp.stream_session.ingest_configurations.video_configurations[0].encoder #=> String
    #   resp.stream_session.ingest_configurations.video_configurations[0].level #=> String
    #   resp.stream_session.ingest_configurations.video_configurations[0].profile #=> String
    #   resp.stream_session.ingest_configurations.video_configurations[0].target_bitrate #=> Integer
    #   resp.stream_session.ingest_configurations.video_configurations[0].target_framerate #=> Integer
    #   resp.stream_session.ingest_configurations.video_configurations[0].track #=> String
    #   resp.stream_session.ingest_configurations.video_configurations[0].video_height #=> Integer
    #   resp.stream_session.ingest_configurations.video_configurations[0].video_width #=> Integer
    #   resp.stream_session.recording_configuration.arn #=> String
    #   resp.stream_session.recording_configuration.destination_configuration.s3.bucket_name #=> String
    #   resp.stream_session.recording_configuration.name #=> String
    #   resp.stream_session.recording_configuration.recording_reconnect_window_seconds #=> Integer
    #   resp.stream_session.recording_configuration.rendition_configuration.rendition_selection #=> String, one of "ALL", "NONE", "CUSTOM"
    #   resp.stream_session.recording_configuration.rendition_configuration.renditions #=> Array
    #   resp.stream_session.recording_configuration.rendition_configuration.renditions[0] #=> String, one of "SD", "HD", "FULL_HD", "LOWEST_RESOLUTION"
    #   resp.stream_session.recording_configuration.state #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE"
    #   resp.stream_session.recording_configuration.tags #=> Hash
    #   resp.stream_session.recording_configuration.tags["TagKey"] #=> String
    #   resp.stream_session.recording_configuration.thumbnail_configuration.recording_mode #=> String, one of "DISABLED", "INTERVAL"
    #   resp.stream_session.recording_configuration.thumbnail_configuration.resolution #=> String, one of "SD", "HD", "FULL_HD", "LOWEST_RESOLUTION"
    #   resp.stream_session.recording_configuration.thumbnail_configuration.storage #=> Array
    #   resp.stream_session.recording_configuration.thumbnail_configuration.storage[0] #=> String, one of "SEQUENTIAL", "LATEST"
    #   resp.stream_session.recording_configuration.thumbnail_configuration.target_interval_seconds #=> Integer
    #   resp.stream_session.start_time #=> Time
    #   resp.stream_session.stream_id #=> String
    #   resp.stream_session.truncated_events #=> Array
    #   resp.stream_session.truncated_events[0].code #=> String
    #   resp.stream_session.truncated_events[0].event_time #=> Time
    #   resp.stream_session.truncated_events[0].name #=> String
    #   resp.stream_session.truncated_events[0].type #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/GetStreamSession AWS API Documentation
    #
    # @overload get_stream_session(params = {})
    # @param [Hash] params ({})
    def get_stream_session(params = {}, options = {})
      req = build_request(:get_stream_session, params)
      req.send_request(options)
    end

    # Imports the public portion of a new key pair and returns its `arn` and
    # `fingerprint`. The `privateKey` can then be used to generate viewer
    # authorization tokens, to grant viewers access to private channels. For
    # more information, see [Setting Up Private Channels][1] in the *Amazon
    # IVS User Guide*.
    #
    #
    #
    # [1]: https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html
    #
    # @option params [String] :name
    #   Playback-key-pair name. The value does not need to be unique.
    #
    # @option params [required, String] :public_key_material
    #   The public portion of a customer-generated key pair.
    #
    # @option params [Hash<String,String>] :tags
    #   Any tags provided with the request are added to the playback key pair
    #   tags. See [Best practices and strategies][1] in *Tagging Amazon Web
    #   Services Resources and Tag Editor* for details, including restrictions
    #   that apply to tags and "Tag naming limits and requirements"; Amazon
    #   IVS has no service-specific constraints beyond what is documented
    #   there.
    #
    #
    #
    #   [1]: https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html
    #
    # @return [Types::ImportPlaybackKeyPairResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::ImportPlaybackKeyPairResponse#key_pair #key_pair} => Types::PlaybackKeyPair
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.import_playback_key_pair({
    #     name: "PlaybackKeyPairName",
    #     public_key_material: "PlaybackPublicKeyMaterial", # required
    #     tags: {
    #       "TagKey" => "TagValue",
    #     },
    #   })
    #
    # @example Response structure
    #
    #   resp.key_pair.arn #=> String
    #   resp.key_pair.fingerprint #=> String
    #   resp.key_pair.name #=> String
    #   resp.key_pair.tags #=> Hash
    #   resp.key_pair.tags["TagKey"] #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/ImportPlaybackKeyPair AWS API Documentation
    #
    # @overload import_playback_key_pair(params = {})
    # @param [Hash] params ({})
    def import_playback_key_pair(params = {}, options = {})
      req = build_request(:import_playback_key_pair, params)
      req.send_request(options)
    end

    # Gets summary information about all channels in your account, in the
    # Amazon Web Services region where the API request is processed. This
    # list can be filtered to match a specified name or
    # recording-configuration ARN. Filters are mutually exclusive and cannot
    # be used together. If you try to use both filters, you will get an
    # error (409 ConflictException).
    #
    # @option params [String] :filter_by_name
    #   Filters the channel list to match the specified name.
    #
    # @option params [String] :filter_by_playback_restriction_policy_arn
    #   Filters the channel list to match the specified policy.
    #
    # @option params [String] :filter_by_recording_configuration_arn
    #   Filters the channel list to match the specified
    #   recording-configuration ARN.
    #
    # @option params [Integer] :max_results
    #   Maximum number of channels to return. Default: 100.
    #
    # @option params [String] :next_token
    #   The first channel to retrieve. This is used for pagination; see the
    #   `nextToken` response field.
    #
    # @return [Types::ListChannelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::ListChannelsResponse#channels #channels} => Array&lt;Types::ChannelSummary&gt;
    #   * {Types::ListChannelsResponse#next_token #next_token} => String
    #
    # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.list_channels({
    #     filter_by_name: "ChannelName",
    #     filter_by_playback_restriction_policy_arn: "ChannelPlaybackRestrictionPolicyArn",
    #     filter_by_recording_configuration_arn: "ChannelRecordingConfigurationArn",
    #     max_results: 1,
    #     next_token: "PaginationToken",
    #   })
    #
    # @example Response structure
    #
    #   resp.channels #=> Array
    #   resp.channels[0].arn #=> String
    #   resp.channels[0].authorized #=> Boolean
    #   resp.channels[0].insecure_ingest #=> Boolean
    #   resp.channels[0].latency_mode #=> String, one of "NORMAL", "LOW"
    #   resp.channels[0].name #=> String
    #   resp.channels[0].playback_restriction_policy_arn #=> String
    #   resp.channels[0].preset #=> String, one of "HIGHER_BANDWIDTH_DELIVERY", "CONSTRAINED_BANDWIDTH_DELIVERY"
    #   resp.channels[0].recording_configuration_arn #=> String
    #   resp.channels[0].tags #=> Hash
    #   resp.channels[0].tags["TagKey"] #=> String
    #   resp.channels[0].type #=> String, one of "BASIC", "STANDARD", "ADVANCED_SD", "ADVANCED_HD"
    #   resp.next_token #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/ListChannels AWS API Documentation
    #
    # @overload list_channels(params = {})
    # @param [Hash] params ({})
    def list_channels(params = {}, options = {})
      req = build_request(:list_channels, params)
      req.send_request(options)
    end

    # Gets summary information about playback key pairs. For more
    # information, see [Setting Up Private Channels][1] in the *Amazon IVS
    # User Guide*.
    #
    #
    #
    # [1]: https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html
    #
    # @option params [Integer] :max_results
    #   Maximum number of key pairs to return. Default: your service quota or
    #   100, whichever is smaller.
    #
    # @option params [String] :next_token
    #   The first key pair to retrieve. This is used for pagination; see the
    #   `nextToken` response field.
    #
    # @return [Types::ListPlaybackKeyPairsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::ListPlaybackKeyPairsResponse#key_pairs #key_pairs} => Array&lt;Types::PlaybackKeyPairSummary&gt;
    #   * {Types::ListPlaybackKeyPairsResponse#next_token #next_token} => String
    #
    # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.list_playback_key_pairs({
    #     max_results: 1,
    #     next_token: "PaginationToken",
    #   })
    #
    # @example Response structure
    #
    #   resp.key_pairs #=> Array
    #   resp.key_pairs[0].arn #=> String
    #   resp.key_pairs[0].name #=> String
    #   resp.key_pairs[0].tags #=> Hash
    #   resp.key_pairs[0].tags["TagKey"] #=> String
    #   resp.next_token #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/ListPlaybackKeyPairs AWS API Documentation
    #
    # @overload list_playback_key_pairs(params = {})
    # @param [Hash] params ({})
    def list_playback_key_pairs(params = {}, options = {})
      req = build_request(:list_playback_key_pairs, params)
      req.send_request(options)
    end

    # Gets summary information about playback restriction policies.
    #
    # @option params [Integer] :max_results
    #   Maximum number of policies to return. Default: 1.
    #
    # @option params [String] :next_token
    #   The first policy to retrieve. This is used for pagination; see the
    #   `nextToken` response field.
    #
    # @return [Types::ListPlaybackRestrictionPoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::ListPlaybackRestrictionPoliciesResponse#next_token #next_token} => String
    #   * {Types::ListPlaybackRestrictionPoliciesResponse#playback_restriction_policies #playback_restriction_policies} => Array&lt;Types::PlaybackRestrictionPolicySummary&gt;
    #
    # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.list_playback_restriction_policies({
    #     max_results: 1,
    #     next_token: "PaginationToken",
    #   })
    #
    # @example Response structure
    #
    #   resp.next_token #=> String
    #   resp.playback_restriction_policies #=> Array
    #   resp.playback_restriction_policies[0].allowed_countries #=> Array
    #   resp.playback_restriction_policies[0].allowed_countries[0] #=> String
    #   resp.playback_restriction_policies[0].allowed_origins #=> Array
    #   resp.playback_restriction_policies[0].allowed_origins[0] #=> String
    #   resp.playback_restriction_policies[0].arn #=> String
    #   resp.playback_restriction_policies[0].enable_strict_origin_enforcement #=> Boolean
    #   resp.playback_restriction_policies[0].name #=> String
    #   resp.playback_restriction_policies[0].tags #=> Hash
    #   resp.playback_restriction_policies[0].tags["TagKey"] #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/ListPlaybackRestrictionPolicies AWS API Documentation
    #
    # @overload list_playback_restriction_policies(params = {})
    # @param [Hash] params ({})
    def list_playback_restriction_policies(params = {}, options = {})
      req = build_request(:list_playback_restriction_policies, params)
      req.send_request(options)
    end

    # Gets summary information about all recording configurations in your
    # account, in the Amazon Web Services region where the API request is
    # processed.
    #
    # @option params [Integer] :max_results
    #   Maximum number of recording configurations to return. Default: your
    #   service quota or 100, whichever is smaller.
    #
    # @option params [String] :next_token
    #   The first recording configuration to retrieve. This is used for
    #   pagination; see the `nextToken` response field.
    #
    # @return [Types::ListRecordingConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::ListRecordingConfigurationsResponse#next_token #next_token} => String
    #   * {Types::ListRecordingConfigurationsResponse#recording_configurations #recording_configurations} => Array&lt;Types::RecordingConfigurationSummary&gt;
    #
    # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.list_recording_configurations({
    #     max_results: 1,
    #     next_token: "PaginationToken",
    #   })
    #
    # @example Response structure
    #
    #   resp.next_token #=> String
    #   resp.recording_configurations #=> Array
    #   resp.recording_configurations[0].arn #=> String
    #   resp.recording_configurations[0].destination_configuration.s3.bucket_name #=> String
    #   resp.recording_configurations[0].name #=> String
    #   resp.recording_configurations[0].state #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE"
    #   resp.recording_configurations[0].tags #=> Hash
    #   resp.recording_configurations[0].tags["TagKey"] #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/ListRecordingConfigurations AWS API Documentation
    #
    # @overload list_recording_configurations(params = {})
    # @param [Hash] params ({})
    def list_recording_configurations(params = {}, options = {})
      req = build_request(:list_recording_configurations, params)
      req.send_request(options)
    end

    # Gets summary information about stream keys for the specified channel.
    #
    # @option params [required, String] :channel_arn
    #   Channel ARN used to filter the list.
    #
    # @option params [Integer] :max_results
    #   Maximum number of streamKeys to return. Default: 1.
    #
    # @option params [String] :next_token
    #   The first stream key to retrieve. This is used for pagination; see the
    #   `nextToken` response field.
    #
    # @return [Types::ListStreamKeysResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::ListStreamKeysResponse#next_token #next_token} => String
    #   * {Types::ListStreamKeysResponse#stream_keys #stream_keys} => Array&lt;Types::StreamKeySummary&gt;
    #
    # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.list_stream_keys({
    #     channel_arn: "ChannelArn", # required
    #     max_results: 1,
    #     next_token: "PaginationToken",
    #   })
    #
    # @example Response structure
    #
    #   resp.next_token #=> String
    #   resp.stream_keys #=> Array
    #   resp.stream_keys[0].arn #=> String
    #   resp.stream_keys[0].channel_arn #=> String
    #   resp.stream_keys[0].tags #=> Hash
    #   resp.stream_keys[0].tags["TagKey"] #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/ListStreamKeys AWS API Documentation
    #
    # @overload list_stream_keys(params = {})
    # @param [Hash] params ({})
    def list_stream_keys(params = {}, options = {})
      req = build_request(:list_stream_keys, params)
      req.send_request(options)
    end

    # Gets a summary of current and previous streams for a specified channel
    # in your account, in the AWS region where the API request is processed.
    #
    # @option params [required, String] :channel_arn
    #   Channel ARN used to filter the list.
    #
    # @option params [Integer] :max_results
    #   Maximum number of streams to return. Default: 100.
    #
    # @option params [String] :next_token
    #   The first stream to retrieve. This is used for pagination; see the
    #   `nextToken` response field.
    #
    # @return [Types::ListStreamSessionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::ListStreamSessionsResponse#next_token #next_token} => String
    #   * {Types::ListStreamSessionsResponse#stream_sessions #stream_sessions} => Array&lt;Types::StreamSessionSummary&gt;
    #
    # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.list_stream_sessions({
    #     channel_arn: "ChannelArn", # required
    #     max_results: 1,
    #     next_token: "PaginationToken",
    #   })
    #
    # @example Response structure
    #
    #   resp.next_token #=> String
    #   resp.stream_sessions #=> Array
    #   resp.stream_sessions[0].end_time #=> Time
    #   resp.stream_sessions[0].has_error_event #=> Boolean
    #   resp.stream_sessions[0].start_time #=> Time
    #   resp.stream_sessions[0].stream_id #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/ListStreamSessions AWS API Documentation
    #
    # @overload list_stream_sessions(params = {})
    # @param [Hash] params ({})
    def list_stream_sessions(params = {}, options = {})
      req = build_request(:list_stream_sessions, params)
      req.send_request(options)
    end

    # Gets summary information about live streams in your account, in the
    # Amazon Web Services region where the API request is processed.
    #
    # @option params [Types::StreamFilters] :filter_by
    #   Filters the stream list to match the specified criterion.
    #
    # @option params [Integer] :max_results
    #   Maximum number of streams to return. Default: 100.
    #
    # @option params [String] :next_token
    #   The first stream to retrieve. This is used for pagination; see the
    #   `nextToken` response field.
    #
    # @return [Types::ListStreamsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::ListStreamsResponse#next_token #next_token} => String
    #   * {Types::ListStreamsResponse#streams #streams} => Array&lt;Types::StreamSummary&gt;
    #
    # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.list_streams({
    #     filter_by: {
    #       health: "HEALTHY", # accepts HEALTHY, STARVING, UNKNOWN
    #     },
    #     max_results: 1,
    #     next_token: "PaginationToken",
    #   })
    #
    # @example Response structure
    #
    #   resp.next_token #=> String
    #   resp.streams #=> Array
    #   resp.streams[0].channel_arn #=> String
    #   resp.streams[0].health #=> String, one of "HEALTHY", "STARVING", "UNKNOWN"
    #   resp.streams[0].start_time #=> Time
    #   resp.streams[0].state #=> String, one of "LIVE", "OFFLINE"
    #   resp.streams[0].stream_id #=> String
    #   resp.streams[0].viewer_count #=> Integer
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/ListStreams AWS API Documentation
    #
    # @overload list_streams(params = {})
    # @param [Hash] params ({})
    def list_streams(params = {}, options = {})
      req = build_request(:list_streams, params)
      req.send_request(options)
    end

    # Gets information about Amazon Web Services tags for the specified ARN.
    #
    # @option params [required, String] :resource_arn
    #   The ARN of the resource to be retrieved. The ARN must be URL-encoded.
    #
    # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.list_tags_for_resource({
    #     resource_arn: "ResourceArn", # required
    #   })
    #
    # @example Response structure
    #
    #   resp.tags #=> Hash
    #   resp.tags["TagKey"] #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/ListTagsForResource AWS API Documentation
    #
    # @overload list_tags_for_resource(params = {})
    # @param [Hash] params ({})
    def list_tags_for_resource(params = {}, options = {})
      req = build_request(:list_tags_for_resource, params)
      req.send_request(options)
    end

    # Inserts metadata into the active stream of the specified channel. At
    # most 5 requests per second per channel are allowed, each with a
    # maximum 1 KB payload. (If 5 TPS is not sufficient for your needs, we
    # recommend batching your data into a single PutMetadata call.) At most
    # 155 requests per second per account are allowed. Also see [Embedding
    # Metadata within a Video Stream][1] in the *Amazon IVS User Guide*.
    #
    #
    #
    # [1]: https://docs.aws.amazon.com/ivs/latest/userguide/metadata.html
    #
    # @option params [required, String] :channel_arn
    #   ARN of the channel into which metadata is inserted. This channel must
    #   have an active stream.
    #
    # @option params [required, String] :metadata
    #   Metadata to insert into the stream. Maximum: 1 KB per request.
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.put_metadata({
    #     channel_arn: "ChannelArn", # required
    #     metadata: "StreamMetadata", # required
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/PutMetadata AWS API Documentation
    #
    # @overload put_metadata(params = {})
    # @param [Hash] params ({})
    def put_metadata(params = {}, options = {})
      req = build_request(:put_metadata, params)
      req.send_request(options)
    end

    # Starts the process of revoking the viewer session associated with a
    # specified channel ARN and viewer ID. Optionally, you can provide a
    # version to revoke viewer sessions less than and including that
    # version. For instructions on associating a viewer ID with a viewer
    # session, see [Setting Up Private Channels][1].
    #
    #
    #
    # [1]: https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html
    #
    # @option params [required, String] :channel_arn
    #   The ARN of the channel associated with the viewer session to revoke.
    #
    # @option params [required, String] :viewer_id
    #   The ID of the viewer associated with the viewer session to revoke. Do
    #   not use this field for personally identifying, confidential, or
    #   sensitive information.
    #
    # @option params [Integer] :viewer_session_versions_less_than_or_equal_to
    #   An optional filter on which versions of the viewer session to revoke.
    #   All versions less than or equal to the specified version will be
    #   revoked. Default: 0.
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.start_viewer_session_revocation({
    #     channel_arn: "ChannelArn", # required
    #     viewer_id: "ViewerId", # required
    #     viewer_session_versions_less_than_or_equal_to: 1,
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/StartViewerSessionRevocation AWS API Documentation
    #
    # @overload start_viewer_session_revocation(params = {})
    # @param [Hash] params ({})
    def start_viewer_session_revocation(params = {}, options = {})
      req = build_request(:start_viewer_session_revocation, params)
      req.send_request(options)
    end

    # Disconnects the incoming RTMPS stream for the specified channel. Can
    # be used in conjunction with DeleteStreamKey to prevent further
    # streaming to a channel.
    #
    # <note markdown="1"> Many streaming client-software libraries automatically reconnect a
    # dropped RTMPS session, so to stop the stream permanently, you may want
    # to first revoke the `streamKey` attached to the channel.
    #
    #  </note>
    #
    # @option params [required, String] :channel_arn
    #   ARN of the channel for which the stream is to be stopped.
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.stop_stream({
    #     channel_arn: "ChannelArn", # required
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/StopStream AWS API Documentation
    #
    # @overload stop_stream(params = {})
    # @param [Hash] params ({})
    def stop_stream(params = {}, options = {})
      req = build_request(:stop_stream, params)
      req.send_request(options)
    end

    # Adds or updates tags for the Amazon Web Services resource with the
    # specified ARN.
    #
    # @option params [required, String] :resource_arn
    #   ARN of the resource for which tags are to be added or updated. The ARN
    #   must be URL-encoded.
    #
    # @option params [required, Hash<String,String>] :tags
    #   Array of tags to be added or updated. Array of maps, each of the form
    #   `string:string (key:value)`. See [Best practices and strategies][1] in
    #   *Tagging Amazon Web Services Resources and Tag Editor* for details,
    #   including restrictions that apply to tags and "Tag naming limits and
    #   requirements"; Amazon IVS has no service-specific constraints beyond
    #   what is documented there.
    #
    #
    #
    #   [1]: https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.tag_resource({
    #     resource_arn: "ResourceArn", # required
    #     tags: { # required
    #       "TagKey" => "TagValue",
    #     },
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/TagResource AWS API Documentation
    #
    # @overload tag_resource(params = {})
    # @param [Hash] params ({})
    def tag_resource(params = {}, options = {})
      req = build_request(:tag_resource, params)
      req.send_request(options)
    end

    # Removes tags from the resource with the specified ARN.
    #
    # @option params [required, String] :resource_arn
    #   ARN of the resource for which tags are to be removed. The ARN must be
    #   URL-encoded.
    #
    # @option params [required, Array<String>] :tag_keys
    #   Array of tags to be removed. Array of maps, each of the form
    #   `string:string (key:value)`. See [Best practices and strategies][1] in
    #   *Tagging Amazon Web Services Resources and Tag Editor* for details,
    #   including restrictions that apply to tags and "Tag naming limits and
    #   requirements"; Amazon IVS has no service-specific constraints beyond
    #   what is documented there.
    #
    #
    #
    #   [1]: https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html
    #
    # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.untag_resource({
    #     resource_arn: "ResourceArn", # required
    #     tag_keys: ["TagKey"], # required
    #   })
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/UntagResource AWS API Documentation
    #
    # @overload untag_resource(params = {})
    # @param [Hash] params ({})
    def untag_resource(params = {}, options = {})
      req = build_request(:untag_resource, params)
      req.send_request(options)
    end

    # Updates a channel's configuration. Live channels cannot be updated.
    # You must stop the ongoing stream, update the channel, and restart the
    # stream for the changes to take effect.
    #
    # @option params [required, String] :arn
    #   ARN of the channel to be updated.
    #
    # @option params [Boolean] :authorized
    #   Whether the channel is private (enabled for playback authorization).
    #
    # @option params [String] :container_format
    #   Indicates which content-packaging format is used (MPEG-TS or fMP4). If
    #   `multitrackInputConfiguration` is specified and `enabled` is `true`,
    #   then `containerFormat` is required and must be set to
    #   `FRAGMENTED_MP4`. Otherwise, `containerFormat` may be set to `TS` or
    #   `FRAGMENTED_MP4`. Default: `TS`.
    #
    # @option params [Boolean] :insecure_ingest
    #   Whether the channel allows insecure RTMP and SRT ingest. Default:
    #   `false`.
    #
    # @option params [String] :latency_mode
    #   Channel latency mode. Use `NORMAL` to broadcast and deliver live video
    #   up to Full HD. Use `LOW` for near-real-time interaction with viewers.
    #
    # @option params [Types::MultitrackInputConfiguration] :multitrack_input_configuration
    #   Object specifying multitrack input configuration. Default: no
    #   multitrack input configuration is specified.
    #
    # @option params [String] :name
    #   Channel name.
    #
    # @option params [String] :playback_restriction_policy_arn
    #   Playback-restriction-policy ARN. A valid ARN value here both specifies
    #   the ARN and enables playback restriction. If this is set to an empty
    #   string, playback restriction policy is disabled.
    #
    # @option params [String] :preset
    #   Optional transcode preset for the channel. This is selectable only for
    #   `ADVANCED_HD` and `ADVANCED_SD` channel types. For those channel
    #   types, the default `preset` is `HIGHER_BANDWIDTH_DELIVERY`. For other
    #   channel types (`BASIC` and `STANDARD`), `preset` is the empty string
    #   (`""`).
    #
    # @option params [String] :recording_configuration_arn
    #   Recording-configuration ARN. A valid ARN value here both specifies the
    #   ARN and enables recording. If this is set to an empty string,
    #   recording is disabled.
    #
    # @option params [String] :type
    #   Channel type, which determines the allowable resolution and bitrate.
    #   *If you exceed the allowable input resolution or bitrate, the stream
    #   probably will disconnect immediately.* Default: `STANDARD`. For
    #   details, see [Channel Types][1].
    #
    #
    #
    #   [1]: https://docs.aws.amazon.com/ivs/latest/LowLatencyAPIReference/channel-types.html
    #
    # @return [Types::UpdateChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::UpdateChannelResponse#channel #channel} => Types::Channel
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.update_channel({
    #     arn: "ChannelArn", # required
    #     authorized: false,
    #     container_format: "TS", # accepts TS, FRAGMENTED_MP4
    #     insecure_ingest: false,
    #     latency_mode: "NORMAL", # accepts NORMAL, LOW
    #     multitrack_input_configuration: {
    #       enabled: false,
    #       maximum_resolution: "SD", # accepts SD, HD, FULL_HD
    #       policy: "ALLOW", # accepts ALLOW, REQUIRE
    #     },
    #     name: "ChannelName",
    #     playback_restriction_policy_arn: "ChannelPlaybackRestrictionPolicyArn",
    #     preset: "HIGHER_BANDWIDTH_DELIVERY", # accepts HIGHER_BANDWIDTH_DELIVERY, CONSTRAINED_BANDWIDTH_DELIVERY
    #     recording_configuration_arn: "ChannelRecordingConfigurationArn",
    #     type: "BASIC", # accepts BASIC, STANDARD, ADVANCED_SD, ADVANCED_HD
    #   })
    #
    # @example Response structure
    #
    #   resp.channel.arn #=> String
    #   resp.channel.authorized #=> Boolean
    #   resp.channel.container_format #=> String, one of "TS", "FRAGMENTED_MP4"
    #   resp.channel.ingest_endpoint #=> String
    #   resp.channel.insecure_ingest #=> Boolean
    #   resp.channel.latency_mode #=> String, one of "NORMAL", "LOW"
    #   resp.channel.multitrack_input_configuration.enabled #=> Boolean
    #   resp.channel.multitrack_input_configuration.maximum_resolution #=> String, one of "SD", "HD", "FULL_HD"
    #   resp.channel.multitrack_input_configuration.policy #=> String, one of "ALLOW", "REQUIRE"
    #   resp.channel.name #=> String
    #   resp.channel.playback_restriction_policy_arn #=> String
    #   resp.channel.playback_url #=> String
    #   resp.channel.preset #=> String, one of "HIGHER_BANDWIDTH_DELIVERY", "CONSTRAINED_BANDWIDTH_DELIVERY"
    #   resp.channel.recording_configuration_arn #=> String
    #   resp.channel.srt.endpoint #=> String
    #   resp.channel.srt.passphrase #=> String
    #   resp.channel.tags #=> Hash
    #   resp.channel.tags["TagKey"] #=> String
    #   resp.channel.type #=> String, one of "BASIC", "STANDARD", "ADVANCED_SD", "ADVANCED_HD"
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/UpdateChannel AWS API Documentation
    #
    # @overload update_channel(params = {})
    # @param [Hash] params ({})
    def update_channel(params = {}, options = {})
      req = build_request(:update_channel, params)
      req.send_request(options)
    end

    # Updates a specified playback restriction policy.
    #
    # @option params [Array<String>] :allowed_countries
    #   A list of country codes that control geoblocking restriction. Allowed
    #   values are the officially assigned [ISO 3166-1 alpha-2][1] codes.
    #   Default: All countries (an empty array).
    #
    #
    #
    #   [1]: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
    #
    # @option params [Array<String>] :allowed_origins
    #   A list of origin sites that control CORS restriction. Allowed values
    #   are the same as valid values of the Origin header defined at
    #   [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin][1].
    #   Default: All origins (an empty array).
    #
    #
    #
    #   [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
    #
    # @option params [required, String] :arn
    #   ARN of the playback-restriction-policy to be updated.
    #
    # @option params [Boolean] :enable_strict_origin_enforcement
    #   Whether channel playback is constrained by origin site. Default:
    #   `false`.
    #
    # @option params [String] :name
    #   Playback-restriction-policy name. The value does not need to be
    #   unique.
    #
    # @return [Types::UpdatePlaybackRestrictionPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
    #
    #   * {Types::UpdatePlaybackRestrictionPolicyResponse#playback_restriction_policy #playback_restriction_policy} => Types::PlaybackRestrictionPolicy
    #
    # @example Request syntax with placeholder values
    #
    #   resp = client.update_playback_restriction_policy({
    #     allowed_countries: ["PlaybackRestrictionPolicyAllowedCountry"],
    #     allowed_origins: ["PlaybackRestrictionPolicyAllowedOrigin"],
    #     arn: "PlaybackRestrictionPolicyArn", # required
    #     enable_strict_origin_enforcement: false,
    #     name: "PlaybackRestrictionPolicyName",
    #   })
    #
    # @example Response structure
    #
    #   resp.playback_restriction_policy.allowed_countries #=> Array
    #   resp.playback_restriction_policy.allowed_countries[0] #=> String
    #   resp.playback_restriction_policy.allowed_origins #=> Array
    #   resp.playback_restriction_policy.allowed_origins[0] #=> String
    #   resp.playback_restriction_policy.arn #=> String
    #   resp.playback_restriction_policy.enable_strict_origin_enforcement #=> Boolean
    #   resp.playback_restriction_policy.name #=> String
    #   resp.playback_restriction_policy.tags #=> Hash
    #   resp.playback_restriction_policy.tags["TagKey"] #=> String
    #
    # @see http://docs.aws.amazon.com/goto/WebAPI/ivs-2020-07-14/UpdatePlaybackRestrictionPolicy AWS API Documentation
    #
    # @overload update_playback_restriction_policy(params = {})
    # @param [Hash] params ({})
    def update_playback_restriction_policy(params = {}, options = {})
      req = build_request(:update_playback_restriction_policy, params)
      req.send_request(options)
    end

    # @!endgroup

    # @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::IVS')
      )
      context = Seahorse::Client::RequestContext.new(
        operation_name: operation_name,
        operation: config.api.operation(operation_name),
        client: self,
        params: params,
        config: config,
        tracer: tracer
      )
      context[:gem_name] = 'aws-sdk-ivs'
      context[:gem_version] = '1.75.0'
      Seahorse::Client::Request.new(handlers, context)
    end

    # @api private
    # @deprecated
    def waiter_names
      []
    end

    class << self

      # @api private
      attr_reader :identifier

      # @api private
      def errors_module
        Errors
      end

    end
  end
end
