aws-sdk-mediatailor 1.40.0 → 1.41.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 776b821ba99e304f858c10f608739a8f215585af77cc80af0c6e30194e916d22
4
- data.tar.gz: 6d37139aa1d17a952fd812ef9186d3d30f42404a98f49e0252429b5d6ca429b6
3
+ metadata.gz: 21a074898a077c5d54a90ca1da6bae6e76b33e081298544e0c9ea8bfd5d6c4e6
4
+ data.tar.gz: bf380373f45881ef3eb786df7c556f780e0b00c9aaf67afaaf9de4ebece012e1
5
5
  SHA512:
6
- metadata.gz: 1a79c67cad2834cad13eeea039069871edf17a1c96ea9bde38c42428834f7d5574d41c93defd22c02fae0bf87c47d6206e3dfd78640ac024d14bd1e3374102b3
7
- data.tar.gz: 1db7f8481231f2db9f0446b2711dfd2397b9fb697808572057f29f40a5a9ef0ea17dc3488ddddb549888e63c980928260a5fa4c7ba679c14ed9566027a5af7f7
6
+ metadata.gz: 4180b323d01571adbd8f8c807d58285ab8e8abb8eb3413c0b5c8d7d0fc4a72c86d4b324f716b625fb1192ebfbcc05a1d3e48bb320c7f773302b0a612c2371e40
7
+ data.tar.gz: 16fcff6012071f71c43724d2ce12adb12961be5083f81c98a966e69050c2d8edea1274e0ab1f7568437e00491160a3f4348fca8d83c04a0492dee9c377bf6d44
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.41.0 (2021-07-08)
5
+ ------------------
6
+
7
+ * Feature - Add ListAlerts for Channel, Program, Source Location, and VOD Source to return alerts for resources.
8
+
4
9
  1.40.0 (2021-06-23)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.40.0
1
+ 1.41.0
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-mediatailor/customizations'
48
48
  # @!group service
49
49
  module Aws::MediaTailor
50
50
 
51
- GEM_VERSION = '1.40.0'
51
+ GEM_VERSION = '1.41.0'
52
52
 
53
53
  end
@@ -1103,6 +1103,49 @@ module Aws::MediaTailor
1103
1103
  req.send_request(options)
1104
1104
  end
1105
1105
 
1106
+ # Returns a list of alerts for the given resource.
1107
+ #
1108
+ # @option params [Integer] :max_results
1109
+ #
1110
+ # @option params [String] :next_token
1111
+ #
1112
+ # @option params [required, String] :resource_arn
1113
+ #
1114
+ # @return [Types::ListAlertsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1115
+ #
1116
+ # * {Types::ListAlertsResponse#items #items} => Array<Types::Alert>
1117
+ # * {Types::ListAlertsResponse#next_token #next_token} => String
1118
+ #
1119
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1120
+ #
1121
+ # @example Request syntax with placeholder values
1122
+ #
1123
+ # resp = client.list_alerts({
1124
+ # max_results: 1,
1125
+ # next_token: "__string",
1126
+ # resource_arn: "__string", # required
1127
+ # })
1128
+ #
1129
+ # @example Response structure
1130
+ #
1131
+ # resp.items #=> Array
1132
+ # resp.items[0].alert_code #=> String
1133
+ # resp.items[0].alert_message #=> String
1134
+ # resp.items[0].last_modified_time #=> Time
1135
+ # resp.items[0].related_resource_arns #=> Array
1136
+ # resp.items[0].related_resource_arns[0] #=> String
1137
+ # resp.items[0].resource_arn #=> String
1138
+ # resp.next_token #=> String
1139
+ #
1140
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListAlerts AWS API Documentation
1141
+ #
1142
+ # @overload list_alerts(params = {})
1143
+ # @param [Hash] params ({})
1144
+ def list_alerts(params = {}, options = {})
1145
+ req = build_request(:list_alerts, params)
1146
+ req.send_request(options)
1147
+ end
1148
+
1106
1149
  # Retrieves a list of channels that are associated with this account.
1107
1150
  #
1108
1151
  # @option params [Integer] :max_results
@@ -1863,7 +1906,7 @@ module Aws::MediaTailor
1863
1906
  params: params,
1864
1907
  config: config)
1865
1908
  context[:gem_name] = 'aws-sdk-mediatailor'
1866
- context[:gem_version] = '1.40.0'
1909
+ context[:gem_version] = '1.41.0'
1867
1910
  Seahorse::Client::Request.new(handlers, context)
1868
1911
  end
1869
1912
 
@@ -17,6 +17,7 @@ module Aws::MediaTailor
17
17
  AccessType = Shapes::StringShape.new(name: 'AccessType')
