lib/aws-sdk-mediapackage/client.rb in aws-sdk-mediapackage-1.11.0 vs lib/aws-sdk-mediapackage/client.rb in aws-sdk-mediapackage-1.12.0

- old
+ new

@@ -209,22 +209,29 @@ # # @option params [String] :description # # @option params [required, String] :id # + # @option params [Hash<String,String>] :tags + # A collection of tags associated with a resource + # # @return [Types::CreateChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateChannelResponse#arn #arn} => String # * {Types::CreateChannelResponse#description #description} => String # * {Types::CreateChannelResponse#hls_ingest #hls_ingest} => Types::HlsIngest # * {Types::CreateChannelResponse#id #id} => String + # * {Types::CreateChannelResponse#tags #tags} => Hash&lt;String,String&gt; # # @example Request syntax with placeholder values # # resp = client.create_channel({ # description: "__string", # id: "__string", # required + # tags: { + # "__string" => "__string", + # }, # }) # # @example Response structure # # resp.arn #=> String @@ -233,10 +240,12 @@ # resp.hls_ingest.ingest_endpoints[0].id #=> String # resp.hls_ingest.ingest_endpoints[0].password #=> String # resp.hls_ingest.ingest_endpoints[0].url #=> String # resp.hls_ingest.ingest_endpoints[0].username #=> String # resp.id #=> String + # resp.tags #=> Hash + # resp.tags["__string"] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/CreateChannel AWS API Documentation # # @overload create_channel(params = {}) # @param [Hash] params ({}) @@ -267,10 +276,13 @@ # @option params [Types::MssPackage] :mss_package # A Microsoft Smooth Streaming (MSS) packaging configuration. # # @option params [Integer] :startover_window_seconds # + # @option params [Hash<String,String>] :tags + # A collection of tags associated with a resource + # # @option params [Integer] :time_delay_seconds # # @option params [Array<String>] :whitelist # # @return [Types::CreateOriginEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: @@ -283,10 +295,11 @@ # * {Types::CreateOriginEndpointResponse#hls_package #hls_package} => Types::HlsPackage # * {Types::CreateOriginEndpointResponse#id #id} => String # * {Types::CreateOriginEndpointResponse#manifest_name #manifest_name} => String # * {Types::CreateOriginEndpointResponse#mss_package #mss_package} => Types::MssPackage # * {Types::CreateOriginEndpointResponse#startover_window_seconds #startover_window_seconds} => Integer + # * {Types::CreateOriginEndpointResponse#tags #tags} => Hash&lt;String,String&gt; # * {Types::CreateOriginEndpointResponse#time_delay_seconds #time_delay_seconds} => Integer # * {Types::CreateOriginEndpointResponse#url #url} => String # * {Types::CreateOriginEndpointResponse#whitelist #whitelist} => Array&lt;String&gt; # # @example Request syntax with placeholder values @@ -396,10 +409,13 @@ # min_video_bits_per_second: 1, # stream_order: "ORIGINAL", # accepts ORIGINAL, VIDEO_BITRATE_ASCENDING, VIDEO_BITRATE_DESCENDING # }, # }, # startover_window_seconds: 1, + # tags: { + # "__string" => "__string", + # }, # time_delay_seconds: 1, # whitelist: ["__string"], # }) # # @example Response structure @@ -480,10 +496,12 @@ # resp.mss_package.segment_duration_seconds #=> Integer # resp.mss_package.stream_selection.max_video_bits_per_second #=> Integer # resp.mss_package.stream_selection.min_video_bits_per_second #=> Integer # resp.mss_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.startover_window_seconds #=> Integer + # resp.tags #=> Hash + # resp.tags["__string"] #=> String # resp.time_delay_seconds #=> Integer # resp.url #=> String # resp.whitelist #=> Array # resp.whitelist[0] #=> String # @@ -546,10 +564,11 @@ # # * {Types::DescribeChannelResponse#arn #arn} => String # * {Types::DescribeChannelResponse#description #description} => String # * {Types::DescribeChannelResponse#hls_ingest #hls_ingest} => Types::HlsIngest # * {Types::DescribeChannelResponse#id #id} => String + # * {Types::DescribeChannelResponse#tags #tags} => Hash&lt;String,String&gt; # # @example Request syntax with placeholder values # # resp = client.describe_channel({ # id: "__string", # required @@ -563,10 +582,12 @@ # resp.hls_ingest.ingest_endpoints[0].id #=> String # resp.hls_ingest.ingest_endpoints[0].password #=> String # resp.hls_ingest.ingest_endpoints[0].url #=> String # resp.hls_ingest.ingest_endpoints[0].username #=> String # resp.id #=> String + # resp.tags #=> Hash + # resp.tags["__string"] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeChannel AWS API Documentation # # @overload describe_channel(params = {}) # @param [Hash] params ({}) @@ -589,10 +610,11 @@ # * {Types::DescribeOriginEndpointResponse#hls_package #hls_package} => Types::HlsPackage # * {Types::DescribeOriginEndpointResponse#id #id} => String # * {Types::DescribeOriginEndpointResponse#manifest_name #manifest_name} => String # * {Types::DescribeOriginEndpointResponse#mss_package #mss_package} => Types::MssPackage # * {Types::DescribeOriginEndpointResponse#startover_window_seconds #startover_window_seconds} => Integer + # * {Types::DescribeOriginEndpointResponse#tags #tags} => Hash&lt;String,String&gt; # * {Types::DescribeOriginEndpointResponse#time_delay_seconds #time_delay_seconds} => Integer # * {Types::DescribeOriginEndpointResponse#url #url} => String # * {Types::DescribeOriginEndpointResponse#whitelist #whitelist} => Array&lt;String&gt; # # @example Request syntax with placeholder values @@ -679,10 +701,12 @@ # resp.mss_package.segment_duration_seconds #=> Integer # resp.mss_package.stream_selection.max_video_bits_per_second #=> Integer # resp.mss_package.stream_selection.min_video_bits_per_second #=> Integer # resp.mss_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.startover_window_seconds #=> Integer + # resp.tags #=> Hash + # resp.tags["__string"] #=> String # resp.time_delay_seconds #=> Integer # resp.url #=> String # resp.whitelist #=> Array # resp.whitelist[0] #=> String # @@ -722,10 +746,12 @@ # resp.channels[0].hls_ingest.ingest_endpoints[0].id #=> String # resp.channels[0].hls_ingest.ingest_endpoints[0].password #=> String # resp.channels[0].hls_ingest.ingest_endpoints[0].url #=> String # resp.channels[0].hls_ingest.ingest_endpoints[0].username #=> String # resp.channels[0].id #=> String + # resp.channels[0].tags #=> Hash + # resp.channels[0].tags["__string"] #=> String # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/ListChannels AWS API Documentation # # @overload list_channels(params = {}) @@ -836,10 +862,12 @@ # resp.origin_endpoints[0].mss_package.segment_duration_seconds #=> Integer # resp.origin_endpoints[0].mss_package.stream_selection.max_video_bits_per_second #=> Integer # resp.origin_endpoints[0].mss_package.stream_selection.min_video_bits_per_second #=> Integer # resp.origin_endpoints[0].mss_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.origin_endpoints[0].startover_window_seconds #=> Integer + # resp.origin_endpoints[0].tags #=> Hash + # resp.origin_endpoints[0].tags["__string"] #=> String # resp.origin_endpoints[0].time_delay_seconds #=> Integer # resp.origin_endpoints[0].url #=> String # resp.origin_endpoints[0].whitelist #=> Array # resp.origin_endpoints[0].whitelist[0] #=> String # @@ -850,10 +878,36 @@ def list_origin_endpoints(params = {}, options = {}) req = build_request(:list_origin_endpoints, params) req.send_request(options) end + # @option params [required, String] :resource_arn + # + # @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: "__string", # required + # }) + # + # @example Response structure + # + # resp.tags #=> Hash + # resp.tags["__string"] #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/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 + # Changes the Channel's first IngestEndpoint's username and password. # WARNING - This API is deprecated. Please use # RotateIngestEndpointCredentials instead # # @option params [required, String] :id @@ -862,10 +916,11 @@ # # * {Types::RotateChannelCredentialsResponse#arn #arn} => String # * {Types::RotateChannelCredentialsResponse#description #description} => String # * {Types::RotateChannelCredentialsResponse#hls_ingest #hls_ingest} => Types::HlsIngest # * {Types::RotateChannelCredentialsResponse#id #id} => String + # * {Types::RotateChannelCredentialsResponse#tags #tags} => Hash&lt;String,String&gt; # # @example Request syntax with placeholder values # # resp = client.rotate_channel_credentials({ # id: "__string", # required @@ -879,10 +934,12 @@ # resp.hls_ingest.ingest_endpoints[0].id #=> String # resp.hls_ingest.ingest_endpoints[0].password #=> String # resp.hls_ingest.ingest_endpoints[0].url #=> String # resp.hls_ingest.ingest_endpoints[0].username #=> String # resp.id #=> String + # resp.tags #=> Hash + # resp.tags["__string"] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/RotateChannelCredentials AWS API Documentation # # @overload rotate_channel_credentials(params = {}) # @param [Hash] params ({}) @@ -902,10 +959,11 @@ # # * {Types::RotateIngestEndpointCredentialsResponse#arn #arn} => String # * {Types::RotateIngestEndpointCredentialsResponse#description #description} => String # * {Types::RotateIngestEndpointCredentialsResponse#hls_ingest #hls_ingest} => Types::HlsIngest # * {Types::RotateIngestEndpointCredentialsResponse#id #id} => String + # * {Types::RotateIngestEndpointCredentialsResponse#tags #tags} => Hash&lt;String,String&gt; # # @example Request syntax with placeholder values # # resp = client.rotate_ingest_endpoint_credentials({ # id: "__string", # required @@ -920,20 +978,68 @@ # resp.hls_ingest.ingest_endpoints[0].id #=> String # resp.hls_ingest.ingest_endpoints[0].password #=> String # resp.hls_ingest.ingest_endpoints[0].url #=> String # resp.hls_ingest.ingest_endpoints[0].username #=> String # resp.id #=> String + # resp.tags #=> Hash + # resp.tags["__string"] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/RotateIngestEndpointCredentials AWS API Documentation # # @overload rotate_ingest_endpoint_credentials(params = {}) # @param [Hash] params ({}) def rotate_ingest_endpoint_credentials(params = {}, options = {}) req = build_request(:rotate_ingest_endpoint_credentials, params) req.send_request(options) end + # @option params [required, String] :resource_arn + # + # @option params [required, Hash<String,String>] :tags + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.tag_resource({ + # resource_arn: "__string", # required + # tags: { # required + # "__string" => "__string", + # }, + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/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 + + # @option params [required, String] :resource_arn + # + # @option params [required, Array<String>] :tag_keys + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.untag_resource({ + # resource_arn: "__string", # required + # tag_keys: ["__string"], # required + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/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 an existing Channel. # # @option params [String] :description # # @option params [required, String] :id @@ -942,10 +1048,11 @@ # # * {Types::UpdateChannelResponse#arn #arn} => String # * {Types::UpdateChannelResponse#description #description} => String # * {Types::UpdateChannelResponse#hls_ingest #hls_ingest} => Types::HlsIngest # * {Types::UpdateChannelResponse#id #id} => String + # * {Types::UpdateChannelResponse#tags #tags} => Hash&lt;String,String&gt; # # @example Request syntax with placeholder values # # resp = client.update_channel({ # description: "__string", @@ -960,10 +1067,12 @@ # resp.hls_ingest.ingest_endpoints[0].id #=> String # resp.hls_ingest.ingest_endpoints[0].password #=> String # resp.hls_ingest.ingest_endpoints[0].url #=> String # resp.hls_ingest.ingest_endpoints[0].username #=> String # resp.id #=> String + # resp.tags #=> Hash + # resp.tags["__string"] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/UpdateChannel AWS API Documentation # # @overload update_channel(params = {}) # @param [Hash] params ({}) @@ -1008,10 +1117,11 @@ # * {Types::UpdateOriginEndpointResponse#hls_package #hls_package} => Types::HlsPackage # * {Types::UpdateOriginEndpointResponse#id #id} => String # * {Types::UpdateOriginEndpointResponse#manifest_name #manifest_name} => String # * {Types::UpdateOriginEndpointResponse#mss_package #mss_package} => Types::MssPackage # * {Types::UpdateOriginEndpointResponse#startover_window_seconds #startover_window_seconds} => Integer + # * {Types::UpdateOriginEndpointResponse#tags #tags} => Hash&lt;String,String&gt; # * {Types::UpdateOriginEndpointResponse#time_delay_seconds #time_delay_seconds} => Integer # * {Types::UpdateOriginEndpointResponse#url #url} => String # * {Types::UpdateOriginEndpointResponse#whitelist #whitelist} => Array&lt;String&gt; # # @example Request syntax with placeholder values @@ -1204,10 +1314,12 @@ # resp.mss_package.segment_duration_seconds #=> Integer # resp.mss_package.stream_selection.max_video_bits_per_second #=> Integer # resp.mss_package.stream_selection.min_video_bits_per_second #=> Integer # resp.mss_package.stream_selection.stream_order #=> String, one of "ORIGINAL", "VIDEO_BITRATE_ASCENDING", "VIDEO_BITRATE_DESCENDING" # resp.startover_window_seconds #=> Integer + # resp.tags #=> Hash + # resp.tags["__string"] #=> String # resp.time_delay_seconds #=> Integer # resp.url #=> String # resp.whitelist #=> Array # resp.whitelist[0] #=> String # @@ -1231,10 +1343,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-mediapackage' - context[:gem_version] = '1.11.0' + context[:gem_version] = '1.12.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated