AmiFromInstance constructor
AmiFromInstance(
- String name, {
- AmiFromInstanceArgs? args,
- CustomResourceOptions? options,
Creates a new AmiFromInstance.
name The Pulumi resource name.
args Arguments used to configure this AmiFromInstance. The set of arguments for AmiFromInstance.
options Resource options controlling this resource's behavior.
Implementation
AmiFromInstance(
String name, {
AmiFromInstanceArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:ec2/amiFromInstance:AmiFromInstance',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
architecture = registerOutput<String>('architecture');
arn = registerOutput<String>('arn');
bootMode = registerOutput<String>('bootMode');
deprecationTime = registerOutput<String?>('deprecationTime');
description = registerOutput<String?>('description');
ebsBlockDevices = registerOutput<List<AmiFromInstanceEbsBlockDevice>>('ebsBlockDevices', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AmiFromInstanceEbsBlockDevice>(guardedValue, (value) => AmiFromInstanceEbsBlockDevice.fromMap((value as Map).cast<String, dynamic>())); });
enaSupport = registerOutput<bool>('enaSupport');
ephemeralBlockDevices = registerOutput<List<AmiFromInstanceEphemeralBlockDevice>>('ephemeralBlockDevices', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AmiFromInstanceEphemeralBlockDevice>(guardedValue, (value) => AmiFromInstanceEphemeralBlockDevice.fromMap((value as Map).cast<String, dynamic>())); });
hypervisor = registerOutput<String>('hypervisor');
imageLocation = registerOutput<String>('imageLocation');
imageOwnerAlias = registerOutput<String>('imageOwnerAlias');
imageType = registerOutput<String>('imageType');
imdsSupport = registerOutput<String>('imdsSupport');
kernelId = registerOutput<String>('kernelId');
lastLaunchedTime = registerOutput<String>('lastLaunchedTime');
manageEbsSnapshots = registerOutput<bool>('manageEbsSnapshots');
this.name = registerOutput<String>('name');
ownerId = registerOutput<String>('ownerId');
platform = registerOutput<String>('platform');
platformDetails = registerOutput<String>('platformDetails');
public = registerOutput<bool>('public');
ramdiskId = registerOutput<String>('ramdiskId');
region = registerOutput<String>('region');
rootDeviceName = registerOutput<String>('rootDeviceName');
rootSnapshotId = registerOutput<String>('rootSnapshotId');
snapshotWithoutReboot = registerOutput<bool?>('snapshotWithoutReboot');
sourceInstanceId = registerOutput<String>('sourceInstanceId');
sriovNetSupport = registerOutput<String>('sriovNetSupport');
tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
tpmSupport = registerOutput<String>('tpmSupport');
uefiData = registerOutput<String>('uefiData');
usageOperation = registerOutput<String>('usageOperation');
virtualizationType = registerOutput<String>('virtualizationType');
}