18
18
  AdBreak = Shapes::StructureShape.new(name: 'AdBreak')
19
19
  AdMarkerPassthrough = Shapes::StructureShape.new(name: 'AdMarkerPassthrough')
20
+ Alert = Shapes::StructureShape.new(name: 'Alert')
20
21
  AvailSuppression = Shapes::StructureShape.new(name: 'AvailSuppression')
21
22
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
22
23
  Bumper = Shapes::StructureShape.new(name: 'Bumper')
@@ -68,6 +69,8 @@ module Aws::MediaTailor
68
69
  HttpConfiguration = Shapes::StructureShape.new(name: 'HttpConfiguration')
69
70
  HttpPackageConfiguration = Shapes::StructureShape.new(name: 'HttpPackageConfiguration')
70
71
  HttpPackageConfigurations = Shapes::ListShape.new(name: 'HttpPackageConfigurations')
72
+ ListAlertsRequest = Shapes::StructureShape.new(name: 'ListAlertsRequest')
73
+ ListAlertsResponse = Shapes::StructureShape.new(name: 'ListAlertsResponse')
71
74
  ListChannelsRequest = Shapes::StructureShape.new(name: 'ListChannelsRequest')
72
75
  ListChannelsResponse = Shapes::StructureShape.new(name: 'ListChannelsResponse')
73
76
  ListPlaybackConfigurationsRequest = Shapes::StructureShape.new(name: 'ListPlaybackConfigurationsRequest')
@@ -121,6 +124,7 @@ module Aws::MediaTailor
121
124
  __integer = Shapes::IntegerShape.new(name: '__integer')
122
125
  __integerMin1 = Shapes::IntegerShape.new(name: '__integerMin1')
123
126
  __listOfAdBreak = Shapes::ListShape.new(name: '__listOfAdBreak')
127
+ __listOfAlert = Shapes::ListShape.new(name: '__listOfAlert')
124
128
  __listOfChannel = Shapes::ListShape.new(name: '__listOfChannel')
125
129
  __listOfPlaybackConfiguration = Shapes::ListShape.new(name: '__listOfPlaybackConfiguration')
126
130
  __listOfScheduleAdBreak = Shapes::ListShape.new(name: '__listOfScheduleAdBreak')
@@ -146,6 +150,13 @@ module Aws::MediaTailor
146
150
  AdMarkerPassthrough.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "Enabled"))
147
151
  AdMarkerPassthrough.struct_class = Types::AdMarkerPassthrough
148
152
 
153
+ Alert.add_member(:alert_code, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "AlertCode"))
154
+ Alert.add_member(:alert_message, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "AlertMessage"))
155
+ Alert.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: __timestampUnix, required: true, location_name: "LastModifiedTime"))
156
+ Alert.add_member(:related_resource_arns, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "RelatedResourceArns"))
157
+ Alert.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ResourceArn"))
158
+ Alert.struct_class = Types::Alert
159
+
149
160
  AvailSuppression.add_member(:mode, Shapes::ShapeRef.new(shape: Mode, location_name: "Mode"))
150
161
  AvailSuppression.add_member(:value, Shapes::ShapeRef.new(shape: __string, location_name: "Value"))
151
162
  AvailSuppression.struct_class = Types::AvailSuppression
@@ -399,6 +410,15 @@ module Aws::MediaTailor
399
410
 
400
411
  HttpPackageConfigurations.member = Shapes::ShapeRef.new(shape: HttpPackageConfiguration)
401
412
 
413
+ ListAlertsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
414
+ ListAlertsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
415
+ ListAlertsRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "querystring", location_name: "resourceArn"))
416
+ ListAlertsRequest.struct_class = Types::ListAlertsRequest
417
+
418
+ ListAlertsResponse.add_member(:items, Shapes::ShapeRef.new(shape: __listOfAlert, location_name: "Items"))
419
+ ListAlertsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
420
+ ListAlertsResponse.struct_class = Types::ListAlertsResponse
421
+
402
422
  ListChannelsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
403
423
  ListChannelsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
404
424
  ListChannelsRequest.struct_class = Types::ListChannelsRequest
@@ -646,6 +666,8 @@ module Aws::MediaTailor
646
666
 
647
667
  __listOfAdBreak.member = Shapes::ShapeRef.new(shape: AdBreak)
648
668
 
669
+ __listOfAlert.member = Shapes::ShapeRef.new(shape: Alert)
670
+
649
671
  __listOfChannel.member = Shapes::ShapeRef.new(shape: Channel)
650
672
 
651
673
  __listOfPlaybackConfiguration.member = Shapes::ShapeRef.new(shape: PlaybackConfiguration)
