aws-sdk-mediaconnect 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-mediaconnect.rb +1 -1
- data/lib/aws-sdk-mediaconnect/client.rb +84 -1
- data/lib/aws-sdk-mediaconnect/client_api.rb +55 -0
- data/lib/aws-sdk-mediaconnect/types.rb +86 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db788a31da1216a9b057e513c40ab76435cd8ca2
|
4
|
+
data.tar.gz: 57caeeaeeb66fd4305cef09c313b672261bc318f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a2e0a5b778a3f7053a71172039bc3969e346e94f5b553a671e4bfc8ff9f5dc438a85e93e5164f0148fc5ced08190ea65ffe3b2f3826510aff2fd9611e8cd30d
|
7
|
+
data.tar.gz: fe34865e8ddebff1ff55d61be7084a4d46960a4ad4bdc90e31b78000b69b4dab0ab614786bb5514873941f987b2e7d9254604d0c0e1711ab4e8a25ca71c272a4
|
data/lib/aws-sdk-mediaconnect.rb
CHANGED
@@ -649,6 +649,34 @@ module Aws::MediaConnect
|
|
649
649
|
req.send_request(options)
|
650
650
|
end
|
651
651
|
|
652
|
+
# Lists all tags associated with the resource.
|
653
|
+
#
|
654
|
+
# @option params [required, String] :resource_arn
|
655
|
+
#
|
656
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
657
|
+
#
|
658
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
|
659
|
+
#
|
660
|
+
# @example Request syntax with placeholder values
|
661
|
+
#
|
662
|
+
# resp = client.list_tags_for_resource({
|
663
|
+
# resource_arn: "__string", # required
|
664
|
+
# })
|
665
|
+
#
|
666
|
+
# @example Response structure
|
667
|
+
#
|
668
|
+
# resp.tags #=> Hash
|
669
|
+
# resp.tags["__string"] #=> String
|
670
|
+
#
|
671
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListTagsForResource AWS API Documentation
|
672
|
+
#
|
673
|
+
# @overload list_tags_for_resource(params = {})
|
674
|
+
# @param [Hash] params ({})
|
675
|
+
def list_tags_for_resource(params = {}, options = {})
|
676
|
+
req = build_request(:list_tags_for_resource, params)
|
677
|
+
req.send_request(options)
|
678
|
+
end
|
679
|
+
|
652
680
|
# Removes an output from an existing flow. This request can be made only
|
653
681
|
# on an output that does not have an entitlement associated with it. If
|
654
682
|
# the output has an entitlement, you must revoke the entitlement
|
@@ -777,6 +805,61 @@ module Aws::MediaConnect
|
|
777
805
|
req.send_request(options)
|
778
806
|
end
|
779
807
|
|
808
|
+
# Associates the specified tags to a resource. If the request does not
|
809
|
+
# mention an existing tag associated with the resource, that tag is not
|
810
|
+
# changed.
|
811
|
+
#
|
812
|
+
# @option params [required, String] :resource_arn
|
813
|
+
#
|
814
|
+
# @option params [required, Hash<String,String>] :tags
|
815
|
+
# A map from tag keys to values. Tag keys can have a maximum character
|
816
|
+
# length of 128 characters, and tag values can have a maximum length of
|
817
|
+
# 256 characters.
|
818
|
+
#
|
819
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
820
|
+
#
|
821
|
+
# @example Request syntax with placeholder values
|
822
|
+
#
|
823
|
+
# resp = client.tag_resource({
|
824
|
+
# resource_arn: "__string", # required
|
825
|
+
# tags: { # required
|
826
|
+
# "__string" => "__string",
|
827
|
+
# },
|
828
|
+
# })
|
829
|
+
#
|
830
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/TagResource AWS API Documentation
|
831
|
+
#
|
832
|
+
# @overload tag_resource(params = {})
|
833
|
+
# @param [Hash] params ({})
|
834
|
+
def tag_resource(params = {}, options = {})
|
835
|
+
req = build_request(:tag_resource, params)
|
836
|
+
req.send_request(options)
|
837
|
+
end
|
838
|
+
|
839
|
+
# Deletes the specified tags from a resource.
|
840
|
+
#
|
841
|
+
# @option params [required, String] :resource_arn
|
842
|
+
#
|
843
|
+
# @option params [required, Array<String>] :tag_keys
|
844
|
+
#
|
845
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
846
|
+
#
|
847
|
+
# @example Request syntax with placeholder values
|
848
|
+
#
|
849
|
+
# resp = client.untag_resource({
|
850
|
+
# resource_arn: "__string", # required
|
851
|
+
# tag_keys: ["__string"], # required
|
852
|
+
# })
|
853
|
+
#
|
854
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UntagResource AWS API Documentation
|
855
|
+
#
|
856
|
+
# @overload untag_resource(params = {})
|
857
|
+
# @param [Hash] params ({})
|
858
|
+
def untag_resource(params = {}, options = {})
|
859
|
+
req = build_request(:untag_resource, params)
|
860
|
+
req.send_request(options)
|
861
|
+
end
|
862
|
+
|
780
863
|
# You can change an entitlement's description, subscribers, and
|
781
864
|
# encryption. If you change the subscribers, the service will remove the
|
782
865
|
# outputs that are are used by the subscribers that are removed.
|
@@ -1035,7 +1118,7 @@ module Aws::MediaConnect
|
|
1035
1118
|
params: params,
|
1036
1119
|
config: config)
|
1037
1120
|
context[:gem_name] = 'aws-sdk-mediaconnect'
|
1038
|
-
context[:gem_version] = '1.
|
1121
|
+
context[:gem_version] = '1.1.0'
|
1039
1122
|
Seahorse::Client::Request.new(handlers, context)
|
1040
1123
|
end
|
1041
1124
|
|
@@ -38,6 +38,8 @@ module Aws::MediaConnect
|
|
38
38
|
ListEntitlementsResponse = Shapes::StructureShape.new(name: 'ListEntitlementsResponse')
|
39
39
|
ListFlowsRequest = Shapes::StructureShape.new(name: 'ListFlowsRequest')
|
40
40
|
ListFlowsResponse = Shapes::StructureShape.new(name: 'ListFlowsResponse')
|
41
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
42
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
41
43
|
ListedEntitlement = Shapes::StructureShape.new(name: 'ListedEntitlement')
|
42
44
|
ListedFlow = Shapes::StructureShape.new(name: 'ListedFlow')
|
43
45
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
@@ -59,8 +61,10 @@ module Aws::MediaConnect
|
|
59
61
|
Status = Shapes::StringShape.new(name: 'Status')
|
60
62
|
StopFlowRequest = Shapes::StructureShape.new(name: 'StopFlowRequest')
|
61
63
|
StopFlowResponse = Shapes::StructureShape.new(name: 'StopFlowResponse')
|
64
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
62
65
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
63
66
|
Transport = Shapes::StructureShape.new(name: 'Transport')
|
67
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
64
68
|
UpdateEncryption = Shapes::StructureShape.new(name: 'UpdateEncryption')
|
65
69
|
UpdateFlowEntitlementRequest = Shapes::StructureShape.new(name: 'UpdateFlowEntitlementRequest')
|
66
70
|
UpdateFlowEntitlementResponse = Shapes::StructureShape.new(name: 'UpdateFlowEntitlementResponse')
|
@@ -79,6 +83,7 @@ module Aws::MediaConnect
|
|
79
83
|
__listOfOutput = Shapes::ListShape.new(name: '__listOfOutput')
|
80
84
|
__listOf__string = Shapes::ListShape.new(name: '__listOf__string')
|
81
85
|
__long = Shapes::IntegerShape.new(name: '__long')
|
86
|
+
__mapOf__string = Shapes::MapShape.new(name: '__mapOf__string')
|
82
87
|
__string = Shapes::StringShape.new(name: '__string')
|
83
88
|
__timestampIso8601 = Shapes::TimestampShape.new(name: '__timestampIso8601', timestampFormat: "iso8601")
|
84
89
|
__timestampUnix = Shapes::TimestampShape.new(name: '__timestampUnix', timestampFormat: "unixTimestamp")
|
@@ -180,6 +185,12 @@ module Aws::MediaConnect
|
|
180
185
|
ListFlowsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
|
181
186
|
ListFlowsResponse.struct_class = Types::ListFlowsResponse
|
182
187
|
|
188
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
|
189
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
190
|
+
|
191
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
|
192
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
193
|
+
|
183
194
|
ListedEntitlement.add_member(:entitlement_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "entitlementArn"))
|
184
195
|
ListedEntitlement.add_member(:entitlement_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "entitlementName"))
|
185
196
|
ListedEntitlement.struct_class = Types::ListedEntitlement
|
@@ -262,6 +273,10 @@ module Aws::MediaConnect
|
|
262
273
|
StopFlowResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
|
263
274
|
StopFlowResponse.struct_class = Types::StopFlowResponse
|
264
275
|
|
276
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
|
277
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, required: true, location_name: "tags"))
|
278
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
279
|
+
|
265
280
|
Transport.add_member(:max_bitrate, Shapes::ShapeRef.new(shape: __integer, location_name: "maxBitrate"))
|
266
281
|
Transport.add_member(:max_latency, Shapes::ShapeRef.new(shape: __integer, location_name: "maxLatency"))
|
267
282
|
Transport.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, required: true, location_name: "protocol"))
|
@@ -269,6 +284,10 @@ module Aws::MediaConnect
|
|
269
284
|
Transport.add_member(:stream_id, Shapes::ShapeRef.new(shape: __string, location_name: "streamId"))
|
270
285
|
Transport.struct_class = Types::Transport
|
271
286
|
|
287
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
|
288
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location: "querystring", location_name: "tagKeys"))
|
289
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
290
|
+
|
272
291
|
UpdateEncryption.add_member(:algorithm, Shapes::ShapeRef.new(shape: Algorithm, location_name: "algorithm"))
|
273
292
|
UpdateEncryption.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, location_name: "keyType"))
|
274
293
|
UpdateEncryption.add_member(:role_arn, Shapes::ShapeRef.new(shape: __string, location_name: "roleArn"))
|
@@ -333,6 +352,9 @@ module Aws::MediaConnect
|
|
333
352
|
|
334
353
|
__listOf__string.member = Shapes::ShapeRef.new(shape: __string)
|
335
354
|
|
355
|
+
__mapOf__string.key = Shapes::ShapeRef.new(shape: __string)
|
356
|
+
__mapOf__string.value = Shapes::ShapeRef.new(shape: __string)
|
357
|
+
|
336
358
|
|
337
359
|
# @api private
|
338
360
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -453,6 +475,17 @@ module Aws::MediaConnect
|
|
453
475
|
)
|
454
476
|
end)
|
455
477
|
|
478
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
479
|
+
o.name = "ListTagsForResource"
|
480
|
+
o.http_method = "GET"
|
481
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
482
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
483
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
484
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
486
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
487
|
+
end)
|
488
|
+
|
456
489
|
api.add_operation(:remove_flow_output, Seahorse::Model::Operation.new.tap do |o|
|
457
490
|
o.name = "RemoveFlowOutput"
|
458
491
|
o.http_method = "DELETE"
|
@@ -509,6 +542,28 @@ module Aws::MediaConnect
|
|
509
542
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
510
543
|
end)
|
511
544
|
|
545
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
546
|
+
o.name = "TagResource"
|
547
|
+
o.http_method = "POST"
|
548
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
549
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
550
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
551
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
552
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
553
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
554
|
+
end)
|
555
|
+
|
556
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
557
|
+
o.name = "UntagResource"
|
558
|
+
o.http_method = "DELETE"
|
559
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
560
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
561
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
562
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
563
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
564
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
565
|
+
end)
|
566
|
+
|
512
567
|
api.add_operation(:update_flow_entitlement, Seahorse::Model::Operation.new.tap do |o|
|
513
568
|
o.name = "UpdateFlowEntitlement"
|
514
569
|
o.http_method = "PUT"
|
@@ -659,6 +659,39 @@ module Aws::MediaConnect
|
|
659
659
|
include Aws::Structure
|
660
660
|
end
|
661
661
|
|
662
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
663
|
+
# data as a hash:
|
664
|
+
#
|
665
|
+
# {
|
666
|
+
# resource_arn: "__string", # required
|
667
|
+
# }
|
668
|
+
#
|
669
|
+
# @!attribute [rw] resource_arn
|
670
|
+
# @return [String]
|
671
|
+
#
|
672
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListTagsForResourceRequest AWS API Documentation
|
673
|
+
#
|
674
|
+
class ListTagsForResourceRequest < Struct.new(
|
675
|
+
:resource_arn)
|
676
|
+
include Aws::Structure
|
677
|
+
end
|
678
|
+
|
679
|
+
# AWS Elemental MediaConnect listed the tags associated with the
|
680
|
+
# resource.
|
681
|
+
#
|
682
|
+
# @!attribute [rw] tags
|
683
|
+
# A map from tag keys to values. Tag keys can have a maximum character
|
684
|
+
# length of 128 characters, and tag values can have a maximum length
|
685
|
+
# of 256 characters.
|
686
|
+
# @return [Hash<String,String>]
|
687
|
+
#
|
688
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListTagsForResourceResponse AWS API Documentation
|
689
|
+
#
|
690
|
+
class ListTagsForResourceResponse < Struct.new(
|
691
|
+
:tags)
|
692
|
+
include Aws::Structure
|
693
|
+
end
|
694
|
+
|
662
695
|
# An entitlement that has been granted to you from other AWS accounts.
|
663
696
|
#
|
664
697
|
# @!attribute [rw] entitlement_arn
|
@@ -1110,6 +1143,37 @@ module Aws::MediaConnect
|
|
1110
1143
|
include Aws::Structure
|
1111
1144
|
end
|
1112
1145
|
|
1146
|
+
# The tags to add to the resource. Tag keys can have a maximum character
|
1147
|
+
# length of 128 characters, and tag values can have a maximum length of
|
1148
|
+
# 256 characters.
|
1149
|
+
#
|
1150
|
+
# @note When making an API call, you may pass TagResourceRequest
|
1151
|
+
# data as a hash:
|
1152
|
+
#
|
1153
|
+
# {
|
1154
|
+
# resource_arn: "__string", # required
|
1155
|
+
# tags: { # required
|
1156
|
+
# "__string" => "__string",
|
1157
|
+
# },
|
1158
|
+
# }
|
1159
|
+
#
|
1160
|
+
# @!attribute [rw] resource_arn
|
1161
|
+
# @return [String]
|
1162
|
+
#
|
1163
|
+
# @!attribute [rw] tags
|
1164
|
+
# A map from tag keys to values. Tag keys can have a maximum character
|
1165
|
+
# length of 128 characters, and tag values can have a maximum length
|
1166
|
+
# of 256 characters.
|
1167
|
+
# @return [Hash<String,String>]
|
1168
|
+
#
|
1169
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/TagResourceRequest AWS API Documentation
|
1170
|
+
#
|
1171
|
+
class TagResourceRequest < Struct.new(
|
1172
|
+
:resource_arn,
|
1173
|
+
:tags)
|
1174
|
+
include Aws::Structure
|
1175
|
+
end
|
1176
|
+
|
1113
1177
|
# Attributes related to the transport stream that are used in a source
|
1114
1178
|
# or output.
|
1115
1179
|
#
|
@@ -1145,6 +1209,28 @@ module Aws::MediaConnect
|
|
1145
1209
|
include Aws::Structure
|
1146
1210
|
end
|
1147
1211
|
|
1212
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
1213
|
+
# data as a hash:
|
1214
|
+
#
|
1215
|
+
# {
|
1216
|
+
# resource_arn: "__string", # required
|
1217
|
+
# tag_keys: ["__string"], # required
|
1218
|
+
# }
|
1219
|
+
#
|
1220
|
+
# @!attribute [rw] resource_arn
|
1221
|
+
# @return [String]
|
1222
|
+
#
|
1223
|
+
# @!attribute [rw] tag_keys
|
1224
|
+
# @return [Array<String>]
|
1225
|
+
#
|
1226
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UntagResourceRequest AWS API Documentation
|
1227
|
+
#
|
1228
|
+
class UntagResourceRequest < Struct.new(
|
1229
|
+
:resource_arn,
|
1230
|
+
:tag_keys)
|
1231
|
+
include Aws::Structure
|
1232
|
+
end
|
1233
|
+
|
1148
1234
|
# Information about the encryption of the flow.
|
1149
1235
|
#
|
1150
1236
|
# @note When making an API call, you may pass UpdateEncryption
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-mediaconnect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|