« blib/lib/Paws/IoTEvents/UntagResourceResponse.pm
↑ Summary
blib/lib/Paws/IoTEvents/UpdateAlarmModelResponse.pm »
| 1 | |||
| 2 | package Paws::IoTEvents::UpdateAlarmModel; | ||
| 3 | use Moose; | ||
| 4 | has AlarmCapabilities => (is => 'ro', isa => 'Paws::IoTEvents::AlarmCapabilities', traits => ['NameInRequest'], request_name => 'alarmCapabilities'); | ||
| 5 | has AlarmEventActions => (is => 'ro', isa => 'Paws::IoTEvents::AlarmEventActions', traits => ['NameInRequest'], request_name => 'alarmEventActions'); | ||
| 6 | has AlarmModelDescription => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'alarmModelDescription'); | ||
| 7 | has AlarmModelName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'alarmModelName', required => 1); | ||
| 8 | has AlarmNotification => (is => 'ro', isa => 'Paws::IoTEvents::AlarmNotification', traits => ['NameInRequest'], request_name => 'alarmNotification'); | ||
| 9 | has AlarmRule => (is => 'ro', isa => 'Paws::IoTEvents::AlarmRule', traits => ['NameInRequest'], request_name => 'alarmRule', required => 1); | ||
| 10 | has RoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleArn', required => 1); | ||
| 11 | has Severity => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'severity'); | ||
| 12 | |||
| 13 | use MooseX::ClassAttribute; | ||
| 14 | |||
| 15 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateAlarmModel'); | ||
| 16 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/alarm-models/{alarmModelName}'); | ||
| 17 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 18 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoTEvents::UpdateAlarmModelResponse'); | ||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::IoTEvents::UpdateAlarmModel - Arguments for method UpdateAlarmModel on L<Paws::IoTEvents> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method UpdateAlarmModel on the | ||
| 30 | L<AWS IoT Events|Paws::IoTEvents> service. Use the attributes of this class | ||
| 31 | as arguments to method UpdateAlarmModel. | ||
| 32 | |||
| 33 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateAlarmModel. | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $iotevents = Paws->service('IoTEvents'); | ||
| 38 | my $UpdateAlarmModelResponse = $iotevents->UpdateAlarmModel( | ||
| 39 | AlarmModelName => 'MyAlarmModelName', | ||
| 40 | AlarmRule => { | ||
| 41 | SimpleRule => { | ||
| 42 | ComparisonOperator => 'GREATER' | ||
| 43 | , # values: GREATER, GREATER_OR_EQUAL, LESS, LESS_OR_EQUAL, EQUAL, NOT_EQUAL | ||
| 44 | InputProperty => 'MyInputProperty', # min: 1, max: 512 | ||
| 45 | Threshold => 'MyThreshold', # min: 1, max: 512 | ||
| 46 | |||
| 47 | }, # OPTIONAL | ||
| 48 | }, | ||
| 49 | RoleArn => 'MyAmazonResourceName', | ||
| 50 | AlarmCapabilities => { | ||
| 51 | AcknowledgeFlow => { | ||
| 52 | Enabled => 1, | ||
| 53 | |||
| 54 | }, # OPTIONAL | ||
| 55 | InitializationConfiguration => { | ||
| 56 | DisabledOnInitialization => 1, | ||
| 57 | |||
| 58 | }, # OPTIONAL | ||
| 59 | }, # OPTIONAL | ||
| 60 | AlarmEventActions => { | ||
| 61 | AlarmActions => [ | ||
| 62 | { | ||
| 63 | DynamoDB => { | ||
| 64 | HashKeyField => 'MyDynamoKeyField', | ||
| 65 | HashKeyValue => 'MyDynamoKeyValue', | ||
| 66 | TableName => 'MyDynamoTableName', | ||
| 67 | HashKeyType => 'MyDynamoKeyType', # OPTIONAL | ||
| 68 | Operation => 'MyDynamoOperation', # OPTIONAL | ||
| 69 | Payload => { | ||
| 70 | ContentExpression => 'MyContentExpression', # min: 1 | ||
| 71 | Type => 'STRING', # values: STRING, JSON | ||
| 72 | |||
| 73 | }, # OPTIONAL | ||
| 74 | PayloadField => 'MyDynamoKeyField', | ||
| 75 | RangeKeyField => 'MyDynamoKeyField', | ||
| 76 | RangeKeyType => 'MyDynamoKeyType', # OPTIONAL | ||
| 77 | RangeKeyValue => 'MyDynamoKeyValue', | ||
| 78 | }, # OPTIONAL | ||
| 79 | DynamoDBv2 => { | ||
| 80 | TableName => 'MyDynamoTableName', | ||
| 81 | Payload => { | ||
| 82 | ContentExpression => 'MyContentExpression', # min: 1 | ||
| 83 | Type => 'STRING', # values: STRING, JSON | ||
| 84 | |||
| 85 | }, # OPTIONAL | ||
| 86 | }, # OPTIONAL | ||
| 87 | Firehose => { | ||
| 88 | DeliveryStreamName => 'MyDeliveryStreamName', | ||
| 89 | Payload => { | ||
| 90 | ContentExpression => 'MyContentExpression', # min: 1 | ||
| 91 | Type => 'STRING', # values: STRING, JSON | ||
| 92 | |||
| 93 | }, # OPTIONAL | ||
| 94 | Separator => 'MyFirehoseSeparator', # OPTIONAL | ||
| 95 | }, # OPTIONAL | ||
| 96 | IotEvents => { | ||
| 97 | InputName => 'MyInputName', # min: 1, max: 128 | ||
| 98 | Payload => { | ||
| 99 | ContentExpression => 'MyContentExpression', # min: 1 | ||
| 100 | Type => 'STRING', # values: STRING, JSON | ||
| 101 | |||
| 102 | }, # OPTIONAL | ||
| 103 | }, # OPTIONAL | ||
| 104 | IotSiteWise => { | ||
| 105 | AssetId => 'MyAssetId', # OPTIONAL | ||
| 106 | EntryId => 'MyAssetPropertyEntryId', # OPTIONAL | ||
| 107 | PropertyAlias => 'MyAssetPropertyAlias', # OPTIONAL | ||
| 108 | PropertyId => 'MyAssetPropertyId', # OPTIONAL | ||
| 109 | PropertyValue => { | ||
| 110 | Quality => 'MyAssetPropertyQuality', # OPTIONAL | ||
| 111 | Timestamp => { | ||
| 112 | TimeInSeconds => 'MyAssetPropertyTimeInSeconds', | ||
| 113 | OffsetInNanos => 'MyAssetPropertyOffsetInNanos', # OPTIONAL | ||
| 114 | }, # OPTIONAL | ||
| 115 | Value => { | ||
| 116 | BooleanValue => 'MyAssetPropertyBooleanValue', # OPTIONAL | ||
| 117 | DoubleValue => 'MyAssetPropertyDoubleValue', # OPTIONAL | ||
| 118 | IntegerValue => 'MyAssetPropertyIntegerValue', # OPTIONAL | ||
| 119 | StringValue => 'MyAssetPropertyStringValue', # OPTIONAL | ||
| 120 | }, # OPTIONAL | ||
| 121 | }, # OPTIONAL | ||
| 122 | }, # OPTIONAL | ||
| 123 | IotTopicPublish => { | ||
| 124 | MqttTopic => 'MyMQTTTopic', # min: 1, max: 128 | ||
| 125 | Payload => { | ||
| 126 | ContentExpression => 'MyContentExpression', # min: 1 | ||
| 127 | Type => 'STRING', # values: STRING, JSON | ||
| 128 | |||
| 129 | }, # OPTIONAL | ||
| 130 | }, # OPTIONAL | ||
| 131 | Lambda => { | ||
| 132 | FunctionArn => 'MyAmazonResourceName', # min: 1, max: 2048 | ||
| 133 | Payload => { | ||
| 134 | ContentExpression => 'MyContentExpression', # min: 1 | ||
| 135 | Type => 'STRING', # values: STRING, JSON | ||
| 136 | |||
| 137 | }, # OPTIONAL | ||
| 138 | }, # OPTIONAL | ||
| 139 | Sns => { | ||
| 140 | TargetArn => 'MyAmazonResourceName', # min: 1, max: 2048 | ||
| 141 | Payload => { | ||
| 142 | ContentExpression => 'MyContentExpression', # min: 1 | ||
| 143 | Type => 'STRING', # values: STRING, JSON | ||
| 144 | |||
| 145 | }, # OPTIONAL | ||
| 146 | }, # OPTIONAL | ||
| 147 | Sqs => { | ||
| 148 | QueueUrl => 'MyQueueUrl', | ||
| 149 | Payload => { | ||
| 150 | ContentExpression => 'MyContentExpression', # min: 1 | ||
| 151 | Type => 'STRING', # values: STRING, JSON | ||
| 152 | |||
| 153 | }, # OPTIONAL | ||
| 154 | UseBase64 => 1, # OPTIONAL | ||
| 155 | }, # OPTIONAL | ||
| 156 | }, | ||
| 157 | ... | ||
| 158 | ], # OPTIONAL | ||
| 159 | }, # OPTIONAL | ||
| 160 | AlarmModelDescription => 'MyAlarmModelDescription', # OPTIONAL | ||
| 161 | AlarmNotification => { | ||
| 162 | NotificationActions => [ | ||
| 163 | { | ||
| 164 | Action => { | ||
| 165 | LambdaAction => { | ||
| 166 | FunctionArn => 'MyAmazonResourceName', # min: 1, max: 2048 | ||
| 167 | Payload => { | ||
| 168 | ContentExpression => 'MyContentExpression', # min: 1 | ||
| 169 | Type => 'STRING', # values: STRING, JSON | ||
| 170 | |||
| 171 | }, # OPTIONAL | ||
| 172 | }, # OPTIONAL | ||
| 173 | }, | ||
| 174 | EmailConfigurations => [ | ||
| 175 | { | ||
| 176 | From => 'MyFromEmail', | ||
| 177 | Recipients => { | ||
| 178 | To => [ | ||
| 179 | { | ||
| 180 | SsoIdentity => { | ||
| 181 | IdentityStoreId => 'MyIdentityStoreId', | ||
| 182 | UserId => 'MySSOReferenceId', # OPTIONAL | ||
| 183 | }, # OPTIONAL | ||
| 184 | }, | ||
| 185 | ... | ||
| 186 | ], # min: 1; OPTIONAL | ||
| 187 | }, | ||
| 188 | Content => { | ||
| 189 | AdditionalMessage => | ||
| 190 | 'MyNotificationAdditionalMessage', # OPTIONAL | ||
| 191 | Subject => 'MyEmailSubject', # OPTIONAL | ||
| 192 | }, # OPTIONAL | ||
| 193 | }, | ||
| 194 | ... | ||
| 195 | ], # min: 1; OPTIONAL | ||
| 196 | SmsConfigurations => [ | ||
| 197 | { | ||
| 198 | Recipients => [ | ||
| 199 | { | ||
| 200 | SsoIdentity => { | ||
| 201 | IdentityStoreId => 'MyIdentityStoreId', | ||
| 202 | UserId => 'MySSOReferenceId', # OPTIONAL | ||
| 203 | }, # OPTIONAL | ||
| 204 | }, | ||
| 205 | ... | ||
| 206 | ], # min: 1; OPTIONAL | ||
| 207 | AdditionalMessage => | ||
| 208 | 'MyNotificationAdditionalMessage', # OPTIONAL | ||
| 209 | SenderId => 'MySMSSenderId', # OPTIONAL | ||
| 210 | }, | ||
| 211 | ... | ||
| 212 | ], # min: 1; OPTIONAL | ||
| 213 | }, | ||
| 214 | ... | ||
| 215 | ], # min: 1; OPTIONAL | ||
| 216 | }, # OPTIONAL | ||
| 217 | Severity => 1, # OPTIONAL | ||
| 218 | ); | ||
| 219 | |||
| 220 | # Results: | ||
| 221 | my $AlarmModelArn = $UpdateAlarmModelResponse->AlarmModelArn; | ||
| 222 | my $AlarmModelVersion = $UpdateAlarmModelResponse->AlarmModelVersion; | ||
| 223 | my $CreationTime = $UpdateAlarmModelResponse->CreationTime; | ||
| 224 | my $LastUpdateTime = $UpdateAlarmModelResponse->LastUpdateTime; | ||
| 225 | my $Status = $UpdateAlarmModelResponse->Status; | ||
| 226 | |||
| 227 | # Returns a L<Paws::IoTEvents::UpdateAlarmModelResponse> object. | ||
| 228 | |||
| 229 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 230 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iotevents/UpdateAlarmModel> | ||
| 231 | |||
| 232 | =head1 ATTRIBUTES | ||
| 233 | |||
| 234 | |||
| 235 | =head2 AlarmCapabilities => L<Paws::IoTEvents::AlarmCapabilities> | ||
| 236 | |||
| 237 | Contains the configuration information of alarm state changes. | ||
| 238 | |||
| 239 | |||
| 240 | |||
| 241 | =head2 AlarmEventActions => L<Paws::IoTEvents::AlarmEventActions> | ||
| 242 | |||
| 243 | Contains information about one or more alarm actions. | ||
| 244 | |||
| 245 | |||
| 246 | |||
| 247 | =head2 AlarmModelDescription => Str | ||
| 248 | |||
| 249 | The description of the alarm model. | ||
| 250 | |||
| 251 | |||
| 252 | |||
| 253 | =head2 B<REQUIRED> AlarmModelName => Str | ||
| 254 | |||
| 255 | The name of the alarm model. | ||
| 256 | |||
| 257 | |||
| 258 | |||
| 259 | =head2 AlarmNotification => L<Paws::IoTEvents::AlarmNotification> | ||
| 260 | |||
| 261 | Contains information about one or more notification actions. | ||
| 262 | |||
| 263 | |||
| 264 | |||
| 265 | =head2 B<REQUIRED> AlarmRule => L<Paws::IoTEvents::AlarmRule> | ||
| 266 | |||
| 267 | Defines when your alarm is invoked. | ||
| 268 | |||
| 269 | |||
| 270 | |||
| 271 | =head2 B<REQUIRED> RoleArn => Str | ||
| 272 | |||
| 273 | The ARN of the IAM role that allows the alarm to perform actions and | ||
| 274 | access AWS resources. For more information, see Amazon Resource Names | ||
| 275 | (ARNs) | ||
| 276 | (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) | ||
| 277 | in the I<AWS General Reference>. | ||
| 278 | |||
| 279 | |||
| 280 | |||
| 281 | =head2 Severity => Int | ||
| 282 | |||
| 283 | A non-negative integer that reflects the severity level of the alarm. | ||
| 284 | |||
| 285 | |||
| 286 | |||
| 287 | |||
| 288 | =head1 SEE ALSO | ||
| 289 | |||
| 290 | This class forms part of L<Paws>, documenting arguments for method UpdateAlarmModel in L<Paws::IoTEvents> | ||
| 291 | |||
| 292 | =head1 BUGS and CONTRIBUTIONS | ||
| 293 | |||
| 294 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 295 | |||
| 296 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 297 | |||
| 298 | =cut | ||
| 299 |