@Generated(value="software.amazon.awssdk:codegen") public final class InstancePatchState extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstancePatchState.Builder,InstancePatchState>
Defines the high-level patch compliance state for a managed instance, providing information about the number of installed, missing, not applicable, and failed patches along with metadata about the operation when this information was gathered for the instance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstancePatchState.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
baselineId()
The ID of the patch baseline used to patch the instance.
|
static InstancePatchState.Builder |
builder() |
Integer |
criticalNonCompliantCount()
The number of instances where patches that are specified as "Critical" for compliance reporting in the patch
baseline are not installed.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Integer |
failedCount()
The number of patches from the patch baseline that were attempted to be installed during the last patching
operation, but failed to install.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
installedCount()
The number of patches from the patch baseline that are installed on the instance.
|
Integer |
installedOtherCount()
The number of patches not specified in the patch baseline that are installed on the instance.
|
Integer |
installedPendingRebootCount()
The number of patches installed by Patch Manager since the last time the instance was rebooted.
|
Integer |
installedRejectedCount()
The number of patches installed on an instance that are specified in a
RejectedPatches list. |
String |
installOverrideList()
An https URL or an Amazon S3 path-style URL to a list of patches to be installed.
|
String |
instanceId()
The ID of the managed instance the high-level patch compliance information was collected for.
|
Instant |
lastNoRebootInstallOperationTime()
The time of the last attempt to patch the instance with
NoReboot specified as the reboot option. |
Integer |
missingCount()
The number of patches from the patch baseline that are applicable for the instance but aren't currently
installed.
|
Integer |
notApplicableCount()
The number of patches from the patch baseline that aren't applicable for the instance and therefore aren't
installed on the instance.
|
PatchOperationType |
operation()
The type of patching operation that was performed:
SCAN (assess patch compliance state) or
INSTALL (install missing patches). |
String |
operationAsString()
The type of patching operation that was performed:
SCAN (assess patch compliance state) or
INSTALL (install missing patches). |
Instant |
operationEndTime()
The time the most recent patching operation completed on the instance.
|
Instant |
operationStartTime()
The time the most recent patching operation was started on the instance.
|
Integer |
otherNonCompliantCount()
The number of instances with patches installed that are specified as other than "Critical" or "Security" but are
not compliant with the patch baseline.
|
String |
ownerInformation()
Placeholder information.
|
String |
patchGroup()
The name of the patch group the managed instance belongs to.
|
RebootOption |
rebootOption()
Indicates the reboot option specified in the patch baseline.
|
String |
rebootOptionAsString()
Indicates the reboot option specified in the patch baseline.
|
List<SdkField<?>> |
sdkFields() |
Integer |
securityNonCompliantCount()
The number of instances where patches that are specified as "Security" in a patch advisory are not installed.
|
static Class<? extends InstancePatchState.Builder> |
serializableBuilderClass() |
String |
snapshotId()
The ID of the patch baseline snapshot used during the patching operation when this compliance data was collected.
|
InstancePatchState.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
unreportedNotApplicableCount()
The number of patches beyond the supported limit of
NotApplicableCount that are not reported by name
to Systems Manager Inventory. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String instanceId()
The ID of the managed instance the high-level patch compliance information was collected for.
public final String patchGroup()
The name of the patch group the managed instance belongs to.
public final String baselineId()
The ID of the patch baseline used to patch the instance.
public final String snapshotId()
The ID of the patch baseline snapshot used during the patching operation when this compliance data was collected.
public final String installOverrideList()
An https URL or an Amazon S3 path-style URL to a list of patches to be installed. This patch installation list,
which you maintain in an S3 bucket in YAML format and specify in the SSM document
AWS-RunPatchBaseline, overrides the patches specified by the default patch baseline.
For more information about the InstallOverrideList parameter, see About the SSM document AWS-RunPatchBaseline in the AWS Systems Manager User Guide.
AWS-RunPatchBaseline, overrides the patches specified by the default patch baseline.
For more information about the InstallOverrideList parameter, see About the SSM document AWS-RunPatchBaseline in the AWS Systems Manager User Guide.
public final String ownerInformation()
Placeholder information. This field will always be empty in the current release of the service.
public final Integer installedCount()
The number of patches from the patch baseline that are installed on the instance.
public final Integer installedOtherCount()
The number of patches not specified in the patch baseline that are installed on the instance.
public final Integer installedPendingRebootCount()
The number of patches installed by Patch Manager since the last time the instance was rebooted.
public final Integer installedRejectedCount()
The number of patches installed on an instance that are specified in a RejectedPatches list. Patches
with a status of InstalledRejected were typically installed before they were added to a
RejectedPatches list.
If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, the value of
InstalledRejectedCount will always be 0 (zero).
RejectedPatches list.
Patches with a status of InstalledRejected were typically installed before they were added to a
RejectedPatches list.
If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, the
value of InstalledRejectedCount will always be 0 (zero).
public final Integer missingCount()
The number of patches from the patch baseline that are applicable for the instance but aren't currently installed.
public final Integer failedCount()
The number of patches from the patch baseline that were attempted to be installed during the last patching operation, but failed to install.
public final Integer unreportedNotApplicableCount()
The number of patches beyond the supported limit of NotApplicableCount that are not reported by name
to Systems Manager Inventory.
NotApplicableCount that are not reported
by name to Systems Manager Inventory.public final Integer notApplicableCount()
The number of patches from the patch baseline that aren't applicable for the instance and therefore aren't
installed on the instance. This number may be truncated if the list of patch names is very large. The number of
patches beyond this limit are reported in UnreportedNotApplicableCount.
UnreportedNotApplicableCount.public final Instant operationStartTime()
The time the most recent patching operation was started on the instance.
public final Instant operationEndTime()
The time the most recent patching operation completed on the instance.
public final PatchOperationType operation()
The type of patching operation that was performed: SCAN (assess patch compliance state) or
INSTALL (install missing patches).
If the service returns an enum value that is not available in the current SDK version, operation will
return PatchOperationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
operationAsString().
SCAN (assess patch compliance state) or
INSTALL (install missing patches).PatchOperationTypepublic final String operationAsString()
The type of patching operation that was performed: SCAN (assess patch compliance state) or
INSTALL (install missing patches).
If the service returns an enum value that is not available in the current SDK version, operation will
return PatchOperationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
operationAsString().
SCAN (assess patch compliance state) or
INSTALL (install missing patches).PatchOperationTypepublic final Instant lastNoRebootInstallOperationTime()
The time of the last attempt to patch the instance with NoReboot specified as the reboot option.
NoReboot specified as the reboot
option.public final RebootOption rebootOption()
Indicates the reboot option specified in the patch baseline.
Reboot options apply to Install operations only. Reboots are not attempted for Patch Manager
Scan operations.
RebootIfNeeded: Patch Manager tries to reboot the instance if it installed any patches, or if any patches
are detected with a status of InstalledPendingReboot.
NoReboot: Patch Manager attempts to install missing packages without trying to reboot the system. Patches
installed with this option are assigned a status of InstalledPendingReboot. These patches might not
be in effect until a reboot is performed.
If the service returns an enum value that is not available in the current SDK version, rebootOption will
return RebootOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
rebootOptionAsString().
Reboot options apply to Install operations only. Reboots are not attempted for Patch Manager
Scan operations.
RebootIfNeeded: Patch Manager tries to reboot the instance if it installed any patches, or if any
patches are detected with a status of InstalledPendingReboot.
NoReboot: Patch Manager attempts to install missing packages without trying to reboot the system.
Patches installed with this option are assigned a status of InstalledPendingReboot. These
patches might not be in effect until a reboot is performed.
RebootOptionpublic final String rebootOptionAsString()
Indicates the reboot option specified in the patch baseline.
Reboot options apply to Install operations only. Reboots are not attempted for Patch Manager
Scan operations.
RebootIfNeeded: Patch Manager tries to reboot the instance if it installed any patches, or if any patches
are detected with a status of InstalledPendingReboot.
NoReboot: Patch Manager attempts to install missing packages without trying to reboot the system. Patches
installed with this option are assigned a status of InstalledPendingReboot. These patches might not
be in effect until a reboot is performed.
If the service returns an enum value that is not available in the current SDK version, rebootOption will
return RebootOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
rebootOptionAsString().
Reboot options apply to Install operations only. Reboots are not attempted for Patch Manager
Scan operations.
RebootIfNeeded: Patch Manager tries to reboot the instance if it installed any patches, or if any
patches are detected with a status of InstalledPendingReboot.
NoReboot: Patch Manager attempts to install missing packages without trying to reboot the system.
Patches installed with this option are assigned a status of InstalledPendingReboot. These
patches might not be in effect until a reboot is performed.
RebootOptionpublic final Integer criticalNonCompliantCount()
The number of instances where patches that are specified as "Critical" for compliance reporting in the patch
baseline are not installed. These patches might be missing, have failed installation, were rejected, or were
installed but awaiting a required instance reboot. The status of these instances is NON_COMPLIANT.
NON_COMPLIANT.public final Integer securityNonCompliantCount()
The number of instances where patches that are specified as "Security" in a patch advisory are not installed.
These patches might be missing, have failed installation, were rejected, or were installed but awaiting a
required instance reboot. The status of these instances is NON_COMPLIANT.
NON_COMPLIANT.public final Integer otherNonCompliantCount()
The number of instances with patches installed that are specified as other than "Critical" or "Security" but are not compliant with the patch baseline. The status of these instances is NON_COMPLIANT.
public InstancePatchState.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InstancePatchState.Builder,InstancePatchState>public static InstancePatchState.Builder builder()
public static Class<? extends InstancePatchState.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.