| 1 | |||
| 2 | package Paws::SSM::PutComplianceItems; | ||
| 3 | use Moose; | ||
| 4 | has ComplianceType => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has ExecutionSummary => (is => 'ro', isa => 'Paws::SSM::ComplianceExecutionSummary', required => 1); | ||
| 6 | has ItemContentHash => (is => 'ro', isa => 'Str'); | ||
| 7 | has Items => (is => 'ro', isa => 'ArrayRef[Paws::SSM::ComplianceItemEntry]', required => 1); | ||
| 8 | has ResourceId => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | has ResourceType => (is => 'ro', isa => 'Str', required => 1); | ||
| 10 | has UploadType => (is => 'ro', isa => 'Str'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutComplianceItems'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::PutComplianceItemsResult'); | ||
| 16 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::SSM::PutComplianceItems - Arguments for method PutComplianceItems on L<Paws::SSM> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method PutComplianceItems on the | ||
| 28 | L<Amazon Simple Systems Manager (SSM)|Paws::SSM> service. Use the attributes of this class | ||
| 29 | as arguments to method PutComplianceItems. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutComplianceItems. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $ssm = Paws->service('SSM'); | ||
| 36 | my $PutComplianceItemsResult = $ssm->PutComplianceItems( | ||
| 37 | ComplianceType => 'MyComplianceTypeName', | ||
| 38 | ExecutionSummary => { | ||
| 39 | ExecutionTime => '1970-01-01T01:00:00', | ||
| 40 | ExecutionId => 'MyComplianceExecutionId', # max: 100; OPTIONAL | ||
| 41 | ExecutionType => 'MyComplianceExecutionType', # max: 50; OPTIONAL | ||
| 42 | }, | ||
| 43 | Items => [ | ||
| 44 | { | ||
| 45 | Severity => 'CRITICAL' | ||
| 46 | , # values: CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED | ||
| 47 | Status => 'COMPLIANT', # values: COMPLIANT, NON_COMPLIANT | ||
| 48 | Details => { | ||
| 49 | 'MyAttributeName' => | ||
| 50 | 'MyAttributeValue', # key: min: 1, max: 64, value: max: 4096 | ||
| 51 | }, # OPTIONAL | ||
| 52 | Id => 'MyComplianceItemId', # OPTIONAL | ||
| 53 | Title => 'MyComplianceItemTitle', # max: 500; OPTIONAL | ||
| 54 | }, | ||
| 55 | ... | ||
| 56 | ], | ||
| 57 | ResourceId => 'MyComplianceResourceId', | ||
| 58 | ResourceType => 'MyComplianceResourceType', | ||
| 59 | ItemContentHash => 'MyComplianceItemContentHash', # OPTIONAL | ||
| 60 | UploadType => 'COMPLETE', # OPTIONAL | ||
| 61 | ); | ||
| 62 | |||
| 63 | 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. | ||
| 64 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm/PutComplianceItems> | ||
| 65 | |||
| 66 | =head1 ATTRIBUTES | ||
| 67 | |||
| 68 | |||
| 69 | =head2 B<REQUIRED> ComplianceType => Str | ||
| 70 | |||
| 71 | Specify the compliance type. For example, specify Association (for a | ||
| 72 | State Manager association), Patch, or Custom:C<string>. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 B<REQUIRED> ExecutionSummary => L<Paws::SSM::ComplianceExecutionSummary> | ||
| 77 | |||
| 78 | A summary of the call execution that includes an execution ID, the type | ||
| 79 | of execution (for example, C<Command>), and the date/time of the | ||
| 80 | execution using a datetime object that is saved in the following | ||
| 81 | format: yyyy-MM-dd'T'HH:mm:ss'Z'. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head2 ItemContentHash => Str | ||
| 86 | |||
| 87 | MD5 or SHA-256 content hash. The content hash is used to determine if | ||
| 88 | existing information should be overwritten or ignored. If the content | ||
| 89 | hashes match, the request to put compliance information is ignored. | ||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head2 B<REQUIRED> Items => ArrayRef[L<Paws::SSM::ComplianceItemEntry>] | ||
| 94 | |||
| 95 | Information about the compliance as defined by the resource type. For | ||
| 96 | example, for a patch compliance type, C<Items> includes information | ||
| 97 | about the PatchSeverity, Classification, and so on. | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | =head2 B<REQUIRED> ResourceId => Str | ||
| 102 | |||
| 103 | Specify an ID for this resource. For a managed instance, this is the | ||
| 104 | instance ID. | ||
| 105 | |||
| 106 | |||
| 107 | |||
| 108 | =head2 B<REQUIRED> ResourceType => Str | ||
| 109 | |||
| 110 | Specify the type of resource. C<ManagedInstance> is currently the only | ||
| 111 | supported resource type. | ||
| 112 | |||
| 113 | |||
| 114 | |||
| 115 | =head2 UploadType => Str | ||
| 116 | |||
| 117 | The mode for uploading compliance items. You can specify C<COMPLETE> or | ||
| 118 | C<PARTIAL>. In C<COMPLETE> mode, the system overwrites all existing | ||
| 119 | compliance information for the resource. You must provide a full list | ||
| 120 | of compliance items each time you send the request. | ||
| 121 | |||
| 122 | In C<PARTIAL> mode, the system overwrites compliance information for a | ||
| 123 | specific association. The association must be configured with | ||
| 124 | C<SyncCompliance> set to C<MANUAL>. By default, all requests use | ||
| 125 | C<COMPLETE> mode. | ||
| 126 | |||
| 127 | This attribute is only valid for association compliance. | ||
| 128 | |||
| 129 | Valid values are: C<"COMPLETE">, C<"PARTIAL"> | ||
| 130 | |||
| 131 | |||
| 132 | =head1 SEE ALSO | ||
| 133 | |||
| 134 | This class forms part of L<Paws>, documenting arguments for method PutComplianceItems in L<Paws::SSM> | ||
| 135 | |||
| 136 | =head1 BUGS and CONTRIBUTIONS | ||
| 137 | |||
| 138 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 139 | |||
| 140 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 141 | |||
| 142 | =cut | ||
| 143 |