libZSservicesZSamazonka-ssmZSamazonka-ssm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Description

Retrieves the current snapshot for the patch baseline the instance 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 an instance 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
Eq GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Show GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Generic GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

NFData GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

Hashable GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

ToJSON GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

AWSRequest 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

type Rep GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

type Rep GetDeployablePatchSnapshotForInstance = D1 ('MetaData "GetDeployablePatchSnapshotForInstance" "Amazonka.SSM.GetDeployablePatchSnapshotForInstance" "libZSservicesZSamazonka-ssmZSamazonka-ssm" '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))))
type AWSResponse GetDeployablePatchSnapshotForInstance Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

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.

$sel:instanceId:GetDeployablePatchSnapshotForInstance', getDeployablePatchSnapshotForInstance_instanceId - The ID of the instance for which the appropriate patch snapshot should be retrieved.

$sel:snapshotId: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 instance 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
Eq 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

Generic GetDeployablePatchSnapshotForInstanceResponse Source # 
Instance details

Defined in Amazonka.SSM.GetDeployablePatchSnapshotForInstance

NFData 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" "libZSservicesZSamazonka-ssmZSamazonka-ssm" '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:

$sel:instanceId:GetDeployablePatchSnapshotForInstance', getDeployablePatchSnapshotForInstanceResponse_instanceId - The instance ID.

$sel:product:GetDeployablePatchSnapshotForInstanceResponse', getDeployablePatchSnapshotForInstanceResponse_product - Returns the specific operating system (for example Windows Server 2012 or Amazon Linux 2015.09) on the instance 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.

$sel:snapshotId: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 instance 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.