|
| 1 | +# Copyright (c) 2012-2024, Mark Peek <[email protected]> |
| 2 | +# All rights reserved. |
| 3 | +# |
| 4 | +# See LICENSE file for full license. |
| 5 | +# |
| 6 | +# *** Do not modify - this file is autogenerated *** |
| 7 | + |
| 8 | + |
| 9 | +from . import AWSObject, AWSProperty, PropsDictType, Tags |
| 10 | +from .validators import boolean, double, integer |
| 11 | + |
| 12 | + |
| 13 | +class CalendarInterval(AWSProperty): |
| 14 | + """ |
| 15 | + `CalendarInterval <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html>`__ |
| 16 | + """ |
| 17 | + |
| 18 | + props: PropsDictType = { |
| 19 | + "Duration": (integer, True), |
| 20 | + "DurationUnit": (str, True), |
| 21 | + "StartTime": (integer, True), |
| 22 | + } |
| 23 | + |
| 24 | + |
| 25 | +class RollingInterval(AWSProperty): |
| 26 | + """ |
| 27 | + `RollingInterval <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-rollinginterval.html>`__ |
| 28 | + """ |
| 29 | + |
| 30 | + props: PropsDictType = { |
| 31 | + "Duration": (integer, True), |
| 32 | + "DurationUnit": (str, True), |
| 33 | + } |
| 34 | + |
| 35 | + |
| 36 | +class Interval(AWSProperty): |
| 37 | + """ |
| 38 | + `Interval <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-interval.html>`__ |
| 39 | + """ |
| 40 | + |
| 41 | + props: PropsDictType = { |
| 42 | + "CalendarInterval": (CalendarInterval, False), |
| 43 | + "RollingInterval": (RollingInterval, False), |
| 44 | + } |
| 45 | + |
| 46 | + |
| 47 | +class Goal(AWSProperty): |
| 48 | + """ |
| 49 | + `Goal <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-goal.html>`__ |
| 50 | + """ |
| 51 | + |
| 52 | + props: PropsDictType = { |
| 53 | + "AttainmentGoal": (double, False), |
| 54 | + "Interval": (Interval, False), |
| 55 | + "WarningThreshold": (double, False), |
| 56 | + } |
| 57 | + |
| 58 | + |
| 59 | +class Dimension(AWSProperty): |
| 60 | + """ |
| 61 | + `Dimension <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-dimension.html>`__ |
| 62 | + """ |
| 63 | + |
| 64 | + props: PropsDictType = { |
| 65 | + "Name": (str, True), |
| 66 | + "Value": (str, True), |
| 67 | + } |
| 68 | + |
| 69 | + |
| 70 | +class Metric(AWSProperty): |
| 71 | + """ |
| 72 | + `Metric <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metric.html>`__ |
| 73 | + """ |
| 74 | + |
| 75 | + props: PropsDictType = { |
| 76 | + "Dimensions": ([Dimension], False), |
| 77 | + "MetricName": (str, False), |
| 78 | + "Namespace": (str, False), |
| 79 | + } |
| 80 | + |
| 81 | + |
| 82 | +class MetricStat(AWSProperty): |
| 83 | + """ |
| 84 | + `MetricStat <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricstat.html>`__ |
| 85 | + """ |
| 86 | + |
| 87 | + props: PropsDictType = { |
| 88 | + "Metric": (Metric, True), |
| 89 | + "Period": (integer, True), |
| 90 | + "Stat": (str, True), |
| 91 | + "Unit": (str, False), |
| 92 | + } |
| 93 | + |
| 94 | + |
| 95 | +class MetricDataQuery(AWSProperty): |
| 96 | + """ |
| 97 | + `MetricDataQuery <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-metricdataquery.html>`__ |
| 98 | + """ |
| 99 | + |
| 100 | + props: PropsDictType = { |
| 101 | + "AccountId": (str, False), |
| 102 | + "Expression": (str, False), |
| 103 | + "Id": (str, True), |
| 104 | + "MetricStat": (MetricStat, False), |
| 105 | + "ReturnData": (boolean, False), |
| 106 | + } |
| 107 | + |
| 108 | + |
| 109 | +class MonitoredRequestCountMetric(AWSProperty): |
| 110 | + """ |
| 111 | + `MonitoredRequestCountMetric <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-monitoredrequestcountmetric.html>`__ |
| 112 | + """ |
| 113 | + |
| 114 | + props: PropsDictType = { |
| 115 | + "BadCountMetric": ([MetricDataQuery], False), |
| 116 | + "GoodCountMetric": ([MetricDataQuery], False), |
| 117 | + } |
| 118 | + |
| 119 | + |
| 120 | +class RequestBasedSliMetric(AWSProperty): |
| 121 | + """ |
| 122 | + `RequestBasedSliMetric <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedslimetric.html>`__ |
| 123 | + """ |
| 124 | + |
| 125 | + props: PropsDictType = { |
| 126 | + "KeyAttributes": (dict, False), |
| 127 | + "MetricType": (str, False), |
| 128 | + "MonitoredRequestCountMetric": (MonitoredRequestCountMetric, False), |
| 129 | + "OperationName": (str, False), |
| 130 | + "TotalRequestCountMetric": ([MetricDataQuery], False), |
| 131 | + } |
| 132 | + |
| 133 | + |
| 134 | +class RequestBasedSli(AWSProperty): |
| 135 | + """ |
| 136 | + `RequestBasedSli <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-requestbasedsli.html>`__ |
| 137 | + """ |
| 138 | + |
| 139 | + props: PropsDictType = { |
| 140 | + "ComparisonOperator": (str, False), |
| 141 | + "MetricThreshold": (double, False), |
| 142 | + "RequestBasedSliMetric": (RequestBasedSliMetric, True), |
| 143 | + } |
| 144 | + |
| 145 | + |
| 146 | +class SliMetric(AWSProperty): |
| 147 | + """ |
| 148 | + `SliMetric <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-slimetric.html>`__ |
| 149 | + """ |
| 150 | + |
| 151 | + props: PropsDictType = { |
| 152 | + "KeyAttributes": (dict, False), |
| 153 | + "MetricDataQueries": ([MetricDataQuery], False), |
| 154 | + "MetricType": (str, False), |
| 155 | + "OperationName": (str, False), |
| 156 | + "PeriodSeconds": (integer, False), |
| 157 | + "Statistic": (str, False), |
| 158 | + } |
| 159 | + |
| 160 | + |
| 161 | +class Sli(AWSProperty): |
| 162 | + """ |
| 163 | + `Sli <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-sli.html>`__ |
| 164 | + """ |
| 165 | + |
| 166 | + props: PropsDictType = { |
| 167 | + "ComparisonOperator": (str, True), |
| 168 | + "MetricThreshold": (double, True), |
| 169 | + "SliMetric": (SliMetric, True), |
| 170 | + } |
| 171 | + |
| 172 | + |
| 173 | +class ServiceLevelObjective(AWSObject): |
| 174 | + """ |
| 175 | + `ServiceLevelObjective <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationsignals-servicelevelobjective.html>`__ |
| 176 | + """ |
| 177 | + |
| 178 | + resource_type = "AWS::ApplicationSignals::ServiceLevelObjective" |
| 179 | + |
| 180 | + props: PropsDictType = { |
| 181 | + "Description": (str, False), |
| 182 | + "Goal": (Goal, False), |
| 183 | + "Name": (str, True), |
| 184 | + "RequestBasedSli": (RequestBasedSli, False), |
| 185 | + "Sli": (Sli, False), |
| 186 | + "Tags": (Tags, False), |
| 187 | + } |
0 commit comments