MediaLive / Client / create_event_bridge_rule_template
create_event_bridge_rule_template#
- MediaLive.Client.create_event_bridge_rule_template(**kwargs)#
Creates an eventbridge rule template to monitor events and send notifications to your targeted resources.
See also: AWS API Documentation
Request Syntax
response = client.create_event_bridge_rule_template( Description='string', EventTargets=[ { 'Arn': 'string' }, ], EventType='MEDIALIVE_MULTIPLEX_ALERT'|'MEDIALIVE_MULTIPLEX_STATE_CHANGE'|'MEDIALIVE_CHANNEL_ALERT'|'MEDIALIVE_CHANNEL_INPUT_CHANGE'|'MEDIALIVE_CHANNEL_STATE_CHANGE'|'MEDIAPACKAGE_INPUT_NOTIFICATION'|'MEDIAPACKAGE_KEY_PROVIDER_NOTIFICATION'|'MEDIAPACKAGE_HARVEST_JOB_NOTIFICATION'|'SIGNAL_MAP_ACTIVE_ALARM'|'MEDIACONNECT_ALERT'|'MEDIACONNECT_SOURCE_HEALTH'|'MEDIACONNECT_OUTPUT_HEALTH'|'MEDIACONNECT_FLOW_STATUS_CHANGE', GroupIdentifier='string', Name='string', Tags={ 'string': 'string' } )
- Parameters:
Description (string) – A resource’s optional description.
EventTargets (list) –
Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
(dict) – The target to which to send matching events.
Arn (string) – [REQUIRED] Target ARNs must be either an SNS topic or CloudWatch log group.
EventType (string) – [REQUIRED] The type of event to match with the rule.
GroupIdentifier (string) – [REQUIRED] An eventbridge rule template group’s identifier. Can be either be its id or current name.
Name (string) – [REQUIRED] A resource’s name. Names must be unique within the scope of a resource type in a specific region.
Tags (dict) –
Represents the tags associated with a resource.
(string) – Placeholder documentation for __string
(string) – Placeholder documentation for __string
- Return type:
dict
- Returns:
Response Syntax
{ 'Arn': 'string', 'CreatedAt': datetime(2015, 1, 1), 'Description': 'string', 'EventTargets': [ { 'Arn': 'string' }, ], 'EventType': 'MEDIALIVE_MULTIPLEX_ALERT'|'MEDIALIVE_MULTIPLEX_STATE_CHANGE'|'MEDIALIVE_CHANNEL_ALERT'|'MEDIALIVE_CHANNEL_INPUT_CHANGE'|'MEDIALIVE_CHANNEL_STATE_CHANGE'|'MEDIAPACKAGE_INPUT_NOTIFICATION'|'MEDIAPACKAGE_KEY_PROVIDER_NOTIFICATION'|'MEDIAPACKAGE_HARVEST_JOB_NOTIFICATION'|'SIGNAL_MAP_ACTIVE_ALARM'|'MEDIACONNECT_ALERT'|'MEDIACONNECT_SOURCE_HEALTH'|'MEDIACONNECT_OUTPUT_HEALTH'|'MEDIACONNECT_FLOW_STATUS_CHANGE', 'GroupId': 'string', 'Id': 'string', 'ModifiedAt': datetime(2015, 1, 1), 'Name': 'string', 'Tags': { 'string': 'string' } }
Response Structure
(dict) – CreateEventBridgeRuleTemplate 201 response
Arn (string) – An eventbridge rule template’s ARN (Amazon Resource Name)
CreatedAt (datetime) – Placeholder documentation for __timestampIso8601
Description (string) – A resource’s optional description.
EventTargets (list) – Placeholder documentation for __listOfEventBridgeRuleTemplateTarget
(dict) – The target to which to send matching events.
Arn (string) – Target ARNs must be either an SNS topic or CloudWatch log group.
EventType (string) – The type of event to match with the rule.
GroupId (string) – An eventbridge rule template group’s id. AWS provided template groups have ids that start with aws-
Id (string) – An eventbridge rule template’s id. AWS provided templates have ids that start with aws-
ModifiedAt (datetime) – Placeholder documentation for __timestampIso8601
Name (string) – A resource’s name. Names must be unique within the scope of a resource type in a specific region.
Tags (dict) – Represents the tags associated with a resource.
(string) – Placeholder documentation for __string
(string) – Placeholder documentation for __string
Exceptions