Skip to content

SSMClient.put_compliance_items

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): Registers 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: ExecutionId: The execution ID when...

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
    ComplianceExecutionSummary,
    ComplianceItemEntry,
    ComplianceUploadType,
    PutComplianceItemsOutput,
)

Signature

async def put_compliance_items(
    *,
    resource_id: str,
    resource_type: str,
    compliance_type: str,
    execution_summary: ComplianceExecutionSummary,
    items: Sequence[ComplianceItemEntry],
    item_content_hash: str | None = None,
    upload_type: ComplianceUploadType | None = None,
) -> PutComplianceItemsOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
resource_id Yes Specify an ID for this resource. For a managed node, this is the node ID.
resource_type Yes Specify the type of resource. ManagedInstance is currently the only supported resource type.
compliance_type Yes Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom: string .
execution_summary Yes A summary of the call execution that includes an execution ID, the type of execution (for example, Command ), and the date/time of the execution using a datetime object that is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'
items Yes Information about the compliance as defined by the resource type. For example, for a patch compliance type, Items includes information about the PatchSeverity, Classification, and so on.
item_content_hash No MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.
upload_type No The mode for uploading compliance items. You can specify COMPLETE or PARTIAL . In COMPLETE mode, the system overwrites all existing compliance information for the resource. You must provide a full list of compliance items each time you send the request. In PARTIAL mode, the system overwrites compliance information for a specific association. The association must be configured with...

Output

PutComplianceItemsOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

No fields.

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ComplianceExecutionSummary, ComplianceItemEntry, ComplianceUploadType, PutComplianceItemsOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_ssm.exceptions:

ComplianceTypeCountLimitExceededError, InternalServerError, InvalidItemContentError, InvalidResourceIdError, InvalidResourceTypeError, ItemSizeLimitExceededError, TotalSizeLimitExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model