| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
from __future__ import absolute_import, division, print_function |
| 7 |
__metaclass__ = type |
| 8 |
|
| 9 |
|
| 10 |
class ModuleDocFragment(object): |
| 11 |
|
| 12 |
|
| 13 |
DOCUMENTATION = r''' |
| 14 |
options: |
| 15 |
azure_active_directory_application_id_or_uri: |
| 16 |
description: |
| 17 |
- The Azure Active Directory Application Id or Uri to get the access token |
| 18 |
that will be included as the bearer token in delivery requests. Applicable |
| 19 |
only for webhook as a destination. |
| 20 |
required: false |
| 21 |
type: str |
| 22 |
azure_active_directory_tenant_id: |
| 23 |
description: |
| 24 |
- The Azure Active Directory Tenant Id to get the access token that will be |
| 25 |
included as the bearer token in delivery requests. Applicable only for |
| 26 |
webhook as a destination. |
| 27 |
required: false |
| 28 |
type: str |
| 29 |
deadletter_endpoint: |
| 30 |
description: |
| 31 |
- The Azure resource ID of an Azure Storage blob container destination where |
| 32 |
EventGrid should deadletter undeliverable events for this event subscription. |
| 33 |
required: false |
| 34 |
type: str |
| 35 |
delivery_attribute_mapping: |
| 36 |
description: |
| 37 |
- Add delivery attribute mapping to send additional information via HTTP headers |
| 38 |
when delivering events. This attribute is valid for all destination types except |
| 39 |
StorageQueue. |
| 40 |
- Format attribute-name attribute-type attribute-value [attribute-is-secret] |
| 41 |
- somename dynamic somevalue true |
| 42 |
- somename2 static somevalue |
| 43 |
type: list |
| 44 |
elements: str |
| 45 |
endpoint: |
| 46 |
description: |
| 47 |
- Endpoint where EventGrid should deliver events matching this event subscription. |
| 48 |
For webhook endpoint type, this should be the corresponding webhook URL. For |
| 49 |
other endpoint types, this should be the Azure resource identifier of the endpoint. |
| 50 |
It is expected that the destination endpoint to be already created and available |
| 51 |
for use before executing any Event Grid command. |
| 52 |
required: false |
| 53 |
type: str |
| 54 |
endpoint_type: |
| 55 |
description: |
| 56 |
- The type of the destination endpoint. |
| 57 |
type: str |
| 58 |
choices: |
| 59 |
- azurefunction |
| 60 |
- eventhub |
| 61 |
- hybridconnection |
| 62 |
- servicebusqueue |
| 63 |
- servicebustopic |
| 64 |
- storagequeue |
| 65 |
- webhook |
| 66 |
default: webhook |
| 67 |
event_delivery_schema: |
| 68 |
description: |
| 69 |
- The schema in which events should be delivered for this event subscription. |
| 70 |
By default, events will be delivered in the same schema in which they are |
| 71 |
published (based on the corresponding topic's input schema). |
| 72 |
type: str |
| 73 |
choices: |
| 74 |
- CloudEventSchemaV1_0 |
| 75 |
- CustomInputSchema |
| 76 |
- EventGridSchema |
| 77 |
event_ttl: |
| 78 |
description: |
| 79 |
- Event time to live (in minutes). Must be a number between 1 and 1440. |
| 80 |
type: int |
| 81 |
default: 1440 |
| 82 |
expiration_date: |
| 83 |
description: |
| 84 |
- Date or datetime (in UTC, e.g. '2018-11-30T11:59:59+00:00' or '2018-11-30') |
| 85 |
after which the event subscription would expire. By default, there is no expiration |
| 86 |
for the event subscription. |
| 87 |
type: str |
| 88 |
labels: |
| 89 |
description: |
| 90 |
- A list of labels to associate with this event subscription. |
| 91 |
type: list |
| 92 |
elements: str |
| 93 |
max_delivery_attempts: |
| 94 |
description: |
| 95 |
- Maximum number of delivery attempts. Must be a number between 1 and 30. |
| 96 |
type: int |
| 97 |
default: 30 |
| 98 |
max_events_per_batch: |
| 99 |
description: |
| 100 |
- Maximum number of events in a batch. Must be a number between 1 and 5000. |
| 101 |
type: int |
| 102 |
preferred_batch_size_in_kilobytes: |
| 103 |
description: |
| 104 |
- Preferred batch size in kilobytes. Must be a number between 1 and 1024. |
| 105 |
type: int |
| 106 |
storage_queue_msg_ttl: |
| 107 |
description: |
| 108 |
- Storage queue message time to live in seconds. |
| 109 |
type: int |
| 110 |
advanced_filter: |
| 111 |
description: |
| 112 |
- An advanced filter enables filtering of events based on a specific event property. |
| 113 |
- KEY[.INNERKEY] FILTEROPERATOR VALUE [VALUE ...] |
| 114 |
- Examples |
| 115 |
- data.Color StringIn Blue Red Orange Yellow |
| 116 |
- data.Color StringNotIn Blue Red Orange Yellow |
| 117 |
- subject StringContains Blue Red |
| 118 |
- subject StringNotContains Blue Red |
| 119 |
- subject StringBeginsWith Blue Red |
| 120 |
- subject StringNotBeginsWith Blue Red |
| 121 |
- subject StringEndsWith img png jpg |
| 122 |
- subject StringNotEndsWith img png jpg |
| 123 |
- data.property1 NumberIn 5 10 20 |
| 124 |
- data.property1 NumberInRange 5,10 20,30 40,50 |
| 125 |
- data.property2 NumberNotIn 100 200 300 |
| 126 |
- data.property2 NumberNotInRange 100,110 200,210 300,310 |
| 127 |
- data.property3 NumberLessThan 100 |
| 128 |
- data.property2 NumberLessThanOrEquals 100 |
| 129 |
- data.property3 NumberGreaterThan 100 |
| 130 |
- data.property2 NumberGreaterThanOrEquals 100 |
| 131 |
- data.property3 BoolEquals true |
| 132 |
- data.property3 IsNullOrUndefined |
| 133 |
- data.property3 IsNotNull |
| 134 |
type: list |
| 135 |
elements: str |
| 136 |
enable_advanced_filtering_on_arrays: |
| 137 |
description: |
| 138 |
- Allows advanced filters to be evaluated against an array of values |
| 139 |
instead of expecting a singular value. |
| 140 |
type: bool |
| 141 |
included_event_types: |
| 142 |
description: |
| 143 |
- A list of event types (e.g., Microsoft.Storage.BlobCreated and |
| 144 |
Microsoft.Storage.BlobDeleted). In order to subscribe to all default event types, |
| 145 |
do not specify any value for this argument. For event grid topics, event types are |
| 146 |
customer defined. For Azure events, e.g., Storage Accounts, IoT Hub, etc., |
| 147 |
you can query their event types using this CLI command |
| 148 |
'az eventgrid topic-type list-event-types'. |
| 149 |
type: list |
| 150 |
elements: str |
| 151 |
subject_begins_with: |
| 152 |
description: |
| 153 |
- An optional string to filter events for an event subscription based on a prefix. |
| 154 |
Wildcard characters are not supported. |
| 155 |
type: str |
| 156 |
subject_case_sensitive: |
| 157 |
description: |
| 158 |
- Specify to indicate whether the subject fields should be compared in a case sensitive |
| 159 |
manner. True if flag present. |
| 160 |
type: bool |
| 161 |
subject_ends_with: |
| 162 |
description: |
| 163 |
- An optional string to filter events for an event subscription based on a suffix. |
| 164 |
Wildcard characters are not supported. |
| 165 |
type: str |
| 166 |
''' |