Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
When you enable faster launching for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster. To create the optimized Windows image, Amazon EC2 launches an instance and runs through Sysprep steps, rebooting as required. Then it creates a set of reserved snapshots that are used for subsequent launches. The reserved snapshots are automatically replenished as they are used, depending on your settings for launch frequency.
To change these settings, you must own the AMI.
Synopsis
- data EnableFastLaunch = EnableFastLaunch' {}
- newEnableFastLaunch :: Text -> EnableFastLaunch
- enableFastLaunch_dryRun :: Lens' EnableFastLaunch (Maybe Bool)
- enableFastLaunch_launchTemplate :: Lens' EnableFastLaunch (Maybe FastLaunchLaunchTemplateSpecificationRequest)
- enableFastLaunch_maxParallelLaunches :: Lens' EnableFastLaunch (Maybe Int)
- enableFastLaunch_resourceType :: Lens' EnableFastLaunch (Maybe Text)
- enableFastLaunch_snapshotConfiguration :: Lens' EnableFastLaunch (Maybe FastLaunchSnapshotConfigurationRequest)
- enableFastLaunch_imageId :: Lens' EnableFastLaunch Text
- data EnableFastLaunchResponse = EnableFastLaunchResponse' {
- imageId :: Maybe Text
- launchTemplate :: Maybe FastLaunchLaunchTemplateSpecificationResponse
- maxParallelLaunches :: Maybe Int
- ownerId :: Maybe Text
- resourceType :: Maybe FastLaunchResourceType
- snapshotConfiguration :: Maybe FastLaunchSnapshotConfigurationResponse
- state :: Maybe FastLaunchStateCode
- stateTransitionReason :: Maybe Text
- stateTransitionTime :: Maybe ISO8601
- httpStatus :: Int
- newEnableFastLaunchResponse :: Int -> EnableFastLaunchResponse
- enableFastLaunchResponse_imageId :: Lens' EnableFastLaunchResponse (Maybe Text)
- enableFastLaunchResponse_launchTemplate :: Lens' EnableFastLaunchResponse (Maybe FastLaunchLaunchTemplateSpecificationResponse)
- enableFastLaunchResponse_maxParallelLaunches :: Lens' EnableFastLaunchResponse (Maybe Int)
- enableFastLaunchResponse_ownerId :: Lens' EnableFastLaunchResponse (Maybe Text)
- enableFastLaunchResponse_resourceType :: Lens' EnableFastLaunchResponse (Maybe FastLaunchResourceType)
- enableFastLaunchResponse_snapshotConfiguration :: Lens' EnableFastLaunchResponse (Maybe FastLaunchSnapshotConfigurationResponse)
- enableFastLaunchResponse_state :: Lens' EnableFastLaunchResponse (Maybe FastLaunchStateCode)
- enableFastLaunchResponse_stateTransitionReason :: Lens' EnableFastLaunchResponse (Maybe Text)
- enableFastLaunchResponse_stateTransitionTime :: Lens' EnableFastLaunchResponse (Maybe UTCTime)
- enableFastLaunchResponse_httpStatus :: Lens' EnableFastLaunchResponse Int
Creating a Request
data EnableFastLaunch Source #
See: newEnableFastLaunch
smart constructor.
EnableFastLaunch' | |
|
Instances
Create a value of EnableFastLaunch
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:dryRun:EnableFastLaunch'
, enableFastLaunch_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
EnableFastLaunch
, enableFastLaunch_launchTemplate
- The launch template to use when launching Windows instances from
pre-provisioned snapshots. Launch template parameters can include either
the name or ID of the launch template, but not both.
EnableFastLaunch
, enableFastLaunch_maxParallelLaunches
- The maximum number of parallel instances to launch for creating
resources. Value must be 6
or greater.
EnableFastLaunch
, enableFastLaunch_resourceType
- The type of resource to use for pre-provisioning the Windows AMI for
faster launching. Supported values include: snapshot
, which is the
default value.
EnableFastLaunch
, enableFastLaunch_snapshotConfiguration
- Configuration settings for creating and managing the snapshots that are
used for pre-provisioning the Windows AMI for faster launching. The
associated ResourceType
must be snapshot
.
EnableFastLaunch
, enableFastLaunch_imageId
- The ID of the image for which you’re enabling faster launching.
Request Lenses
enableFastLaunch_dryRun :: Lens' EnableFastLaunch (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
enableFastLaunch_launchTemplate :: Lens' EnableFastLaunch (Maybe FastLaunchLaunchTemplateSpecificationRequest) Source #
The launch template to use when launching Windows instances from pre-provisioned snapshots. Launch template parameters can include either the name or ID of the launch template, but not both.
enableFastLaunch_maxParallelLaunches :: Lens' EnableFastLaunch (Maybe Int) Source #
The maximum number of parallel instances to launch for creating
resources. Value must be 6
or greater.
enableFastLaunch_resourceType :: Lens' EnableFastLaunch (Maybe Text) Source #
The type of resource to use for pre-provisioning the Windows AMI for
faster launching. Supported values include: snapshot
, which is the
default value.
enableFastLaunch_snapshotConfiguration :: Lens' EnableFastLaunch (Maybe FastLaunchSnapshotConfigurationRequest) Source #
Configuration settings for creating and managing the snapshots that are
used for pre-provisioning the Windows AMI for faster launching. The
associated ResourceType
must be snapshot
.
enableFastLaunch_imageId :: Lens' EnableFastLaunch Text Source #
The ID of the image for which you’re enabling faster launching.
Destructuring the Response
data EnableFastLaunchResponse Source #
See: newEnableFastLaunchResponse
smart constructor.
EnableFastLaunchResponse' | |
|
Instances
newEnableFastLaunchResponse Source #
Create a value of EnableFastLaunchResponse
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:
EnableFastLaunch
, enableFastLaunchResponse_imageId
- The image ID that identifies the Windows AMI for which faster launching
was enabled.
EnableFastLaunch
, enableFastLaunchResponse_launchTemplate
- The launch template that is used when launching Windows instances from
pre-provisioned snapshots.
EnableFastLaunch
, enableFastLaunchResponse_maxParallelLaunches
- The maximum number of parallel instances to launch for creating
resources.
EnableFastLaunchResponse
, enableFastLaunchResponse_ownerId
- The owner ID for the Windows AMI for which faster launching was enabled.
EnableFastLaunch
, enableFastLaunchResponse_resourceType
- The type of resource that was defined for pre-provisioning the Windows
AMI for faster launching.
EnableFastLaunch
, enableFastLaunchResponse_snapshotConfiguration
- The configuration settings that were defined for creating and managing
the pre-provisioned snapshots for faster launching of the Windows AMI.
This property is returned when the associated resourceType
is
snapshot
.
EnableFastLaunchResponse
, enableFastLaunchResponse_state
- The current state of faster launching for the specified Windows AMI.
EnableFastLaunchResponse
, enableFastLaunchResponse_stateTransitionReason
- The reason that the state changed for faster launching for the Windows
AMI.
EnableFastLaunchResponse
, enableFastLaunchResponse_stateTransitionTime
- The time that the state changed for faster launching for the Windows
AMI.
$sel:httpStatus:EnableFastLaunchResponse'
, enableFastLaunchResponse_httpStatus
- The response's http status code.
Response Lenses
enableFastLaunchResponse_imageId :: Lens' EnableFastLaunchResponse (Maybe Text) Source #
The image ID that identifies the Windows AMI for which faster launching was enabled.
enableFastLaunchResponse_launchTemplate :: Lens' EnableFastLaunchResponse (Maybe FastLaunchLaunchTemplateSpecificationResponse) Source #
The launch template that is used when launching Windows instances from pre-provisioned snapshots.
enableFastLaunchResponse_maxParallelLaunches :: Lens' EnableFastLaunchResponse (Maybe Int) Source #
The maximum number of parallel instances to launch for creating resources.
enableFastLaunchResponse_ownerId :: Lens' EnableFastLaunchResponse (Maybe Text) Source #
The owner ID for the Windows AMI for which faster launching was enabled.
enableFastLaunchResponse_resourceType :: Lens' EnableFastLaunchResponse (Maybe FastLaunchResourceType) Source #
The type of resource that was defined for pre-provisioning the Windows AMI for faster launching.
enableFastLaunchResponse_snapshotConfiguration :: Lens' EnableFastLaunchResponse (Maybe FastLaunchSnapshotConfigurationResponse) Source #
The configuration settings that were defined for creating and managing
the pre-provisioned snapshots for faster launching of the Windows AMI.
This property is returned when the associated resourceType
is
snapshot
.
enableFastLaunchResponse_state :: Lens' EnableFastLaunchResponse (Maybe FastLaunchStateCode) Source #
The current state of faster launching for the specified Windows AMI.
enableFastLaunchResponse_stateTransitionReason :: Lens' EnableFastLaunchResponse (Maybe Text) Source #
The reason that the state changed for faster launching for the Windows AMI.
enableFastLaunchResponse_stateTransitionTime :: Lens' EnableFastLaunchResponse (Maybe UTCTime) Source #
The time that the state changed for faster launching for the Windows AMI.
enableFastLaunchResponse_httpStatus :: Lens' EnableFastLaunchResponse Int Source #
The response's http status code.