« blib/lib/Paws/IoT/CreateRoleAliasResponse.pm
↑ Summary
blib/lib/Paws/IoT/CreateScheduledAuditResponse.pm »
| 1 | |||
| 2 | package Paws::IoT::CreateScheduledAudit; | ||
| 3 | use Moose; | ||
| 4 | has DayOfMonth => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'dayOfMonth'); | ||
| 5 | has DayOfWeek => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'dayOfWeek'); | ||
| 6 | has Frequency => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'frequency', required => 1); | ||
| 7 | has ScheduledAuditName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'scheduledAuditName', required => 1); | ||
| 8 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IoT::Tag]', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 9 | has TargetCheckNames => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'targetCheckNames', required => 1); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateScheduledAudit'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/audit/scheduledaudits/{scheduledAuditName}'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::CreateScheduledAuditResponse'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::IoT::CreateScheduledAudit - Arguments for method CreateScheduledAudit on L<Paws::IoT> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateScheduledAudit on the | ||
| 28 | L<AWS IoT|Paws::IoT> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateScheduledAudit. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateScheduledAudit. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $iot = Paws->service('IoT'); | ||
| 36 | my $CreateScheduledAuditResponse = $iot->CreateScheduledAudit( | ||
| 37 | Frequency => 'DAILY', | ||
| 38 | ScheduledAuditName => 'MyScheduledAuditName', | ||
| 39 | TargetCheckNames => [ 'MyAuditCheckName', ... ], | ||
| 40 | DayOfMonth => 'MyDayOfMonth', # OPTIONAL | ||
| 41 | DayOfWeek => 'SUN', # OPTIONAL | ||
| 42 | Tags => [ | ||
| 43 | { | ||
| 44 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 45 | Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL | ||
| 46 | }, | ||
| 47 | ... | ||
| 48 | ], # OPTIONAL | ||
| 49 | ); | ||
| 50 | |||
| 51 | # Results: | ||
| 52 | my $ScheduledAuditArn = $CreateScheduledAuditResponse->ScheduledAuditArn; | ||
| 53 | |||
| 54 | # Returns a L<Paws::IoT::CreateScheduledAuditResponse> object. | ||
| 55 | |||
| 56 | 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. | ||
| 57 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/CreateScheduledAudit> | ||
| 58 | |||
| 59 | =head1 ATTRIBUTES | ||
| 60 | |||
| 61 | |||
| 62 | =head2 DayOfMonth => Str | ||
| 63 | |||
| 64 | The day of the month on which the scheduled audit takes place. This can | ||
| 65 | be "1" through "31" or "LAST". This field is required if the | ||
| 66 | "frequency" parameter is set to C<MONTHLY>. If days 29 to 31 are | ||
| 67 | specified, and the month doesn't have that many days, the audit takes | ||
| 68 | place on the C<LAST> day of the month. | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 DayOfWeek => Str | ||
| 73 | |||
| 74 | The day of the week on which the scheduled audit takes place, either | ||
| 75 | C<SUN>, C<MON>, C<TUE>, C<WED>, C<THU>, C<FRI>, or C<SAT>. This field | ||
| 76 | is required if the C<frequency> parameter is set to C<WEEKLY> or | ||
| 77 | C<BIWEEKLY>. | ||
| 78 | |||
| 79 | Valid values are: C<"SUN">, C<"MON">, C<"TUE">, C<"WED">, C<"THU">, C<"FRI">, C<"SAT"> | ||
| 80 | |||
| 81 | =head2 B<REQUIRED> Frequency => Str | ||
| 82 | |||
| 83 | How often the scheduled audit takes place, either C<DAILY>, C<WEEKLY>, | ||
| 84 | C<BIWEEKLY> or C<MONTHLY>. The start time of each audit is determined | ||
| 85 | by the system. | ||
| 86 | |||
| 87 | Valid values are: C<"DAILY">, C<"WEEKLY">, C<"BIWEEKLY">, C<"MONTHLY"> | ||
| 88 | |||
| 89 | =head2 B<REQUIRED> ScheduledAuditName => Str | ||
| 90 | |||
| 91 | The name you want to give to the scheduled audit. (Max. 128 chars) | ||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | =head2 Tags => ArrayRef[L<Paws::IoT::Tag>] | ||
| 96 | |||
| 97 | Metadata that can be used to manage the scheduled audit. | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | =head2 B<REQUIRED> TargetCheckNames => ArrayRef[Str|Undef] | ||
| 102 | |||
| 103 | Which checks are performed during the scheduled audit. Checks must be | ||
| 104 | enabled for your account. (Use C<DescribeAccountAuditConfiguration> to | ||
| 105 | see the list of all checks, including those that are enabled or use | ||
| 106 | C<UpdateAccountAuditConfiguration> to select which checks are enabled.) | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | =head1 SEE ALSO | ||
| 112 | |||
| 113 | This class forms part of L<Paws>, documenting arguments for method CreateScheduledAudit in L<Paws::IoT> | ||
| 114 | |||
| 115 | =head1 BUGS and CONTRIBUTIONS | ||
| 116 | |||
| 117 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 118 | |||
| 119 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 120 | |||
| 121 | =cut | ||
| 122 |