get static method

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

Implementation

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