Class InstancePatchState
- java.lang.Object
-
- software.amazon.awssdk.services.ssm.model.InstancePatchState
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<InstancePatchState.Builder,InstancePatchState>
@Generated("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 node, 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 managed node.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
InstancePatchState.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
baselineId()
The ID of the patch baseline used to patch the managed node.static InstancePatchState.Builder
builder()
Integer
criticalNonCompliantCount()
The number of patches per node that are specified asCritical
for compliance reporting in the patch baseline aren't 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 managed node.Integer
installedOtherCount()
The number of patches not specified in the patch baseline that are installed on the managed node.Integer
installedPendingRebootCount()
The number of patches installed by Patch Manager since the last time the managed node was rebooted.Integer
installedRejectedCount()
The number of patches installed on a managed node that are specified in aRejectedPatches
list.String
installOverrideList()
An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list of patches to be installed.String
instanceId()
The ID of the managed node the high-level patch compliance information was collected for.Instant
lastNoRebootInstallOperationTime()
The time of the last attempt to patch the managed node withNoReboot
specified as the reboot option.Integer
missingCount()
The number of patches from the patch baseline that are applicable for the managed node but aren't currently installed.Integer
notApplicableCount()
The number of patches from the patch baseline that aren't applicable for the managed node and therefore aren't installed on the node.PatchOperationType
operation()
The type of patching operation that was performed: orString
operationAsString()
The type of patching operation that was performed: orInstant
operationEndTime()
The time the most recent patching operation completed on the managed node.Instant
operationStartTime()
The time the most recent patching operation was started on the managed node.Integer
otherNonCompliantCount()
The number of patches per node that are specified as other thanCritical
orSecurity
but aren't compliant with the patch baseline.String
ownerInformation()
Placeholder information.String
patchGroup()
The name of the patch group the managed node 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 patches per node that are specified asSecurity
in a patch advisory aren't 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 ofNotApplicableCount
that aren't reported by name to Inventory.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
instanceId
public final String instanceId()
The ID of the managed node the high-level patch compliance information was collected for.
- Returns:
- The ID of the managed node the high-level patch compliance information was collected for.
-
patchGroup
public final String patchGroup()
The name of the patch group the managed node belongs to.
- Returns:
- The name of the patch group the managed node belongs to.
-
baselineId
public final String baselineId()
The ID of the patch baseline used to patch the managed node.
- Returns:
- The ID of the patch baseline used to patch the managed node.
-
snapshotId
public final String snapshotId()
The ID of the patch baseline snapshot used during the patching operation when this compliance data was collected.
- Returns:
- The ID of the patch baseline snapshot used during the patching operation when this compliance data was collected.
-
installOverrideList
public final String installOverrideList()
An https URL or an Amazon Simple Storage Service (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 theAWS-RunPatchBaseline SSM document
in the Amazon Web Services Systems Manager User Guide.- Returns:
- An https URL or an Amazon Simple Storage Service (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 theAWS-RunPatchBaseline SSM document
in the Amazon Web Services Systems Manager User Guide.
-
ownerInformation
public final String ownerInformation()
Placeholder information. This field will always be empty in the current release of the service.
- Returns:
- Placeholder information. This field will always be empty in the current release of the service.
-
installedCount
public final Integer installedCount()
The number of patches from the patch baseline that are installed on the managed node.
- Returns:
- The number of patches from the patch baseline that are installed on the managed node.
-
installedOtherCount
public final Integer installedOtherCount()
The number of patches not specified in the patch baseline that are installed on the managed node.
- Returns:
- The number of patches not specified in the patch baseline that are installed on the managed node.
-
installedPendingRebootCount
public final Integer installedPendingRebootCount()
The number of patches installed by Patch Manager since the last time the managed node was rebooted.
- Returns:
- The number of patches installed by Patch Manager since the last time the managed node was rebooted.
-
installedRejectedCount
public final Integer installedRejectedCount()
The number of patches installed on a managed node that are specified in a
RejectedPatches
list. Patches with a status ofInstalledRejected
were typically installed before they were added to aRejectedPatches
list.If
ALLOW_AS_DEPENDENCY
is the specified option forRejectedPatchesAction
, the value ofInstalledRejectedCount
will always be0
(zero).- Returns:
- The number of patches installed on a managed node that are specified in a
RejectedPatches
list. Patches with a status ofInstalledRejected
were typically installed before they were added to aRejectedPatches
list.If
ALLOW_AS_DEPENDENCY
is the specified option forRejectedPatchesAction
, the value ofInstalledRejectedCount
will always be0
(zero).
-
missingCount
public final Integer missingCount()
The number of patches from the patch baseline that are applicable for the managed node but aren't currently installed.
- Returns:
- The number of patches from the patch baseline that are applicable for the managed node but aren't currently installed.
-
failedCount
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.
- Returns:
- The number of patches from the patch baseline that were attempted to be installed during the last patching operation, but failed to install.
-
unreportedNotApplicableCount
public final Integer unreportedNotApplicableCount()
The number of patches beyond the supported limit of
NotApplicableCount
that aren't reported by name to Inventory. Inventory is a capability of Amazon Web Services Systems Manager.- Returns:
- The number of patches beyond the supported limit of
NotApplicableCount
that aren't reported by name to Inventory. Inventory is a capability of Amazon Web Services Systems Manager.
-
notApplicableCount
public final Integer notApplicableCount()
The number of patches from the patch baseline that aren't applicable for the managed node and therefore aren't installed on the node. 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
.- Returns:
- The number of patches from the patch baseline that aren't applicable for the managed node and therefore
aren't installed on the node. 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
.
-
operationStartTime
public final Instant operationStartTime()
The time the most recent patching operation was started on the managed node.
- Returns:
- The time the most recent patching operation was started on the managed node.
-
operationEndTime
public final Instant operationEndTime()
The time the most recent patching operation completed on the managed node.
- Returns:
- The time the most recent patching operation completed on the managed node.
-
operation
public final PatchOperationType operation()
The type of patching operation that was performed: or
-
SCAN
assesses the patch compliance state. -
INSTALL
installs missing patches.
If the service returns an enum value that is not available in the current SDK version,
operation
will returnPatchOperationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromoperationAsString()
.- Returns:
- The type of patching operation that was performed: or
-
SCAN
assesses the patch compliance state. -
INSTALL
installs missing patches.
-
- See Also:
PatchOperationType
-
-
operationAsString
public final String operationAsString()
The type of patching operation that was performed: or
-
SCAN
assesses the patch compliance state. -
INSTALL
installs missing patches.
If the service returns an enum value that is not available in the current SDK version,
operation
will returnPatchOperationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromoperationAsString()
.- Returns:
- The type of patching operation that was performed: or
-
SCAN
assesses the patch compliance state. -
INSTALL
installs missing patches.
-
- See Also:
PatchOperationType
-
-
lastNoRebootInstallOperationTime
public final Instant lastNoRebootInstallOperationTime()
The time of the last attempt to patch the managed node with
NoReboot
specified as the reboot option.- Returns:
- The time of the last attempt to patch the managed node with
NoReboot
specified as the reboot option.
-
rebootOption
public final RebootOption rebootOption()
Indicates the reboot option specified in the patch baseline.
Reboot options apply to
Install
operations only. Reboots aren't attempted for Patch ManagerScan
operations.-
RebootIfNeeded
: Patch Manager tries to reboot the managed node if it installed any patches, or if any patches are detected with a status ofInstalledPendingReboot
. -
NoReboot
: Patch Manager attempts to install missing packages without trying to reboot the system. Patches installed with this option are assigned a status ofInstalledPendingReboot
. 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 returnRebootOption.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromrebootOptionAsString()
.- Returns:
- Indicates the reboot option specified in the patch baseline.
Reboot options apply to
Install
operations only. Reboots aren't attempted for Patch ManagerScan
operations.-
RebootIfNeeded
: Patch Manager tries to reboot the managed node if it installed any patches, or if any patches are detected with a status ofInstalledPendingReboot
. -
NoReboot
: Patch Manager attempts to install missing packages without trying to reboot the system. Patches installed with this option are assigned a status ofInstalledPendingReboot
. These patches might not be in effect until a reboot is performed.
-
- See Also:
RebootOption
-
-
rebootOptionAsString
public final String rebootOptionAsString()
Indicates the reboot option specified in the patch baseline.
Reboot options apply to
Install
operations only. Reboots aren't attempted for Patch ManagerScan
operations.-
RebootIfNeeded
: Patch Manager tries to reboot the managed node if it installed any patches, or if any patches are detected with a status ofInstalledPendingReboot
. -
NoReboot
: Patch Manager attempts to install missing packages without trying to reboot the system. Patches installed with this option are assigned a status ofInstalledPendingReboot
. 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 returnRebootOption.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromrebootOptionAsString()
.- Returns:
- Indicates the reboot option specified in the patch baseline.
Reboot options apply to
Install
operations only. Reboots aren't attempted for Patch ManagerScan
operations.-
RebootIfNeeded
: Patch Manager tries to reboot the managed node if it installed any patches, or if any patches are detected with a status ofInstalledPendingReboot
. -
NoReboot
: Patch Manager attempts to install missing packages without trying to reboot the system. Patches installed with this option are assigned a status ofInstalledPendingReboot
. These patches might not be in effect until a reboot is performed.
-
- See Also:
RebootOption
-
-
criticalNonCompliantCount
public final Integer criticalNonCompliantCount()
The number of patches per node that are specified as
Critical
for compliance reporting in the patch baseline aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes isNON_COMPLIANT
.- Returns:
- The number of patches per node that are specified as
Critical
for compliance reporting in the patch baseline aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes isNON_COMPLIANT
.
-
securityNonCompliantCount
public final Integer securityNonCompliantCount()
The number of patches per node that are specified as
Security
in a patch advisory aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes isNON_COMPLIANT
.- Returns:
- The number of patches per node that are specified as
Security
in a patch advisory aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes isNON_COMPLIANT
.
-
otherNonCompliantCount
public final Integer otherNonCompliantCount()
The number of patches per node that are specified as other than
Critical
orSecurity
but aren't compliant with the patch baseline. The status of these managed nodes isNON_COMPLIANT
.- Returns:
- The number of patches per node that are specified as other than
Critical
orSecurity
but aren't compliant with the patch baseline. The status of these managed nodes isNON_COMPLIANT
.
-
toBuilder
public InstancePatchState.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<InstancePatchState.Builder,InstancePatchState>
-
builder
public static InstancePatchState.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstancePatchState.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-