V2modelsBotVersion.reference constructor

V2modelsBotVersion.reference(
  1. String urn
)

Creates a typed reference to an existing V2modelsBotVersion resource.

Implementation

V2modelsBotVersion.reference(String urn)
  : super(
      'aws:lex/v2modelsBotVersion:V2modelsBotVersion',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  botId = registerOutput<String>('botId');
  botVersion = registerOutput<String>('botVersion');
  description = registerOutput<String?>('description');
  localeSpecification = registerOutput<Map<String, V2modelsBotVersionLocaleSpecification>>('localeSpecification', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeMapValues<V2modelsBotVersionLocaleSpecification>(guardedValue, (value) => V2modelsBotVersionLocaleSpecification.fromMap((value as Map).cast<String, dynamic>())); });
  region = registerOutput<String>('region');
  timeouts = registerOutput<V2modelsBotVersionTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return V2modelsBotVersionTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}