@@ -824,6 +846,20 @@ module Aws::MediaTailor
824
846
  o.output = Shapes::ShapeRef.new(shape: GetPlaybackConfigurationResponse)
825
847
  end)
826
848
 
849
+ api.add_operation(:list_alerts, Seahorse::Model::Operation.new.tap do |o|
850
+ o.name = "ListAlerts"
851
+ o.http_method = "GET"
852
+ o.http_request_uri = "/alerts"
853
+ o.input = Shapes::ShapeRef.new(shape: ListAlertsRequest)
854
+ o.output = Shapes::ShapeRef.new(shape: ListAlertsResponse)
855
+ o[:pager] = Aws::Pager.new(
856
+ limit_key: "max_results",
857
+ tokens: {
858
+ "next_token" => "next_token"
859
+ }
860
+ )
861
+ end)
862
+
827
863
  api.add_operation(:list_channels, Seahorse::Model::Operation.new.tap do |o|
828
864
  o.name = "ListChannels"
829
865
  o.http_method = "GET"
@@ -144,6 +144,41 @@ module Aws::MediaTailor
144
144
  include Aws::Structure
145
145
  end
146
146
 
147
+ # Alert configuration parameters.
148
+ #
149
+ # @!attribute [rw] alert_code
150
+ # The code for the alert. For example, NOT\_PROCESSED.
151
+ # @return [String]
152
+ #
153
+ # @!attribute [rw] alert_message
154
+ # If an alert is generated for a resource, an explanation of the
155
+ # reason for the alert.
156
+ # @return [String]
157
+ #
158
+ # @!attribute [rw] last_modified_time
159
+ # The timestamp when the alert was last modified.
160
+ # @return [Time]
161
+ #
162
+ # @!attribute [rw] related_resource_arns
163
+ # The Amazon Resource Names (ARNs) related to this alert.
164
+ # @return [Array<String>]
165
+ #
166
+ # @!attribute [rw] resource_arn
167
+ # The Amazon Resource Name (ARN) of the resource.
168
+ # @return [String]
169
+ #
170
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/Alert AWS API Documentation
171
+ #
172
+ class Alert < Struct.new(
173
+ :alert_code,
174
+ :alert_message,
175
+ :last_modified_time,
176
+ :related_resource_arns,
177
+ :resource_arn)
178
+ SENSITIVE = []
179
+ include Aws::Structure
180
+ end
181
+
147
182
  # The configuration for avail suppression, also known as ad suppression.
148
183
  # For more information about ad suppression, see [Ad Suppression][1].
149
184
  #
@@ -1638,6 +1673,54 @@ module Aws::MediaTailor
1638
1673
  include Aws::Structure
1639
1674
  end
1640
1675
 
1676
+ # @note When making an API call, you may pass ListAlertsRequest
1677
+ # data as a hash:
1678
+ #
1679
+ # {
1680
+ # max_results: 1,
1681
+ # next_token: "__string",
1682
+ # resource_arn: "__string", # required
1683
+ # }
1684
+ #
1685
+ # @!attribute [rw] max_results
1686
+ # @return [Integer]
1687
+ #
1688
+ # @!attribute [rw] next_token
1689
+ # @return [String]
1690
+ #
1691
+ # @!attribute [rw] resource_arn
1692
+ # @return [String]
1693
+ #
1694
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListAlertsRequest AWS API Documentation
1695
+ #
1696
+ class ListAlertsRequest < Struct.new(
1697
+ :max_results,
1698
+ :next_token,
1699
+ :resource_arn)
1700
+ SENSITIVE = []
1701
+ include Aws::Structure
1702
+ end
1703
+
1704
+ # Lists the alerts for a given resource.
1705
+ #
1706
+ # @!attribute [rw] items
1707
+ # An array of alerts that are associated with this resource.
1708
+ # @return [Array<Types::Alert>]
1709
+ #
1710
+ # @!attribute [rw] next_token
1711
+ # Pagination token from the list request. Use the token to fetch the
1712
+ # next page of results.
1713
+ # @return [String]
1714
+ #
1715
+ # @see http://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListAlertsResponse AWS API Documentation
1716
+ #
1717
+ class ListAlertsResponse < Struct.new(
1718
+ :items,
1719
+ :next_token)
1720
+ SENSITIVE = []
1721
+ include Aws::Structure
1722
+ end
1723
+
1641
1724
  # @note When making an API call, you may pass ListChannelsRequest
1642
1725
  # data as a hash:
1643
1726
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-mediatailor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.40.0
4
+ version: 1.41.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: 2021-06-23 00:00:00.000000000 Z
11
+ date: 2021-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core