| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::IoT::CloudwatchMetricAction; | ||
| 3 | use Moose; | ||
| 4 | has MetricName => (is => 'ro', isa => 'Str', request_name => 'metricName', traits => ['NameInRequest'], required => 1); | ||
| 5 | has MetricNamespace => (is => 'ro', isa => 'Str', request_name => 'metricNamespace', traits => ['NameInRequest'], required => 1); | ||
| 6 | has MetricTimestamp => (is => 'ro', isa => 'Str', request_name => 'metricTimestamp', traits => ['NameInRequest']); | ||
| 7 | has MetricUnit => (is => 'ro', isa => 'Str', request_name => 'metricUnit', traits => ['NameInRequest'], required => 1); | ||
| 8 | has MetricValue => (is => 'ro', isa => 'Str', request_name => 'metricValue', traits => ['NameInRequest'], required => 1); | ||
| 9 | has RoleArn => (is => 'ro', isa => 'Str', request_name => 'roleArn', traits => ['NameInRequest'], required => 1); | ||
| 10 | |||
| 11 | 1; | ||
| 12 | |||
| 13 | ### main pod documentation begin ### | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Paws::IoT::CloudwatchMetricAction | ||
| 18 | |||
| 19 | =head1 USAGE | ||
| 20 | |||
| 21 | This class represents one of two things: | ||
| 22 | |||
| 23 | =head3 Arguments in a call to a service | ||
| 24 | |||
| 25 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 26 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 27 | |||
| 28 | As an example, if Att1 is expected to be a Paws::IoT::CloudwatchMetricAction object: | ||
| 29 | |||
| 30 | $service_obj->Method(Att1 => { MetricName => $value, ..., RoleArn => $value }); | ||
| 31 | |||
| 32 | =head3 Results returned from an API call | ||
| 33 | |||
| 34 | Use accessors for each attribute. If Att1 is expected to be an Paws::IoT::CloudwatchMetricAction object: | ||
| 35 | |||
| 36 | $result = $service_obj->Method(...); | ||
| 37 | $result->Att1->MetricName | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | Describes an action that captures a CloudWatch metric. | ||
| 42 | |||
| 43 | =head1 ATTRIBUTES | ||
| 44 | |||
| 45 | |||
| 46 | =head2 B<REQUIRED> MetricName => Str | ||
| 47 | |||
| 48 | The CloudWatch metric name. | ||
| 49 | |||
| 50 | |||
| 51 | =head2 B<REQUIRED> MetricNamespace => Str | ||
| 52 | |||
| 53 | The CloudWatch metric namespace name. | ||
| 54 | |||
| 55 | |||
| 56 | =head2 MetricTimestamp => Str | ||
| 57 | |||
| 58 | An optional Unix timestamp | ||
| 59 | (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). | ||
| 60 | |||
| 61 | |||
| 62 | =head2 B<REQUIRED> MetricUnit => Str | ||
| 63 | |||
| 64 | The metric unit | ||
| 65 | (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) | ||
| 66 | supported by CloudWatch. | ||
| 67 | |||
| 68 | |||
| 69 | =head2 B<REQUIRED> MetricValue => Str | ||
| 70 | |||
| 71 | The CloudWatch metric value. | ||
| 72 | |||
| 73 | |||
| 74 | =head2 B<REQUIRED> RoleArn => Str | ||
| 75 | |||
| 76 | The IAM role that allows access to the CloudWatch metric. | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head1 SEE ALSO | ||
| 81 | |||
| 82 | This class forms part of L<Paws>, describing an object used in L<Paws::IoT> | ||
| 83 | |||
| 84 | =head1 BUGS and CONTRIBUTIONS | ||
| 85 | |||
| 86 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 87 | |||
| 88 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 89 | |||
| 90 | =cut | ||
| 91 |