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 |
Synopsis
- data Instance = Instance' {
- instanceId :: Maybe Text
- state :: Maybe InstanceState
- securityGroups :: Maybe [SecurityGroupIdentifier]
- createdAt :: Maybe POSIX
- cpuOptions :: Maybe CpuOptions
- rootDeviceName :: Maybe Text
- instanceType :: Maybe Text
- imageId :: Maybe Text
- privateIpAddress :: Maybe Text
- updatedAt :: Maybe POSIX
- blockDeviceMappings :: Maybe [InstanceBlockDeviceMapping]
- publicIpAddress :: Maybe Text
- amiLaunchIndex :: Maybe Int
- newInstance :: Instance
- instance_instanceId :: Lens' Instance (Maybe Text)
- instance_state :: Lens' Instance (Maybe InstanceState)
- instance_securityGroups :: Lens' Instance (Maybe [SecurityGroupIdentifier])
- instance_createdAt :: Lens' Instance (Maybe UTCTime)
- instance_cpuOptions :: Lens' Instance (Maybe CpuOptions)
- instance_rootDeviceName :: Lens' Instance (Maybe Text)
- instance_instanceType :: Lens' Instance (Maybe Text)
- instance_imageId :: Lens' Instance (Maybe Text)
- instance_privateIpAddress :: Lens' Instance (Maybe Text)
- instance_updatedAt :: Lens' Instance (Maybe UTCTime)
- instance_blockDeviceMappings :: Lens' Instance (Maybe [InstanceBlockDeviceMapping])
- instance_publicIpAddress :: Lens' Instance (Maybe Text)
- instance_amiLaunchIndex :: Lens' Instance (Maybe Int)
Documentation
The description of an instance. Currently, Amazon EC2 instances are the only supported instance type.
See: newInstance
smart constructor.
Instance' | |
|
Instances
newInstance :: Instance Source #
Create a value of Instance
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:Instance'
, instance_instanceId
- The ID of the instance.
$sel:state:Instance'
, instance_state
- Undocumented member.
$sel:securityGroups:Instance'
, instance_securityGroups
- The security groups for the instance.
$sel:createdAt:Instance'
, instance_createdAt
- When the instance was created.
$sel:cpuOptions:Instance'
, instance_cpuOptions
- The CPU options for the instance.
$sel:rootDeviceName:Instance'
, instance_rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).
$sel:instanceType:Instance'
, instance_instanceType
- The instance type.
$sel:imageId:Instance'
, instance_imageId
- The ID of the AMI used to launch the instance.
$sel:privateIpAddress:Instance'
, instance_privateIpAddress
- The private IPv4 address assigned to the instance.
$sel:updatedAt:Instance'
, instance_updatedAt
- When the instance was last updated.
$sel:blockDeviceMappings:Instance'
, instance_blockDeviceMappings
- Any block device mapping entries for the instance.
$sel:publicIpAddress:Instance'
, instance_publicIpAddress
- The public IPv4 address assigned to the instance.
$sel:amiLaunchIndex:Instance'
, instance_amiLaunchIndex
- The Amazon Machine Image (AMI) launch index, which you can use to find
this instance in the launch group.
instance_state :: Lens' Instance (Maybe InstanceState) Source #
Undocumented member.
instance_securityGroups :: Lens' Instance (Maybe [SecurityGroupIdentifier]) Source #
The security groups for the instance.
instance_cpuOptions :: Lens' Instance (Maybe CpuOptions) Source #
The CPU options for the instance.
instance_rootDeviceName :: Lens' Instance (Maybe Text) Source #
The device name of the root device volume (for example, /dev/sda1
).
instance_imageId :: Lens' Instance (Maybe Text) Source #
The ID of the AMI used to launch the instance.
instance_privateIpAddress :: Lens' Instance (Maybe Text) Source #
The private IPv4 address assigned to the instance.
instance_blockDeviceMappings :: Lens' Instance (Maybe [InstanceBlockDeviceMapping]) Source #
Any block device mapping entries for the instance.