toMap method
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'arn': arn,
'availabilityZone': availabilityZone,
'availabilityZoneId': availabilityZoneId,
'availableInstanceCount': availableInstanceCount,
'capacityBlockId': capacityBlockId,
'commitmentInfo': commitmentInfo.toMap(),
'createdDate': createdDate,
'deliveryPreference': deliveryPreference,
'ebsOptimized': ebsOptimized,
'endDate': endDate,
'endDateType': endDateType,
'filters': ?(() { final guardedValue = filters; if (guardedValue == null) return null; return pulumi.Input.encodeList<GetCapacityBlockReservationFilter, Map<String, dynamic>>(guardedValue, (value) => value.toMap()); })(),
'id': id,
'instanceCount': instanceCount,
'instanceMatchCriteria': instanceMatchCriteria,
'instancePlatform': instancePlatform,
'instanceType': instanceType,
'interruptibleCapacityAllocation': interruptibleCapacityAllocation.toMap(),
'interruptionInfo': interruptionInfo.toMap(),
'outpostArn': outpostArn,
'ownerId': ownerId,
'placementGroupArn': placementGroupArn,
'region': region,
'reservationType': reservationType,
'startDate': startDate,
'state': state,
'tags': tags,
'tenancy': tenancy,
};
}