getAsset function

Future<GetAssetResult> getAsset(
  1. GetAssetArgs args, {
  2. InvokeOptions? options,
})

Information about a specific hardware asset in an Outpost. args Arguments passed to this invoke. Arguments for getAsset. options Invoke options controlling this call.

Implementation

Future<GetAssetResult> getAsset(
  GetAssetArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'aws:outposts/getAsset:getAsset',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetAssetResult.fromMap(result);
}