amazonka-ssm-2.0: Amazon Simple Systems Manager (SSM) SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Description

Retrieves the current snapshot for the patch baseline the managed node uses. This API is primarily used by the AWS-RunPatchBaseline Systems Manager document (SSM document).

If you run the command locally, such as with the Command Line Interface (CLI), the system attempts to use your local Amazon Web Services credentials and the operation fails. To avoid this, you can run the command in the Amazon Web Services Systems Manager console. Use Run Command, a capability of Amazon Web Services Systems Manager, with an SSM document that enables you to target a managed node with a script or command. For example, run the command using the AWS-RunShellScript document or the AWS-RunPowerShellScript document.

Synopsis

Creating a Request

data GetDeployablePatchSnapshotForInstance Source #

Constructors

GetDeployablePatchSnapshotForInstance' 

Fields

Instances

Instances details
ToJSON GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

ToHeaders GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

ToPath GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

ToQuery GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

AWSRequest GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Generic GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Show GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

NFData GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Eq GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Hashable GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

type AWSResponse GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

type Rep GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

type Rep GetDeployablePatchSnapshotForInstance = D1 ('MetaData "GetDeployablePatchSnapshotForInstance" "Amazonka.SSM.GetDeployablePatchSnapshotForInstance" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "GetDeployablePatchSnapshotForInstance'" 'PrefixI 'True) (S1 ('MetaSel ('Just "baselineOverride") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BaselineOverride)) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newGetDeployablePatchSnapshotForInstance Source #

Create a value of GetDeployablePatchSnapshotForInstance with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:baselineOverride:GetDeployablePatchSnapshotForInstance', getDeployablePatchSnapshotForInstance_baselineOverride - Defines the basic information about a patch baseline override.

GetDeployablePatchSnapshotForInstance, getDeployablePatchSnapshotForInstance_instanceId - The ID of the managed node for which the appropriate patch snapshot should be retrieved.

GetDeployablePatchSnapshotForInstance, getDeployablePatchSnapshotForInstance_snapshotId - The snapshot ID provided by the user when running AWS-RunPatchBaseline.

Request Lenses

getDeployablePatchSnapshotForInstance_instanceId :: Lens' GetDeployablePatchSnapshotForInstance Text Source #

The ID of the managed node for which the appropriate patch snapshot should be retrieved.

getDeployablePatchSnapshotForInstance_snapshotId :: Lens' GetDeployablePatchSnapshotForInstance Text Source #

The snapshot ID provided by the user when running AWS-RunPatchBaseline.

Destructuring the Response

data GetDeployablePatchSnapshotForInstanceResponse Source #

Constructors

GetDeployablePatchSnapshotForInstanceResponse' 

Fields

Instances

Instances details
Generic GetDeployablePatchSnapshotForInstanceResponse Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Read GetDeployablePatchSnapshotForInstanceResponse Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Show GetDeployablePatchSnapshotForInstanceResponse Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

NFData GetDeployablePatchSnapshotForInstanceResponse Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Eq GetDeployablePatchSnapshotForInstanceResponse Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

type Rep GetDeployablePatchSnapshotForInstanceResponse Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

type Rep GetDeployablePatchSnapshotForInstanceResponse = D1 ('MetaData "GetDeployablePatchSnapshotForInstanceResponse" "Amazonka.SSM.GetDeployablePatchSnapshotForInstance" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "GetDeployablePatchSnapshotForInstanceResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "product") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "snapshotDownloadUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetDeployablePatchSnapshotForInstanceResponse Source #

Create a value of GetDeployablePatchSnapshotForInstanceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

GetDeployablePatchSnapshotForInstance, getDeployablePatchSnapshotForInstanceResponse_instanceId - The managed node ID.

GetDeployablePatchSnapshotForInstanceResponse, getDeployablePatchSnapshotForInstanceResponse_product - Returns the specific operating system (for example Windows Server 2012 or Amazon Linux 2015.09) on the managed node for the specified patch snapshot.

$sel:snapshotDownloadUrl:GetDeployablePatchSnapshotForInstanceResponse', getDeployablePatchSnapshotForInstanceResponse_snapshotDownloadUrl - A pre-signed Amazon Simple Storage Service (Amazon S3) URL that can be used to download the patch snapshot.

GetDeployablePatchSnapshotForInstance, getDeployablePatchSnapshotForInstanceResponse_snapshotId - The user-defined snapshot ID.

$sel:httpStatus:GetDeployablePatchSnapshotForInstanceResponse', getDeployablePatchSnapshotForInstanceResponse_httpStatus - The response's http status code.

Response Lenses

getDeployablePatchSnapshotForInstanceResponse_product :: Lens' GetDeployablePatchSnapshotForInstanceResponse (Maybe Text) Source #

Returns the specific operating system (for example Windows Server 2012 or Amazon Linux 2015.09) on the managed node for the specified patch snapshot.

getDeployablePatchSnapshotForInstanceResponse_snapshotDownloadUrl :: Lens' GetDeployablePatchSnapshotForInstanceResponse (Maybe Text) Source #

A pre-signed Amazon Simple Storage Service (Amazon S3) URL that can be used to download the patch snapshot.