Route.reference constructor

Route.reference(
  1. String urn
)

Creates a typed reference to an existing Route resource.

Implementation

Route.reference(String urn)
  : super(
      'aws:apigatewayv2/route:Route',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  apiId = registerOutput<String>('apiId');
  apiKeyRequired = registerOutput<bool?>('apiKeyRequired');
  authorizationScopes = registerOutput<List<String>?>('authorizationScopes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  authorizationType = registerOutput<String?>('authorizationType');
  authorizerId = registerOutput<String?>('authorizerId');
  modelSelectionExpression = registerOutput<String?>('modelSelectionExpression');
  operationName = registerOutput<String?>('operationName');
  region = registerOutput<String>('region');
  requestModels = registerOutput<Map<String, String>?>('requestModels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  requestParameters = registerOutput<List<RouteRequestParameter>?>('requestParameters', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<RouteRequestParameter>(guardedValue, (value) => RouteRequestParameter.fromMap((value as Map).cast<String, dynamic>())); });
  routeKey = registerOutput<String>('routeKey');
  routeResponseSelectionExpression = registerOutput<String?>('routeResponseSelectionExpression');
  target = registerOutput<String?>('target');
}