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 |
Creates a snapshot of a specific virtual private server, or instance. You can use a snapshot to create a new instance that is based on that snapshot.
The create instance snapshot
operation supports tag-based access
control via request tags. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data CreateInstanceSnapshot = CreateInstanceSnapshot' {
- tags :: Maybe [Tag]
- instanceSnapshotName :: Text
- instanceName :: Text
- newCreateInstanceSnapshot :: Text -> Text -> CreateInstanceSnapshot
- createInstanceSnapshot_tags :: Lens' CreateInstanceSnapshot (Maybe [Tag])
- createInstanceSnapshot_instanceSnapshotName :: Lens' CreateInstanceSnapshot Text
- createInstanceSnapshot_instanceName :: Lens' CreateInstanceSnapshot Text
- data CreateInstanceSnapshotResponse = CreateInstanceSnapshotResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newCreateInstanceSnapshotResponse :: Int -> CreateInstanceSnapshotResponse
- createInstanceSnapshotResponse_operations :: Lens' CreateInstanceSnapshotResponse (Maybe [Operation])
- createInstanceSnapshotResponse_httpStatus :: Lens' CreateInstanceSnapshotResponse Int
Creating a Request
data CreateInstanceSnapshot Source #
See: newCreateInstanceSnapshot
smart constructor.
CreateInstanceSnapshot' | |
|
Instances
newCreateInstanceSnapshot Source #
:: Text | |
-> Text | |
-> CreateInstanceSnapshot |
Create a value of CreateInstanceSnapshot
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:tags:CreateInstanceSnapshot'
, createInstanceSnapshot_tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
$sel:instanceSnapshotName:CreateInstanceSnapshot'
, createInstanceSnapshot_instanceSnapshotName
- The name for your new snapshot.
$sel:instanceName:CreateInstanceSnapshot'
, createInstanceSnapshot_instanceName
- The Lightsail instance on which to base your snapshot.
Request Lenses
createInstanceSnapshot_tags :: Lens' CreateInstanceSnapshot (Maybe [Tag]) Source #
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
createInstanceSnapshot_instanceSnapshotName :: Lens' CreateInstanceSnapshot Text Source #
The name for your new snapshot.
createInstanceSnapshot_instanceName :: Lens' CreateInstanceSnapshot Text Source #
The Lightsail instance on which to base your snapshot.
Destructuring the Response
data CreateInstanceSnapshotResponse Source #
See: newCreateInstanceSnapshotResponse
smart constructor.
CreateInstanceSnapshotResponse' | |
|
Instances
Eq CreateInstanceSnapshotResponse Source # | |
Read CreateInstanceSnapshotResponse Source # | |
Show CreateInstanceSnapshotResponse Source # | |
Defined in Amazonka.Lightsail.CreateInstanceSnapshot | |
Generic CreateInstanceSnapshotResponse Source # | |
NFData CreateInstanceSnapshotResponse Source # | |
Defined in Amazonka.Lightsail.CreateInstanceSnapshot rnf :: CreateInstanceSnapshotResponse -> () # | |
type Rep CreateInstanceSnapshotResponse Source # | |
Defined in Amazonka.Lightsail.CreateInstanceSnapshot type Rep CreateInstanceSnapshotResponse = D1 ('MetaData "CreateInstanceSnapshotResponse" "Amazonka.Lightsail.CreateInstanceSnapshot" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateInstanceSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateInstanceSnapshotResponse Source #
Create a value of CreateInstanceSnapshotResponse
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:operations:CreateInstanceSnapshotResponse'
, createInstanceSnapshotResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:CreateInstanceSnapshotResponse'
, createInstanceSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
createInstanceSnapshotResponse_operations :: Lens' CreateInstanceSnapshotResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
createInstanceSnapshotResponse_httpStatus :: Lens' CreateInstanceSnapshotResponse Int Source #
The response's http status code.