Ami.reference constructor
Ami.reference(
- String urn
Creates a typed reference to an existing Ami resource.
Implementation
Ami.reference(String urn)
: super(
'aws:ec2/ami:Ami',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
isResourceReference: true,
) {
architecture = registerOutput<String?>('architecture');
arn = registerOutput<String>('arn');
bootMode = registerOutput<String?>('bootMode');
deprecationTime = registerOutput<String?>('deprecationTime');
description = registerOutput<String?>('description');
ebsBlockDevices = registerOutput<List<AmiEbsBlockDevice>>('ebsBlockDevices', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AmiEbsBlockDevice>(guardedValue, (value) => AmiEbsBlockDevice.fromMap((value as Map).cast<String, dynamic>())); });
enaSupport = registerOutput<bool?>('enaSupport');
ephemeralBlockDevices = registerOutput<List<AmiEphemeralBlockDevice>>('ephemeralBlockDevices', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AmiEphemeralBlockDevice>(guardedValue, (value) => AmiEphemeralBlockDevice.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');
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');
}