Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data GetDeployablePatchSnapshotForInstance = GetDeployablePatchSnapshotForInstance' {}
- newGetDeployablePatchSnapshotForInstance :: Text -> Text -> GetDeployablePatchSnapshotForInstance
- getDeployablePatchSnapshotForInstance_baselineOverride :: Lens' GetDeployablePatchSnapshotForInstance (Maybe BaselineOverride)
- getDeployablePatchSnapshotForInstance_instanceId :: Lens' GetDeployablePatchSnapshotForInstance Text
- getDeployablePatchSnapshotForInstance_snapshotId :: Lens' GetDeployablePatchSnapshotForInstance Text
- data GetDeployablePatchSnapshotForInstanceResponse = GetDeployablePatchSnapshotForInstanceResponse' {
- instanceId :: Maybe Text
- product :: Maybe Text
- snapshotDownloadUrl :: Maybe Text
- snapshotId :: Maybe Text
- httpStatus :: Int
- newGetDeployablePatchSnapshotForInstanceResponse :: Int -> GetDeployablePatchSnapshotForInstanceResponse
- getDeployablePatchSnapshotForInstanceResponse_instanceId :: Lens' GetDeployablePatchSnapshotForInstanceResponse (Maybe Text)
- getDeployablePatchSnapshotForInstanceResponse_product :: Lens' GetDeployablePatchSnapshotForInstanceResponse (Maybe Text)
- getDeployablePatchSnapshotForInstanceResponse_snapshotDownloadUrl :: Lens' GetDeployablePatchSnapshotForInstanceResponse (Maybe Text)
- getDeployablePatchSnapshotForInstanceResponse_snapshotId :: Lens' GetDeployablePatchSnapshotForInstanceResponse (Maybe Text)
- getDeployablePatchSnapshotForInstanceResponse_httpStatus :: Lens' GetDeployablePatchSnapshotForInstanceResponse Int
Creating a Request
data GetDeployablePatchSnapshotForInstance Source #
See: newGetDeployablePatchSnapshotForInstance
smart constructor.
GetDeployablePatchSnapshotForInstance' | |
|
Instances
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_baselineOverride :: Lens' GetDeployablePatchSnapshotForInstance (Maybe BaselineOverride) Source #
Defines the basic information about a patch baseline override.
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 #
See: newGetDeployablePatchSnapshotForInstanceResponse
smart constructor.
GetDeployablePatchSnapshotForInstanceResponse' | |
|
Instances
newGetDeployablePatchSnapshotForInstanceResponse Source #
:: Int |
|
-> GetDeployablePatchSnapshotForInstanceResponse |
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_instanceId :: Lens' GetDeployablePatchSnapshotForInstanceResponse (Maybe Text) Source #
The instance ID.
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.
getDeployablePatchSnapshotForInstanceResponse_snapshotId :: Lens' GetDeployablePatchSnapshotForInstanceResponse (Maybe Text) Source #
The user-defined snapshot ID.
getDeployablePatchSnapshotForInstanceResponse_httpStatus :: Lens' GetDeployablePatchSnapshotForInstanceResponse Int Source #
The response's http status code.