Smaws_Client_SSM.PutComplianceItemsRegisters a compliance type and other compliance details on a designated resource. This operation lets you register custom compliance details with a resource. This call overwrites existing compliance information on the resource, so you must provide a full list of compliance items each time that you send the request.
ComplianceType can be one of the following:
string.ExecutionTime. The time the patch, association, or custom compliance item was applied to the managed node.
For State Manager associations, this represents the time when compliance status was captured by the Systems Manager service during its internal compliance aggregation workflow, not necessarily when the association was executed on the managed node. State Manager updates compliance information for all associations on an instance whenever any association executes, which may result in multiple associations showing the same execution time.
approved for patches, or Failed for associations.Critical.AWS-RunPatchBaseline.security updates.Critical.InstancesWithFailedPatches.yyyy-MM-dd'T'HH:mm:ss'Z'val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ComplianceTypeCountLimitExceededException of
Types.compliance_type_count_limit_exceeded_exception
| `InternalServerError of Types.internal_server_error
| `InvalidItemContentException of Types.invalid_item_content_exception
| `InvalidResourceId of Types.invalid_resource_id
| `InvalidResourceType of Types.invalid_resource_type
| `ItemSizeLimitExceededException of Types.item_size_limit_exceeded_exception
| `TotalSizeLimitExceededException of
Types.total_size_limit_exceeded_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.put_compliance_items_request ->
(Types.put_compliance_items_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `ComplianceTypeCountLimitExceededException of
Types.compliance_type_count_limit_exceeded_exception
| `InternalServerError of Types.internal_server_error
| `InvalidItemContentException of Types.invalid_item_content_exception
| `InvalidResourceId of Types.invalid_resource_id
| `InvalidResourceType of Types.invalid_resource_type
| `ItemSizeLimitExceededException of
Types.item_size_limit_exceeded_exception
| `TotalSizeLimitExceededException of
Types.total_size_limit_exceeded_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.put_compliance_items_request ->
(Types.put_compliance_items_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ComplianceTypeCountLimitExceededException of
Types.compliance_type_count_limit_exceeded_exception
| `InternalServerError of Types.internal_server_error
| `InvalidItemContentException of Types.invalid_item_content_exception
| `InvalidResourceId of Types.invalid_resource_id
| `InvalidResourceType of Types.invalid_resource_type
| `ItemSizeLimitExceededException of
Types.item_size_limit_exceeded_exception
| `TotalSizeLimitExceededException of
Types.total_size_limit_exceeded_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result