ResourceCollection.reference constructor

ResourceCollection.reference(
  1. String urn
)

Creates a typed reference to an existing ResourceCollection resource.

Implementation

ResourceCollection.reference(String urn)
  : super(
      'aws:devopsguru/resourceCollection:ResourceCollection',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  cloudformation = registerOutput<ResourceCollectionCloudformation?>('cloudformation', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ResourceCollectionCloudformation.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  region = registerOutput<String>('region');
  tags = registerOutput<ResourceCollectionTags?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ResourceCollectionTags.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  type = registerOutput<String>('type');
}