get static method

ServerlessCollection get(
  1. String name,
  2. Input<String> id, {
  3. ServerlessCollectionState? state,
  4. CustomResourceOptions? options,
})

Gets an existing ServerlessCollection resource's state with the given name and id.

Implementation

static ServerlessCollection get(
  String name,
  pulumi.Input<String> id, {
  ServerlessCollectionState? state,
  pulumi.CustomResourceOptions? options,
}) {
  return ServerlessCollection._get(
    name,
    state: state?.toMap(),
    options: pulumi.CustomResourceOptions(id: id).merge(options),
  );
}