get static method

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

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

Implementation

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