get static method

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

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

Implementation

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